/* ============================================
   Nathan Comes — Portfolio
   Amber / Gold Theme — Deep Navy Background
   ============================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
    --bg-deep: #060a14;
    --bg-primary: #0a0e1a;
    --bg-surface: #111827;
    --bg-surface-hover: #1a2235;
    --border-subtle: #1e293b;
    --border-accent: rgba(245, 158, 11, 0.15);
    --border-accent-hover: rgba(245, 158, 11, 0.4);
    --accent: #f59e0b;
    --accent-hover: #fbbf24;
    --accent-glow: rgba(245, 158, 11, 0.08);
    --accent-soft: rgba(245, 158, 11, 0.15);
    --secondary: #6366f1;
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-dim: #64748b;
    --font-display: 'Syne', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --max-width: 1200px;
}

/* ---------- Reset ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg-deep);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Grain overlay */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
}

::selection {
    background: var(--accent-soft);
    color: var(--accent);
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-hover);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul { list-style: none; }

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    background: none;
}

/* ---------- Global Interactive Grid Canvas ---------- */
#gridCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(6, 10, 20, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(30, 41, 59, 0.5);
    transition: all 0.3s ease;
}

.nav.scrolled {
    background: rgba(6, 10, 20, 0.95);
    border-bottom-color: var(--border-subtle);
}

.nav__container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1.25rem 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.nav-logo:hover { color: var(--text-primary); }
.nav-logo span { color: var(--accent); }

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
    padding-bottom: 4px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--accent); }
.nav-links a.active::after { width: 100%; }

/* Hamburger */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    z-index: 10;
}

.nav-hamburger span {
    width: 24px; height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

.nav-hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.nav-hamburger.open span:nth-child(2) {
    opacity: 0;
}
.nav-hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   MOBILE NAV (slide-in panel)
   ============================================ */
.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-nav-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-nav {
    position: fixed;
    top: 0; right: -100%;
    width: 280px; height: 100vh;
    background: var(--bg-surface);
    z-index: 1001;
    padding: 5rem 2rem 2rem;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 1px solid var(--border-subtle);
}

.mobile-nav.open { right: 0; }

.mobile-nav a {
    display: block;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-subtle);
}

.mobile-nav a:hover { color: var(--accent); }

.mobile-nav-close {
    position: absolute;
    top: 1.5rem; right: 1.5rem;
    background: none; border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ============================================
   LAYOUT — SECTIONS & CONTAINERS
   ============================================ */
.section {
    padding: 8rem 3rem;
    max-width: var(--max-width);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.section-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-label::before {
    content: '//';
    opacity: 0.5;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 3rem;
    line-height: 1.1;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-top: -2rem;
    margin-bottom: 3rem;
}

/* ============================================
   SECTION DIVIDER
   ============================================ */
.section-divider {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 3rem;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--border-subtle) 20%, var(--accent-soft) 50%, var(--border-subtle) 80%, transparent 100%);
}

/* ============================================
   FADE-IN ANIMATION
   ============================================ */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    background: var(--accent);
    color: var(--bg-deep);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--accent-hover);
    color: var(--bg-deep);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(245, 158, 11, 0.25);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    background: transparent;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.9rem;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

/* ============================================
   HERO
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 3rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.hero-gradient {
    position: absolute;
    top: -20%; right: -10%;
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(30, 41, 59, 0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(30, 41, 59, 0.15) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 60% 60% at 30% 50%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 60% 60% at 30% 50%, black 20%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text { max-width: 600px; }

.hero-label {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: heroFadeIn 0.6s ease forwards 0.2s;
}

.hero-name {
    font-family: var(--font-display);
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
    opacity: 0;
    animation: heroFadeIn 0.6s ease forwards 0.4s;
}

.hero-name span { color: var(--accent); }

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: heroFadeIn 0.6s ease forwards 0.6s;
}

.hero-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 480px;
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: heroFadeIn 0.6s ease forwards 0.8s;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: heroFadeIn 0.6s ease forwards 1s;
}

.hero-socials {
    display: flex;
    gap: 1.25rem;
    opacity: 0;
    animation: heroFadeIn 0.6s ease forwards 1.2s;
}

.hero-socials a {
    color: var(--text-dim);
    font-size: 0.8rem;
    font-family: var(--font-mono);
    transition: color 0.3s ease;
}

.hero-socials a:hover { color: var(--accent); }

/* Hero visual — skeleton + code mockup */
.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: heroFadeIn 1s ease forwards 0.8s;
}

