/* Header Component Styles */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 10px;
    transition: all 0.3s ease;
}

/* Glassmorphism background */
.header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(240, 240, 240, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    z-index: -1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header.scrolled::before {
    background: rgba(240, 240, 240, 0.15);
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.header__content {
    background-color: var(--dark-gray);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 10px;
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

.header__logo {
    width: 283px;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-green);
    
}
.header__logo a {
    display: flex;
    align-items: center;
}

.header__nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.header__nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    justify-content: space-between;
    align-items: center;
    font-size: 22px;
}

.header__nav-links a {
    color: var(--light-gray);
    text-decoration: none;
    font-weight: 400;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    border: 1px solid transparent;
}

.header__nav-links a:hover {
    color: white;
    border: 1px solid white;
    background-color: transparent;
}

.header__dropdown {
    position: relative;
    display: inline-block;
}

.header__dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--light-gray);
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    text-decoration: none;
}

.header__dropdown-trigger:hover {
    color: white;
    border: 1px solid white;
    background-color: transparent;
}

.header__dropdown-trigger a {
    color: inherit;
    text-decoration: none;
    border: none;
    padding: 0;
    margin: 0;
    background: none;
    transition: none;
}

.header__dropdown-trigger a:hover {
    color: inherit;
    border: none;
    background: none;
}

.header__dropdown-trigger i {
    font-size: 12px;
    color: inherit;
    margin-left: 5px;
}

.header__dropdown-content:not(:nth-child(1)) {
    display: none;
    position: absolute;
    background-color: var(--dark-gray);
    min-width: 340px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 8px;
    padding: 1rem;
}

.header__dropdown-content a {
    color: var(--light-gray);
    text-decoration: none;
    display: block;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
}

.header__dropdown-content a:hover {
    color: white;
    border: 1px solid white;
    background-color: transparent;
}

.header__dropdown:hover .header__dropdown-content {
    display: block;
}

.header__language-selector {
    position: relative;
    display: inline-block;
}

.header__language-selector-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--light-gray);
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    font-size: 22px;
}

.header__language-selector-trigger:hover {
    color: white;
    border: 1px solid white;
    background-color: transparent;
}

.header__language-dropdown {
    display: none;
    position: absolute;
    background-color: var(--dark-gray);
    min-width: 120px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 8px;
    padding: 1rem;
    top: 100%;
    right: 0;
}

.header__language-dropdown a {
    color: var(--light-gray);
    text-decoration: none;
    display: block;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
    text-align: center;
    font-size: 22px;
}

.header__language-dropdown a:hover {
    color: white;
    border: 1px solid white;
    background-color: transparent;
}

.header__language-selector:hover .header__language-dropdown {
    display: block;
}

.header__cta-button {
    background: linear-gradient(180deg, #7AFFB3 0%, #4DE68A 100%);
    color: var(--dark-gray);
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.2),
        inset 0 2px 0 rgba(255, 255, 255, 0.4),
        inset 0 -2px 0 rgba(0, 0, 0, 0.2);
    text-shadow: 
        0.5px 0.5px 0 #2e323025,
        -0.5px -0.5px 0 #2e323025,
        0.5px -0.5px 0 #2e323025,
        -0.5px 0.5px 0 #2e323025;
    font-size: 22px;
    letter-spacing: 0.5px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-smooth: always;
    -webkit-backface-visibility: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backface-visibility: hidden;
    transform: translateZ(0);
}

