/* ======================================
   NAVBAR — LIGHT THEME
====================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(79, 106, 245, 0.08);
    padding: 16px 0;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar.scrolled {
    padding: 12px 0;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 1px 24px rgba(79, 106, 245, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    font-weight: 800;
    color: #1A1F36;
    text-decoration: none;
    letter-spacing: -0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.navbar-logo-img {
    height: 32px;
    width: 38px;
    background-image: url('../assets/images/logo_primary.PNG');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: all 0.3s ease;
}

.navbar.scrolled .navbar-logo {
    transform: scale(0.92);
}

.navbar-logo:hover {
    opacity: 0.8;
}

.navbar-links {
    display: flex;
    gap: 4px;
    list-style: none;
    align-items: center;
}

.navbar-links a {
    text-decoration: none;
    color: #475569;
    font-weight: 500;
    font-size: 0.875rem;
    transition: color 0.3s ease;
    padding: 8px 16px;
    border-radius: var(--radius-sm, 8px);
    position: relative;
}

/* Animated underline on hover */
.navbar-links a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 16px;
    right: 16px;
    height: 2px;
    background: linear-gradient(135deg, #4F6AF5, #7C5CFC);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-links a:hover::after {
    transform: scaleX(1);
}

.navbar-links a.navbar-cta::after {
    display: none;
}

.navbar-links a:hover {
    color: #1A1F36;
}

.navbar-cta {
    background: linear-gradient(135deg, #4F6AF5 0%, #7C5CFC 100%) !important;
    color: white !important;
    padding: 10px 24px !important;
    border-radius: 9999px;
    font-weight: 600 !important;
    box-shadow: 0 2px 12px rgba(79, 106, 245, 0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative;
    overflow: hidden;
}

.navbar-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(79, 106, 245, 0.35) !important;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    position: relative;
    z-index: 1100;
    -webkit-tap-highlight-color: transparent;
}

.menu-line {
    display: block;
    width: 22px;
    height: 2px;
    background: #1A1F36;
    border-radius: 2px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-line:nth-child(1) {
    top: 12px;
}

.menu-line:nth-child(2) {
    top: 19px;
    width: 16px;
}

.menu-line:nth-child(3) {
    top: 26px;
}

.mobile-menu-btn.active .menu-line:nth-child(1) {
    top: 19px;
    transform: translateX(-50%) rotate(45deg);
}

.mobile-menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-50%) scaleX(0);
}

.mobile-menu-btn.active .menu-line:nth-child(3) {
    top: 19px;
    transform: translateX(-50%) rotate(-45deg);
}

/* Mobile Drawer Overlay */
.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(26, 31, 54, 0.25);
    backdrop-filter: blur(6px);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Drawer — Light */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 85vw);
    height: 100%;
    background: #FFFFFF;
    border-left: 1px solid rgba(79, 106, 245, 0.08);
    z-index: 1060;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    padding: 80px 32px 32px;
    overflow-y: auto;
    box-shadow: -8px 0 40px rgba(79, 106, 245, 0.06);
}

.mobile-drawer.active {
    transform: translateX(0);
}

.mobile-drawer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-drawer-links a {
    display: block;
    text-decoration: none;
    color: #475569;
    font-weight: 500;
    font-size: 1rem;
    padding: 14px 16px;
    border-radius: 12px;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.mobile-drawer-links a:hover,
.mobile-drawer-links a:active {
    background: rgba(79, 106, 245, 0.06);
    color: #4F6AF5;
}

.mobile-drawer-cta {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-drawer-cta a {
    display: block;
    text-align: center;
    background: linear-gradient(135deg, #4F6AF5, #7C5CFC);
    color: white !important;
    padding: 14px 24px;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(79, 106, 245, 0.25);
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.mobile-drawer-cta a:active {
    transform: scale(0.98);
}

.mobile-drawer-footer {
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid rgba(79, 106, 245, 0.08);
}

.mobile-drawer-footer p {
    color: #94A3B8;
    font-size: 0.8rem;
    line-height: 1.5;
}

@media (max-width: 968px) {
    .navbar-links {
        display: none;
    }

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