@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;0,900;1,700&family=IBM+Plex+Mono:wght@300;400;500&family=IBM+Plex+Sans:wght@300;400;500&display=swap');

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

:root {
  --bg: #080c14;
  --bg2: #0d1220;
  --surface: rgba(255,255,255,0.04);
  --surface-hover: rgba(255,255,255,0.08);
  --border: rgba(255,255,255,0.08);
  --border-bright: rgba(255,255,255,0.16);
  --text: #e8eaf0;
  --text-dim: rgba(232,234,240,0.45);
  --text-dimmer: rgba(232,234,240,0.25);
  --lime: #c8f135;
  --lime-dark: #8aad1a;
  --lime-glow: rgba(200,241,53,0.18);
  --mono: 'IBM Plex Mono', monospace;
  --sans: 'IBM Plex Sans', sans-serif;
  --serif: 'Playfair Display', serif;
  --glass: rgba(13,18,32,0.72);
  --radius: 2px;
}

html { scroll-behavior: smooth; }

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

/* ── Animated Background ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 20%, rgba(200,241,53,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(100,120,255,0.07) 0%, transparent 60%),
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: auto, auto, 72px 72px, 72px 72px;
  animation: bgPulse 8s ease-in-out infinite alternate;
}

@keyframes bgPulse {
  from { opacity: 1; }
  to   { opacity: 0.7; }
}

/* Floating orbs */
body::after {
  content: '';
  position: fixed;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,241,53,0.05) 0%, transparent 70%);
  top: -200px; right: -200px;
  pointer-events: none;
  z-index: 0;
  animation: orbFloat 12s ease-in-out infinite alternate;
}

@keyframes orbFloat {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(-60px, 80px) scale(1.15); }
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: 52px;
  display: flex;
  align-items: stretch;
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  background: rgba(8,12,20,0.82);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}

.nav-logo {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  padding: 0 28px;
  border-right: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--text);
}

.nav-logo .dot {
  width: 8px; height: 8px;
  background: var(--lime);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--lime-dark), 0 0 12px var(--lime);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 2px var(--lime-dark), 0 0 8px var(--lime); }
  50%       { transform: scale(1.5); box-shadow: 0 0 0 2px var(--lime-dark), 0 0 20px var(--lime); }
}

.nav-links { display: flex; align-items: stretch; margin-left: auto; }

.nav-links a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-dim);
  padding: 0 20px;
  border-left: 1px solid var(--border);
  display: flex;
  align-items: center;
  transition: all 0.25s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--lime);
  transform: scaleX(0);
  transition: transform 0.25s;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--text);
  background: var(--surface);
}

.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

.nav-cta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  background: transparent;
  color: var(--lime);
  font-weight: 500;
  padding: 0 24px;
  border-left: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s;
  box-shadow: inset 0 0 0 1px rgba(200,241,53,0.45);
  position: relative;
  overflow: hidden;
}

.nav-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #e03030;
  transform: translateY(100%);
  transition: transform 0.28s cubic-bezier(.23,1,.32,1);
  z-index: 0;
}

.nav-cta span { position: relative; z-index: 1; }

.nav-cta:hover {
  color: #fff;
  box-shadow: inset 0 0 0 1px #e03030, 0 0 20px rgba(224,48,48,0.4);
}

.nav-cta:hover::before { transform: translateY(0); }

/* ── HERO ── */
#hero {
  position: relative;
  z-index: 1;
  padding-top: 52px;
  min-height: 100vh;
  display: grid;
  grid-template-rows: 1fr auto;
  border-bottom: 1px solid var(--border);
}

.hero-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--border);
}

.hero-left {
  padding: 80px 60px 60px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-right {
  padding: 80px 60px 60px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero-index {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dimmer);
  margin-bottom: 40px;
}

.hero-name {
  font-family: var(--serif);
  font-size: clamp(72px, 10vw, 140px);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.03em;
  animation: fadeUp 1s 0.1s both cubic-bezier(.23,1,.32,1);
}

.hero-name em {
  font-style: italic;
  color: transparent;
  -webkit-text-stroke: 2px var(--lime);
  text-shadow: 0 0 40px var(--lime-glow);
}

.hero-status {
  margin-top: 44px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: fadeUp 1s 0.3s both cubic-bezier(.23,1,.32,1);
}

.status-pill {
  background: var(--lime);
  color: var(--bg);
  padding: 5px 12px;
  border-radius: 2px;
  font-weight: 500;
  box-shadow: 0 0 16px rgba(200,241,53,0.4);
}

.hero-tagline {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-dim);
  max-width: 380px;
  margin-bottom: 40px;
  animation: fadeUp 1s 0.4s both cubic-bezier(.23,1,.32,1);
}

.hero-big-stat {
  font-family: var(--serif);
  font-size: clamp(52px, 7vw, 96px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  animation: fadeUp 1s 0.25s both cubic-bezier(.23,1,.32,1);
  color: var(--lime);
}

.hero-big-stat span {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dimmer);
  margin-top: 10px;
}

.hero-bottom { display: grid; grid-template-columns: repeat(4, 1fr); }