.header__cta-button:hover {
    background: linear-gradient(180deg, #8AFFC3 0%, #5DFF9A 100%);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 
        0 6px 12px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    filter: brightness(1.1) saturate(1.2);
}

.header__cta-button:active,
.header__cta-button.button-pressed {
    transform: translateY(2px) scale(0.95);
    background: linear-gradient(180deg, #6AFFA3 0%, #3DE67A 100%);
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.3),
        inset 0 2px 4px rgba(0, 0, 0, 0.2),
        inset 0 -1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(0.9) saturate(1.1);
}

/* CTA Button Jump Animation */
.header__cta-button {
    animation: ctaJump 4s ease-in-out infinite;
}

@keyframes ctaJump {
    0%, 90%, 100% {
        transform: translateY(0) scale(1);
    }
    94% {
        transform: translateY(-2px) scale(1.02);
    }
    97% {
        transform: translateY(-6px) scale(1.05);
    }
    98% {
        transform: translateY(-2px) scale(1.02);
    }
    100% {
        transform: translateY(0) scale(1);
    }
}

.header__mobile-menu-button {
    display: none;
    background: none;
    border: none;
    color: var(--light-gray);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Mobile Header Styles */
@media (max-width: 768px) {
    .header {
        padding: 8px;
    }

    .header__content {
        padding: 0.75rem 1rem;
        flex-direction: column;
        gap: 0.75rem;
    }

    .header__nav {
        /* width: 100%; */
    }

    .header__nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--dark-gray);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        z-index: 1001;
        border-radius: 0 0 10px 10px;
    }

    .header__nav-links--open {
        display: flex;
    }

    .header__mobile-menu-button {
        display: block !important;
    }

    .header__language-selector {
        order: -1;
    }

    .header__cta-button {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* Mobile Burger Menu Styles */
.header__mobile {
    display: none;
}

.header__burger {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1002;
}

.header__burger-line {
    display: block;
    width: 100%;
    height: 3px;
    background-color: white;
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.header__burger.active .header__burger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.header__burger.active .header__burger-line:nth-child(2) {
    opacity: 0;
}

.header__burger.active .header__burger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Navigation */
.header__nav--mobile {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: none;
    opacity: 0;
    transition: all 0.3s ease;
    gap: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--light-gray);
    pointer-events: none;
    z-index: 1001;
    padding: 10px;
}

.header__nav--mobile.mobile-wrapper {
    padding: 10px;
    border-radius: 10px;
    height: 100vh;
    z-index: 1001;
    background-color: var(--dark-gray);
}

.header__nav--mobile.language-selector {
    top: 91px;
    height: 89px;
    background-color: var(--dark-gray);
}

.header__nav--mobile.nav-content {
    top: 179px;
    height: calc(100vh - 179px);
}

.header__nav--mobile.active {
    display: flex;
    opacity: 1;
    pointer-events: auto;
}

/* Prevent body scroll when mobile menu is open */
body.mobile-menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

.header__mobile-nav-content {
    background-color: var(--dark-gray);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    padding-top: 0;
    box-sizing: border-box;
    margin-top: 0;
    border-radius: 10px;
}

.header__nav--mobile.active .header__mobile-nav-content {
    margin-top: 180px;
}

/* Language Selectors */
.header__mobile-language {
    display: flex;
    justify-content: center;
  
    width: 100%;
    border-radius: 10px;
    margin-top: 10px;
    height: 89px;
}

.header__mobile-language-selector {
    width: 100%;
    display: flex;
    gap: 10px;
    padding: 0 10px;
    /* gap: 1rem; */
}

.header__mobile-language-selector a {
    width: 100%;
    border-radius: 10px;
    height: 89px;
}

.header__mobile-language-trigger {
    background-color: var(--dark-gray);
    color: var(--light-gray);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-style: italic;
    font-size: 22px;
}

.header__mobile-language-trigger.active { 
    color: var(--primary-green);
}

.header__mobile-language-trigger:hover {
    color: var(--primary-green);
}

.header__mobile-language-trigger.active:hover {
    color: var(--primary-green);
}

.header__mobile-nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.header__mobile-nav-links li {
    margin: 1.5rem 0;
}

.header__mobile-nav-links a {
    color: var(--light-gray);
    text-decoration: none;
    font-size: 18px;
    font-weight: 400;
    transition: color 0.3s ease;
    display: block;
}

.header__mobile-nav-links a:hover {
    color: var(--primary-green);
}

/* Mobile Dropdown */
.header__mobile-dropdown {
    position: relative;
}

.header__mobile-dropdown-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.header__mobile-dropdown-content {
    display: none;
    margin-top: 1rem;
}

.header__mobile-dropdown.active .header__mobile-dropdown-content {
    display: block;
}

.header__mobile-dropdown-content a {
    font-size: 1.2rem;
    margin: 0.8rem 0;
    color: #ccc;
    display: block;
}

.header__mobile-dropdown-content a:hover {
    color: var(--primary-green);
}

/* Mobile CTA Button */
.header__mobile-cta {
    margin-top: auto;
    padding-top: 2rem;
    display: flex;
    justify-content: center;
}

.header__mobile-cta-button {
    background: linear-gradient(180deg, #7AFFB3 0%, #4DE68A 100%);
    color: var(--dark-gray);
    padding: 1rem 2rem;
    border: 1px solid #60FFA0;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.2),
        inset 0 2px 0 rgba(255, 255, 255, 0.4),
        inset 0 -2px 0 rgba(0, 0, 0, 0.2);
    text-shadow: 
        0.5px 0.5px 0 #2e323025,
        -0.5px -0.5px 0 #2e323025,
        0.5px -0.5px 0 #2e323025,
        -0.5px 0.5px 0 #2e323025;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-smooth: always;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.header__mobile-cta-button:hover {
    background: linear-gradient(180deg, #8AFFC3 0%, #5DFF9A 100%);
    border-color: #60FFA0;
    transform: translateY(-2px);
    box-shadow: 
        0 6px 12px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.header__mobile-cta-button.button-pressed {
    transform: translateY(1px) scale(0.98);
    background: linear-gradient(180deg, #6AFFA3 0%, #3DE67A 100%);
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(0, 0, 0, 0.1),
        inset 0 -1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.1s ease;
}

/* Mobile CTA Button Jump Animation */
.header__mobile-cta-button {
    animation: ctaJump 4s ease-in-out infinite;
}


/* Mobile Responsive */
@media (max-width: 768px) {
    .header__nav--desktop {
        display: none;
    }
    
    .header__mobile {
        display: block;
    }
    
    .header__content {
        padding: 1rem;
        position: relative;
        z-index: 1002; /* Ensure header stays above mobile nav */
    }
    
    .header__logo {
        width: auto;
    }
    
    .header__logo img {
        height: 40px;
        width: auto;
    }
    
    .header__language-selector {
        display: none;
    }
    
    .header__cta-button {
        display: none;
    }
    
    /* Ensure header remains visible when mobile menu is open */
    .header__nav--mobile.active ~ .header__content {
        position: relative;
        z-index: 1002;
    }

    .header__mobile-language {
        margin-top: 82px;
        position: absolute;
    }
}
