/* ============================================================
   sectionone.org — HARPAX personal site
   Color scheme: dark background, teal primaries, orange accents
   ============================================================ */

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

:root {
    --bg:          #0a0f1a;
    --bg-alt:      #0d1322;
    --surface:     #131c2e;
    --surface-2:   #1a2540;
    --teal:        #14b8a6;
    --teal-light:  #2dd4bf;
    --teal-glow:   rgba(20, 184, 166, 0.18);
    --orange:      #f97316;
    --orange-light: #fb923c;
    --orange-glow: rgba(249, 115, 22, 0.18);
    --text:        #e2e8f0;
    --text-muted:  #94a3b8;
    --text-faint:  #475569;
    --border:      #1e2d45;
    --radius:      10px;
    --max-width:   960px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

/* ── Nav ─────────────────────────────────────────────────── */

nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 15, 26, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
}

.nav-brand {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--teal);
    text-transform: uppercase;
}

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

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

.nav-links a:hover {
    color: var(--text);
}

.nav-links .nav-donate {
    color: var(--orange);
}

.nav-links .nav-donate:hover {
    color: var(--orange-light);
}

/* ── Hero ────────────────────────────────────────────────── */

.hero {
    padding: 5.5rem 1.5rem 5rem;
    background:
        radial-gradient(ellipse 60% 50% at 20% 40%, rgba(20, 184, 166, 0.07) 0%, transparent 70%),
        radial-gradient(ellipse 50% 60% at 80% 60%, rgba(249, 115, 22, 0.05) 0%, transparent 70%),
        var(--bg);
}

.hero-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 3.5rem;
}

.avatar {
    width: 168px;
    height: 168px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid var(--orange);
    box-shadow:
        0 0 0 6px rgba(249, 115, 22, 0.1),
        0 8px 40px rgba(0, 0, 0, 0.5);
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    color: var(--text);
    line-height: 1;
    text-transform: uppercase;
}

.tagline {
    margin: 0.55rem 0 1.1rem;
    color: var(--teal);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.bio {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 520px;
    line-height: 1.75;
}

/* ── Shared section layout ───────────────────────────────── */

.section,
.section.alt {
    padding: 4.5rem 1.5rem;
}

.section.alt {
    background: var(--bg-alt);
}

.section-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-inner h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

.section-inner h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.1em;
    bottom: 0.1em;
    width: 4px;
    background: var(--orange);
    border-radius: 2px;
}

.section-intro {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    padding-left: 1rem;
}

/* ── Projects grid ───────────────────────────────────────── */

.project-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.project {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    border-top: 3px solid var(--teal);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.project:hover {
    box-shadow: 0 4px 24px var(--teal-glow);
    border-color: var(--teal);
    border-top-color: var(--teal);
}

.project-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.65rem;
}

.project-tag {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--orange);
    background: var(--orange-glow);
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    border: 1px solid rgba(249, 115, 22, 0.25);
}

.project h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--teal-light);
}

.project p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.65;
}

/* ── Social cards ────────────────────────────────────────── */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem 1.25rem;
    text-decoration: none;
    color: var(--text);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
    border-color: var(--teal);
    transform: translateY(-3px);
    box-shadow: 0 6px 24px var(--teal-glow);
}

.card-icon {
    color: var(--teal);
    display: flex;
    align-items: center;
    margin-bottom: 0.25rem;
}

.card-title {
    font-weight: 700;
    font-size: 1rem;
}

.card-sub {
    color: var(--text-muted);
    font-size: 0.82rem;
}

/* ── Contact ─────────────────────────────────────────────── */

.section-inner p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0.6rem;
    max-width: 640px;
}

.contact-email {
    display: inline-block;
    margin-top: 0.5rem;
    color: var(--teal-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(45, 212, 191, 0.3);
    transition: color 0.18s ease, border-color 0.18s ease;
}

.contact-email:hover {
    color: var(--teal);
    border-bottom-color: var(--teal);
}

/* ── Donate ──────────────────────────────────────────────── */

.donate-note {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.6rem 1.5rem;
    background: var(--orange-glow);
    border: 1px solid rgba(249, 115, 22, 0.35);
    color: var(--orange) !important;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
}

/* ── Footer ──────────────────────────────────────────────── */

footer {
    padding: 2rem 1.5rem;
    text-align: center;
    border-top: 1px solid var(--border);
    color: var(--text-faint);
    font-size: 0.82rem;
}

/* ── Responsive ──────────────────────────────────────────── */

@media (max-width: 640px) {
    .hero-inner {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .bio {
        margin: 0 auto;
    }

    .nav-links {
        gap: 1rem;
    }

    .nav-links a {
        font-size: 0.8rem;
    }

    .section-inner h2 {
        font-size: 1.4rem;
    }
}

@media (max-width: 400px) {
    .nav-links {
        gap: 0.6rem;
    }

    .hero-text h1 {
        font-size: 1.9rem;
    }
}
