/* Header Styles */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(19, 13, 52, 0.1);
    transition: all 0.3s ease;
}

nav.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 8px 32px rgba(19, 13, 52, 0.08);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.75rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-img {
    height: 65px;
    width: auto;
    max-width: 280px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-link:hover .logo-img {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--jci-navy);
    font-weight: 500;
    font-size: 1.15rem;
    /* Increased font size */
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a:not(.cta-button)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    /* Thicker indicator */
    background: var(--fire-gradient);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-links a:not(.cta-button):hover::after,
.nav-links a:not(.cta-button).active::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--fire-red);
}

.nav-links a.active {
    color: var(--fire-red);
    font-weight: 700;
    text-shadow: 0 0 1px rgba(220, 38, 38, 0.2);
}

.cta-button {
    background: var(--fire-gradient);
    color: var(--jci-white) !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
    border: none;
}

.cta-button::after {
    display: none;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.4);
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 0.5rem;
    margin-left: 1rem;
    border-left: 1px solid rgba(19, 13, 52, 0.1);
    padding-left: 1rem;
}

.lang-btn {
    background: none;
    border: 1px solid rgba(19, 13, 52, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--jci-navy);
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    border-color: var(--fire-red);
    color: var(--fire-red);
}

.lang-btn.active {
    background: var(--fire-gradient);
    color: var(--jci-white);
    border-color: transparent;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--jci-navy);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.mobile-menu-toggle:hover {
    background-color: rgba(19, 13, 52, 0.05);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        padding: 0.5rem 1rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
        border-top: 1px solid rgba(19, 13, 52, 0.1);
        gap: 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid rgba(19, 13, 52, 0.05);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        display: block;
        padding: 1rem;
        width: 100%;
        border-radius: 8px;
        transition: background-color 0.3s ease;
    }

    .nav-links a:hover {
        background-color: rgba(220, 38, 38, 0.05);
    }

    .cta-button {
        margin-top: 0.5rem;
        text-align: center;
        justify-content: center;
    }

    .lang-switcher {
        margin-left: 0;
        border-left: none;
        padding-left: 0;
        justify-content: center;
        margin-top: 0.5rem;
        padding-top: 0.5rem;
        border-top: 1px solid rgba(19, 13, 52, 0.05);
    }

    .mobile-menu-toggle {
        display: block;
    }

    .logo-img {
        height: 50px;
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0.5rem;
    }

    .logo-img {
        height: 60px;
        /* Slightly larger than before for visibility */
        max-width: 160px;
    }

    .mobile-menu-toggle {
        font-size: 1.25rem;
        padding: 0.25rem;
    }
}