/* ============================================================
   HAYRAT HOLDİNG – ULTRA-PREMIUM DESIGN SYSTEM (V2)
   Advanced Glassmorphism, Sophisticated Typography, Luxury Spacing
   ============================================================ */

/* @import url for premium fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

:root {
    /* Core Palette - HSL for flexibility */
    --bordo-hsl: 0, 100%, 25%;
    /* #800000 */
    --bordo: hsl(var(--bordo-hsl));
    --bordo-light: hsl(0, 70%, 40%);
    --bordo-dark: hsl(0, 100%, 15%);

    --bg-color: #F8F5F2;
    --surface: #ffffff;
    --text-main: #1A1A1A;
    --text-muted: #555555;

    /* Glassmorphism Tokens */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-blur: 15px;

    /* Shadows - Layered for realism */
    --shadow-luxury: 0 10px 50px -10px rgba(0, 0, 0, 0.12), 0 5px 20px -5px rgba(0, 0, 0, 0.05);
    --shadow-bordo: 0 15px 35px -5px rgba(128, 0, 0, 0.25);

    /* Radius */
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;

    /* Transitions */
    --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
}


/* ----- Global Resets & Typography ----- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
.navbar-brand {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* ----- Section Styling (Luxury Spacing) ----- */
section {
    padding: 80px 0;
    position: relative;
}

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--bordo);
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 4rem;
}

/* ----- Navbar (Advanced Glass) ----- */
.navbar {
    padding: 24px 0;
    transition: var(--transition-smooth);
    background: transparent;
    backdrop-filter: blur(0px);
}

.navbar.scrolled {
    padding: 16px 0;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

/* ----- Premium Navigation & Dropdown ----- */
.navbar {
    padding: 25px 0;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: transparent;
}

.navbar.scrolled {
    padding: 15px 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 0.1em;
    color: #fff !important;
    transition: var(--transition-smooth);
}

.navbar.scrolled .navbar-brand {
    color: var(--bordo) !important;
}

.nav-link {
    font-weight: 500;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8) !important;
    margin: 0 5px;
    padding: 10px 18px !important;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    position: relative;
    cursor: pointer;
}

.navbar.scrolled .nav-link {
    color: #222 !important;
}

.nav-link:hover,
.nav-link.active {
    color: #fff !important;
}

.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active {
    color: var(--bordo) !important;
}

/* Custom Pure-CSS Dropdown */
.premium-dropdown {
    position: relative;
}

.premium-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #fff;
    min-width: 220px;
    border-radius: 4px;
    /* More geometric/professional */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    padding: 12px 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 2px solid var(--bordo);
    z-index: 1000;
}

.premium-dropdown:hover .premium-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.premium-dropdown-menu .dropdown-item {
    display: block;
    width: 100%;
    padding: 10px 25px;
    clear: both;
    font-weight: 500;
    font-size: 0.75rem;
    color: #444 !important;
    text-align: inherit;
    text-decoration: none;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.2s ease;
}

.premium-dropdown-menu .dropdown-item:hover {
    background: #fafafa;
    color: var(--bordo) !important;
    padding-left: 28px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 20%;
    width: 0;
    height: 2px;
    background: var(--bordo);
    transition: var(--transition-smooth);
}

.nav-link.active::after,
.nav-link:hover::after {
    width: 60%;
}

@media (max-width: 991px) {
    .navbar {
        background: transparent !important;
        padding: 15px 0;
        backdrop-filter: none !important;
    }

    .navbar.scrolled {
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(20px) !important;
    }

    /* Fixed white bars/glitches */
    #navbarNav {
        background: rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(25px);
        margin: 15px -15px 0;
        padding: 20px;
        border-radius: 20px;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .navbar.scrolled #navbarNav {
        background: #fff;
        backdrop-filter: none;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    }

    .navbar-brand,
    .nav-link {
        color: #fff !important;
        border-bottom: 0 !important;
    }

    .navbar.scrolled .navbar-brand {
        color: var(--bordo) !important;
    }

    .navbar.scrolled .nav-link {
        color: #222 !important;
    }

    .nav-link::after {
        display: none !important;
    }

    .premium-dropdown-menu {
        position: static;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        display: none;
        box-shadow: none;
        border-top: none;
        padding: 10px 0 10px 20px;
        background: rgba(255, 255, 255, 0.08);
        margin: 8px 0;
        border-radius: 12px;
        transition: none;
    }

    .navbar.scrolled .premium-dropdown-menu {
        background: rgba(0, 0, 0, 0.03);
    }

    .nav-item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .navbar.scrolled .nav-item {
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .nav-item:last-child {
        border-bottom: none;
    }

    .premium-dropdown-menu .dropdown-item {
        color: rgba(255, 255, 255, 0.8) !important;
    }

    .navbar.scrolled .premium-dropdown-menu .dropdown-item {
        color: #444 !important;
    }

    .premium-dropdown-menu .dropdown-item:hover {
        background: transparent;
        color: #fff !important;
    }

    .navbar.scrolled .premium-dropdown-menu .dropdown-item:hover {
        background: #fafafa;
        color: var(--bordo) !important;
    }

    .premium-dropdown .dropdown-toggle::after {
        display: none !important;
    }

    .premium-dropdown.mobile-open .premium-dropdown-menu {
        display: block !important;
    }
}