.hero-visual-inner {
    width: 100%;
    max-width: 460px;
    aspect-ratio: 1;
    position: relative;
}

.skeleton-visual {
    width: 100%;
    height: 100%;
    position: relative;
}

.skeleton-visual svg {
    width: 100%;
    height: 100%;
    opacity: 0.35;
}

.joint-glow {
    fill: var(--accent);
    filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.6));
    animation: jointPulse 3s ease-in-out infinite;
}

.joint-glow:nth-child(even) { animation-delay: -1.5s; }

.bone-line {
    stroke: var(--accent);
    stroke-width: 1.5;
    opacity: 0.4;
}

/* Code mockup floating */
.code-mockup {
    position: absolute;
    bottom: 10%;
    right: -5%;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 1.25rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 280px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: float 6s ease-in-out infinite;
}

.code-mockup .code-keyword { color: #c084fc; }
.code-mockup .code-func { color: #60a5fa; }
.code-mockup .code-string { color: #34d399; }
.code-mockup .code-comment { color: var(--text-dim); }
.code-mockup .code-accent { color: var(--accent); }

.code-dots {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
}

.code-dots span {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--border-subtle);
}

.code-dots span:first-child { background: #ef4444; }
.code-dots span:nth-child(2) { background: #f59e0b; }
.code-dots span:nth-child(3) { background: #22c55e; }

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    animation: heroFadeIn 0.6s ease forwards 1.5s;
}

.scroll-indicator span {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

/* Hero keyframes */
@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@keyframes jointPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* ============================================
   ABOUT
   ============================================ */
.about-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 4rem;
    align-items: start;
}

.about-text p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.25rem;
    max-width: 65ch;
}

.about-text strong {
    color: var(--text-primary);
    font-weight: 600;
}

.about-text .highlight {
    color: var(--accent);
    font-weight: 500;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding-top: 0.5rem;
}

.stat-block {
    padding: 1.5rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.stat-block:hover {
    border-color: var(--border-accent-hover);
    box-shadow: 0 0 30px var(--accent-glow);
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-top: 0.25rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2rem;
}

.skill-tag {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    padding: 0.4rem 0.85rem;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.15);
    border-radius: 6px;
    color: var(--accent);
    letter-spacing: 0.03em;
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.3);
    transform: translateY(-1px);
}

/* ============================================
   PROJECTS
   ============================================ */
.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.project-card {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 0;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.project-card:hover {
    border-color: var(--border-accent-hover);
    box-shadow: 0 0 50px var(--accent-glow);
    transform: translateY(-4px);
}

/* Alternate layout for even cards */
.project-card:nth-child(even) {
    grid-template-columns: 1fr 1.2fr;
}

.project-card:nth-child(even) .project-image { order: 2; }
.project-card:nth-child(even) .project-info { order: 1; }

.project-image {
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, var(--bg-surface) 0%, #1a1a2e 50%, var(--bg-surface) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 60%, rgba(245, 158, 11, 0.05) 100%);
    pointer-events: none;
}

.project-info {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 0.5rem;
}

.project-name {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.project-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.project-tag {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    padding: 0.3rem 0.6rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 4px;
    color: #818cf8;
}

/* ============================================
   TOOLS & CODE
   ============================================ */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.tool-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 2rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.tool-card:hover {
    border-color: var(--border-accent-hover);
    box-shadow: 0 0 40px var(--accent-glow);
    transform: translateY(-4px);
}

.tool-card:hover::before { opacity: 1; }

.tool-icon {
    width: 48px; height: 48px;
    border-radius: 10px;
    background: var(--accent-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: var(--accent);
    font-weight: 700;
}

.tool-platform {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.tool-name {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.tool-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 1.25rem;
}

.tool-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.tool-tech-tag {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    padding: 0.2rem 0.5rem;
    background: rgba(30, 41, 59, 0.8);
    border-radius: 3px;
    color: var(--text-dim);
}

.tool-code {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--bg-deep);
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    line-height: 1.7;
    color: var(--text-secondary);
    overflow-x: auto;
}

/* ============================================
   DEMO REEL
   ============================================ */
#reel {
    background: var(--bg-deep);
}

.reel-wrapper {
    max-width: 960px;
    margin: 0 auto;
}

.reel-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    overflow: hidden;
}

.reel-embed iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.reel-caption {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-dim);
    margin-top: 0.75rem;
    text-align: center;
}

.reel-secondary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.reel-item {
    transition: transform 0.3s ease;
}

.reel-item:hover {
    transform: translateY(-2px);
}

.reel-embed--sm {
    border-radius: 10px;
}

.reel-embed--sm iframe {
    border-radius: 10px;
}

/* ============================================
   EXPERIENCE
   ============================================ */
.experience-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    padding-left: 2rem;
}

.experience-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, var(--accent), var(--border-subtle), transparent);
}

