/* ============================================================
   CHAD JODON — Personal Site
   Dark theme, Inter font, cyan/purple accent palette
   ============================================================ */

/* ===== RESET & VARIABLES ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg:            #050510;
    --surface:       #080818;
    --raised:        rgba(255, 255, 255, 0.04);
    --border:        rgba(255, 255, 255, 0.08);
    --border-hover:  rgba(0, 212, 255, 0.28);
    --text:          #e8e8f2;
    --muted:         #6b7280;
    --accent:        #00d4ff;
    --accent-dim:    rgba(0, 212, 255, 0.12);
    --purple:        #7b2fff;
    --gradient:      linear-gradient(135deg, #00d4ff 0%, #7b2fff 100%);
    --font:          'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --header-h:      72px;
    --gap:           120px;
    --radius:        14px;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
#site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-h);
    z-index: 100;
    transition: background 0.4s ease, border-color 0.4s ease;
}

#site-header.scrolled {
    background: rgba(5, 5, 16, 0.88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    height: 100%;
}

.nav-brand {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 36px;
}

.nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: color 0.2s;
}

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

.nav-links .nav-cta {
    color: var(--accent);
    border: 1px solid rgba(0, 212, 255, 0.3);
    padding: 8px 20px;
    border-radius: 8px;
    transition: background 0.2s;
}

.nav-links .nav-cta:hover {
    background: var(--accent-dim);
    color: var(--accent);
}

/* Hamburger */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: 0.25s;
}

/* ============================================================
   HERO
   ============================================================ */
#hero {
    position: relative;
    height: 100vh;
    min-height: 680px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#neural-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.55;
    pointer-events: none;
}

/* Subtle radial glow behind hero text */
.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 700px;
    height: 700px;
    background: radial-gradient(ellipse at center,
        rgba(0, 212, 255, 0.07) 0%,
        rgba(123, 47, 255, 0.04) 40%,
        transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 820px;
    padding: 0 32px;
}

.hero-eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeUp 0.7s ease 0.2s forwards;
}

.hero-name {
    font-size: clamp(2.6rem, 6.5vw, 5.2rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.08;
    color: var(--text);
    margin-bottom: 28px;
    opacity: 0;
    animation: fadeUp 0.7s ease 0.45s forwards;
}

.hero-terminal {
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', 'Consolas', monospace;
    font-size: clamp(0.85rem, 1.8vw, 1.05rem);
    color: var(--accent);
    margin-bottom: 32px;
    min-height: 1.6em;
    opacity: 0;
    animation: fadeUp 0.7s ease 0.7s forwards;
    letter-spacing: 0.03em;
}

.terminal-prompt {
    opacity: 0.5;
    margin-right: 8px;
    user-select: none;
}

.terminal-cursor {
    display: inline-block;
    color: var(--accent);
    animation: blink 1s step-end infinite;
    font-size: 0.9em;
    vertical-align: baseline;
    margin-left: 1px;
}

.hero-tagline {
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
    color: var(--muted);
    line-height: 1.75;
    max-width: 520px;
    margin: 0 auto 44px;
    opacity: 0;
    animation: fadeUp 0.7s ease 0.95s forwards;
}

.hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 0.7s ease 1.0s forwards;
}

/* Scroll hint */
.scroll-indicator {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-dot {
    width: 5px;
    height: 5px;
    background: var(--accent);
    border-radius: 50%;
    animation: scrollBounce 2.2s ease infinite;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
    display: inline-block;
    padding: 14px 32px;
    background: var(--gradient);
    color: #fff;
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    letter-spacing: 0.025em;
    transition: opacity 0.2s, transform 0.2s;
}

.btn-primary:hover {
    opacity: 0.88;
    transform: translateY(-2px);
}

.btn-outline {
    display: inline-block;
    padding: 14px 32px;
    background: transparent;
    color: var(--text);
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid var(--border);
    cursor: pointer;
    letter-spacing: 0.025em;
    transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.btn-outline:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-2px);
}

/* ============================================================
   SECTION SHELL
   ============================================================ */
.section {
    padding: var(--gap) 0;
}

#about,
#work {
    background: var(--surface);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

.section-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 20px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.15;
    margin-bottom: 56px;
    color: var(--text);
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 80px;
    align-items: start;
}

