/* ============================================================
   DIVYANSH SINGH PATEL — PORTFOLIO
   Design system: dark-tech / editorial · single acid-lime accent
   ============================================================ */

:root {
    /* ── Surfaces ───────────────────────────── */
    --bg: #05060a;
    --bg-soft: #0a0c14;
    --surface: rgba(17, 20, 30, 0.62);
    --surface-solid: #0e1018;
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.16);

    /* ── Type ───────────────────────────────── */
    --text: #edeff6;
    --text-soft: #a2a7bb;
    --text-dim: #7d8499;

    /* ── Accent (single) ────────────────────── */
    --accent: #d4ff3f;
    --accent-dim: rgba(212, 255, 63, 0.14);
    --accent-line: rgba(212, 255, 63, 0.34);
    --accent-glow: rgba(212, 255, 63, 0.28);

    /* ── Shape / motion ─────────────────────── */
    --radius: 18px;
    --radius-sm: 10px;
    --radius-pill: 999px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --dur: 0.45s;

    /* ── Fonts ──────────────────────────────── */
    --font-display: 'Space Grotesk', system-ui, sans-serif;
    --font-body: 'Outfit', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, monospace;

    --nav-h: 64px;
    --maxw: 1180px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-h) + 24px);
    -webkit-text-size-adjust: 100%;
}

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