/* ----- Hero Section (Cinematic Minimalist) ----- */
#hero {
    height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    background: #000;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    /* Higher opacity for a sharper corporate look */
    filter: brightness(0.9) contrast(1.1);
    /* Standard adjustments without blur */
}

#hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.1) 70%, transparent 100%);
    z-index: 2;
}

#hero .container {
    position: relative;
    z-index: 3;
}

.hero-content-cinematic {
    max-width: 700px;
    color: #fff;
}

.hero-content-cinematic h1 {
    font-size: clamp(3.5rem, 7vw, 5.5rem);
    line-height: 1;
    margin-bottom: 30px;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.hero-content-cinematic .history-text {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 45px;
    border-left: 5px solid var(--bordo);
    padding-left: 30px;
}

@media (max-width: 991px) {
    #hero .hero-overlay {
        background: rgba(0, 0, 0, 0.5);
    }

    .hero-content-cinematic {
        text-align: center;
    }

    .hero-content-cinematic .history-text {
        border-left: none;
        padding-left: 0;
    }
}

/* ----- About / Chairman ----- */
#about {
    padding: 60px 0;
    background: var(--bg-color);
}

/* ----- Premium Buttons ----- */
.btn-premium {
    padding: 1.2rem 2.8rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: var(--transition-smooth);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none !important;
    /* Force remove underline */
}

.btn-premium-solid {
    background: var(--bordo);
    color: #fff;
    box-shadow: var(--shadow-bordo);
}

.btn-premium-solid:hover {
    background: var(--bordo-light);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(128, 0, 0, 0.4);
}

.btn-premium-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-premium-outline:hover {
    background: #fff;
    color: var(--bordo);
    border-color: #fff;
    transform: translateY(-5px);
}

/* ----- Activity Cards (Floating Soft Glass) ----- */
/* ----- Sector Card Premium (Elite Gallery) ----- */
.sector-card-premium {
    height: 480px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background: #000;
    transition: var(--transition-smooth);
}

.sector-card-premium .card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.sector-card-premium .card-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transition: transform 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.sector-card-premium .card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.2) 50%, transparent 100%);
    z-index: 2;
    transition: var(--transition-smooth);
}

.card-content-premium {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 30px;
    z-index: 3;
    color: #fff;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.card-number {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    color: var(--bordo-light);
    margin-bottom: 1rem;
    opacity: 0.7;
}

.sector-card-premium .brand-title {
    color: #fff !important;
    margin-bottom: 0;
    transition: var(--transition-smooth);
}

.card-hover-info {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.card-hover-info p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 1.5rem 0;
}

.btn-minimal {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Hover States */
.sector-card-premium:hover {
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
}

.sector-card-premium:hover .card-bg img {
    transform: scale(1.1);
    opacity: 0.8;
}

.sector-card-premium:hover .card-content-premium {
    transform: translateY(-20px);
}

.sector-card-premium:hover .card-hover-info {
    max-height: 150px;
    opacity: 1;
}

.sector-card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--bordo);
    z-index: 4;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.sector-card-premium:hover::before {
    transform: scaleX(1);
}

/* ----- Chairman's Message (Asymmetrical) ----- */
.chairman-wrap {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: center;
}

.chairman-img-area {
    position: relative;
}

.chairman-img-area img {
    border-radius: var(--radius-lg);
    width: 100%;
    height: auto;
    box-shadow: var(--shadow-luxury);
}

.chairman-decoration {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 120px;
    height: 120px;
    background: var(--bordo);
    opacity: 0.1;
    border-radius: 50%;
    z-index: -1;
}

/* ----- Contact & Map Alignment Fix ----- */
#contact {
    padding-bottom: 80px;
    position: relative;
    background: #fff;
}

.hero-content h1 {
    font-size: 3.5rem;
}

/* ----- Sector Spotlight (50/50 Alternating) ----- */
.spotlight-section {
    padding: 0;
    background: #fff;
}

.spotlight-row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    /* Fills the container box */
    min-height: 45vh;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
}