.hbc {
  padding: 18px 28px;
  border-right: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  transition: background 0.25s;
}
.hbc:last-child { border-right: none; }
.hbc:hover { background: var(--surface); }
.hbc strong { display: block; font-size: 14px; font-weight: 500; color: var(--text); letter-spacing: 0; margin-bottom: 2px; }

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

/* ── MARQUEE ── */
.marquee-bar {
  position: relative;
  z-index: 1;
  border-bottom: 1px solid var(--border);
  background: rgba(200,241,53,0.04);
  backdrop-filter: blur(8px);
  overflow: hidden;
  height: 42px;
  display: flex;
  align-items: center;
}

.marquee-track {
  display: flex;
  white-space: nowrap;
  animation: marquee 24s linear infinite;
}

.marquee-track span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 0 28px;
  border-right: 1px solid var(--border);
}

.marquee-track span.hi { color: var(--lime); font-weight: 500; }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── SECTION SHARED ── */
.section-row {
  position: relative;
  z-index: 1;
  border-bottom: 1px solid var(--border);
}

.section-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 60px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  backdrop-filter: blur(4px);
}

.slab {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dimmer);
}

/* ── GLASS CARD mixin ── */
.glass {
  background: var(--surface);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid var(--border);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.glass:hover {
  border-color: var(--border-bright);
  box-shadow: 0 8px 40px rgba(200,241,53,0.06);
}

/* ── ABOUT ── */
#about .about-grid { display: grid; grid-template-columns: 1fr 1fr; }

.about-text-col {
  padding: 60px;
  border-right: 1px solid var(--border);
}

.about-heading {
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 50px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}

.about-heading em { font-style: italic; color: var(--lime); }

.about-body {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.about-data-col { padding: 60px; }

.data-table { width: 100%; border-collapse: collapse; }
.data-table tr { border-bottom: 1px solid var(--border); }
.data-table tr:last-child { border-bottom: none; }
.data-table td { padding: 13px 0; vertical-align: top; font-family: var(--mono); font-size: 12px; }
.data-table td:first-child { width: 38%; color: var(--text-dimmer); letter-spacing: 0.06em; text-transform: uppercase; padding-right: 16px; }
.data-table td:last-child { font-weight: 500; letter-spacing: 0.01em; }
.hl { color: var(--lime); font-weight: 500; }

/* ── PROJECTS ── */
.project-item {
  display: grid;
  grid-template-columns: 72px 1fr 260px;
  border-bottom: 1px solid var(--border);
  cursor: default;
  transition: background 0.3s, box-shadow 0.3s;
  position: relative;
}
.project-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(200,241,53,0.04) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}
.project-item:last-child { border-bottom: none; }
.project-item:hover { background: var(--surface-hover); box-shadow: inset 0 0 60px rgba(200,241,53,0.04); }
.project-item:hover::before { opacity: 1; }

.project-item:hover .proj-num,
.project-item:hover .proj-content *,
.project-item:hover .proj-side * { color: var(--text) !important; }
.project-item:hover .proj-tag { background: rgba(255,255,255,0.06) !important; border-color: var(--border-bright) !important; color: var(--text) !important; }
.project-item:hover .proj-arrow { background: var(--lime) !important; color: var(--bg) !important; border-color: var(--lime) !important; box-shadow: 0 0 20px var(--lime-glow); }

.proj-num {
  padding: 40px 0 40px 24px;
  border-right: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-dimmer);
  display: flex;
  align-items: flex-start;
  padding-top: 44px;
  transition: all 0.3s;
}

.proj-content { padding: 40px 48px; border-right: 1px solid var(--border); transition: all 0.3s; }
.proj-category { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dimmer); margin-bottom: 14px; }
.proj-title { font-family: var(--serif); font-size: clamp(20px, 2.5vw, 30px); font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; margin-bottom: 14px; }
.proj-desc { font-family: var(--sans); font-size: 13px; font-weight: 300; line-height: 1.7; color: var(--text-dim); max-width: 520px; margin-bottom: 20px; }
.proj-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.proj-tag { font-family: var(--mono); font-size: 10px; letter-spacing: 0.05em; border: 1px solid var(--border); padding: 4px 10px; transition: all 0.2s; color: var(--text-dim); }
.proj-tag:hover { background: var(--lime-glow); border-color: var(--lime); color: var(--lime); }

.proj-side { padding: 40px 32px; display: flex; flex-direction: column; justify-content: space-between; transition: all 0.3s; }
.proj-metrics { display: flex; flex-direction: column; gap: 24px; }
.proj-metric-val { font-family: var(--serif); font-size: 30px; font-weight: 900; line-height: 1; letter-spacing: -0.02em; color: var(--lime); }
.proj-metric-label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dimmer); margin-top: 4px; }
.proj-arrow { width: 38px; height: 38px; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 18px; align-self: flex-end; transition: all 0.25s; color: var(--text-dim); }

/* ── SKILLS ── */
#skills .skills-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; }

