/* ═══════════════════════════════════════════════════════════
   DARKO DORSETT — Portfolio
   Dark theme · Glassmorphism · Scroll animations
   ═══════════════════════════════════════════════════════════ */

/* ─── TOKENS ─────────────────────────────────────────────── */
:root {
    --bg-0:        #09090b;
    --bg-1:        #0f0f12;
    --bg-card:     rgba(255, 255, 255, 0.03);
    --border:      rgba(255, 255, 255, 0.07);
    --border-hi:   rgba(255, 255, 255, 0.14);

    --violet:      #8b5cf6;
    --violet-dim:  rgba(139, 92, 246, 0.12);
    --violet-glow: rgba(139, 92, 246, 0.35);
    --cyan:        #22d3ee;
    --cyan-dim:    rgba(34, 211, 238, 0.1);
    --green:       #4ade80;

    --text-1:      #f4f4f5;
    --text-2:      #a1a1aa;
    --text-3:      #71717a;

    --radius-sm:   8px;
    --radius:      14px;
    --radius-lg:   20px;

    --ease:        cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out:    cubic-bezier(0.0, 0, 0.2, 1);
}

/* ─── RESET ──────────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-0);
    color: var(--text-1);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img  { max-width: 100%; display: block; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }

/* ─── SCROLLBAR ──────────────────────────────────────────── */
::-webkit-scrollbar             { width: 5px; }
::-webkit-scrollbar-track       { background: var(--bg-0); }
::-webkit-scrollbar-thumb       { background: rgba(139,92,246,0.4); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(139,92,246,0.65); }

/* ─── SCROLL PROGRESS BAR ────────────────────────────────── */
.scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 2px;
    width: 0%;
    background: linear-gradient(90deg, var(--violet), var(--cyan));
    z-index: 200;
    transition: width 0.08s linear;
}

/* ─── NAVIGATION ─────────────────────────────────────────── */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    transform: translateY(-100%);
    transition: transform 0.4s var(--ease), background 0.3s;
}

.nav.visible {
    transform: translateY(0);
    background: rgba(9, 9, 11, 0.82);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    height: 60px;
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-brand {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
    background: linear-gradient(135deg, var(--violet), var(--cyan));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-right: auto;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    gap: 2px;
    list-style: none;
}

.nav-links a {
    padding: 6px 12px;
    font-size: 0.875rem;
    color: var(--text-2);
    border-radius: var(--radius-sm);
    transition: color 0.2s, background 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-1);
    background: rgba(255, 255, 255, 0.07);
}

.nav-resume {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-1);
    border: 1px solid var(--border-hi);
    border-radius: var(--radius-sm);
    white-space: nowrap;
    transition: all 0.2s;
    flex-shrink: 0;
}

.nav-resume:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.24);
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.nav-hamburger span {
    display: block;
    width: 21px; height: 2px;
    background: var(--text-2);
    border-radius: 2px;
    transition: all 0.3s;
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
    display: none;
    flex-direction: column;
    padding: 8px 24px 20px;
    border-top: 1px solid var(--border);
    background: rgba(9, 9, 11, 0.95);
}

.nav-mobile.open { display: flex; }

.nav-mobile a {
    padding: 13px 0;
    font-size: 0.95rem;
    color: var(--text-2);
    border-bottom: 1px solid var(--border);
    transition: color 0.2s;
}

.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a:hover { color: var(--text-1); }

