:root {
    --bg-primary: #0f0a1a;
    --bg-secondary: #1a1429;
    --accent-purple: #382bae;
    --accent-pink: #ca42ff;   /* Unified pink */
    --accent-pinkk: #9a42ff;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        padding: 20px 0;
        z-index: 100;

        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        background: rgba(15, 10, 26, 0);

        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        border-color 0.3s ease,
        background-color 0.3s ease;

        border-bottom: 1px solid transparent;
    }


.container {
    max-width: 1200px;
}
.nav-links {
    position: relative;
    display: flex;
    gap: 32px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.no-transition {
    transition: none !important;
}

/* Ensure the underline starts hidden but ready */
.nav-underline {
    position: absolute;
    bottom: -5px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-pinkk), var(--accent-pinkk));
    /* Transition is now handled mostly via JS to allow "instant" jumps */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    left: 0;
    width: 0;
    opacity: 0;
    z-index: 10;
}

/* Underline for the current page */
.nav-links a.active-link {
    color: var(--text-primary) !important;
    opacity: 1;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
}
/* Hamburger Button Styling */
.menu-toggle {
    display: none; /* Hidden on desktop */
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 10px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: #d4ccf5;
    transition: all 0.3s ease;
}

nav.nav-scrolled {
    background: rgba(15, 10, 26, 0);
    backdrop-filter: blur(20px);
}

.nav-hidden {
    transform: translateY(-100%);
}

/* Add this to style.css */
.logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    letter-spacing: 2px;
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-img {
    height: 1.2em;
    width: auto;
    margin-right: 12px;
    border-radius: 8px;
    position: relative;
    top: -2px;
}

/* Ensure the container inside the nav is flexed */
nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    .nav-underline {
        display: none;
    }

    .nav-links {
        display: flex; /* Override the previous display: none */
        position: fixed;
        top: 0;
        right: -100%; /* Start off-screen */
        width: 70%;
        height: 100vh;
        background: var(--bg-secondary);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 40px;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
        z-index: 1000;
    }

    .nav-links.active {
        right: 0; /* Slide in */
    }

    /* Hamburger Animation to 'X' */
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}