/* ============================================
   CHASE MAY PORTFOLIO : DARK / SPATIAL
   ============================================ */

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

:root {
    /* Surfaces : near-black with a faint purple cast */
    --bg-base: #08070d;
    --bg-elevated: #100e1a;
    --bg-card: #14111f;
    --bg-overlay: #1a1626;
    --bg-hover: #1f1b2d;

    /* Borders */
    --border-subtle: rgba(168, 85, 247, 0.08);
    --border-soft: rgba(168, 85, 247, 0.14);
    --border-strong: rgba(168, 85, 247, 0.28);

    /* Text : locked for AA+ contrast on bg-base */
    --text-primary: #f4f3f8;
    --text-secondary: #b0acc4;
    --text-muted: #7e7993;
    --text-faint: #514c66;

    /* Brand : electric purple */
    --accent: #a855f7;
    --accent-bright: #c084fc;
    --accent-deep: #7e22ce;
    --accent-soft: rgba(168, 85, 247, 0.12);
    --accent-glow: rgba(168, 85, 247, 0.32);

    /* Status (desaturated for dark) */
    --green: #34d399;
    --orange: #fbbf24;
    --red: #f87171;

    /* Gradients */
    --gradient-accent: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    --gradient-text: linear-gradient(135deg, #c084fc 0%, #ec4899 60%, #f472b6 100%);
    --gradient-radial-glow: radial-gradient(circle at 50% 0%, rgba(168, 85, 247, 0.18) 0%, transparent 60%);

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 2px 6px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 40px rgba(168, 85, 247, 0.18);
    --shadow-glow-strong: 0 0 60px rgba(168, 85, 247, 0.35);

    --radius: 8px;
    --radius-lg: 14px;
    --radius-xl: 20px;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-primary);
    background: var(--bg-base);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Subtle ambient glow at top of page */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: var(--gradient-radial-glow);
    pointer-events: none;
    z-index: 0;
}

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

a {
    text-decoration: none;
    color: inherit;
}

/* --- Skip Link (a11y) --- */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 8px;
    z-index: 9999;
    padding: 10px 18px;
    background: var(--accent);
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    box-shadow: var(--shadow-glow-strong);
}

.skip-link:focus {
    left: 24px;
    outline: 2px solid var(--accent-bright);
    outline-offset: 2px;
}

/* Focus visibility for all interactive elements */
:focus-visible {
    outline: 2px solid var(--accent-bright);
    outline-offset: 2px;
    border-radius: 6px;
}

button:focus, a:focus { outline: none; }

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    color: var(--text-primary);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h1 { font-weight: 600; }
h2 { font-weight: 600; }
h3, h4 { font-weight: 600; }

::selection {
    background: var(--accent-glow);
    color: var(--text-primary);
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 18px 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(8, 7, 13, 0.6);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    padding: 12px 0;
    background: rgba(8, 7, 13, 0.85);
    border-bottom-color: var(--border-subtle);
}

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

.nav-logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    transition: opacity 0.2s;
}

.nav-logo:hover { opacity: 0.85; }

.logo-dot {
    color: var(--accent);
}

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

.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s;
    position: relative;
}

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

.nav-links a.nav-cta {
    color: var(--accent-bright);
    border: 1px solid var(--border-strong);
    padding: 8px 18px;
    border-radius: 999px;
    background: var(--accent-soft);
    transition: all 0.2s;
}

.nav-links a.nav-cta:hover {
    background: var(--accent-glow);
    border-color: var(--accent);
    color: var(--text-primary);
    box-shadow: var(--shadow-glow);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 32px;
    height: 32px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 0;
}

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

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    white-space: nowrap;
    line-height: 1;
}

.btn-primary {
    background: var(--gradient-accent);
    color: #fff;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-glow-strong);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-soft);
}

.btn-outline:hover {
    background: var(--accent-soft);
    border-color: var(--border-strong);
    color: var(--accent-bright);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1rem;
}

/* --- Hero --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

/* Animated grid + ambient orbs */
.hero-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(168, 85, 247, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(168, 85, 247, 0.04) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 30%, transparent 80%);
    pointer-events: none;
}

/* WebGL canvas : sits between bg-grid and content */
#hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1.2s ease-out;
}

#hero-canvas.is-ready {
    opacity: 1;
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(80px);
    opacity: 0.5;
}

.hero::before {
    top: 10%;
    left: -10%;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.4) 0%, transparent 70%);
    animation: drift-1 18s ease-in-out infinite;
}