/* ─── HERO ───────────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: var(--bg-0);
    z-index: 0;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    will-change: transform;
}

.orb-1 {
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.22), transparent 70%);
    top: -250px; left: -150px;
    animation: orbDrift 14s ease-in-out infinite alternate;
}

.orb-2 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.14), transparent 70%);
    bottom: -100px; right: 5%;
    animation: orbDrift 17s ease-in-out infinite alternate-reverse;
    animation-delay: -5s;
}

.orb-3 {
    width: 380px; height: 380px;
    background: radial-gradient(circle, rgba(167, 139, 250, 0.1), transparent 70%);
    top: 35%; left: 45%;
    animation: orbDrift 20s ease-in-out infinite alternate;
    animation-delay: -9s;
}

@keyframes orbDrift {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(50px, 35px) scale(1.08); }
}

.hero-dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 80%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 120px 24px 80px;
    max-width: 820px;
    width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border: 1px solid rgba(139, 92, 246, 0.3);
    background: rgba(139, 92, 246, 0.08);
    border-radius: 100px;
    font-size: 0.78rem;
    color: var(--text-2);
    margin-bottom: 28px;
    animation: fadeInDown 0.9s var(--ease) both;
}

.badge-dot {
    width: 7px; height: 7px;
    background: var(--green);
    border-radius: 50%;
    flex-shrink: 0;
    animation: pulseDot 2.4s ease-in-out infinite;
}

@keyframes pulseDot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5); }
    50%       { box-shadow: 0 0 0 5px rgba(74, 222, 128, 0); }
}

.hero-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: clamp(3.5rem, 10vw, 8.5rem);
    line-height: 0.95;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    animation: fadeInUp 0.9s var(--ease) 0.1s both;
}

.name-first {
    display: block;
    color: var(--text-1);
}

.name-last {
    display: block;
}

/* Gradient text utility */
.gradient-text {
    background: linear-gradient(135deg, #a78bfa 0%, #22d3ee 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-role {
    font-size: clamp(1rem, 2.8vw, 1.45rem);
    font-weight: 400;
    color: var(--text-2);
    margin-bottom: 28px;
    min-height: 2.2em;
    animation: fadeInUp 0.9s var(--ease) 0.2s both;
}

.type-cursor {
    color: var(--violet);
    animation: blink 1s step-end infinite;
    font-weight: 300;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

.hero-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 0.875rem;
    color: var(--text-3);
    margin-bottom: 40px;
    animation: fadeInUp 0.9s var(--ease) 0.3s both;
}

.hero-location {
    display: flex;
    align-items: center;
    gap: 4px;
}

.hero-dot { opacity: 0.35; }

.hero-contact { transition: color 0.2s; }
.hero-contact:hover { color: var(--text-1); }

.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.9s var(--ease) 0.4s both;
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--violet), #6d28d9);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: var(--radius);
    transition: transform 0.3s var(--ease), box-shadow 0.3s;
    box-shadow: 0 0 28px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.5);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-1);
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-hi);
    transition: all 0.2s;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.22);
}

/* Scroll hint */
.hero-scroll {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
    animation: fadeInUp 1s var(--ease) 1s both;
}

.scroll-indicator {
    width: 24px; height: 38px;
    border: 2px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 6px;
}

.scroll-dot {
    width: 4px; height: 8px;
    background: var(--text-2);
    border-radius: 2px;
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 1; }
    60%       { transform: translateY(7px); opacity: 0.4; }
}

/* ─── SECTION COMMONS ────────────────────────────────────── */
.section     { padding: 100px 0; }
.section-alt { background: var(--bg-1); }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-eyebrow {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--violet);
    margin-bottom: 10px;
}

.section-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: clamp(2rem, 4.5vw, 3rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 52px;
}

/* ─── REVEAL ANIMATIONS ──────────────────────────────────── */
[data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Keyframes used by hero */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ─── ABOUT ──────────────────────────────────────────────── */
.about-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.about-copy p {
    color: var(--text-2);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-copy p:last-child { margin-bottom: 0; }

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 20px;
    transition: border-color 0.25s, transform 0.25s;
}

.stat-card:hover {
    border-color: rgba(139, 92, 246, 0.28);
    transform: translateY(-3px);
}

.stat-value {
    font-family: 'Outfit', sans-serif;
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--text-1);
    line-height: 1;
    margin-bottom: 6px;
    display: flex;
    align-items: baseline;
    gap: 1px;
}

.stat-plus {
    font-size: 1.5rem;
    color: var(--violet);
}

.stat-label {
    font-size: 0.76rem;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ─── SKILLS / BENTO GRID ────────────────────────────────── */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.bento-wide {
    grid-column: span 2;
}

.bento-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s, transform 0.3s, background 0.3s;
}

