*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
    --bg: #060810; --surface: #0d1117; --surface2: #161b27;
    --border: #1e2736; --accent: #00e5ff; --accent2: #7b61ff;
    --text: #e2e8f0; --muted: #64748b; --glow: 0 0 20px rgba(0,229,255,0.3);
}
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: 'Syne', sans-serif; overflow-x: hidden; cursor: none; }

.cursor { width: 12px; height: 12px; background: var(--accent); border-radius: 50%; position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999; transition: transform 0.1s ease; mix-blend-mode: difference; }
.cursor-ring { width: 36px; height: 36px; border: 1.5px solid var(--accent); border-radius: 50%; position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9998; transition: all 0.15s ease; opacity: 0.6; }

body::before { content: ''; position: fixed; inset: 0; background-image: linear-gradient(rgba(0,229,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(0,229,255,0.03) 1px, transparent 1px); background-size: 60px 60px; pointer-events: none; z-index: 0; }

nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between; padding: 1.2rem 4rem; background: rgba(6,8,16,0.85); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); }
.nav-logo { font-family: 'Space Mono', monospace; font-size: 0.9rem; color: var(--accent); letter-spacing: 0.05em; }
.nav-logo span { color: var(--muted); }
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a { font-family: 'Space Mono', monospace; font-size: 0.75rem; color: var(--muted); text-decoration: none; letter-spacing: 0.1em; text-transform: uppercase; transition: color 0.2s; position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 1px; background: var(--accent); transition: width 0.3s ease; }
.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after { width: 100%; }

#hero { min-height: 100vh; display: flex; align-items: center; padding: 8rem 4rem 4rem; position: relative; z-index: 1; overflow: hidden; }
.hero-blob { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; animation: float 8s ease-in-out infinite; }
.hero-blob-1 { width: 500px; height: 500px; background: radial-gradient(circle, rgba(0,229,255,0.1) 0%, transparent 70%); top: -100px; right: -100px; }
.hero-blob-2 { width: 400px; height: 400px; background: radial-gradient(circle, rgba(123,97,255,0.08) 0%, transparent 70%); bottom: 0; left: 10%; animation-delay: -4s; }
@keyframes float { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-30px); } }

.hero-inner { max-width: 1100px; width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 4rem; align-items: center; }

.hero-tag { display: inline-flex; align-items: center; gap: 0.5rem; font-family: 'Space Mono', monospace; font-size: 0.75rem; color: var(--accent); border: 1px solid rgba(0,229,255,0.3); padding: 0.4rem 1rem; border-radius: 2px; margin-bottom: 1.5rem; opacity: 0; animation: fadeUp 0.6s ease forwards 0.3s; }
.hero-tag::before { content: ''; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; animation: blink-dot 2s infinite; }
@keyframes blink-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

h1 { font-size: clamp(2.4rem, 7vw, 6.5rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.03em; margin-bottom: 0.2em; opacity: 0; animation: fadeUp 0.7s ease forwards 0.5s; word-break: break-word; }
h1 .accent-word { color: var(--accent); }

.hero-sub { font-family: 'Space Mono', monospace; font-size: clamp(0.78rem, 1.8vw, 0.95rem); color: var(--muted); max-width: 560px; line-height: 1.8; margin-top: 1.5rem; margin-bottom: 2.5rem; opacity: 0; animation: fadeUp 0.7s ease forwards 0.7s; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; opacity: 0; animation: fadeUp 0.7s ease forwards 0.9s; }
.hero-photo { width: 480px; overflow: hidden; position: absolute; bottom: 0; right: 0; opacity: 0.8; }
.hero-photo:before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: var(--accent); z-index: 1; }
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.85rem 2rem; font-family: 'Space Mono', monospace; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; border-radius: 2px; transition: all 0.25s ease; cursor: none; }
.btn-primary { background: var(--accent); color: var(--bg); font-weight: 700; }
.btn-primary:hover { background: #fff; box-shadow: var(--glow); transform: translateY(-2px); }
.btn-ghost { border: 1px solid var(--border); color: var(--muted); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

.hero-stats { display: flex; gap: 3rem; flex-wrap: wrap; margin-top: 5rem; padding-top: 2.5rem; border-top: 1px solid var(--border); opacity: 0; animation: fadeUp 0.7s ease forwards 1.1s; }
.stat-num { font-size: 2rem; font-weight: 800; color: var(--accent); line-height: 1; }
.stat-label { font-family: 'Space Mono', monospace; font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 0.3rem; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

section { padding: 6rem 4rem; position: relative; z-index: 1; }
.section-label { font-family: 'Space Mono', monospace; font-size: 0.7rem; color: var(--accent); text-transform: uppercase; letter-spacing: 0.2em; margin-bottom: 0.75rem; }
.section-title { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 3rem; }
.section-title span { color: var(--accent); }

#about { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; max-width: 1100px; }
.about-text p { font-family: 'Space Mono', monospace; font-size: 0.9rem; color: var(--muted); line-height: 1.9; margin-bottom: 1.2rem; }
.about-text p strong { color: var(--text); }
.about-card { background: var(--surface2); border: 1px solid var(--border); border-radius: 4px; padding: 2rem; }
.about-card-title { font-family: 'Space Mono', monospace; font-size: 0.7rem; color: var(--accent); text-transform: uppercase; letter-spacing: 0.15em; margin-bottom: 1.5rem; }
.info-row { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem 0; border-bottom: 1px solid var(--border); }
.info-row:last-child { border-bottom: none; }
.info-key { font-family: 'Space Mono', monospace; font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }
.info-val { font-family: 'Space Mono', monospace; font-size: 0.8rem; color: var(--text); }
.status-dot { display: inline-flex; align-items: center; gap: 0.4rem; color: #4ade80; font-size: 0.8rem; font-family: 'Space Mono', monospace; }
.status-dot::before { content: ''; width: 6px; height: 6px; background: #4ade80; border-radius: 50%; animation: blink-dot 2s infinite; }

#skills { max-width: 1280px; margin: 0 auto; }
.skills-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.skill-card { background: var(--surface); border: 1px solid var(--border); border-radius: 4px; padding: 1.5rem; transition: border-color 0.3s, transform 0.3s; position: relative; overflow: hidden; }
.skill-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--accent), var(--accent2)); transform: scaleX(0); transform-origin: left; transition: transform 0.4s ease; }
.skill-card:hover { border-color: rgba(0,229,255,0.3); transform: translateY(-4px); }
.skill-card:hover::before { transform: scaleX(1); }
.skill-card-icon { font-size: 1.5rem; margin-bottom: 0.8rem; }
.skill-card-title { font-size: 0.85rem; font-weight: 700; color: var(--text); margin-bottom: 0.8rem; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.skill-tag { font-family: 'Space Mono', monospace; font-size: 0.65rem; color: var(--accent); background: rgba(0,229,255,0.08); border: 1px solid rgba(0,229,255,0.2); padding: 0.25rem 0.6rem; border-radius: 2px; }

#projects { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.project-card { background: var(--surface2); border: 1px solid var(--border); border-radius: 4px; padding: 2rem; transition: all 0.3s ease; position: relative; overflow: hidden; }
.project-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(0,229,255,0.04) 0%, transparent 60%); opacity: 0; transition: opacity 0.3s; }
.project-card:hover { border-color: rgba(0,229,255,0.3); transform: translateY(-5px); }
.project-card:hover::after { opacity: 1; }
.project-num { font-family: 'Space Mono', monospace; font-size: 0.65rem; color: var(--accent2); letter-spacing: 0.15em; margin-bottom: 1rem; }
.project-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.8rem; line-height: 1.3; }
.project-desc { font-family: 'Space Mono', monospace; font-size: 0.78rem; color: var(--muted); line-height: 1.8; margin-bottom: 1.5rem; }
.project-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.project-tag { font-family: 'Space Mono', monospace; font-size: 0.62rem; color: var(--accent2); background: rgba(123,97,255,0.1); border: 1px solid rgba(123,97,255,0.2); padding: 0.25rem 0.6rem; border-radius: 2px; }

