:root {
  --bg: #08090c;
  --surface: #0f1117;
  --border: #1e2130;
  --accent: #4fffb0;
  --accent2: #7b61ff;
  --text: #e8eaf0;
  --muted: #6b7290;
  --card: #111421;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Mono', monospace;
  font-size: 14px;
  line-height: 1.7;
  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: 0;
  opacity: 0.5;
}

/* GRID BG */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
}

/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 60px;
  background: rgba(8, 9, 12, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: var(--accent);
  letter-spacing: 0.05em;
  text-decoration: none;
}

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

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

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

/* HERO */
#hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 140px 60px 80px;
  overflow: hidden;
}

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

.glow-1 {
  background: radial-gradient(circle, rgba(79,255,176,0.12) 0%, transparent 70%);
  top: -100px; left: -100px;
  animation: pulse 6s ease-in-out infinite alternate;
}

.glow-2 {
  background: radial-gradient(circle, rgba(123,97,255,0.10) 0%, transparent 70%);
  bottom: -100px; right: 0;
  animation: pulse 8s ease-in-out infinite alternate-reverse;
}

@keyframes pulse {
  from { transform: scale(1); opacity: 0.8; }
  to { transform: scale(1.15); opacity: 1; }
}

.hero-eyebrow {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  animation: fadeUp 0.8s ease both;
}

.hero-name {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(52px, 8vw, 110px);
  line-height: 0.92;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
  animation: fadeUp 0.8s ease 0.1s both;
}

.hero-name span {
  display: block;
  background: linear-gradient(135deg, var(--accent) 0%, #00d4ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title {
  font-size: 16px;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 48px;
  animation: fadeUp 0.8s ease 0.2s both;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeUp 0.8s ease 0.3s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 4px;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: #08090c;
  font-weight: 500;
}

.btn-primary:hover {
  background: #5dffc0;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(79,255,176,0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 80px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
  animation: fadeUp 0.8s ease 0.4s both;
}

.stat-num {
  font-family: 'Syne', sans-serif;
  font-size: 36px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 6px;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* SECTIONS */
section {
  position: relative;
  z-index: 1;
  padding: 100px 60px;
}

.section-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 60px;
}

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

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.skill-card {
  background: var(--card);
  padding: 32px;
  transition: background 0.2s;
}

.skill-card:hover { background: #161929; }

.skill-category {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 16px;
}

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

.tag {
  display: inline-block;
  padding: 5px 12px;
  background: rgba(79,255,176,0.06);
  border: 1px solid rgba(79,255,176,0.15);
  border-radius: 3px;
  font-size: 12px;
  color: var(--text);
}

.tag.alt {
  background: rgba(123,97,255,0.08);
  border-color: rgba(123,97,255,0.2);
}

/* PROJECTS */
.projects-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.project-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: start;
  transition: border-color 0.2s, transform 0.2s;
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.3s ease;
}

.project-card:hover { border-color: rgba(79,255,176,0.3); transform: translateX(4px); }
.project-card:hover::before { transform: scaleY(1); }

.project-year {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.1em;
  white-space: nowrap;
  padding-top: 4px;
}

.project-name {
  font-family: 'Syne', sans-serif;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.stack-tag {
  font-size: 11px;
  padding: 3px 9px;
  background: rgba(123,97,255,0.1);
  border: 1px solid rgba(123,97,255,0.2);
  border-radius: 2px;
  color: #a89fff;
  letter-spacing: 0.05em;
}

.project-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.project-bullets li {
  color: var(--muted);
  font-size: 13px;
  padding-left: 16px;
  position: relative;
}

.project-bullets li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ABOUT */
#about { background: var(--surface); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-text {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.9;
}

.about-text p + p { margin-top: 20px; }

.about-text strong { color: var(--text); }

.strengths-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.strength-item {
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 13px;
  color: var(--muted);
  transition: border-color 0.2s;
}

.strength-item:hover { border-color: rgba(79,255,176,0.25); }

.strength-item strong {
  display: block;
  color: var(--text);
  font-size: 13px;
  margin-bottom: 4px;
}

/* EDUCATION */
.edu-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 40px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  align-items: center;
  max-width: 800px;
}

.edu-year {
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  text-align: center;
  white-space: nowrap;
  padding: 12px 20px;
  border: 1px solid rgba(79,255,176,0.2);
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.edu-degree {
  font-family: 'Syne', sans-serif;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
}

.edu-school {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 14px;
}

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

/* CONTACT */
#contact { text-align: center; }

.contact-box {
  max-width: 600px;
  margin: 0 auto;
}

.contact-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 40px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.05em;
  transition: all 0.2s;
}

.contact-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.contact-icon {
  font-size: 16px;
}

/* FOOTER */
footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 32px 60px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.05em;
}

/* SCROLLBAR */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* ANIMATIONS ON SCROLL */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 768px) {
  nav { padding: 16px 24px; }
  .nav-links { display: none; }
  section, #hero { padding: 80px 24px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .project-card { grid-template-columns: 1fr; }
  .hero-stats { gap: 32px; flex-wrap: wrap; }
  .edu-card { grid-template-columns: 1fr; }
  footer { padding: 24px; }
}
