/* Header Styles - Transparent Design */
header {
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid transparent;
}

header.scrolled {
    background: rgba(15, 40, 71, 0.95);
    backdrop-filter: blur(25px) saturate(180%);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(74, 144, 226, 0.3);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    max-width: 1400px;
}

header.scrolled .container {
    padding: 18px 30px;
}

/* Logo Styles */
.logo {
    display: flex;
    align-items: center;
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--white);
    gap: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.8), var(--primary-blue));
    box-shadow: 0 0 15px rgba(74, 144, 226, 0.6);
    transition: width 0.3s ease;
}

.logo:hover::after {
    width: 100%;
}

.logo:hover {
    transform: translateY(-2px);
}

.logo img {
    height: 60px;
    width: auto;
    filter: drop-shadow(0 4px 15px rgba(74, 144, 226, 0.7));
    transition: all 0.3s ease;
    border-radius: 15px;
}

.logo:hover img {
    filter: drop-shadow(0 6px 25px rgba(255, 255, 255, 0.6));
    transform: rotate(-5deg) scale(1.08);
}

.logo span {
    background: linear-gradient(135deg, #ffffff 0%, #e0f0ff 50%, #ffffff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
    letter-spacing: 0.5px;
    filter: drop-shadow(0 2px 8px rgba(255, 255, 255, 0.3));
}

@keyframes shimmer {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 200% center;
    }
}

/* Mobile Menu Toggle - Animated Hamburger */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    padding: 10px;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1001;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.menu-toggle:hover {
    background: rgba(74, 144, 226, 0.2);
    border-color: rgba(74, 144, 226, 0.4);
    transform: scale(1.05);
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: linear-gradient(90deg, #ffffff, #e0f0ff);
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.5);
}

.menu-toggle.active {
    background: rgba(74, 144, 226, 0.3);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Navigation */
nav {
    display: flex;
    align-items: center;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 8px;
    align-items: center;
    margin: 0;
    padding: 0;
}

nav ul li {
    position: relative;
}

nav ul li a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 12px 26px;
    display: block;
    border-radius: 12px;
    letter-spacing: 0.3px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Hover Effect with Glass Background */
nav ul li a::before {
    display: none;
}

nav ul li a:hover::before {
    display: none;
}

/* Underline Effect */
nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ffffff, rgba(255, 255, 255, 0.6));
    transition: width 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-radius: 2px;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

nav ul li a:hover {
    color: #ffffff;
    transform: translateY(-2px);
}

nav ul li a:hover::after {
    width: 70%;
}

/* Active/Current Page Indicator */
nav ul li a.active {
    background: none;
    backdrop-filter: none;
    color: #ffffff;
    border: none;
}

nav ul li a.active::after {
    width: 70%;
}

/* CTA Button in Nav - Stands Out */
.nav-cta {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85)) !important;
    color: var(--dark-blue) !important;
    padding: 12px 30px !important;
    border-radius: 50px !important;
    margin-left: 15px;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    transition: all 0.3s ease;
    font-weight: 700 !important;
    text-shadow: none !important;
}

.nav-cta::before,
.nav-cta::after {
    display: none !important;
}

.nav-cta:hover {
    transform: translateY(-3px) scale(1.05) !important;
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.6) !important;
    background: linear-gradient(135deg, #ffffff, rgba(255, 255, 255, 0.95)) !important;
}

/* Scrolled state - CTA becomes blue */
header.scrolled .nav-cta {
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue)) !important;
    color: var(--white) !important;
    box-shadow: 0 4px 20px rgba(74, 144, 226, 0.5);
}

header.scrolled .nav-cta:hover {
    box-shadow: 0 8px 30px rgba(74, 144, 226, 0.7) !important;
}

/* Responsive Design */
@media (max-width: 968px) {
    header .container {
        padding: 20px;
    }

    header.scrolled .container {
        padding: 15px 20px;
    }

    .menu-toggle {
        display: flex;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 320px;
        height: 100vh;
        background: linear-gradient(180deg, rgba(15, 40, 71, 0.98) 0%, rgba(10, 25, 47, 0.98) 100%);
        backdrop-filter: blur(30px);
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.7);
        transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        padding: 100px 0 30px 0;
        overflow-y: auto;
        border-left: 1px solid rgba(74, 144, 226, 0.3);
    }

    nav.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
        padding: 0;
        width: 100%;
    }

    nav ul li {
        width: 100%;
        padding: 0 20px;
        margin-bottom: 5px;
    }

    nav ul li a {
        width: 100%;
        padding: 18px 20px;
        border-radius: 12px;
        font-size: 1.1rem;
    }

    nav ul li a::after {
        bottom: 12px;
    }

    .nav-cta {
        margin-left: 0 !important;
        margin-top: 20px;
        text-align: center;
        background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue)) !important;
        color: var(--white) !important;
    }

    /* Close button overlay when menu is open */
    nav.active::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: calc(100vw - 320px);
        height: 100vh;
        background: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(3px);
        z-index: -1;
    }
}

@media (max-width: 480px) {
    .logo img {
        height: 50px;
    }

    .logo {
        font-size: 1.4rem;
    }

    nav {
        width: 280px;
    }

    header .container {
        padding: 15px;
    }

    header.scrolled .container {
        padding: 12px 15px;
    }
}

/* Add smooth entrance animation for nav items */
@media (max-width: 968px) {
    nav.active ul li {
        animation: slideInRight 0.4s ease forwards;
        opacity: 0;
    }

    nav.active ul li:nth-child(1) { animation-delay: 0.1s; }
    nav.active ul li:nth-child(2) { animation-delay: 0.15s; }
    nav.active ul li:nth-child(3) { animation-delay: 0.2s; }
    nav.active ul li:nth-child(4) { animation-delay: 0.25s; }
    nav.active ul li:nth-child(5) { animation-delay: 0.3s; }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