::selection { background: var(--accent); color: #05060a; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 5vw, 40px); }

/* ── Global FX layers ───────────────────────── */
.grain {
    position: fixed; inset: 0; z-index: 9997; pointer-events: none; opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.vignette {
    position: fixed; inset: 0; z-index: 9996; pointer-events: none;
    background: radial-gradient(ellipse at 50% 40%, transparent 45%, rgba(0, 0, 0, 0.55) 100%);
}
.scroll-progress {
    position: fixed; top: 0; left: 0; height: 2px; width: 0;
    background: var(--accent); z-index: 10000; transform-origin: 0 50%;
    box-shadow: 0 0 14px var(--accent-glow);
}

/* ── Custom cursor ──────────────────────────── */
.cursor-dot, .cursor-ring {
    position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none;
    border-radius: 50%; opacity: 0; transition: opacity 0.3s ease;
}
.cursor-dot { width: 6px; height: 6px; background: var(--accent); }
.cursor-ring {
    width: 34px; height: 34px; border: 1px solid var(--accent-line);
    transition: width 0.25s var(--ease), height 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.cursor-ring.is-hover { width: 54px; height: 54px; background: var(--accent-dim); border-color: var(--accent); }
body.has-cursor .cursor-dot, body.has-cursor .cursor-ring { opacity: 1; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 9000;
    height: var(--nav-h);
    border-bottom: 1px solid transparent;
    transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), backdrop-filter var(--dur);
}
.navbar.scrolled {
    background: rgba(5, 6, 10, 0.72);
    backdrop-filter: blur(18px) saturate(1.4);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
    border-bottom-color: var(--line);
}
.nav-inner {
    height: 100%; max-width: var(--maxw); margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 40px);
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.nav-logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
    font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: 0.02em;
    padding: 5px 10px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
    transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.nav-logo:hover .logo-mark { border-color: var(--accent); color: var(--accent); }
.logo-status {
    font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em;
    color: var(--text-dim); text-transform: uppercase; display: flex; align-items: center; gap: 6px;
}
.logo-status i {
    width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
    box-shadow: 0 0 8px var(--accent-glow); animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-link {
    position: relative; padding: 8px 14px; font-size: 0.9rem; font-weight: 400;
    color: var(--text-soft); border-radius: var(--radius-pill);
    transition: color 0.25s ease;
}
.nav-link::after {
    content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1px;
    background: var(--accent); transform: scaleX(0); transform-origin: left;
    transition: transform 0.35s var(--ease);
}
.nav-link:hover { color: var(--text); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-link.active { color: var(--text); }
.nav-link--cta {
    color: #05060a; background: var(--accent); font-weight: 500;
    border: 1px solid var(--accent); margin-left: 8px;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}
.nav-link--cta::after { display: none; }
.nav-link--cta:hover { color: #05060a; box-shadow: 0 0 22px var(--accent-glow); }
.nav-link--cta:active { transform: scale(0.97); }

.nav-toggle {
    display: none; flex-direction: column; gap: 6px; width: 40px; height: 40px;
    align-items: center; justify-content: center;
}
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: var(--text); transition: transform 0.3s var(--ease), opacity 0.3s; }
.nav-toggle.active span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav-toggle.active span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

/* ============================================================
   BUTTONS / LINKS
   ============================================================ */
.btn {
    display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
    padding: 14px 26px; border-radius: var(--radius-pill);
    font-family: var(--font-display); font-size: 0.92rem; font-weight: 500; letter-spacing: 0.01em;
    transition: transform 0.25s var(--ease), box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.btn svg { width: 18px; height: 18px; transition: transform 0.3s var(--ease); }
.btn--primary { background: var(--accent); color: #05060a; border: 1px solid var(--accent); }
.btn--primary:hover { box-shadow: 0 0 30px var(--accent-glow); transform: translateY(-2px); }
.btn--primary:hover svg { transform: translateX(4px); }
.btn--primary:active { transform: translateY(0) scale(0.98); }
.btn--ghost { color: var(--text); border: 1px solid var(--line-strong); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn--ghost:active { transform: translateY(0) scale(0.98); }

.link-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 18px; border: 1px solid var(--line-strong); border-radius: var(--radius-pill);
    font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.03em; color: var(--text-soft);
    transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease, transform 0.2s ease;
}
.link-btn svg { width: 15px; height: 15px; }
.link-btn:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.link-btn--accent { border-color: var(--accent-line); color: var(--accent); }
.link-btn--accent:hover { background: var(--accent-dim); box-shadow: 0 0 20px var(--accent-glow); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative; min-height: 100dvh; display: flex; flex-direction: column;
    justify-content: center; padding: calc(var(--nav-h) + 48px) 0 0; overflow: hidden;
}
.hero-aurora { position: absolute; inset: 0; overflow: hidden; }
.aurora {
    position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5;
    animation: drift 22s ease-in-out infinite;
}
.aurora-1 { width: 46vw; height: 46vw; top: -14%; left: -8%; background: radial-gradient(circle, rgba(212,255,63,0.16), transparent 68%); }
.aurora-2 { width: 40vw; height: 40vw; bottom: -20%; right: -6%; background: radial-gradient(circle, rgba(120,160,255,0.12), transparent 68%); animation-delay: -7s; }
.aurora-3 { width: 34vw; height: 34vw; top: 30%; left: 45%; background: radial-gradient(circle, rgba(255,90,150,0.09), transparent 70%); animation-delay: -13s; }
@keyframes drift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(4%, 5%) scale(1.08); }
    66% { transform: translate(-4%, -3%) scale(0.95); }
}
.hero-grid {
    position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: radial-gradient(ellipse at 50% 45%, #000 25%, transparent 78%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 45%, #000 25%, transparent 78%);
}
.hero-glow {
    position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 40%), rgba(212,255,63,0.09), transparent 62%);
    transition: background 0.2s ease;
}

.hero-inner {
    position: relative; z-index: 2;
    width: 100%; max-width: var(--maxw); margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 40px);
    display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(30px, 5vw, 70px);
    align-items: center;
}

.eyebrow {
    font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.22em;
    text-transform: uppercase; color: var(--accent); margin-bottom: 22px;
    display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ''; width: 26px; height: 1px; background: var(--accent-line); }

.hero-title {
    font-family: var(--font-display); font-weight: 700;
    font-size: clamp(3rem, 8.6vw, 6.4rem); line-height: 0.95; letter-spacing: -0.035em;
    margin-bottom: 22px;
}
.hero-title .line { display: block; }
.hero-title .line--outline {
    color: rgba(237, 239, 246, 0.5);
    padding-left: 0.06em;
}
@supports (-webkit-text-stroke: 1px black) {
    .hero-title .line--outline {
        color: transparent;
        -webkit-text-stroke: 1.5px rgba(237, 239, 246, 0.55);
    }
}

.hero-role {
    font-family: var(--font-mono); font-size: clamp(0.95rem, 2vw, 1.2rem);
    color: var(--text-soft); margin-bottom: 22px; min-height: 1.6em;
}
.role-prompt { color: var(--accent); margin-right: 2px; }
.typed-text { color: var(--text); }
.caret { color: var(--accent); animation: blink 1s step-end infinite; margin-left: 1px; }
@keyframes blink { 50% { opacity: 0; } }

.hero-desc {
    max-width: 46ch; color: var(--text-soft); font-size: 1.02rem;
    margin-bottom: 34px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* ── Code panel ─────────────────────────────── */
.hero-panel { position: relative; }
.panel-window {
    border: 1px solid var(--line); border-radius: var(--radius);
    background: linear-gradient(160deg, rgba(20,24,34,0.9), rgba(10,12,18,0.86));
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 30px 80px rgba(0,0,0,0.55);
    overflow: hidden; transform: perspective(1200px) rotateY(-6deg) rotateX(3deg);
    transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.hero-panel:hover .panel-window { transform: perspective(1200px) rotateY(0deg) rotateX(0deg); box-shadow: 0 40px 100px rgba(0,0,0,0.6), 0 0 40px rgba(212,255,63,0.06); }
.panel-bar {
    display: flex; align-items: center; gap: 7px;
    padding: 12px 16px; border-bottom: 1px solid var(--line);
    background: rgba(255,255,255,0.02);
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot--red { background: #ff5f57; } .dot--amber { background: #febc2e; } .dot--green { background: #28c840; }
.panel-title { margin-left: 8px; font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-dim); }
.panel-code {
    padding: 20px; font-family: var(--font-mono); font-size: 0.82rem; line-height: 1.85;
    color: var(--text-soft); overflow-x: auto; white-space: pre;
}
.c-key { color: var(--accent); } .c-prop { color: #7fb2ff; } .c-str { color: #b6e3a0; }
.c-num { color: #ffb37f; } .c-bool { color: #ff8fb0; }
.panel-badge {
    position: absolute; right: -14px; bottom: -18px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    width: 92px; height: 92px; border-radius: 50%;
    background: var(--accent); color: #05060a;
    box-shadow: 0 14px 40px rgba(212,255,63,0.28);
}
.panel-badge-value { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; line-height: 1; }
.panel-badge-label { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.75; }

/* ── Marquee ────────────────────────────────── */
.hero-marquee {
    position: relative; z-index: 2; margin-top: clamp(40px, 6vh, 70px);
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    padding: 16px 0; overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
    display: flex; align-items: center; gap: 30px; width: max-content;
    animation: marquee 34s linear infinite;
}
.marquee-track span {
    font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.18em;
    text-transform: uppercase; color: var(--text-dim); white-space: nowrap;
}
.marquee-track .sep { color: var(--accent); font-size: 0.55rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: clamp(80px, 12vh, 140px) 0; position: relative; }
.section + .section { border-top: 1px solid var(--line); }

.section-head { margin-bottom: clamp(44px, 6vw, 72px); }
.section-index {
    display: block; font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.2em;
    color: var(--accent); margin-bottom: 14px;
}
.section-index::before { content: '/ '; opacity: 0.5; }
.section-title {
    font-family: var(--font-display); font-weight: 600;
    font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.05; letter-spacing: -0.03em;
}
.section-note { margin-top: 16px; color: var(--text-soft); max-width: 52ch; }

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
    display: grid; grid-template-columns: 0.78fr 1.22fr; gap: clamp(32px, 5vw, 72px);
    align-items: start;
}
.about-portrait { position: relative; }
.portrait-frame {
    position: relative; border-radius: var(--radius); overflow: hidden;
    border: 1px solid var(--line);
    background: linear-gradient(160deg, rgba(20,24,34,0.8), rgba(10,12,18,0.9));
}
.portrait-frame::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(5,6,10,0.7), transparent 55%);
}
.profile-img { width: 100%; aspect-ratio: 4/5; object-fit: cover; filter: saturate(0.85) contrast(1.05); }
.portrait-tag {
    position: absolute; left: 16px; bottom: 16px; z-index: 2;
    display: flex; flex-direction: column; gap: 2px;
    padding: 10px 16px; border-radius: var(--radius-sm);
    background: rgba(5,6,10,0.66); border: 1px solid var(--line-strong);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.tag-key { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.tag-val { font-family: var(--font-display); font-size: 0.92rem; }

.about-body p { color: var(--text-soft); margin-bottom: 20px; max-width: 62ch; }
.about-body .lead { font-family: var(--font-display); font-size: clamp(1.2rem, 2.4vw, 1.6rem); line-height: 1.45; color: var(--text); font-weight: 400; }
.about-body .lead strong { color: var(--accent); font-weight: 600; }
.about-body .lead em { font-style: italic; color: var(--text); }

.about-highlights { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.about-highlights li {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 10px 16px; border: 1px solid var(--line); border-radius: var(--radius-pill);
    font-size: 0.86rem; color: var(--text-soft);
    transition: border-color 0.3s ease, color 0.3s ease;
}
.about-highlights li:hover { border-color: var(--accent-line); color: var(--text); }
.about-highlights svg { width: 16px; height: 16px; color: var(--accent); }

/* ============================================================
   JOURNEY / TIMELINE
   ============================================================ */
.timeline { position: relative; padding-left: 34px; }
.timeline::before {
    content: ''; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 1px;
    background: linear-gradient(to bottom, var(--accent-line), var(--line) 60%, transparent);
}
.tl-item { position: relative; padding-bottom: 34px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-node {
    position: absolute; left: -34px; top: 8px; width: 15px; height: 15px; border-radius: 50%;
    background: var(--bg-soft); border: 1px solid var(--line-strong);
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}
.tl-item:hover .tl-node { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-dim); }
.tl-node--live { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-dim); animation: pulse 2.4s ease-in-out infinite; }

.tl-card {
    border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--surface); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    padding: clamp(20px, 3vw, 30px);
    transition: border-color 0.4s ease, transform 0.4s var(--ease), background 0.4s ease;
}
.tl-card:hover { border-color: var(--accent-line); transform: translateX(6px); background: rgba(20,24,34,0.7); }
.tl-year {
    font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em;
    color: var(--accent); text-transform: uppercase;
}
.tl-title { font-family: var(--font-display); font-weight: 600; font-size: 1.32rem; margin: 8px 0 4px; letter-spacing: -0.01em; }
.tl-place { color: var(--text-soft); font-size: 0.9rem; }
.tl-desc { color: var(--text-dim); font-size: 0.92rem; margin-top: 10px; max-width: 62ch; }
.tl-certs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tl-cert {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 13px; border: 1px solid var(--line); border-radius: var(--radius-pill);
    font-size: 0.78rem; color: var(--text-soft);
    transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease;
}
.tl-cert-date { font-family: var(--font-mono); font-size: 0.68rem; color: var(--accent); }
.tl-cert:hover { border-color: var(--accent); color: var(--text); background: var(--accent-dim); }

/* ============================================================
   CERTIFICATES
   ============================================================ */
.cert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.cert-card {
    position: relative; overflow: hidden; cursor: pointer;
    border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--surface); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    transition: border-color 0.4s ease, transform 0.4s var(--ease), box-shadow 0.4s ease;
}
.cert-card:hover { border-color: var(--accent-line); transform: translateY(-6px); box-shadow: 0 24px 50px rgba(0,0,0,0.45); }
@media (min-width: 1024px) {
    .cert-card--feature { grid-column: span 2; }
    .cert-card--feature .cert-thumb { height: 220px; }
}
.cert-thumb { position: relative; height: 190px; overflow: hidden; background: #0b0d13; }
.cert-thumb img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.7) brightness(0.85); transition: transform 0.6s var(--ease), filter 0.5s ease; }
.cert-card:hover .cert-thumb img { transform: scale(1.06); filter: saturate(1) brightness(1); }
.cert-thumb::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(5,6,10,0.85), transparent 60%);
}
.cert-meta { padding: 18px 20px 22px; }
.cert-date { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; color: var(--accent); }
.cert-title { font-family: var(--font-display); font-weight: 500; font-size: 1.02rem; line-height: 1.35; margin: 8px 0 12px; letter-spacing: -0.01em; }
.cert-grade {
    display: inline-block; padding: 4px 11px; border: 1px solid var(--line-strong);
    border-radius: var(--radius-pill); font-family: var(--font-mono); font-size: 0.66rem;
    letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim);
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
    position: fixed; inset: 0; z-index: 9500;
    display: flex; align-items: center; justify-content: center; padding: 24px;
    background: rgba(3, 4, 7, 0.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    opacity: 0; visibility: hidden; transition: opacity 0.35s ease, visibility 0.35s;
}
.lightbox.active { opacity: 1; visibility: visible; }
.lightbox-close {
    position: absolute; top: 22px; right: 26px; font-size: 2rem; line-height: 1;
    color: var(--text-soft); transition: color 0.3s ease, transform 0.3s ease;
}
.lightbox-close:hover { color: var(--accent); transform: rotate(90deg); }
.lightbox-content {
    display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 0;
    max-width: 1040px; width: 100%; max-height: 86vh;
    border: 1px solid var(--line-strong); border-radius: var(--radius);
    background: var(--surface-solid); overflow: hidden;
    transform: scale(0.94); transition: transform 0.4s var(--ease);
}
.lightbox.active .lightbox-content { transform: scale(1); }
.lightbox-visual { background: #06070b; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.lightbox-img { max-width: 100%; max-height: 86vh; object-fit: contain; }
.lightbox-detail { padding: clamp(24px, 3vw, 40px); overflow-y: auto; border-left: 1px solid var(--line); }
.lightbox-cert-date { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; color: var(--accent); }
.lightbox-cert-title { font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; line-height: 1.25; margin: 12px 0; letter-spacing: -0.02em; }
.lightbox-cert-desc { color: var(--text-soft); font-size: 0.95rem; }
.lightbox-cert-grade {
    display: inline-block; margin-top: 20px; padding: 5px 13px;
    border: 1px solid var(--accent-line); border-radius: var(--radius-pill);
    font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent);
}

/* ============================================================
   PROJECTS
   ============================================================ */
.projects-list { display: flex; flex-direction: column; gap: clamp(56px, 8vw, 96px); }
.project {
    display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px, 4vw, 56px);
    align-items: center;
}
.project:nth-child(even) .project-visual { order: 2; }
.project-visual {
    position: relative; border-radius: var(--radius); overflow: hidden;
    border: 1px solid var(--line); background: #0b0d13;
    box-shadow: 0 30px 70px rgba(0,0,0,0.5);
    transition: transform 0.6s var(--ease), border-color 0.5s ease, box-shadow 0.5s ease;
}
.project-visual::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(212,255,63,0.14), transparent 60%);
    opacity: 0; transition: opacity 0.4s ease;
}
.project:hover .project-visual { transform: translateY(-6px); border-color: var(--accent-line); box-shadow: 0 40px 90px rgba(0,0,0,0.55), 0 0 40px rgba(212,255,63,0.06); }
.project:hover .project-visual::after { opacity: 1; }
.project-img { width: 100%; aspect-ratio: 16/10; object-fit: cover; transition: transform 0.7s var(--ease); }
.project:hover .project-img { transform: scale(1.04); }

