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

:root {
--bg:       #080c10;
--surface:  #0e1318;
--card:     #131a22;
--border:   #1e2a35;
--accent:   #00e5ff;
--accent2:  #7c3aed;
--text:     #e2eaf2;
--muted:    #5a7080;
--glow:     0 0 40px rgba(0,229,255,.18);
--shadow:   0 8px 40px rgba(0,0,0,.6);
}

html { scroll-behavior: smooth; }

body {
background: var(--bg);
color: var(--text);
font-family: 'DM Mono', monospace;
font-size: 15px;
line-height: 1.7;
overflow-x: hidden;
cursor: none;
}

/* ─── Custom Cursor ─────────────────────────────── */
#cursor {
width: 10px; height: 10px;
background: var(--accent);
border-radius: 50%;
position: fixed; top: 0; left: 0;
pointer-events: none; z-index: 9999;
transform: translate(-50%,-50%);
transition: transform .1s, background .2s;
box-shadow: 0 0 12px var(--accent);
}
#cursor-ring {
width: 38px; height: 38px;
border: 1.5px solid rgba(0,229,255,.4);
border-radius: 50%;
position: fixed; top: 0; left: 0;
pointer-events: none; z-index: 9998;
transform: translate(-50%,-50%);
transition: transform .25s ease, width .25s, height .25s, border-color .25s;
}
body:has(a:hover) #cursor-ring,
body:has(button:hover) #cursor-ring { width: 56px; height: 56px; border-color: var(--accent); }

/* ─── Noise overlay ─────────────────────────────── */
body::before {
content: '';
position: fixed; inset: 0; z-index: 0;
background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.04'/%3E%3C/svg%3E");
background-size: 180px;
pointer-events: none;
opacity: .7;
}

/* ─── Grid lines bg ─────────────────────────────── */
body::after {
content: '';
position: fixed; inset: 0; z-index: 0;
background-image:
linear-gradient(rgba(0,229,255,.025) 1px, transparent 1px),
linear-gradient(90deg, rgba(0,229,255,.025) 1px, transparent 1px);
background-size: 60px 60px;
pointer-events: none;
}

/* ─── Layout ─────────────────────────────────────── */
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 32px; position: relative; z-index: 1; }

/* ─── Nav ────────────────────────────────────────── */
nav {
position: fixed; top: 0; left: 0; right: 0; z-index: 100;
padding: 20px 0;
background: linear-gradient(180deg, rgba(8,12,16,.95) 60%, transparent);
backdrop-filter: blur(12px);
transition: padding .3s;
}
nav.scrolled { padding: 14px 0; }
nav .inner { display: flex; align-items: center; justify-content: space-between; }
.logo {
font-family: 'Syne', sans-serif;
font-weight: 800; font-size: 20px;
color: var(--text); text-decoration: none;
letter-spacing: -.5px;
}
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a {
color: var(--muted); text-decoration: none;
font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
transition: color .2s;
position: relative;
}
.nav-links a::after {
content: ''; position: absolute; left: 0; bottom: -4px;
width: 0; height: 1px; background: var(--accent);
transition: width .25s;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after { width: 100%; }

/* ─── Hero ───────────────────────────────────────── */
#home {
min-height: 100vh;
display: flex; align-items: center;
padding-top: 80px;
position: relative;
}
.hero-glow {
position: absolute;
width: 600px; height: 600px;
border-radius: 50%;
background: radial-gradient(circle, rgba(0,229,255,.08) 0%, transparent 70%);
top: 50%; left: 50%; transform: translate(-50%,-50%);
pointer-events: none;
}
.tag {
display: inline-flex; align-items: center; gap: 8px;
background: rgba(0,229,255,.08);
border: 1px solid rgba(0,229,255,.2);
color: var(--accent); font-size: 12px;
padding: 6px 14px; border-radius: 20px;
letter-spacing: .1em; text-transform: uppercase;
margin-bottom: 28px;
opacity: 0; animation: fadeUp .6s .2s forwards;
}
.tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; }

h1 {
font-family: 'Syne', sans-serif;
font-size: clamp(52px, 8vw, 96px);
font-weight: 800; line-height: 1;
letter-spacing: -2px;
opacity: 0; animation: fadeUp .7s .35s forwards;
}
h1 .line { display: block; }
h1 .dim { color: var(--muted); font-size: clamp(52px, 8vw, 76px);}
h1 .accent { color: var(--accent); text-shadow: 0 0 60px rgba(0,229,255,.4); }

.hero-sub {
margin-top: 28px; max-width: 520px;
color: var(--muted); font-size: 15px;
opacity: 0; animation: fadeUp .7s .5s forwards;
}

