/* header.css */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: rgba(250, 249, 246, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(197, 160, 89, 0.15);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 15px 0;
}

.header-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo Styling */
.brand-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.nav-logo-img {
    height: 45px; /* Adjust this value based on how large you want the logo */
    width: auto;
    object-fit: contain;
}

.brand-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: #0A1128;
    text-transform: uppercase;
}

/* Naviqasiya Linkləri */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
    margin: 0;
    padding: 0;
}

.nav-link {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #0A1128;
    text-decoration: none;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: #C5A059;
    transition: width 0.3s ease;
}

.nav-link:hover { color: #C5A059; }
.nav-link:hover::after { width: 100%; }

/* Hərəkətlər (Sağ panel) */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 30px;
}

.lang-switcher {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: #666;
    letter-spacing: 1px;
    cursor: pointer;
}

.lang-switcher .active {
    color: #C5A059;
}

.btn-premium {
    font-family: 'Montserrat', sans-serif;
    padding: 12px 28px;
    background-color: #0A1128;
    color: #FFFFFF;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 1px solid #0A1128;
    transition: all 0.4s ease;
}

.btn-premium:hover {
    background-color: transparent;
    color: #0A1128;
}

/* Mobil Hamburger Menyu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.hamburger span {
    width: 30px;
    height: 2px;
    background-color: #0A1128;
    transition: 0.3s;
}

/* ==========================================================================
   DROPDOWN MENU STYLING
   ========================================================================== */

.dropdown {
    position: relative;
}

/* The arrow icon */
.chevron {
    width: 14px;
    height: 14px;
    margin-left: 3px;
    vertical-align: middle;
    transition: transform 0.3s ease;
}

/* Dropdown Container (Hidden by default) */
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    background: rgba(250, 249, 246, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    min-width: 240px;
    box-shadow: 0px 15px 35px rgba(0,0,0,0.05);
    border: 1px solid rgba(197, 160, 89, 0.2);
    border-top: 2px solid #C5A059;
    padding: 10px 0;
    z-index: 1000;
    list-style: none;
    opacity: 0;
    transition: all 0.3s ease;
}

.dropdown-content li {
    margin: 0;
}

.dropdown-content a {
    color: #0A1128;
    padding: 15px 25px;
    text-decoration: none;
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
    text-align: left;
}

/* Hover effect for dropdown items */
.dropdown-content a:hover {
    background-color: rgba(197, 160, 89, 0.05);
    color: #C5A059;
    padding-left: 32px; /* Smooth indent effect */
}

/* Creates an invisible bridge so the menu doesn't close when the mouse moves down */
.dropdown-content::before {
    content: '';
    position: absolute;
    top: -20px; /* Covers the gap above the dropdown */
    left: 0;
    width: 100%;
    height: 20px;
    background: transparent;
}
/* ==========================================================================
   DESKTOP DROPDOWN LOGIC (Hover)
   ========================================================================== */
@media (min-width: 1025px) {
    .dropdown:hover .dropdown-content {
        display: block;
        opacity: 1;
        transform: translateX(-50%) translateY(10px);
    }
    
    .dropdown:hover .chevron {
        transform: rotate(180deg);
        color: #C5A059;
    }
    
    .dropdown:hover .dropbtn {
        color: #C5A059;
    }
    
    .dropdown:hover .dropbtn::after {
        width: 100%;
    }
}

/* ==========================================================================
   MOBILE DROPDOWN LOGIC (Click)
   ========================================================================== */
@media (max-width: 1024px) {
    .dropdown-content {
        position: static;
        box-shadow: none;
        border: none;
        background: transparent;
        min-width: 100%;
        padding: 0;
        opacity: 1;
        transform: none;
        margin-top: 15px;
        border-top: 1px solid rgba(197, 160, 89, 0.2);
    }

    /* Shows the dropdown when JS adds the 'active' class */
    .dropdown.active .dropdown-content {
        display: block;
        animation: fadeIn 0.4s ease;
    }

    .dropdown.active .chevron {
        transform: rotate(180deg);
        color: #C5A059;
    }

    .dropdown-content a {
        text-align: center;
        font-size: 0.95rem;
        padding: 15px 0;
        color: #555;
    }
    
    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }
}
/* Mobil Cihazlar üçün Media Queries */
/* ==========================================================================
   RESPONSIVE DESIGN (Header & Mobile Menu)
   ========================================================================== */

/* --- Tablets & Small Laptops (max-width: 1024px) --- */
@media (max-width: 1024px) {
    .lang-switcher { display: none; } /* Can be moved inside mobile menu if needed */
    
    /* Ensure hamburger stays above the mobile menu */
    .hamburger { 
        display: flex; 
        z-index: 10001; 
        position: relative;
    }

    /* Transform the horizontal menu into a sliding side-drawer */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%; /* Hidden off-screen by default */
        width: 100%;
        max-width: 350px;
        height: 100vh;
        background-color: rgba(250, 249, 246, 0.98);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        box-shadow: -10px 0 40px rgba(0,0,0,0.1);
        transition: right 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        z-index: 10000;
    }

    /* Class added via JavaScript to open the menu */
    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        font-size: 1.2rem;
        letter-spacing: 4px;
    }

    /* Hamburger Animation (Turns into an 'X') */
    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* --- Large Mobile & Portrait Tablets (max-width: 768px) --- */
@media (max-width: 768px) {
    .brand-text {
        font-size: 1.2rem;
        letter-spacing: 2px;
    }
    
    .nav-logo-img {
        height: 35px;
    }

    .btn-premium {
        padding: 10px 16px;
        font-size: 0.7rem;
        letter-spacing: 1px;
    }

    .nav-actions {
        gap: 20px;
    }
}

/* --- Small Mobile Screens (max-width: 576px) --- */
@media (max-width: 576px) {
    .main-header { padding: 10px 0; }
    
    /* Hide the brand text to save space, keeping only the logo image */
    .brand-text { 
        display: none; 
    }
    
    .nav-logo-img { 
        height: 40px; 
    }
    
    /* Hide the consultation button on very small screens to prevent overlap */
    .btn-premium { 
        display: none; 
    }
    
    .nav-menu {
        max-width: 100%; /* Menu takes full width on tiny screens */
    }
}