:root {
    --primary-color: #6366f1; /* Modern Indigo */
    --text-main: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --transition: all 0.3s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    min-height: 100vh;
    color: white;
}

/* Glassmorphism Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px); /* Frosted glass effect */
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -1px;
    background: linear-gradient(to right, #818cf8, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.navbar-links ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.navbar-links li a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition);
}

/* Animated Underline Effect */
.navbar-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.navbar-links li a:hover {
    color: white;
}

.navbar-links li a:hover::after {
    width: 100%;
}

/* Mobile Toggle Styling */
.toggle-button {
    display: none;
    flex-direction: column;
    gap: 5px;
}

.toggle-button .bar {
    height: 2px;
    width: 25px;
    background-color: white;
    border-radius: 10px;
    transition: var(--transition);
}

@media (max-width: 768px) {
    .toggle-button {
        display: flex;
    }

    .navbar-links {
        display: none;
        position: absolute;
        top: 100%; /* Sits right under the nav */
        left: 0;
        width: 100%;
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(20px);
        padding: 1rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .navbar-links.active {
        display: flex;
        animation: slideIn 0.3s ease-out;
    }

    .navbar-links ul {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