.hero-cta {
margin-top: 44px; display: flex; gap: 16px; flex-wrap: wrap;
opacity: 0; animation: fadeUp .7s .65s forwards;
}
.btn {
padding: 14px 30px; border-radius: 6px;
font-family: 'DM Mono', monospace; font-size: 13px;
letter-spacing: .08em; text-transform: uppercase;
cursor: none; text-decoration: none;
transition: all .25s; border: none; display: inline-block;
}
.btn-primary {
background: var(--accent); color: #000;
box-shadow: 0 0 24px rgba(0,229,255,.3);
}
.btn-primary:hover { box-shadow: 0 0 40px rgba(0,229,255,.55); transform: translateY(-2px); }
.btn-outline {
background: transparent;
border: 1px solid var(--border);
color: var(--text);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

.hero-stats {
margin-top: 64px; display: flex; gap: 48px;
opacity: 0; animation: fadeUp .7s .8s forwards;
padding-top: 40px; border-top: 1px solid var(--border);
justify-content: center;
}
.stat-num {
font-family: 'Syne', sans-serif; font-size: 36px; font-weight: 800;
color: var(--text);
}
.stat-num span { color: var(--accent); }
.stat-label { font-size: 12px; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }

.scroll-hint {
position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
display: flex; flex-direction: column; align-items: center; gap: 8px;
color: var(--muted); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
opacity: 0; animation: fadeIn 1s 1.2s forwards;
}
.scroll-line {
width: 1px; height: 50px;
background: linear-gradient(180deg, var(--accent), transparent);
animation: scrollPulse 2s ease-in-out infinite;
}

/* ─── Sections ───────────────────────────────────── */
section { padding: 120px 0; }
.section-label {
font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
color: var(--accent); margin-bottom: 16px;
display: flex; align-items: center; gap: 12px;
}
.section-label::before { content: ''; width: 30px; height: 1px; background: var(--accent); }
h2 {
font-family: 'Syne', sans-serif;
font-size: clamp(32px, 5vw, 54px);
font-weight: 800; letter-spacing: -1px;
line-height: 1.1;
margin-bottom: 60px;
}
h2 em { font-style: normal; color: var(--accent); }

/* ─── About ──────────────────────────────────────── */
.about-grid {
display: grid; grid-template-columns: 1fr 1fr;
gap: 80px; align-items: center;
}
.about-img-wrap {
position: relative;
}
.about-img-placeholder {
width: 100%; aspect-ratio: 3/4;
background: var(--card);
border: 1px solid var(--border);
border-radius: 4px;
display: flex; flex-direction: column;
align-items: center; justify-content: center;
gap: 12px; color: var(--muted);
font-size: 13px;
position: relative; overflow: hidden;
}
.about-img-placeholder svg { width: 48px; height: 48px; opacity: .3; }
.about-img-placeholder .upload-hint {
font-size: 11px; opacity: .5; letter-spacing: .05em;
}
.img-corner {
position: absolute; width: 20px; height: 20px;
border-color: var(--accent); border-style: solid;
}
.img-corner.tl { top: -8px; left: -8px; border-width: 2px 0 0 2px; }
.img-corner.br { bottom: -8px; right: -8px; border-width: 0 2px 2px 0; }

.about-text p { color: var(--muted); margin-bottom: 20px; }
.skills-list {
display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px;
}
.skill-pill {
padding: 6px 14px; border-radius: 3px;
background: var(--card); border: 1px solid var(--border);
font-size: 12px; color: var(--text);
transition: all .2s; letter-spacing: .04em;
}
.skill-pill:hover { border-color: var(--accent); color: var(--accent); background: rgba(0,229,255,.05); }

/* ─── Projects ───────────────────────────────────── */
.projects-grid {
display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
gap: 24px;
}
.project-card {
background: var(--card);
border: 1px solid var(--border);
border-radius: 6px; overflow: hidden;
transition: all .3s; position: relative;
cursor: none;
}
.project-card::before {
content: ''; position: absolute; inset: 0;
background: linear-gradient(135deg, rgba(0,229,255,.04) 0%, transparent 60%);
opacity: 0; transition: opacity .3s;
}
.project-card:hover { border-color: rgba(0,229,255,.3); transform: translateY(-6px); box-shadow: var(--shadow), var(--glow); }
.project-card:hover::before { opacity: 1; }

.project-thumb {
width: 100%; aspect-ratio: 16/9;
background: var(--surface);
display: flex; align-items: center; justify-content: center;
border-bottom: 1px solid var(--border); overflow: hidden;
position: relative;
}
.project-thumb-inner {
font-family: 'Syne', sans-serif;
font-size: 64px; font-weight: 800;
color: var(--border); user-select: none;
transition: transform .3s, color .3s;
}
.project-card:hover .project-thumb-inner { transform: scale(1.1); color: rgba(0,229,255,.12); }

.project-body { padding: 24px; }
.project-meta {
display: flex; align-items: center; justify-content: space-between;
margin-bottom: 10px;
}
.project-type {
font-size: 10px; letter-spacing: .15em; text-transform: uppercase;
color: var(--accent);
}
.project-year { font-size: 11px; color: var(--muted); }
.project-title {
font-family: 'Syne', sans-serif;
font-size: 20px; font-weight: 700;
margin-bottom: 10px; color: var(--text);
}
.project-desc { font-size: 13px; color: var(--muted); margin-bottom: 20px; line-height: 1.6; }
.project-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.project-tag {
font-size: 10px; padding: 3px 10px;
background: var(--surface); border: 1px solid var(--border);
border-radius: 2px; color: var(--muted); letter-spacing: .06em;
}
.project-links {
display: flex; gap: 12px; margin-top: 20px;
}
.project-link {
font-size: 11px; color: var(--muted); text-decoration: none;
letter-spacing: .08em; text-transform: uppercase;
transition: color .2s; display: flex; align-items: center; gap: 6px;
}
.project-link:hover { color: var(--accent); }
.project-link svg { width: 12px; height: 12px; }

/* ─── Timeline / Experience ──────────────────────── */
.timeline { position: relative; padding-left: 32px; }
.timeline::before {
content: ''; position: absolute;
left: 0; top: 0; bottom: 0;
width: 1px; background: linear-gradient(180deg, var(--accent), transparent);
}
.timeline-item { position: relative; margin-bottom: 52px; }
.timeline-item::before {
content: ''; position: absolute;
left: -36px; top: 6px;
width: 10px; height: 10px; border-radius: 50%;
background: var(--bg); border: 1.5px solid var(--accent);
box-shadow: 0 0 10px rgba(0,229,255,.4);
}
.timeline-period { font-size: 11px; color: var(--accent); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 6px; }
.timeline-role {
font-family: 'Syne', sans-serif;
font-size: 20px; font-weight: 700; margin-bottom: 4px;
}
.timeline-company { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.timeline-desc { font-size: 13px; color: var(--muted); line-height: 1.7; }

/* ─── Contact ────────────────────────────────────── */
#contact { text-align: center; }
.contact-box {
max-width: 620px; margin: 0 auto;
background: var(--card);
border: 1px solid var(--border);
border-radius: 8px; padding: 64px 48px;
position: relative; overflow: hidden;
}
.contact-box::before {
content: ''; position: absolute;
inset: 0;
background: radial-gradient(ellipse at 50% 0%, rgba(0,229,255,.07) 0%, transparent 70%);
}
.contact-box p { color: var(--muted); margin-bottom: 36px; font-size: 15px; }
.contact-email {
font-family: 'Syne', sans-serif;
font-size: clamp(20px, 3vw, 28px);
font-weight: 700;
color: var(--accent); text-decoration: none;
display: block; margin-bottom: 40px;
transition: text-shadow .2s;
}
.contact-email:hover { text-shadow: 0 0 30px rgba(0,229,255,.6); }
.social-links { display: flex; justify-content: center; gap: 20px; }
.social-link {
width: 44px; height: 44px;
border: 1px solid var(--border); border-radius: 4px;
display: flex; align-items: center; justify-content: center;
color: var(--muted); text-decoration: none;
transition: all .2s; font-size: 18px;
}
.social-link:hover { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 16px rgba(0,229,255,.2); }

/* ─── Footer ─────────────────────────────────────── */
footer {
border-top: 1px solid var(--border); padding: 32px 0;
display: flex; align-items: center; justify-content: space-between;
font-size: 12px; color: var(--muted);
position: relative; z-index: 1;
}

/* ─── Animations ─────────────────────────────────── */
@keyframes fadeUp { from { opacity:0; transform:translateY(24px); } to { opacity:1; transform:none; } }
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:.3; } }
@keyframes scrollPulse { 0%,100% { opacity:.6; transform:scaleY(1); } 50% { opacity:1; transform:scaleY(1.15); } }

.reveal {
opacity: 0; transform: translateY(30px);
transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ─── Mobile ─────────────────────────────────────── */
@media (max-width: 768px) {
.nav-links { display: none; }
.about-grid { grid-template-columns: 1fr; gap: 40px; }
.about-img-placeholder { aspect-ratio: 1; }
.hero-stats { gap: 32px; }
footer { flex-direction: column; gap: 12px; text-align: center; }
.contact-box { padding: 40px 24px; }
#cursor, #cursor-ring { display: none; }
body { cursor: auto; }
}