.header {
    position: fixed;
    width: 100%;
    background-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    z-index: 100;
    padding: 20px 0;
    transition: all 0.3s ease;
    top: 0;
    left: 0;
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0px !important;
}

.header.scrolled .nav-menu a:not(.contact-btn) {
    color: #333;
}

.header.scrolled .mobile-menu-btn span {
    background-color: #333;
}

.header.scrolled .nav-items:after {
    background: rgba(0, 0, 0, 0.1);
}

.nav-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 50px;
}

.logo img {
    height: 60px;
    transition: all 0.3s ease;
}

.header.scrolled .logo img {
    height: 50px;
}

.nav-menu {
    display: flex;
    gap: 40px;
    align-items: center;
    position: relative;
}

.nav-items {
    display: flex;
    gap: 40px;
    align-items: center;
    position: relative;
    padding: 8px 0;
}

.nav-items:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
}

.nav-items .active-indicator {
    position: absolute;
    bottom: -2px;
    left: 0;
    height: 2px;
    background: #e31837;
    transition: all 0.4s ease;
}

.nav-menu a:not(.contact-btn) {
    text-decoration: none;
    color: white;
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0.5px;
    position: relative;
    transition: all 0.3s ease;
    padding: 6px 0;
    opacity: 0.8;
}

/* Active state styles */
.nav-menu a.active:not(.contact-btn),
.nav-menu a.active:not(.contact-btn):hover {
    opacity: 1 !important;
    /* color: white !important; */
}

.nav-menu a.active:not(.contact-btn)::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100% !important;
    height: 2px;
    background-color: #e31837 !important;
    opacity: 1 !important;
    transform: none !important;
}

/* Scrolled state for active link */
.header.scrolled .nav-menu a.active:not(.contact-btn) {
    color: #333 !important;
}

/* Ensure active state is always visible */
.nav-menu a.active:not(.contact-btn)::after,
.nav-menu a.active:not(.contact-btn):hover::after {
    width: 100% !important;
    opacity: 1 !important;
}

.nav-menu a:not(.contact-btn):hover {
    opacity: 1;
}

/* Remove the hover effect */
.nav-menu a:not(.contact-btn):hover::after {
    width: 0;
}

/* Update for scrolled state */
.header.scrolled .nav-menu a:not(.contact-btn)::after {
    background-color: #e31837;
}

.contact-btn {
    background: linear-gradient(45deg, rgba(227, 24, 55, 0.8), rgba(227, 24, 55, 1));
    color: white !important;
    padding: 10px 28px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 15px rgba(227, 24, 55, 0.2);
    text-decoration: none;
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(227, 24, 55, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 150;
    position: relative;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: white;
    border-radius: 4px;
    position: absolute;
    left: 4px;
    transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
}

.mobile-menu-btn span:nth-child(1) {
    transform: translateY(-8px);
}

.mobile-menu-btn span:nth-child(3) {
    transform: translateY(8px);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(0) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(0) rotate(-45deg);
}

.mobile-menu-btn.active span {
    background-color: #333;
}

.mobile-menu-btn:hover span {
    background-color: #e31837;
}

.mobile-menu-btn.active:hover span {
    background-color: #333;
}

.header.scrolled .mobile-menu-btn span {
    background-color: #333;
}

.header.scrolled .mobile-menu-btn.active span {
    background-color: #333;
}

.mobile-menu-btn:focus {
    outline: none;
}

.mobile-menu-btn:focus-visible {
    outline: 2px solid #e31837;
    outline-offset: 2px;
    border-radius: 4px;
}

.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 99;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-overlay.active {
    display: block;
    opacity: 1;
}

/* Dropdown styles */
.menu-item-wrapper {
    position: relative;
    display: inline-block;
}

.has-dropdown {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 0;
}

.dropdown-arrow {
    transition: transform 0.3s ease;
}

.has-dropdown[aria-expanded="true"] .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    transform: none;
    min-width: 180px;
    display: none;
    flex-direction: column;
    gap: 2px;
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 4px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    z-index: 1000;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 20px;
    transform: none;
    width: 8px;
    height: 8px;
    background: white;
    transform-origin: center;
    rotate: 45deg;
    border-left: 1px solid rgba(0, 0, 0, 0.08);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.dropdown-menu.active {
    display: flex;
}

.dropdown-item {
    display: block;
    width: 100%;
    color: #333 !important;
    padding: 8px 12px !important;
    border-radius: 2px;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 14px;
    opacity: 0.9;
    white-space: nowrap;
}

.dropdown-item:hover {
    background-color: rgba(227, 24, 55, 0.08);
    color: #e31837 !important;
    opacity: 1;
}

.dropdown-item.active {
    background-color: rgba(227, 24, 55, 0.08);
    color: #e31837 !important;
    opacity: 1;
}

/* Mobile styles */
@media (max-width: 768px) {
    .header {
        position: relative;
        transition: all 0.3s ease;
        width: 100%;
        left: 0;
        top: 0;
    }

    /* Modern style (with setting) */
    .header[data-mobile-style="modern"] {
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        padding: 10px 0;
    }

    .header[data-mobile-style="modern"] .mobile-menu-btn span {
        background-color: #333;
    }

    .header[data-mobile-style="modern"] .nav-menu a:not(.contact-btn) {
        color: #333;
    }

    /* Classic style starts transparent and changes on scroll */
    .header[data-mobile-style="classic"] {
        position: fixed;
        background-color: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        box-shadow: none;
    }

    .header[data-mobile-style="classic"] .mobile-menu-btn span {
        background-color: #fff;
    }

    .header[data-mobile-style="classic"] .nav-menu a:not(.contact-btn) {
        color: #fff;
    }

    /* Classic style scrolled state */
    .header[data-mobile-style="classic"].scrolled {
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .header[data-mobile-style="classic"].scrolled .mobile-menu-btn span {
        background-color: #333;
    }

    .header[data-mobile-style="classic"].scrolled .nav-menu a:not(.contact-btn) {
        color: #333;
    }

    /* Only change position when scrolled */
    .header.scrolled {
        position: fixed;
    }

    /* Logo sizes */
    .header[data-mobile-style="modern"] .logo img {
        height: 50px;
        transition: all 0.3s ease;
    }

    .header[data-mobile-style="modern"].scrolled .logo img {
        height: 45px;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 360px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        gap: 32px;
        padding: 80px 40px;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-items {
        flex-direction: column;
        gap: 24px;
        width: 100%;
        text-align: center;
    }

    .nav-items:after {
        display: none;
    }

    .nav-menu a:not(.contact-btn) {
        color: #333;
        font-size: 18px;
        font-weight: 500;
        padding: 12px;
        width: 100%;
        display: block;
    }

    .contact-btn {
        width: 100%;
        text-align: center;
        padding: 16px;
    }

    .menu-item-wrapper {
        width: 100%;
    }

    .has-dropdown {
        width: 100%;
        justify-content: center;
        padding: 12px;
    }

    .dropdown-menu {
        position: static;
        transform: none;
        width: 100%;
        padding: 0;
        margin: 0;
        background: rgba(0, 0, 0, 0.03);
        border-radius: 8px;
        box-shadow: none;
        border: none;
    }

    .dropdown-menu::before {
        display: none;
    }

    .dropdown-menu.active {
        transform: none;
        animation: slideDown 0.3s ease forwards;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .dropdown-menu .dropdown-item {
        padding: 16px !important;
        text-align: center;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        border-radius: 0;
    }

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

    .dropdown-item:hover {
        transform: none;
    }
} 