.hero::after {
    bottom: 10%;
    right: -10%;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.25) 0%, transparent 70%);
    animation: drift-2 22s ease-in-out infinite;
}

@keyframes drift-1 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(60px, 40px); }
}

@keyframes drift-2 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-50px, -30px); }
}

@media (prefers-reduced-motion: reduce) {
    .hero::before, .hero::after { animation: none; }
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

.hero-content {
    max-width: 880px;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--accent-soft);
    border: 1px solid var(--border-strong);
    color: var(--accent-bright);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    margin-bottom: 28px;
    font-family: 'JetBrains Mono', monospace;
}

.hero-badge::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-bright);
    box-shadow: 0 0 10px var(--accent-bright);
    animation: pulse 2s ease-in-out infinite;
}

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

.hero h1 {
    font-size: clamp(2.5rem, 7vw, 5.25rem);
    font-weight: 600;
    letter-spacing: -0.035em;
    margin-bottom: 28px;
    line-height: 1.02;
}

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

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 680px;
    margin-bottom: 44px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 14px;
    margin-bottom: 72px;
    flex-wrap: wrap;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    max-width: 720px;
    padding-top: 36px;
    border-top: 1px solid var(--border-subtle);
}

.stat-number {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-family: 'JetBrains Mono', monospace;
}

/* --- Sections --- */
.section {
    padding: 120px 0;
    position: relative;
}

.section-dark {
    background:
        linear-gradient(180deg, transparent, rgba(168, 85, 247, 0.025) 50%, transparent),
        var(--bg-elevated);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.section-header {
    margin-bottom: 64px;
    max-width: 720px;
}

.section-tag {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--accent-bright);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 16px;
    padding-left: 18px;
    position: relative;
}

.section-tag::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 12px;
    height: 1px;
    background: var(--accent);
}

.section-header h2 {
    font-size: clamp(1.875rem, 4.5vw, 3rem);
    font-weight: 600;
    letter-spacing: -0.025em;
    margin-bottom: 16px;
    line-height: 1.1;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* --- About --- */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 64px;
    align-items: start;
}

.about-text p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.75;
}

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

.about-highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.highlight-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.highlight-card:hover {
    border-color: var(--border-strong);
    background: var(--bg-hover);
    transform: translateY(-2px);
}

.highlight-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--accent-soft);
    color: var(--accent-bright);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 14px;
    border: 1px solid var(--border-strong);
}

.highlight-card h4 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.highlight-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* --- Projects --- */
.projects-category-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-muted);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-subtle);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
}

.project-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--radius-xl);
    background: radial-gradient(circle at top, rgba(168, 85, 247, 0.08), transparent 50%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.project-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-4px);
    box-shadow: var(--shadow), var(--shadow-glow);
}

.project-card:hover::before {
    opacity: 1;
}

.project-card.project-featured {
    grid-column: 1 / -1;
}

.project-image {
    aspect-ratio: 16 / 9;
    position: relative;
    overflow: hidden;
    background: var(--bg-overlay);
    border-bottom: 1px solid var(--border-subtle);
}

.card-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.8s ease-out;
    pointer-events: none;
}

.card-canvas.is-ready {
    opacity: 1;
}

/* --- Section accent canvases --- */
.section-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0;
    transition: opacity 1.2s ease-out;
    pointer-events: none;
}

.section-canvas.is-ready {
    opacity: 1;
}

.section { position: relative; }
.section .container { position: relative; z-index: 1; }

.project-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--text-primary);
    background-size: 28px 28px;
    background-image:
        linear-gradient(rgba(168, 85, 247, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(168, 85, 247, 0.06) 1px, transparent 1px);
}

.project-placeholder::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(168, 85, 247, 0.18) 0%, transparent 70%);
}

.project-placeholder.gov::before     { background: radial-gradient(circle at 50% 50%, rgba(168, 85, 247, 0.22), transparent 70%); }
.project-placeholder.health::before  { background: radial-gradient(circle at 50% 50%, rgba(236, 72, 153, 0.20), transparent 70%); }
.project-placeholder.internal::before{ background: radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.22), transparent 70%); }
.project-placeholder.ecom::before    { background: radial-gradient(circle at 50% 50%, rgba(244, 114, 182, 0.20), transparent 70%); }
.project-placeholder.mobile::before  { background: radial-gradient(circle at 50% 50%, rgba(56, 189, 248, 0.20), transparent 70%); }

