:root {
    --text-primary: #ffffff;
    --text-secondary: rgba(255,255,255,0.7);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #0b0b0b;
    color: white;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
}

/* ================= NAV ================= */
.top-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;

    display: flex;
    align-items: center;
    gap: 40px;

    padding: 10px 26px;
    border-radius: 40px;

    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 8px 30px rgba(0,0,0,0.35);

    animation: navFadeIn 0.8s ease-out forwards;
    opacity: 0;
}

@keyframes navFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

/* LOGO */
.nav-logo {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
}

/* LINKS */
.nav-links {
    position: relative;
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav-link {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 6px 2px;
    transition: color 0.25s ease, transform 0.15s ease;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link.active {
    color: var(--text-primary);
}

.nav-link:active {
    transform: scale(0.92);
}

/* INDICATOR */
.nav-indicator {
    position: absolute;
    bottom: -6px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 999px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ================= SECTIONS ================= */
.section {
    height: 100vh;
    padding-top: 140px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 42px;
}

/* ================= MOBILE ADAPTATION ================= */
@media (max-width: 768px) {
    .top-nav {
        top: 12px;
        bottom: auto; /* IMPORTANT */
        left: 50%;
        transform: translateX(-50%);

        width: calc(100% - 24px);
        justify-content: center;
        gap: 18px;

        padding: 12px 18px;
        border-radius: 28px;
    }

    .nav-logo {
        display: none;
    }

    .nav-links {
        width: 100%;
        justify-content: space-between;
    }

    .nav-link {
        font-size: 12px;
        padding: 6px 4px;
    }

    .nav-indicator {
        bottom: -6px;
        height: 2px;
    }
}