.bento-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--violet-dim), transparent 55%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.bento-card:hover {
    border-color: rgba(139, 92, 246, 0.24);
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.05);
}

.bento-card:hover::before { opacity: 1; }

.bento-icon {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    color: var(--violet);
    margin-bottom: 16px;
    position: relative;
    transition: background 0.3s, border-color 0.3s, color 0.3s;
}

.bento-card:hover .bento-icon {
    background: rgba(139, 92, 246, 0.18);
    border-color: rgba(139, 92, 246, 0.4);
    color: #c4b5fd;
}

.bento-card h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-1);
    margin-bottom: 14px;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.tag-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    position: relative;
}

.tag {
    padding: 4px 11px;
    font-size: 0.74rem;
    color: var(--text-2);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 100px;
    transition: all 0.2s;
}

.bento-card:hover .tag {
    border-color: rgba(139, 92, 246, 0.22);
    color: var(--text-1);
}

/* ─── EXPERIENCE TIMELINE ────────────────────────────────── */
.timeline {
    position: relative;
    padding-left: 36px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    bottom: 12px;
    width: 2px;
    background: linear-gradient(to bottom,
        var(--violet) 0%,
        var(--cyan) 50%,
        rgba(34, 211, 238, 0.1) 100%);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 36px;
}

.timeline-item:last-child { margin-bottom: 0; }

.timeline-marker {
    position: absolute;
    left: -42px;
    top: 18px;
    width: 14px; height: 14px;
    background: var(--violet);
    border: 3px solid var(--bg-0);
    border-radius: 50%;
    box-shadow: 0 0 14px var(--violet-glow);
}

.section-alt .timeline-marker {
    border-color: var(--bg-1);
}

.timeline-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    transition: border-color 0.25s, transform 0.25s;
}

.timeline-card:hover {
    border-color: rgba(139, 92, 246, 0.25);
    transform: translateX(4px);
}

.tl-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.tl-role {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-1);
    margin-bottom: 4px;
}

.tl-org {
    font-size: 0.875rem;
    color: var(--violet);
    font-weight: 500;
}

.tl-date {
    font-size: 0.78rem;
    color: var(--text-3);
    white-space: nowrap;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 100px;
    flex-shrink: 0;
}

.tl-bullets {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.tl-bullets li {
    font-size: 0.88rem;
    color: var(--text-2);
    line-height: 1.65;
    padding-left: 16px;
    position: relative;
}

.tl-bullets li::before {
    content: '▸';
    position: absolute;
    left: 0;
    top: 3px;
    color: var(--cyan);
    font-size: 0.65rem;
    line-height: 1.7;
}

.tl-bullets strong { color: var(--text-1); font-weight: 600; }

/* ─── PROJECTS ───────────────────────────────────────────── */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.project-card {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s, transform 0.3s, background 0.3s;
}

.project-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(139,92,246,0.06), rgba(34,211,238,0.04));
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.project-card:hover {
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.04);
}

.project-card:hover::after { opacity: 1; }

.project-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.project-icon {
    width: 40px; height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: var(--radius-sm);
    color: var(--violet);
}

.project-arrow {
    font-size: 1.2rem;
    color: var(--text-3);
    transition: color 0.2s, transform 0.2s;
}

.project-card:hover .project-arrow {
    color: var(--text-1);
    transform: translate(3px, -3px);
}

.project-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-1);
    margin-bottom: 10px;
}

.project-desc {
    font-size: 0.86rem;
    color: var(--text-2);
    line-height: 1.65;
    margin-bottom: 20px;
}

.project-tech {
    display: inline-block;
    padding: 4px 11px;
    font-size: 0.74rem;
    font-weight: 500;
    color: var(--cyan);
    background: rgba(34, 211, 238, 0.08);
    border: 1px solid rgba(34, 211, 238, 0.16);
    border-radius: 100px;
}

/* ─── EDUCATION ──────────────────────────────────────────── */
.edu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.edu-card {
    display: flex;
    gap: 22px;
    align-items: flex-start;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 30px;
    transition: border-color 0.25s, transform 0.25s;
}

