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

:root {
    --bg: #0a0a0f;
    --bg2: #1b1b1c;
    --bg3: #1e1e1e;
    --surface: #232323;
    --border: rgba(255,255,255,0.07);
    --text: #e8e6f0;
    --muted: #adadad;
    --accent2: #7effd4;
    --accent: #fb923c;
    --accent3: #a78bfa;
    --font-display: 'Fraunces', Georgia, serif;
    --font-mono: 'DM Mono', 'Courier New', monospace;
    --font-body: 'Instrument Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ── NOISE OVERLAY ── */
body::before {
    content: '';
    position: fixed;
    inset: 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.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
    opacity: 0.5;
}

/* ── NAVIGATION ── */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 20px 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10,10,15,0.75);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

.nav-logo {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--accent);
    letter-spacing: 0.08em;
    text-decoration: none;
}

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

.nav-links a {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--muted);
    text-decoration: none;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 0.2s;
}

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

.nav-hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 6px;
    padding: 8px;
}

.nav-hamburger span {
    width: 24px;
    height: 2px;
    background: var(--accent);
}

.nav-hamburger span:first-child,
.nav-hamburger span:last-child {
    transition: transform 0.3s ease;
}

.nav-hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(9px, 5px);
}

.nav-hamburger.active span:nth-child(2) {
    opacity: 0;
    visibility: hidden;
}

.nav-hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -3px);
}

/* ── HERO ── */
#hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
}

.glow-1 {
    width: 600px; height: 600px;
    background: rgba(126,255,212,0.06);
    top: -100px; left: -100px;
    animation: glowPulse 8s ease-in-out infinite;
}

.glow-2 {
    width: 500px; height: 500px;
    background: rgba(167,139,250,0.06);
    bottom: -50px; right: 0;
    animation: glowPulse 10s ease-in-out infinite reverse;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

.hero-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 120px 60px 80px 80px;
    position: relative;
    z-index: 1;
}

.hero-eyebrow {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-eyebrow::before {
    content: '';
    display: inline-block;
    width: 32px;
    height: 1px;
    background: var(--accent);
}

.hero-name {
    font-family: var(--font-display);
    font-size: clamp(50px, 7vw, 88px);
    font-weight: 300;
    line-height: 1.0;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    color: var(--text);
}

.hero-name em {
    font-style: italic;
    color: var(--accent);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(18px, 2.5vw, 28px);
    font-weight: 300;
    color: var(--muted);
    margin-bottom: 32px;
    letter-spacing: -0.01em;
}

.hero-desc {
    font-size: 15px;
    color: var(--muted);
    max-width: 460px;
    line-height: 1.75;
    margin-bottom: 48px;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-primary {
    padding: 13px 28px;
    background: var(--accent);
    color: var(--bg);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.1);
    opacity: 0;
    transition: opacity 0.2s;
}

.btn-primary:hover::after { opacity: 1; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 30px rgba(126,255,212,0.25); }

.btn-secondary {
    padding: 13px 28px;
    background: transparent;
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    border-color: rgba(255,255,255,0.2);
    background: var(--surface);
}

/* hero right — animated code block */
.hero-right {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 80px 80px 40px;
    position: relative;
    z-index: 1;
}

.code-card {
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 12px;
    width: 100%;
    max-width: 440px;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0,0,0,0.4);
}

.code-header {
    background: var(--surface);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--border);
}

.code-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
}
.code-dot.red { background: #ff5f57; }
.code-dot.yellow { background: #ffbd2e; }
.code-dot.green { background: #28ca41; }

.code-filename {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--muted);
    margin-left: 6px;
}

.code-body {
    padding: 24px;
    font-family: var(--font-mono);
    font-size: 12.5px;
    line-height: 1.8;
}

.code-line { display: block; }
.c-comment { color: #93929c; }
.c-keyword { color: var(--accent2); }
.c-fn { color: var(--accent); }
.c-str { color: var(--accent3); }
.c-var { color: #93c5fd; }
.c-punct { color: var(--muted); }

/* Typing cursor */
.cursor {
    display: inline-block;
    width: 2px;
    height: 14px;
    background: var(--accent);
    animation: blink 1s step-end infinite;
    vertical-align: middle;
    margin-left: 2px;
}

@keyframes blink { 50% { opacity: 0; } }

/* ── STATS BAND ── */
.stats-band {
    background: var(--bg2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 40px 80px;
    display: flex;
    justify-content: space-around;
    gap: 24px;
}

.stat {
    text-align: center;
}

.stat-num {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 600;
    color: var(--text);
    line-height: 1;
    margin-bottom: 6px;
}

.stat-num.border-bottom {
    border-bottom: 4px solid var(--accent);
}

.stat-num span { color: var(--accent); }

.stat-label {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
}

/* ── SECTION COMMON ── */
section {
    padding: 100px 80px;
}

.section-tag {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-tag::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 1px;
    background: var(--accent);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 60px);
    font-weight: 300;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 20px;
}

.section-title em { font-style: italic; color: var(--accent2); }

/* ── ABOUT ── */
#about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    background: var(--bg);
}

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

.about-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.highlight-card {
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    transition: border-color 0.2s, transform 0.2s;
}

.highlight-card:hover {
    border-color: rgba(126,255,212,0.2);
    transform: translateY(-2px);
}

.highlight-title {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent);
    letter-spacing: 0.08em;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.highlight-desc {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.5;
}

/* ── SKILLS ── */
#skills {
    background: var(--bg2);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 56px;
}

.skill-group {
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 28px;
    transition: border-color 0.2s;
}

.skill-group:hover { border-color: rgba(167,139,250,0.25); }

.skill-group-title {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent2);
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    font-family: var(--font-mono);
    font-size: 12px;
    padding: 5px 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text);
    transition: all 0.2s;
}