.skill-col { padding: 48px 52px; border-right: 1px solid var(--border); }
.skill-col:last-child { border-right: none; }
.skill-col-title { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dimmer); margin-bottom: 24px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }

.skill-entry { display: flex; align-items: baseline; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,0.04); font-family: var(--mono); font-size: 12px; transition: background 0.2s; }
.skill-entry:last-child { border-bottom: none; }
.skill-entry:hover { background: var(--surface); padding-left: 8px; padding-right: 8px; }

.skill-level { font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dimmer); }
.skill-level.core { background: var(--lime); color: var(--bg); padding: 2px 8px; font-weight: 500; box-shadow: 0 0 8px rgba(200,241,53,0.3); }

/* ── EDUCATION ── */
#education .edu-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; }

.edu-item {
  padding: 52px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
  transition: background 0.3s;
}
.edu-item:last-child { border-right: none; }
.edu-item:hover { background: var(--surface); }

.edu-num { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: var(--text-dimmer); margin-bottom: 28px; }
.edu-degree { font-family: var(--serif); font-size: 20px; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; margin-bottom: 10px; }
.edu-school { font-family: var(--sans); font-size: 13px; font-weight: 300; color: var(--text-dim); margin-bottom: 20px; line-height: 1.4; }
.edu-period { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; border: 1px solid var(--border); padding: 6px 12px; display: inline-block; color: var(--text-dim); }

/* ── CONTACT ── */
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; }
.contact-left { padding: 80px 60px; border-right: 1px solid var(--border); }
.contact-heading { font-family: var(--serif); font-size: clamp(44px, 6vw, 80px); font-weight: 900; line-height: 0.95; letter-spacing: -0.04em; margin-bottom: 32px; }
.contact-heading em { font-style: italic; color: transparent; -webkit-text-stroke: 2px var(--lime); text-shadow: 0 0 30px var(--lime-glow); }
.contact-sub { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; line-height: 1.8; color: var(--text-dim); max-width: 340px; }
.contact-right { padding: 80px 60px; }

.contact-link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}
.contact-link-row::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--lime-glow), transparent);
  transform: translateX(-100%);
  transition: transform 0.35s;
}
.contact-link-row:first-child { border-top: 1px solid var(--border); }
.contact-link-row:hover { padding-left: 16px; }
.contact-link-row:hover::before { transform: translateX(0); }
.contact-link-row:hover .clabel, .contact-link-row:hover .cval { color: var(--text); }

.clabel { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dimmer); margin-bottom: 3px; transition: all 0.2s; }
.cval { font-family: var(--mono); font-size: 14px; font-weight: 500; transition: all 0.2s; }
.carrow { font-size: 20px; color: var(--text-dimmer); transition: all 0.2s; }
.contact-link-row:hover .carrow { color: var(--lime); transform: translateX(6px); }

/* ── FOOTER ── */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(12px);
}
.fcell { padding: 22px 36px; border-right: 1px solid var(--border); font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: var(--text-dimmer); display: flex; align-items: center; }
.fcell:last-child { border-right: none; justify-content: flex-end; }
.fcell a { color: var(--lime); text-decoration: none; transition: opacity 0.2s; }
.fcell a:hover { opacity: 0.7; }

/* ── REVEAL ANIMATIONS ── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.75s cubic-bezier(.23,1,.32,1), transform 0.75s cubic-bezier(.23,1,.32,1); }
.reveal.v { opacity: 1; transform: none; }
.d1 { transition-delay: 0.1s; }
.d2 { transition-delay: 0.2s; }
.d3 { transition-delay: 0.3s; }

/* ── CURSOR GLOW ── */
.cursor-glow {
  position: fixed;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,241,53,0.07) 0%, transparent 70%);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s linear;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero-main { grid-template-columns: 1fr; }
  .hero-left { border-right: none; border-bottom: 1px solid var(--border); padding: 60px 28px 40px; }
  .hero-right { padding: 40px 28px 48px; }
  .hero-bottom { grid-template-columns: 1fr 1fr; }
  .hbc:nth-child(2) { border-right: none; }
  .hbc:nth-child(3), .hbc:nth-child(4) { border-top: 1px solid var(--border); }
  .hbc:nth-child(4) { border-right: none; }
  #about .about-grid, .contact-inner { grid-template-columns: 1fr; }
  .about-text-col, .contact-left { border-right: none; border-bottom: 1px solid var(--border); padding: 40px 28px; }
  .about-data-col, .contact-right { padding: 40px 28px; }
  .project-item { grid-template-columns: 1fr; }
  .proj-num { display: none; }
  .proj-content { border-right: none; border-bottom: 1px solid var(--border); padding: 32px 28px; }
  .proj-side { padding: 24px 28px; }
  #skills .skills-grid, #education .edu-grid { grid-template-columns: 1fr; }
  .skill-col, .edu-item { border-right: none; border-bottom: 1px solid var(--border); padding: 36px 28px; }
  .section-header-bar { padding: 14px 28px; }
  footer { grid-template-columns: 1fr; }
  .fcell { border-right: none; border-bottom: 1px solid var(--border); justify-content: flex-start !important; }
}