.spotlight-content {
    padding: 6% 10%;
    flex: 0 0 50%;
    max-width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.spotlight-image-area {
    flex: 0 0 50%;
    max-width: 50%;
    height: auto;
    min-height: 100%;
    padding: 0;
    overflow: hidden;
    border-radius: 0 !important;
}

.spotlight-image-area img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0 !important;
    transition: transform 1.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.spotlight-row:hover .spotlight-image-area img {
    transform: scale(1.08);
}

.spotlight-row.reverse {
    flex-direction: row-reverse;
}

.spotlight-title {
    font-size: 2.2rem;
    /* Scaled down */
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.spotlight-text {
    font-size: 1rem;
    /* Scaled down */
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2rem;
}

@media (max-width: 991px) {

    .spotlight-content,
    .spotlight-image-area {
        flex: 0 0 100%;
        max-width: 100%;
        height: auto;
    }

    .spotlight-content {
        padding: 60px 20px;
    }

    .spotlight-image-area {
        height: 400px;
    }

    .spotlight-row.reverse {
        flex-direction: column;
    }

    /* Chairman Section Mobile Reorder */
    .chairman-wrap {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .chairman-img-area {
        order: -1;
    }

    .chairman-content {
        padding-top: 20px;
    }

    /* Hero Content Mobile Adjustments */
    .hero-content-cinematic h1 {
        font-size: clamp(2.5rem, 10vw, 3.5rem) !important;
    }

    .hero-content-cinematic .history-text {
        font-size: 1rem !important;
        margin-bottom: 30px !important;
    }

    .btn-premium {
        padding: 1rem 2rem !important;
        font-size: 0.9rem !important;
        width: 100%;
        justify-content: center;
    }
}

/* ----- Modern Google Map ----- */
.modern-map-wrapper {
    margin: 40px 0 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-luxury);
    border: 1px solid var(--glass-border);
    position: relative;
    height: 450px;
    transition: var(--transition-smooth);
}

.modern-map-wrapper iframe {
    width: 100% !important;
    height: 100% !important;
    filter: grayscale(1) contrast(1.1) opacity(0.8);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.modern-map-wrapper:hover {
    transform: translateY(-10px);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.15);
}

.modern-map-wrapper:hover iframe {
    filter: grayscale(0) contrast(1) opacity(1);
}

/* 5-Column Grid Utility (Strict) */
@media (min-width: 992px) {
    .col-lg-5th {
        flex: 0 0 20% !important;
        max-width: 20% !important;
        width: 20% !important;
    }
}

/* ----- WhatsApp Floating Button ----- */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-float i {
    margin-top: 2px;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px);
    background-color: #128c7e;
    color: #FFF;
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.4);
}

/* ----- Call Floating Button ----- */
.call-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 115px;
    right: 40px;
    background-color: var(--bordo);
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 26px;
    box-shadow: 0 10px 25px rgba(128, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.call-float:hover {
    transform: scale(1.1) translateY(-5px);
    background-color: var(--bordo-light);
    color: #FFF;
    box-shadow: 0 15px 30px rgba(128, 0, 0, 0.4);
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 25px;
    }

    .call-float {
        width: 50px;
        height: 50px;
        bottom: 85px;
        right: 20px;
        font-size: 22px;
    }
}

/* ----- Premium Footer (Dark Luxury) ----- */
#footer {
    background: #080808;
    color: #fff;
    padding: 80px 0 0;
    position: relative;
    overflow: hidden;
}

.footer-watermark {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 18vw;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.02);
    letter-spacing: 0.2em;
    pointer-events: none;
    line-height: 1;
}

.footer-top-bar {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: 35px;
    margin-bottom: 60px;
    backdrop-filter: blur(10px);
}

.footer-icon-circle {
    width: 50px;
    height: 50px;
    background: rgba(142, 21, 33, 0.1);
    color: var(--bordo-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.border-end-premium {
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-heading {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 2rem;
    color: #fff;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 0.05em;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-decoration: none;
}

.social-links a:hover {
    background: var(--bordo);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(142, 21, 33, 0.3);
}

.footer-link {
    color: rgba(255, 255, 255, 0.4);
    display: block;
    margin-bottom: 15px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-link:hover {
    color: var(--bordo-light);
    padding-left: 10px;
}

.footer-bottom {
    margin-top: 80px;
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-legal-links a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-legal-links a:hover {
    opacity: 1;
    color: #fff;
}

@media (max-width: 991px) {
    .border-end-premium {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding-bottom: 20px;
        margin-bottom: 20px;
    }
}

/* Construction Image Dimension Limits */
.sector-card-premium {
    max-height: 500px !important;
}

.spotlight-row {
    max-height: 650px !important;
}

.spotlight-image-area {
    max-height: 650px !important;
}

.spotlight-image-area img {
    height: 100% !important;
    object-fit: cover !important;
}