#experience { max-width: 1100px; margin: 0 auto; }
.exp-list { display: flex; flex-direction: column; }
.exp-item { display: grid; grid-template-columns: 200px 1fr; gap: 3rem; padding: 2.5rem 0; border-bottom: 1px solid var(--border); position: relative; }
.exp-item::before { content: ''; position: absolute; left: 190px; top: 0; bottom: 0; width: 1px; background: var(--border); }
.exp-year { font-family: 'Space Mono', monospace; font-size: 0.75rem; color: var(--muted); padding-top: 0.2rem; }
.exp-role { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.3rem; }
.exp-company { font-family: 'Space Mono', monospace; font-size: 0.75rem; color: var(--accent); margin-bottom: 1rem; }
.exp-bullets { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.exp-bullets li { font-family: 'Space Mono', monospace; font-size: 0.78rem; color: var(--muted); line-height: 1.7; padding-left: 1.2rem; position: relative; }
.exp-bullets li::before { content: '→'; position: absolute; left: 0; color: var(--accent); }

#contact { background: var(--surface); border-top: 1px solid var(--border); text-align: center; }
.contact-inner { max-width: 600px; margin: 0 auto; }
.contact-inner p { font-family: 'Space Mono', monospace; font-size: 0.85rem; color: var(--muted); line-height: 1.8; margin-bottom: 2.5rem; }
.contact-links { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

footer { padding: 2rem 4rem; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 1; }
footer p { font-family: 'Space Mono', monospace; font-size: 0.7rem; color: var(--muted); }
footer span { color: var(--accent); }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

.typing { font-family: 'Space Mono', monospace; font-size: 0.85rem; color: var(--accent); border-right: 2px solid var(--accent); white-space: nowrap; overflow: hidden; animation: typing 3s steps(40) forwards, blink-cursor 0.8s step-end infinite; }
@keyframes typing { from { width: 0 } to { width: 100% } }
@keyframes blink-cursor { 0%, 100% { border-color: var(--accent) } 50% { border-color: transparent } }

@media (max-width: 900px) {
    nav { padding: 1rem 1.5rem; }
    .hero-text { max-width: 680px; }
    .nav-links { display: none; }
    #hero { padding: 6rem 1.5rem 4rem; }
    section { padding: 4rem 1.5rem 3rem; }
    .hero-photo { display: none; }
    .about-grid { grid-template-columns: 1fr; gap: 2rem; }
    .exp-item { grid-template-columns: 1fr; gap: 0.5rem; }
    .exp-item::before { display: none; }
    footer { flex-direction: column; gap: 0.5rem; text-align: center; padding: 1.5rem; }
    .hero-stats { gap: 1.5rem; margin-top: 3rem; }
    .skills-grid { grid-template-columns: minmax(280px, 1fr); }
    .projects-grid { grid-template-columns: minmax(300px, 1fr); }
}