/* =========================================
   GLASSMORPHISM DYNAMIC HEADER
   ========================================= */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%; 
    
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    
    background: rgba(239, 229, 219, 0.4); 
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px); 
    border-bottom: none; 
    box-shadow: none; /* No shadow when at the very top */
    transition: all 0.4s ease;
}

.main-header.scrolled {
    background-color: #efe5db;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: none; 
    /* Subtle, custom-tinted shadow to lift the header */
    box-shadow: 0 10px 20px rgba(28, 70, 50, 0.08); 
    padding: 10px 5%; 
}

.logo img {
    height: 75px; 
    transition: height 0.4s ease;
}

.main-header.scrolled .logo img {
    height: 60px; 
}

.nav-wrapper {
    display: flex;
    align-items: center;
    flex-grow: 1;
    justify-content: space-between;
    padding-left: 40px;
    transition: left 0.4s ease-in-out; 
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-links li a {
    text-decoration: none;
    color: #1c4632;
    font-weight: bold;
    font-size: 16px;
    transition: color 0.3s ease;
}

.nav-links li a:hover {
    color: #000;
}

/* =========================================
   SVG ICONS & LANGUAGE TOGGLE
   ========================================= */
.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
}

.chevron-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.dropdown:hover .chevron-icon {
    transform: rotate(180deg);
}

.btn-lang-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    color: #1c4632;
    text-decoration: none; 
    padding: 10px 5px;
    transition: color 0.3s ease;
}

.btn-lang-toggle:hover {
    color: #000;
}

.globe-icon {
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    flex-shrink: 0; 
    stroke: currentColor;
    display: block;
}

/* =========================================
   DROPDOWN MENUS
   ========================================= */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #efe5db;
    border: none; 
    box-shadow: 0px 10px 20px rgba(28, 70, 50, 0.15); 
    list-style: none;
    min-width: 260px; 
    z-index: 1000;
    padding: 15px 0; 
}

.lang-menu {
    left: auto;
    right: 0;
    min-width: 120px; 
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu li a {
    display: block;
    padding: 12px 25px; 
    font-size: 16px; 
    color: #1c4632; 
    text-decoration: none; 
    font-weight: bold; 
    transition: color 0.3s ease;
}

.dropdown-menu li a:hover {
    color: #000;
    text-decoration: none; 
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px; 
}

.lang-dropdown {
    display: flex;
    align-items: center;
}

/* =========================================
   HAMBURGER ICON STYLES
   ========================================= */
.hamburger {
    display: none; 
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 1001; 
}

.hamburger .bar {
    display: block;
    width: 30px;
    height: 3px;
    background-color: #1c4632;
    transition: all 0.3s ease-in-out;
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* =========================================
   HEADER RESPONSIVENESS (MOBILE MENU)
   ========================================= */
@media (max-width: 1100px) {
    .hamburger {
        display: flex; 
    }
    
    .nav-wrapper {
        position: absolute;
        top: 100%; 
        left: -100%; 
        flex-direction: column;
        width: 100%;
        background-color: #efe5db;
        padding: 30px 5%;
        border-bottom: 2px solid #1c4632;
        z-index: 999;
        align-items: flex-start;
        gap: 30px;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
    }

    .nav-wrapper.active {
        left: 0; 
    }
    
    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }
    
    .header-actions {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }
    
    .dropdown-menu {
        position: static;
        border: none;
        box-shadow: none; 
        display: none;
        padding-left: 20px;
        padding-top: 10px;
        padding-bottom: 0;
    }
    
    .dropdown:hover .dropdown-menu {
        display: block;
    }
}