/* Navbar Styles */
:root {
  --primary: #0ea5e9;
  --light: #f8fafc;
  --blur: blur(10px);
  --transition: all 0.3s ease;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.95), rgba(0,0,0,0.8));
    background-size: 200% 200%;
    backdrop-filter: var(--blur);
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
    animation: gradientMove 6s ease infinite;
    will-change: transform, background-color;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    padding: 0 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    will-change: transform;
}

.logo:hover {
    transform: scale(1.05);
}

.logo img {
    height: 40px;
    width: auto;
}

.logo-primary {
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: bold;
}

.logo-text {
    color: var(--light);
    font-size: 1.5rem;
    font-weight: bold;
}

/* Enhanced glow on hover */
.logo:hover img {
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.4));
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    will-change: transform, opacity;
}

.nav-links a {
    color: var(--light);
    padding: 0.5rem 1rem;
    position: relative;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    will-change: color, transform;
}

.nav-links a i {
    font-size: 1.1em;
    opacity: 0.8;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-links a:hover {
    transform: scale(1.05);
    color: var(--primary);
}

.nav-links a:hover i {
    transform: rotate(20deg);
    opacity: 1;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    will-change: width;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:active {
    transform: scale(0.95);
}

.nav-links a.active {
    font-weight: bold;
    color: var(--primary);
}

.btn-login {
    background: var(--primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid var(--primary);
    position: relative;
    overflow: hidden;
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-login:hover {
    background: transparent;
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 0 10px var(--primary), 0 0 40px rgba(14, 165, 233, 0.3);
}

.btn-login:hover::before {
    width: 300px;
    height: 300px;
}

.btn-login:active {
    transform: scale(0.95);
    box-shadow: 0 0 5px var(--primary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 100;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--light);
    margin: 5px 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: calc(100% - 2rem);
        max-width: 320px;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(10px);
        padding: 2rem;
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;
        border: 2px solid var(--primary);
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }

    .nav-links.active {
        opacity: 1;
        pointer-events: auto;
        animation: slideIn 0.3s ease forwards;
    }

    @keyframes slideIn {
        from {
            opacity: 0;
            transform: translate(-50%, -40%);
        }
        to {
            opacity: 1;
            transform: translate(-50%, -50%);
        }
    }

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

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

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

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .nav-links a {
        font-size: 1.1rem;
        padding: 1rem;
        width: 100%;
        text-align: center;
        justify-content: center;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.05);
    }

    .nav-links a:hover {
        background: rgba(14, 165, 233, 0.1);
    }

    .btn-login {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .logo img {
        height: 30px;
    }
}