:root {
  --bg: #0a0e17;
  --bg-alt: #0f1420;
  --surface: #131a29;
  --surface-hover: #172033;
  --border: #212b3d;
  --text: #e7ecf5;
  --text-dim: #97a3b9;
  --text-faint: #5c6883;
  --accent: #64ffda;
  --accent-dim: #4fd1b8;
  --accent-soft: rgba(100, 255, 218, 0.1);
  --violet: #a78bfa;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-head: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --max: 880px;
}

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

html { scroll-behavior: smooth; }

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

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

.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(600px circle at 15% 10%, rgba(100, 255, 218, 0.07), transparent 45%),
    radial-gradient(500px circle at 85% 30%, rgba(167, 139, 250, 0.06), transparent 45%),
    var(--bg);
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
strong { color: var(--text); font-weight: 600; }

/* ---------- NAV ---------- */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(10, 14, 23, 0.75);
  border-bottom: 1px solid var(--border);
}

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

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 0.92rem;
  color: var(--text-dim);
  font-weight: 500;
  position: relative;
  transition: color 0.2s ease;
}
.nav-link:hover { color: var(--text); }
.nav-link.active:not(.nav-cta) { color: var(--accent); }

.nav-link.nav-cta {
  color: var(--accent);
  border: 1px solid var(--accent-dim);
  padding: 7px 16px;
  border-radius: 8px;
  background: var(--accent-soft);
}
.nav-link.nav-cta:hover {
  background: rgba(100, 255, 218, 0.18);
  color: var(--accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ---------- HERO ---------- */
.hero {
  min-height: calc(100vh - 68px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 40px;
  padding-bottom: 60px;
}

.eyebrow {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.hero-name {
  font-family: var(--font-head);
  font-size: clamp(2.6rem, 7vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  background: linear-gradient(180deg, #ffffff 20%, #b9c3d6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-role {
  font-family: var(--font-mono);
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  color: var(--violet);
  margin-top: 12px;
  font-weight: 500;
  min-height: 1.6em;
}
.cursor {
  color: var(--accent);
  animation: blink 1s step-start infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-sub {
  margin-top: 22px;
  max-width: 560px;
  color: var(--text-dim);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--accent);
  color: #05261f;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -8px rgba(100, 255, 218, 0.5);
}
.btn-ghost {
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--accent-dim);
  color: var(--accent);
  transform: translateY(-2px);
}

.scroll-hint {
  margin-top: 60px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-faint);
  font-size: 0.8rem;
  font-family: var(--font-mono);
}
.scroll-hint span {
  width: 1px;
  height: 28px;
  background: linear-gradient(var(--accent), transparent);
  animation: scrollMove 1.8s ease-in-out infinite;
}
@keyframes scrollMove {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(10px); opacity: 0; }
}

/* ---------- SECTIONS ---------- */
.section {
  padding: 110px 24px;
  border-top: 1px solid var(--border);
}

.section-tag {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 40px;
}

.about-text {
  color: var(--text-dim);
  max-width: 680px;
  font-size: 1.02rem;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 40px;
}

.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.about-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-dim);
}
.about-card h3 { font-size: 1rem; margin-bottom: 8px; }
.about-card p { color: var(--text-dim); font-size: 0.92rem; }

/* ---------- SKILLS ---------- */
.skills-block { margin-bottom: 32px; }
.skills-block:last-child { margin-bottom: 0; }

.skills-heading {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  font-size: 0.88rem;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.tag:hover {
  transform: translateY(-2px);
  border-color: var(--accent-dim);
  background: var(--surface-hover);
}
.tag-alt {
  border-color: rgba(167, 139, 250, 0.35);
}
.tag-alt:hover { border-color: var(--violet); }
.tag-accent {
  background: var(--accent-soft);
  border-color: var(--accent-dim);
  color: var(--accent);
}
.tag-mini {
  font-size: 0.78rem;
  padding: 5px 12px;
  color: var(--text-dim);
}
.tag-row.small { gap: 8px; margin: 14px 0; }

/* ---------- TIMELINE (Education) ---------- */
.timeline {
  position: relative;
  padding-left: 28px;
  border-left: 1px solid var(--border);
}

.timeline-item {
  position: relative;
  padding-bottom: 36px;
}
.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -33px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.timeline-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 22px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.timeline-content:hover {
  border-color: var(--accent-dim);
  transform: translateX(4px);
}

.timeline-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.timeline-head h3 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 600;
}

.timeline-sub {
  color: var(--text-dim);
  font-size: 0.92rem;
  margin-top: 6px;
}

.timeline-score {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.88rem;
  margin-top: 8px;
}

.badge {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(167, 139, 250, 0.12);
  color: var(--violet);
  border: 1px solid rgba(167, 139, 250, 0.3);
  white-space: nowrap;
}
.badge-outline {
  background: transparent;
  color: var(--text-dim);
  border-color: var(--border);
}

/* ---------- EXPERIENCE ---------- */
.exp-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px 28px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.exp-card:hover {
  border-color: var(--accent-dim);
  transform: translateY(-3px);
}

.exp-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.exp-head h3 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 600;
}

.exp-company {
  color: var(--accent);
  font-size: 0.95rem;
  margin-top: 4px;
}

.exp-desc {
  color: var(--text-dim);
  margin-top: 14px;
  font-size: 0.95rem;
}

/* ---------- PROJECTS ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.project-card:hover {
  border-color: var(--accent-dim);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.5);
}

.project-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.project-top h3 {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 600;
}

.project-role {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  margin-top: 6px;
}

.project-desc {
  color: var(--text-dim);
  margin-top: 14px;
  font-size: 0.95rem;
}

/* ---------- CONTACT ---------- */
.contact-section { text-align: left; }
.contact-actions {
  display: flex;
  gap: 16px;
  margin-top: 30px;
  flex-wrap: wrap;
}

/* ---------- FOOTER ---------- */
.footer {
  text-align: center;
  padding: 32px 24px 50px;
  color: var(--text-faint);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
}

/* ---------- SCROLL REVEAL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 760px) {
  .about-grid { grid-template-columns: 1fr; }

  .nav-toggle { display: flex; z-index: 110; }

  .nav-links {
    position: fixed;
    inset: 68px 0 0 0;
    background: var(--bg-alt);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 32px 24px;
    gap: 22px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }
  .nav-links.open { transform: translateX(0); }

  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .section { padding: 80px 20px; }
}