.exp-item {
    padding: 1.5rem 0 2.5rem 2rem;
    position: relative;
    border-bottom: 1px solid rgba(30, 41, 59, 0.3);
}

.exp-item::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 1.75rem;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
    transform: translateX(-3.5px);
}

.exp-item:last-child { border-bottom: none; }

.exp-date {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.35rem;
}

.exp-role {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
}

.exp-company {
    font-size: 0.95rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.exp-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.65;
    max-width: 55ch;
}

.experience-cta {
    margin-top: 3rem;
    padding-left: 4rem;
}

/* ============================================
   CONTACT
   ============================================ */
#contact {
    background: var(--bg-primary);
}

.contact-content {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

.contact-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    margin-top: -2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    text-align: left;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.form-input,
.form-textarea {
    padding: 0.85rem 1rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    outline: none;
}

.form-input:focus,
.form-textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-dim);
}

.form-textarea {
    min-height: 140px;
    resize: vertical;
}

.form-submit {
    align-self: center;
    margin-top: 0.5rem;
}

.form-status {
    font-size: 0.85rem;
    text-align: center;
    min-height: 1.5rem;
    margin-top: 0.5rem;
}

.form-status.success { color: #4ade80; }
.form-status.error { color: #f87171; }

.contact-socials {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-subtle);
}

.contact-socials a {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-dim);
}

.contact-socials a:hover { color: var(--accent); }

/* ============================================
   FOOTER
   ============================================ */
.footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem 3rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-dim);
    border-top: 1px solid rgba(30, 41, 59, 0.3);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .hero-content { grid-template-columns: 1fr; gap: 2rem; }
    .hero-visual { display: none; }
    .about-content { grid-template-columns: 1fr; gap: 2rem; }
    .about-stats { flex-direction: row; flex-wrap: wrap; }
    .stat-block { flex: 1; min-width: 140px; }
    .tools-grid { grid-template-columns: repeat(2, 1fr); }
    .project-card,
    .project-card:nth-child(even) {
        grid-template-columns: 1fr;
    }
    .project-card:nth-child(even) .project-image { order: 0; }
    .project-card:nth-child(even) .project-info { order: 0; }
}

@media (max-width: 768px) {
    .nav__container { padding: 1rem 1.5rem; }
    .nav-links { display: none; }
    .nav-hamburger { display: flex; }
    .hero { padding: 0 1.5rem; }
    .section { padding: 5rem 1.5rem; }
    .section-divider { padding: 0 1.5rem; }
    .hero-name { font-size: clamp(2.5rem, 10vw, 3.5rem); }
    .tools-grid { grid-template-columns: 1fr; }
    .reel-secondary { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .about-stats { flex-direction: column; }
    .experience-timeline { padding-left: 1.5rem; }
    .exp-item { padding-left: 1.5rem; }
    .experience-cta { padding-left: 3.5rem; }
}
