/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(11, 45, 114, 0.08);
    border-bottom: 1px solid rgba(11, 45, 114, 0.1);
}

body {
    padding-top: 100px;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 1001;
    margin-right: auto;
    margin-left: -100px;
}

.logo img {
    height: 80px;
    width: auto;
    transition: all 0.3s ease;
}

.logo span {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--dark-blue);
    letter-spacing: 1px;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    transition: transform 0.3s ease;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background: var(--dark-blue);
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(10.5px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-10.5px) rotate(-45deg);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.3rem;
}

.nav-menu a {
    color: var(--text-dark);
    text-decoration: none;
    padding: 0.7rem 1.3rem;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 70%;
    height: 2px;
    background: var(--gradient-1);
    transition: transform 0.3s ease;
}

.nav-menu a:hover {
    color: var(--blue);
    background: rgba(9, 146, 194, 0.08);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    transform: translateX(-50%) scaleX(1);
}

.nav-menu a.active {
    color: var(--blue);
    background: rgba(9, 146, 194, 0.05);
    font-weight: 600;
}

/* Close button - hidden by default (desktop) */
.close-menu {
    display: none !important;
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
        order: 2;
        z-index: 1001;
        position: relative;
    }
    
    .logo {
        margin-left: 0;
        order: 1;
    }
    
    .nav-right {
        position: fixed !important;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 280px;
        background: #0B2D72 !important;
        flex-direction: column !important;
        justify-content: flex-start;
        align-items: flex-start;
        padding-top: 70px;
        transition: right 0.3s ease;
        z-index: 999;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
        overflow-y: auto;
        display: flex !important;
        touch-action: pan-y;
        pointer-events: none;
        will-change: right;
    }
    
    .nav-right.active {
        right: 0 !important;
        pointer-events: auto;
    }
    
    /* Close button for mobile menu */
    @media (max-width: 768px) {
        .close-menu {
            display: flex !important;
            position: absolute !important;
            top: 15px !important;
            right: 15px !important;
            background: rgba(255, 255, 255, 0.1) !important;
            border: 2px solid rgba(255, 255, 255, 0.3) !important;
            color: #ffffff !important;
            font-size: 2rem !important;
            line-height: 1 !important;
            cursor: pointer !important;
            z-index: 1002 !important;
            padding: 0 !important;
            width: 36px !important;
            height: 36px !important;
            align-items: center !important;
            justify-content: center !important;
            border-radius: 50% !important;
            transition: all 0.3s ease !important;
            font-weight: 300 !important;
        }
        
        .close-menu:hover {
            background: rgba(255, 255, 255, 0.2) !important;
            border-color: rgba(255, 255, 255, 0.5) !important;
            transform: rotate(90deg) scale(1.1) !important;
        }
        
        .close-menu:active {
            background: rgba(255, 255, 255, 0.3) !important;
            transform: rotate(90deg) scale(0.95) !important;
        }
    }
    
    .nav-menu {
        flex-direction: column !important;
        gap: 0 !important;
        width: 100% !important;
        padding: 20px;
        display: flex !important;
        list-style: none !important;
        margin: 0 !important;
    }
    
    .nav-menu li {
        width: 100% !important;
        display: block !important;
        margin: 0 !important;
    }
    
    .nav-menu a {
        color: #ffffff !important;
        padding: 15px 20px !important;
        width: 100% !important;
        display: block !important;
        text-align: left !important;
        border-radius: 8px;
        margin-bottom: 8px;
        font-size: 1rem !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        text-decoration: none !important;
        font-weight: 500 !important;
    }
    
    .nav-menu a:hover {
        background: rgba(255, 255, 255, 0.15) !important;
        color: #ffffff !important;
    }
    
    .nav-menu a.active {
        background: rgba(255, 255, 255, 0.25) !important;
        color: #ffffff !important;
        font-weight: 600 !important;
    }
    
    .nav-menu a::after {
        display: none !important;
    }
    
    /* Dropdown in mobile */
    .dropdown {
        width: 100% !important;
    }
    
    .dropdown > a {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        color: #ffffff !important;
    }
    
    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }
    
    /* Mobile overlay */
    .nav-right.active::before {
        content: '';
        position: fixed;
        top: 0;
        left: -280px;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
    }
    
    .logo img {
        height: 60px;
    }
    
    .logo span {
        font-size: 1.5rem;
    }
}
