@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #000000;
    --card: #0a0a0a;
    --white: #ffffff;
    --gray: #a1a1aa;
    --border: rgba(255,255,255,0.1);
    --font-display: 'Syne', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --font-body: 'Inter', sans-serif;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--white);
    overflow-x: hidden;
    min-height: 100vh;
}

#universe {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ── NAV ── */
nav {
    position: fixed;
    top: 0; width: 100%;
    padding: 1.1rem 5%;
    backdrop-filter: blur(24px);
    background: rgba(0,0,0,0.82);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-mono);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 0.3rem;
    list-style: none;
}

.nav-links a {
    color: var(--gray);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    padding: 0.45rem 0.9rem;
    border-radius: 8px;
    transition: all 0.2s;
    letter-spacing: 0.02em;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--white);
    background: rgba(255,255,255,0.07);
}

.nav-links a.active {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
}

.mobile-toggle span {
    width: 22px; height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.3s;
    display: block;
}

/* ── PAGE TRANSITION ── */
.page-content {
    position: relative;
    z-index: 1;
    animation: pageIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes pageIn {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── SHARED COMPONENTS ── */
.section-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--gray);
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.05rem;
    color: var(--gray);
    line-height: 1.7;
    max-width: 640px;
    margin: 0 auto;
}

.glass-card {
    background: rgba(10,10,10,0.8);
    border: 1px solid var(--border);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}

.glass-card:hover {
    border-color: rgba(255,255,255,0.3);
    box-shadow: 0 20px 50px rgba(255,255,255,0.08);
    transform: translateY(-8px);
}

.tech-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255,255,255,0.05);
    padding: 0.4rem 0.85rem;
    border-radius: 8px;
    font-size: 0.85rem;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.2s;
}

.tech-tag:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.3);
}

.tech-logo { width: 18px; height: 18px; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.8rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.25s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--white);
    color: #000;
    box-shadow: 0 8px 24px rgba(255,255,255,0.15);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(255,255,255,0.25); }

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 1.5px solid rgba(255,255,255,0.2);
}
.btn-secondary:hover { border-color: var(--white); background: rgba(255,255,255,0.05); }

/* footer */
footer {
    text-align: center;
    padding: 2.5rem 5%;
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 1;
    color: var(--gray);
    font-size: 0.9rem;
}

footer span { color: var(--white); font-weight: 600; }

/* scroll top */
.scroll-top {
    position: fixed;
    bottom: 2rem; right: 2rem;
    width: 44px; height: 44px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--white);
    cursor: pointer;
    opacity: 0; visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
    backdrop-filter: blur(10px);
}
.scroll-top.visible { opacity: 1; visibility: visible; }
.scroll-top:hover { background: rgba(255,255,255,0.15); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 60px; right: -100%;
        width: 65%; max-width: 260px;
        height: calc(100vh - 60px);
        background: rgba(0,0,0,0.97);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem 1.5rem;
        gap: 0.5rem;
        border-left: 1px solid var(--border);
        transition: right 0.3s;
        z-index: 999;
    }
    .nav-links.active { right: 0; }
    .nav-links a { font-size: 1rem; padding: 0.6rem 1rem; }
    .mobile-toggle { display: flex; }
    .mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .mobile-toggle.active span:nth-child(2) { opacity: 0; }
    .mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
}