.project-num { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.16em; color: var(--accent); }
.project-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.6rem, 3.4vw, 2.3rem); line-height: 1.05; letter-spacing: -0.03em; margin: 10px 0 16px; }
.project-desc { color: var(--text-soft); max-width: 48ch; margin-bottom: 20px; }
.project-tech { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.project-tech li {
    font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.04em;
    padding: 5px 11px; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--text-dim);
}
.project-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ============================================================
   SKILLS
   ============================================================ */
.skills-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.skill-col {
    border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px;
    background: var(--surface); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    transition: border-color 0.4s ease, transform 0.4s var(--ease), background 0.4s ease;
}
.skill-col:hover { border-color: var(--accent-line); transform: translateY(-6px); background: rgba(20,24,34,0.7); }
.skill-head { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.skill-head svg { width: 20px; height: 20px; color: var(--accent); }
.skill-head h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.02rem; letter-spacing: -0.01em; }
.skill-list li {
    position: relative; padding-left: 16px; margin-bottom: 10px;
    font-size: 0.9rem; color: var(--text-soft); transition: color 0.3s ease, padding-left 0.3s ease;
}
.skill-list li::before { content: ''; position: absolute; left: 0; top: 0.72em; width: 5px; height: 1px; background: var(--accent); transition: width 0.3s ease; }
.skill-list li:hover { color: var(--text); padding-left: 20px; }
.skill-list li:hover::before { width: 11px; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-panel {
    border: 1px solid var(--line); border-radius: calc(var(--radius) + 8px);
    padding: clamp(32px, 5vw, 64px);
    background:
        radial-gradient(600px circle at 85% 0%, rgba(212,255,63,0.07), transparent 60%),
        linear-gradient(160deg, rgba(20,24,34,0.7), rgba(10,12,18,0.75));
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.contact-head { max-width: 60ch; margin-bottom: 40px; }
.contact-sub { margin-top: 16px; color: var(--text-soft); }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.contact-card {
    display: flex; flex-direction: column; gap: 6px; position: relative; overflow: hidden;
    padding: 22px 20px; border: 1px solid var(--line); border-radius: var(--radius);
    background: rgba(12,14,22,0.6);
    transition: border-color 0.35s ease, transform 0.35s var(--ease), background 0.35s ease;
}
.contact-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    transform: scaleX(0); transition: transform 0.5s var(--ease);
}
.contact-card:hover { border-color: var(--accent-line); transform: translateY(-4px); background: rgba(18,22,32,0.85); }
.contact-card:hover::before { transform: scaleX(1); }
.contact-icon { width: 26px; height: 26px; color: var(--text-soft); margin-bottom: 12px; transition: color 0.35s ease, transform 0.35s ease; }
.contact-card:hover .contact-icon { color: var(--accent); transform: translateY(-2px); }
.contact-platform { font-family: var(--font-display); font-weight: 500; font-size: 1rem; }
.contact-handle { font-family: var(--font-mono); font-size: 0.74rem; color: var(--text-dim); word-break: break-word; }
.contact-card--mail { grid-column: span 2; }
.contact-card--mail .contact-handle { color: var(--accent); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--line); padding: 40px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-mark {
    font-family: var(--font-display); font-weight: 700; font-size: 0.9rem;
    padding: 5px 10px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
}
.footer-text { color: var(--text-dim); font-size: 0.88rem; }
.footer-heart { color: var(--accent); }
.footer-year { font-family: var(--font-mono); font-size: 0.76rem; color: var(--text-dim); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .hero-inner { grid-template-columns: 1fr; gap: 44px; }
    .hero-panel { max-width: 520px; }
    .panel-window { transform: none; }
    .hero { padding-bottom: 0; }
    .about-grid { grid-template-columns: 1fr; }
    .about-portrait { max-width: 320px; }
    .project { grid-template-columns: 1fr; }
    .project:nth-child(even) .project-visual { order: 0; }
    .skills-grid { grid-template-columns: repeat(2, 1fr); }
    .lightbox-content { grid-template-columns: 1fr; max-height: 90vh; overflow-y: auto; }
    .lightbox-detail { border-left: none; border-top: 1px solid var(--line); }
    .lightbox-img { max-height: 46vh; }
}

@media (max-width: 780px) {
    .nav-menu {
        position: fixed; inset: var(--nav-h) 0 auto 0; flex-direction: column; align-items: stretch;
        gap: 0; padding: 12px 20px 24px;
        background: rgba(5,6,10,0.96); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
        border-bottom: 1px solid var(--line);
        transform: translateY(-120%); opacity: 0; pointer-events: none;
        transition: transform 0.45s var(--ease), opacity 0.35s ease;
    }
    .nav-menu.active { transform: translateY(0); opacity: 1; pointer-events: auto; }
    .nav-link { padding: 14px 4px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.02rem; }
    .nav-link::after { display: none; }
    .nav-link--cta { margin: 14px 0 0; text-align: center; border-radius: var(--radius-pill); border-bottom: none; }
    .nav-toggle { display: flex; }
    .logo-status { display: none; }

    .cert-grid { grid-template-columns: 1fr; }
    .cert-card--feature { grid-column: span 1; }
    .skills-grid { grid-template-columns: 1fr; }
    .contact-card--mail { grid-column: span 1; }
    .hero-title { font-size: clamp(2.6rem, 13vw, 4rem); }
    .timeline { padding-left: 26px; }
    .tl-node { left: -26px; }
    .tl-item:hover .tl-card { transform: none; }
    .footer-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
}

@media (max-width: 480px) {
    .hero-cta { flex-direction: column; align-items: stretch; }
    .btn { justify-content: center; }
    .panel-badge { right: -6px; bottom: -12px; width: 76px; height: 76px; }
    .panel-badge-value { font-size: 1.2rem; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
    .reveal { opacity: 1; transform: none; }
    .marquee-track { animation: none; }
    .cursor-dot, .cursor-ring { display: none; }
    .panel-window { transform: none; }
}

/* Touch devices: hide custom cursor */
@media (hover: none) {
    .cursor-dot, .cursor-ring { display: none; }
}