.project-placeholder span {
    position: relative;
    z-index: 1;
    font-size: 1.25rem;
    color: var(--accent-bright);
    text-shadow: 0 0 20px var(--accent-glow);
}

.placeholder-lines {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    z-index: 1;
    width: 60%;
}

.placeholder-lines div {
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
}

.placeholder-lines div:nth-child(1) { width: 100%; }
.placeholder-lines div:nth-child(2) { width: 75%; }
.placeholder-lines div:nth-child(3) { width: 90%; }
.placeholder-lines div:nth-child(4) { width: 60%; }

.project-info {
    padding: 28px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    background: var(--bg-overlay);
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
}

.tag-enterprise {
    background: var(--accent-soft);
    color: var(--accent-bright);
    border-color: var(--border-strong);
}

.tag-freelance {
    background: rgba(236, 72, 153, 0.10);
    color: #f9a8d4;
    border-color: rgba(236, 72, 153, 0.25);
}

.tag-consumer {
    background: rgba(56, 189, 248, 0.08);
    color: #7dd3fc;
    border-color: rgba(56, 189, 248, 0.22);
}

.project-info h3 {
    font-size: 1.35rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.project-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 16px;
    line-height: 1.6;
}

.project-highlights {
    list-style: none;
    margin-bottom: 24px;
    padding: 0;
}

.project-highlights li {
    font-size: 0.85rem;
    color: var(--text-muted);
    padding-left: 18px;
    position: relative;
    margin-bottom: 6px;
}

.project-highlights li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 8px;
    height: 1px;
    background: var(--accent);
}

.btn-view-demo {
    align-self: flex-start;
    margin-top: auto;
}

/* --- Tech Stack --- */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.tech-category {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: border-color 0.2s;
}

.tech-category:hover {
    border-color: var(--border-soft);
}

.tech-category h4 {
    font-size: 0.78rem;
    color: var(--accent-bright);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 18px;
    font-weight: 500;
}

.tech-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-pill {
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--bg-overlay);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-size: 0.82rem;
    transition: all 0.2s;
    cursor: default;
}

.tech-pill:hover {
    background: var(--accent-soft);
    border-color: var(--border-strong);
    color: var(--accent-bright);
}

/* --- Process --- */
.process-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.process-step {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 28px 22px;
    position: relative;
    transition: all 0.3s;
}

.process-step:hover {
    border-color: var(--border-strong);
    background: var(--bg-hover);
    transform: translateY(-2px);
}

.process-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-bright);
    background: var(--accent-soft);
    border: 1px solid var(--border-strong);
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.process-step h4 {
    font-size: 1rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.process-step p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.55;
}

/* --- Contact --- */
.contact-content {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.contact-content .section-header {
    margin: 0 auto 40px;
}

.contact-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.contact-emails {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-note {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-family: 'JetBrains Mono', monospace;
}

/* --- Footer --- */
.footer {
    padding: 48px 0;
    border-top: 1px solid var(--border-subtle);
    text-align: center;
}

.footer p {
    color: var(--text-faint);
    font-size: 0.85rem;
    font-family: 'JetBrains Mono', monospace;
}

/* --- Animations --- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .process-grid { grid-template-columns: repeat(3, 1fr); }
    .tech-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-stats { grid-template-columns: repeat(4, 1fr); gap: 20px; }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: rgba(8, 7, 13, 0.95);
        backdrop-filter: blur(20px);
        padding: 24px;
        border-bottom: 1px solid var(--border-subtle);
    }
    .nav-links.open { display: flex; }
    .nav-links a {
        padding: 12px 0;
        font-size: 1rem;
        border-bottom: 1px solid var(--border-subtle);
    }
    .nav-links a:last-child { border-bottom: none; }
    .nav-links a.nav-cta {
        text-align: center;
        margin-top: 8px;
    }

    .hero { padding: 100px 0 60px; min-height: auto; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 24px; }

    .section { padding: 80px 0; }
    .section-header { margin-bottom: 48px; }

    .projects-grid { grid-template-columns: 1fr; }
    .project-card.project-featured { grid-column: auto; }
    .about-highlights { grid-template-columns: 1fr; }
    .process-grid { grid-template-columns: repeat(2, 1fr); }
    .tech-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2.4rem; }
    .stat-number { font-size: 1.6rem; }
    .process-grid { grid-template-columns: 1fr; }
}