.about-text h2 {
    font-size: clamp(1.9rem, 3.5vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.2;
    margin-bottom: 32px;
}

.about-text p {
    font-size: 1.05rem;
    color: var(--muted);
    margin-bottom: 18px;
    line-height: 1.8;
}

.about-text p strong {
    color: var(--text);
    font-weight: 600;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.stat-card {
    background: var(--raised);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px 28px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: border-color 0.25s;
}

.stat-card:hover {
    border-color: var(--border-hover);
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.stat-label {
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.45;
}

/* ============================================================
   PERSPECTIVE
   ============================================================ */
.beliefs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.belief-card {
    background: var(--raised);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    transition: border-color 0.3s, transform 0.3s;
}

.belief-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.belief-num {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: var(--accent);
    opacity: 0.6;
    margin-bottom: 18px;
}

.belief-card p {
    font-size: 1.02rem;
    line-height: 1.72;
    color: var(--muted);
}

/* ============================================================
   WORK / FEATURED PROJECT
   ============================================================ */
.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-tag {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    border: 1px solid rgba(0, 212, 255, 0.25);
    padding: 3px 10px;
    border-radius: 20px;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    transition: gap 0.2s;
    white-space: nowrap;
}

.project-link:hover .arrow {
    transform: translateX(4px);
}

.project-link .arrow {
    display: inline-block;
    transition: transform 0.2s;
}

.featured-project {
    background: var(--raised);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 52px;
    transition: border-color 0.3s;
}

.featured-project:hover {
    border-color: var(--border-hover);
}

.featured-project-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 28px;
}

.featured-project-name {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    line-height: 1.05;
}

.featured-project-desc {
    font-size: 1.05rem;
    color: var(--muted);
    line-height: 1.8;
    max-width: 720px;
    margin-bottom: 32px;
}

.featured-project-details {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.featured-project-details li {
    font-size: 0.93rem;
    color: var(--muted);
    padding-left: 20px;
    position: relative;
    line-height: 1.6;
}

.featured-project-details li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--accent);
    opacity: 0.5;
    font-size: 0.8em;
    top: 0.15em;
}

.work-note {
    margin-top: 28px;
    font-size: 0.88rem;
    color: var(--muted);
    font-style: italic;
    opacity: 0.7;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-intro .section-tag {
    display: block;
    margin-bottom: 14px;
}

.contact-intro h2 {
    font-size: clamp(1.9rem, 3.5vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.2;
    margin-bottom: 22px;
}

.contact-intro p {
    font-size: 1.02rem;
    color: var(--muted);
    line-height: 1.8;
}

#contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.form-group label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 13px 15px;
    background: var(--raised);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-family: var(--font);
    font-size: 0.93rem;
    outline: none;
    transition: border-color 0.2s;
    -webkit-appearance: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: rgba(0, 212, 255, 0.4);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(107, 114, 128, 0.55);
}

.form-group textarea {
    resize: vertical;
    min-height: 130px;
}

.form-success {
    font-size: 0.88rem;
    color: var(--accent);
    padding: 12px 16px;
    background: var(--accent-dim);
    border-radius: 8px;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.form-error {
    font-size: 0.88rem;
    color: #ff6b6b;
    padding: 12px 16px;
    background: rgba(255, 107, 107, 0.08);
    border-radius: 8px;
    border: 1px solid rgba(255, 107, 107, 0.2);
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
    padding: 28px 0;
    border-top: 1px solid var(--border);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand {
    font-size: 0.875rem;
    font-weight: 600;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-copy {
    font-size: 0.82rem;
    color: var(--muted);
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: none;
}

/* Stagger siblings */
.beliefs-grid .reveal:nth-child(1) { transition-delay:   0ms; }
.beliefs-grid .reveal:nth-child(2) { transition-delay:  80ms; }
.beliefs-grid .reveal:nth-child(3) { transition-delay: 160ms; }
.beliefs-grid .reveal:nth-child(4) { transition-delay: 240ms; }

.about-stats.reveal { transition-delay: 120ms; }

/* ============================================================
   KEYFRAMES
   ============================================================ */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0);    }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0);   opacity: 1;   }
    55%       { transform: translateY(10px); opacity: 0.2; }
}

/* ============================================================
   RESPONSIVE — TABLET (≤ 1024px)
   ============================================================ */
@media (max-width: 1024px) {
    :root { --gap: 80px; }

    .about-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-stats {
        flex-direction: row;
    }

    .stat-card {
        flex: 1;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {
    :root { --gap: 60px; }

    nav { padding: 0 20px; }

    .nav-links {
        display: none;
        position: fixed;
        top: var(--header-h);
        left: 0;
        width: 100%;
        background: rgba(5, 5, 16, 0.97);
        backdrop-filter: blur(24px);
        flex-direction: column;
        padding: 24px 24px;
        gap: 20px;
        border-bottom: 1px solid var(--border);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        font-size: 1rem;
        padding: 4px 0;
    }

    .nav-links .nav-cta {
        align-self: flex-start;
    }

    .menu-toggle {
        display: flex;
    }

    .hero-tagline br {
        display: none;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-actions .btn-primary,
    .hero-actions .btn-outline {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }

    .beliefs-grid {
        grid-template-columns: 1fr;
    }

    .featured-project {
        padding: 32px 24px;
    }

    .about-stats {
        flex-direction: column;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 20px;
    }

    .footer-inner {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}