.skill-tag:hover {
    background: rgba(126,255,212,0.08);
    border-color: rgba(126,255,212,0.25);
    color: var(--accent);
}

.skill-tag.primary {
    border-color: rgba(126,255,212,0.3);
    color: var(--accent);
    background: rgba(126,255,212,0.05);
}

/* ── EXPERIENCE ── */
#experience { background: var(--bg); }

.experience-list {
    margin-top: 56px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.exp-item {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 48px;
    padding: 40px 0;
    border-bottom: 1px solid var(--border);
    transition: all 0.3s;
}

.exp-item:first-child { border-top: 1px solid var(--border); }

.exp-item:hover { background: rgba(255,255,255,0.015); padding-left: 12px; padding-right: 12px; margin: 0 -12px; border-radius: 8px; border-color: transparent; }

.exp-period {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--accent);
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.exp-company {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 4px;
}

.exp-location {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--muted);
}

.exp-role {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 400;
    letter-spacing: -0.01em;
    color: var(--text);
    margin-bottom: 16px;
}

.exp-desc {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.75;
    margin-bottom: 16px;
}

.exp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.exp-tag {
    font-family: var(--font-mono);
    font-size: 11px;
    padding: 3px 10px;
    background: rgb(226 226 226 / 7%);
    border: 1px solid rgb(144 144 144 / 15%);
    border-radius: 3px;
    color: var(--accent2);
}

/* ── FOCUS AREAS ── */
#focus {
    background: var(--bg2);
}

.focus-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    margin-top: 56px;
}

.focus-card {
    background: var(--bg3);
    padding: 40px 36px;
    position: relative;
    overflow: hidden;
    transition: background 0.3s;
}

.focus-card:hover { background: var(--surface); }

.focus-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.focus-card:hover::before { transform: scaleX(1); }

.focus-num {
    font-family: var(--font-display);
    font-size: 64px;
    font-weight: 300;
    color: rgba(255,255,255,0.4);
    line-height: 1;
    margin-bottom: 20px;
    font-style: italic;
}

.focus-title {
    font-size: 18px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 12px;
}

.focus-desc {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.7;
}

/* ── CONTACT ── */
#contact {
    background: var(--bg);
    text-align: center;
    padding: 120px 80px;
}

.contact-inner {
    max-width: 640px;
    margin: 0 auto;
}

.contact-big {
    font-family: var(--font-display);
    font-size: clamp(48px, 7vw, 88px);
    font-weight: 300;
    letter-spacing: -0.03em;
    line-height: 1.0;
    color: var(--text);
    margin-bottom: 24px;
}

.contact-big em { font-style: italic; color: var(--accent); }

.contact-sub {
    font-size: 15px;
    color: var(--muted);
    margin-bottom: 48px;
    line-height: 1.7;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.contact-link {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s;
    padding: 10px 0;
    border-bottom: 1px solid transparent;
}

.contact-link svg { 
    height: 16px;
    width: 16px;
    fill: var(--muted);
}

.contact-link:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.contact-link:hover svg { 
    fill: var(--accent); 
}

/* ── FOOTER ── */
footer {
    background: var(--bg2);
    border-top: 1px solid var(--border);
    padding: 28px 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

footer p {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.06em;
    text-align: center;
}

footer span { color: var(--accent); }

/* ── SCROLL ANIMATIONS ── */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── RESPONSIVE ── */
@media (max-width: 700px) {
    nav { padding: 16px 24px; }
    .nav-hamburger { display: flex; }
    .nav-links { 
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        list-style: none;
        background: rgba(10,10,15,0.95);
        backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--border);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    .nav-links.active {
        max-height: 300px;
    }
    .nav-links li { border-bottom: 1px solid rgba(255,255,255,0.05); }
    .nav-links a { 
        display: block;
        padding: 16px 24px;
    }
    #hero { grid-template-columns: 1fr; }
    .hero-left { padding: 120px 24px 40px; }
    .hero-right { display: none; }
    section { padding: 72px 24px; }
    #about { grid-template-columns: 1fr; gap: 48px; }
    .skills-grid { grid-template-columns: 1fr 1fr; }
    .exp-item { grid-template-columns: 1fr; gap: 16px; }
    .focus-grid { grid-template-columns: 1fr; }
    .stats-band { padding: 32px 24px; flex-wrap: wrap; }
    footer { padding: 24px; flex-direction: column; gap: 8px; }
    #contact { padding: 80px 24px; }
}