/* main.css — reset, layout, typography, nav, hero, sections, contact, footer. */

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
}

/* Ambient background glow that tracks the theme accent. */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 18% 30%, var(--glow-1) 0%, transparent 45%),
        radial-gradient(circle at 82% 75%, var(--glow-2) 0%, transparent 45%);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

a { color: var(--accent); text-decoration: none; transition: color 0.25s ease; }

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 3px;
}

/* ---------- Navigation ---------- */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(12px);
    background: color-mix(in srgb, var(--bg) 80%, transparent);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.1rem;
    padding-bottom: 1.1rem;
}

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.5px;
}

.nav-right { display: flex; align-items: center; gap: 1.75rem; }

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

.nav-links a {
    color: var(--text-muted);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0; bottom: -5px;
    width: 0; height: 1px;
    background: var(--accent);
    transition: width 0.25s ease;
}

.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after { width: 100%; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none; /* never intercept scroll/clicks; balls are driven from window events */
}

.hero-overlay {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 820px;
    padding: 2rem;
    pointer-events: none; /* let drags pass to the canvas; re-enable on buttons */
}

.hero-label {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(3rem, 8vw, 5.75rem);
    font-weight: 900;
    line-height: 1.04;
    letter-spacing: -2px;
    margin-bottom: 1.2rem;
    text-shadow: 0 2px 30px color-mix(in srgb, var(--bg) 70%, transparent);
}

.hero-subtitle {
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 1.6rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    pointer-events: auto;
}

.hero-hint {
    margin-top: 1.3rem;
    font-size: 0.8rem;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.scroll-cue {
    position: absolute;
    bottom: 1.75rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    color: var(--text-muted);
    animation: bob 2s ease-in-out infinite;
}
.scroll-cue:hover { color: var(--accent); }

/* ---------- Sections ---------- */
.section {
    padding: 5.5rem 0;
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 1;
}

.section-header { margin-bottom: 3rem; }
.section-header.center { text-align: center; }

.section-label {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.85rem;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1.1;
}

.section-intro {
    margin-top: 1rem;
    color: var(--text-muted);
    max-width: 620px;
    font-size: 1.05rem;
}
.section-header.center .section-intro { margin-inline: auto; }

/* ---------- About ---------- */
.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3.5rem;
    align-items: start;
}

.about-text { font-size: 1.1rem; color: var(--text-muted); line-height: 1.8; }
.about-text p { margin-bottom: 1.4rem; }
.about-text p:last-child { margin-bottom: 0; }

.info-cards { display: flex; flex-direction: column; gap: 1.1rem; }

.looking-for {
    margin-top: 3rem;
    padding: 1.5rem 1.75rem;
    background: var(--soft-fill);
    border: 1px solid var(--tag-border);
    border-radius: 8px;
}
.looking-for > p { margin-bottom: 1rem; }

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

/* ---------- Contact ---------- */
.contact-content { text-align: center; max-width: 560px; margin: 0 auto; }
.contact-line { font-size: 1.15rem; margin-bottom: 0.6rem; color: var(--text-muted); }
.contact-line strong { color: var(--text); margin-right: 0.5rem; }

.social-links { display: flex; justify-content: center; gap: 1.25rem; margin-top: 2.5rem; }
.social-links a {
    width: 52px; height: 52px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-muted);
    transition: color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.social-links a:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-4px); }

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

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
    .about-grid { grid-template-columns: 1fr; gap: 2rem; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .nav-links { display: none; }
    .section { padding: 5rem 0; }
}

@media (max-width: 560px) {
    .container { padding: 0 1.25rem; }
    .stats { grid-template-columns: 1fr; }
}
