:root {
  --bg: #0b0d14;
  --bg-elevated: #12151f;
  --border: rgba(255,255,255,0.08);
  --text: #e9ebf3;
  --text-dim: #9298ab;
  --text-faint: #656c7e;
  --accent: #7c5cff;
  --accent-2: #46e0c1;
  --accent-grad: linear-gradient(135deg, #7c5cff, #46e0c1);
  --radius: 16px;
  --max-width: 1100px;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-head: 'Space Grotesk', var(--font-body);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(600px 400px at 15% 0%, rgba(124,92,255,0.16), transparent 60%),
    radial-gradient(500px 350px at 90% 15%, rgba(70,224,193,0.10), transparent 60%);
  pointer-events: none;
}

a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-family: var(--font-head); font-weight: 600; margin: 0; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11,13,20,0.7);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
}
.logo span { color: var(--accent); }

.nav {
  display: flex;
  gap: 32px;
}
.nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
  transition: color .2s ease;
}
.nav a:hover { color: var(--text); }

.nav-cta { display: inline-flex; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
  transition: transform .2s ease, opacity .2s ease, background .2s ease;
  cursor: pointer;
}
.btn-small { padding: 9px 18px; }
.btn-primary {
  background: var(--accent-grad);
  color: #08090d;
}
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost {
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255,255,255,0.04); }

/* Hero */
.hero {
  padding: 140px 24px 100px;
  text-align: center;
  max-width: 780px;
}
.eyebrow {
  color: var(--accent-2);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 16px;
}
.hero h1 {
  font-size: clamp(40px, 7vw, 68px);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 14px;
}
.hero-role {
  font-size: 19px;
  color: var(--text-dim);
  margin: 0 0 18px;
}
.hero-desc {
  font-size: 16px;
  color: var(--text-dim);
  max-width: 560px;
  margin: 0 auto 34px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Sections */
.section { padding: 90px 24px; }
.section-head { margin-bottom: 44px; }
.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.section-head h2 {
  font-size: clamp(26px, 4vw, 34px);
  letter-spacing: -0.02em;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: start;
}
.about-text {
  color: var(--text-dim);
  font-size: 16px;
  margin: 0;
}
.about-facts {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.fact {
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-elevated);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.fact-num { font-family: var(--font-head); font-weight: 600; font-size: 18px; }
.fact-label { color: var(--text-faint); font-size: 13px; }

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.skill-card {
  padding: 26px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  transition: border-color .2s ease, transform .2s ease;
}
.skill-card:hover { border-color: rgba(124,92,255,0.4); transform: translateY(-3px); }
.skill-card h3 { font-size: 16px; margin-bottom: 8px; }
.skill-card p { color: var(--text-dim); font-size: 14px; margin: 0; }

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.project-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  padding: 22px;
  transition: border-color .2s ease, transform .2s ease;
}
.project-card:hover { border-color: rgba(70,224,193,0.4); transform: translateY(-3px); }
.project-thumb {
  height: 130px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(124,92,255,0.18), rgba(70,224,193,0.14));
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
}
.project-thumb::after {
  content: attr(data-index);
  position: absolute;
  right: 14px;
  bottom: 10px;
  font-family: var(--font-head);
  font-size: 34px;
  font-weight: 700;
  color: rgba(255,255,255,0.14);
}
.project-card h3 { font-size: 17px; margin-bottom: 8px; }
.project-card p { color: var(--text-dim); font-size: 14px; margin: 0 0 14px; }
.project-link { font-size: 13px; font-weight: 600; color: var(--accent-2); }

/* Contact */
.contact-card {
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 56px;
  background: var(--bg-elevated);
  text-align: center;
}
.contact-card .section-head { margin-bottom: 14px; }
.contact-desc {
  color: var(--text-dim);
  max-width: 460px;
  margin: 0 auto 36px;
}
.contact-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.contact-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.contact-link:hover {
  border-color: rgba(124,92,255,0.5);
  transform: translateY(-2px);
  background: rgba(124,92,255,0.06);
}
.contact-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  font-weight: 600;
}
.contact-value { font-size: 14px; font-weight: 600; word-break: break-word; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 60px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: var(--text-faint);
}
.footer-inner a { color: var(--text-faint); }
.footer-inner a:hover { color: var(--text); }

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: 1fr; }
  .contact-links { grid-template-columns: repeat(2, 1fr); }
  .contact-card { padding: 36px 24px; }
}

@media (max-width: 700px) {
  .nav, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .site-header.nav-open .nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    padding: 20px 24px;
    gap: 18px;
  }
  .hero { padding: 100px 24px 70px; }
  .skills-grid { grid-template-columns: 1fr; }
}