.edu-card:hover {
    border-color: rgba(139, 92, 246, 0.25);
    transform: translateY(-2px);
}

.edu-badge {
    flex-shrink: 0;
    width: 54px; height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--violet), #6d28d9);
    border-radius: var(--radius);
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 0.85rem;
    color: #fff;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}

.edu-card h3 {
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--text-1);
    margin-bottom: 6px;
    line-height: 1.4;
}

.edu-school {
    font-size: 0.84rem;
    color: var(--text-3);
    line-height: 1.4;
}

/* ─── FOOTER ─────────────────────────────────────────────── */
.footer {
    border-top: 1px solid var(--border);
    padding: 48px 0 40px;
    background: var(--bg-0);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.footer-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-1);
}

.footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-links a {
    font-size: 0.86rem;
    color: var(--text-3);
    transition: color 0.2s;
}

.footer-links a:hover { color: var(--text-1); }

.footer-cta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    font-size: 0.84rem;
    font-weight: 500;
    color: var(--text-1);
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.footer-cta:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.45);
}

.footer-copy {
    font-size: 0.78rem;
    color: var(--text-3);
    text-align: center;
}

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 960px) {
    .about-layout   { grid-template-columns: 1fr; gap: 44px; }
    .bento-grid     { grid-template-columns: 1fr; }
    .bento-wide     { grid-column: span 1; }
    .projects-grid  { grid-template-columns: repeat(2, 1fr); }
    .edu-grid       { grid-template-columns: 1fr; }

    .nav-links,
    .nav-resume { display: none; }
    .nav-hamburger { display: flex; }
}

@media (max-width: 620px) {
    .section { padding: 70px 0; }
    .projects-grid { grid-template-columns: 1fr; }
    .stats-grid  { grid-template-columns: repeat(2, 1fr); }
    .timeline { padding-left: 24px; }
    .timeline-card { padding: 20px 18px; }
    .tl-header { flex-direction: column; gap: 10px; }
    .timeline-marker { left: -30px; }
    .hero-name { letter-spacing: -0.02em; }
    .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
}

@media (max-width: 420px) {
    .hero-meta { flex-direction: column; gap: 6px; }
    .hero-dot  { display: none; }
    .edu-card  { flex-direction: column; gap: 16px; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
}

/* ─── REDUCED MOTION ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
    html { scroll-behavior: auto; }
}

/* ─── PRINT / PDF ────────────────────────────────────────── */
@media print {
    :root {
        --text-1: #111;
        --text-2: #333;
        --text-3: #555;
        --border: #ddd;
    }

    * {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
        border-color: #ddd !important;
        -webkit-text-fill-color: black !important;
        animation: none !important;
        transition: none !important;
    }

    .scroll-progress,
    .nav,
    .hero-scroll,
    .hero-badge,
    .hero-bg,
    .btn-ghost,
    .footer-cta,
    .footer-copy,
    .bento-card::before,
    .project-card::after { display: none !important; }

    /* Hero as print header */
    .hero {
        min-height: auto !important;
        padding: 0 !important;
        display: block !important;
        background: white !important;
    }

    .hero-content {
        text-align: left;
        padding: 0 0 16pt !important;
        max-width: 100%;
    }

    .hero-name {
        font-size: 28pt;
        margin-bottom: 4pt;
        letter-spacing: -0.01em;
        line-height: 1.1;
    }

    .name-first, .name-last { display: inline; }

    .hero-role {
        font-size: 13pt;
        min-height: auto;
        margin-bottom: 6pt;
    }

    .type-cursor { display: none !important; }

    .hero-meta {
        justify-content: flex-start;
        font-size: 9pt;
        gap: 8pt;
    }

    .hero-actions {
        justify-content: flex-start;
        margin-top: 8pt;
    }

    .btn-primary {
        border: 1pt solid #333;
        padding: 4pt 10pt;
        font-size: 9pt;
        border-radius: 3pt;
    }

    /* Sections */
    main, .section, .section-alt {
        padding: 12pt 0 !important;
        background: white !important;
        break-inside: avoid;
    }

    .section-eyebrow { display: none; }

    .section-title {
        font-size: 13pt;
        margin-bottom: 10pt;
        letter-spacing: -0.01em;
    }

    .container { max-width: 100%; padding: 0 !important; }

    /* About */
    .about-layout { grid-template-columns: 1fr 1fr; gap: 20pt; }
    .about-copy p  { font-size: 9pt; line-height: 1.4; margin-bottom: 6pt; }
    .stats-grid    { grid-template-columns: repeat(4, 1fr); gap: 6pt; }
    .stat-card     { padding: 6pt 8pt; border: 1pt solid #ddd; border-radius: 4pt; }
    .stat-value    { font-size: 14pt; margin-bottom: 2pt; }
    .stat-plus     { font-size: 10pt; }
    .stat-label    { font-size: 6.5pt; }

    /* Skills bento */
    .bento-grid  { grid-template-columns: repeat(3, 1fr); gap: 6pt; }
    .bento-wide  { grid-column: span 3; }
    .bento-card  { padding: 7pt 8pt; border: 1pt solid #ddd; border-radius: 4pt; break-inside: avoid; }
    .bento-icon  { font-size: 11pt; margin-bottom: 4pt; }
    .bento-card h3 { font-size: 7.5pt; margin-bottom: 5pt; }
    .tag-group   { gap: 4pt; }
    .tag         { font-size: 6.5pt; padding: 2pt 5pt; border: 0.5pt solid #ddd; border-radius: 3pt; }

    /* Timeline */
    .timeline          { padding-left: 18pt; }
    .timeline::before  { background: #bbb !important; width: 1pt; }
    .timeline-marker   { background: #444 !important; box-shadow: none !important; border-color: white !important; left: -23pt; top: 12pt; width: 10pt; height: 10pt; }
    .timeline-item     { margin-bottom: 10pt; }
    .timeline-card     { padding: 7pt 10pt; border: 1pt solid #ddd; border-radius: 4pt; break-inside: avoid; }
    .tl-role           { font-size: 10pt; }
    .tl-org            { font-size: 8.5pt; color: #444 !important; }
    .tl-header         { margin-bottom: 6pt; }
    .tl-date           { font-size: 7.5pt; border: 0.5pt solid #ddd; border-radius: 3pt; padding: 1.5pt 5pt; }
    .tl-bullets        { gap: 4pt; }
    .tl-bullets li     { font-size: 8pt; line-height: 1.3; }
    .tl-bullets li::before { color: #444 !important; }

    /* Projects */
    .projects-grid { grid-template-columns: repeat(3, 1fr); gap: 6pt; }
    .project-card  { padding: 8pt; border: 1pt solid #ddd; border-radius: 4pt; break-inside: avoid; }
    .project-name  { font-size: 9pt; margin-bottom: 4pt; }
    .project-desc  { font-size: 7.5pt; margin-bottom: 6pt; }
    .project-tech  { font-size: 6.5pt; border: 0.5pt solid #aaa; border-radius: 3pt; }
    .project-icon,
    .project-arrow { display: none !important; }
    .project-top   { margin-bottom: 6pt; }

    /* Education */
    .edu-grid  { grid-template-columns: repeat(2, 1fr); gap: 6pt; }
    .edu-card  { padding: 8pt 10pt; border: 1pt solid #ddd; border-radius: 4pt; break-inside: avoid; gap: 10pt; }
    .edu-badge { width: 28pt; height: 28pt; font-size: 7.5pt; border-radius: 3pt; -webkit-text-fill-color: white !important; color: white !important; background: #333 !important; }
    .edu-card h3   { font-size: 9pt; }
    .edu-school    { font-size: 7.5pt; }

    /* Footer */
    .footer { border-top: 1pt solid #ddd; padding: 10pt 0 !important; }
    .footer-inner { justify-content: space-between; margin-bottom: 0; }
    .footer-name  { font-size: 9pt; }
    .footer-links a { font-size: 7.5pt; }

    @page {
        margin: 0.7in 0.7in 0.6in;
        size: letter;
    }

    a[href]::after { content: none !important; }
}
