:root {
  --bg: #f8f8fb;
  --bg-alt: #ffffff;
  --surface: #ffffff;
  --border: #e3e3ec;
  --text: #17171f;
  --text-dim: #5c5c72;
  --accent-1: #6c3ff0;
  --accent-2: #0091ab;
  --accent-3: #d63b83;
  --gradient: linear-gradient(135deg, var(--accent-1) 0%, var(--accent-2) 100%);
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* { 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;
}

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

img { max-width: 100%; display: block; }

.bg-glow {
  position: fixed;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 1200px;
  height: 1200px;
  background: radial-gradient(circle, rgba(108,63,240,0.12) 0%, rgba(0,145,171,0.06) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(40px);
}

/* NAV */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(248, 248, 251, 0.75);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
#navbar.scrolled { border-bottom-color: var(--border); }

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--gradient);
  color: #08080d !important;
  font-weight: 600 !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 760px;
  text-align: center;
}

.eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 20px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-dim);
  max-width: 620px;
  margin: 0 auto 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-primary {
  background: var(--gradient);
  color: #08080d;
  box-shadow: 0 8px 24px rgba(124, 92, 255, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(124, 92, 255, 0.5); }
.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
  background: rgba(255,255,255,0.02);
}
.btn-ghost:hover { border-color: var(--accent-2); color: var(--accent-2); transform: translateY(-2px); }

.hero-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-links a {
  font-size: 0.9rem;
  color: var(--text-dim);
  font-weight: 500;
  transition: color 0.2s ease;
}
.hero-links a:hover { color: var(--accent-2); }

/* SECTIONS */
.section {
  position: relative;
  z-index: 1;
  padding: 110px 24px;
}
.section.alt { background: var(--bg-alt); }

.section-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.section-tag {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-1);
  margin-bottom: 14px;
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
  max-width: 700px;
}

.lead {
  font-size: 1.1rem;
  color: var(--text-dim);
  max-width: 720px;
  margin-bottom: 32px;
}
.lead strong { color: var(--text); font-weight: 600; }

.note {
  font-style: italic;
  color: var(--text-dim);
  border-left: 3px solid var(--accent-1);
  padding-left: 18px;
  max-width: 640px;
  margin-bottom: 32px;
}
.note strong { color: var(--text); font-weight: 600; font-style: normal; }

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.skill-pill {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.skill-pill:hover {
  border-color: var(--accent-2);
  color: var(--text);
  transform: translateY(-2px);
}

/* CARDS */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 26px;
  box-shadow: 0 1px 3px rgba(23, 23, 31, 0.06);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-1);
  box-shadow: 0 12px 28px rgba(23, 23, 31, 0.1);
}
.card-icon { font-size: 1.8rem; margin-bottom: 16px; }
.card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 10px;
}
.card p { color: var(--text-dim); font-size: 0.95rem; }

.edu-grid { grid-template-columns: repeat(2, 1fr); }
.edu-date {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-2);
  margin-bottom: 10px;
}

/* TIMELINE */
.timeline {
  position: relative;
  padding-left: 32px;
  border-left: 2px solid var(--border);
}
.timeline-item {
  position: relative;
  padding-bottom: 44px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: -39px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gradient);
  box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px var(--border);
}
.timeline-date {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-2);
  letter-spacing: 0.02em;
}
.timeline-content h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 6px 0 4px;
}
.timeline-org {
  color: var(--text-dim);
  font-size: 0.92rem;
}
.timeline-desc {
  color: var(--text-dim);
  font-size: 0.92rem;
  margin-top: 10px;
  max-width: 600px;
}

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

/* FOOTER */
footer {
  text-align: center;
  padding: 40px 24px;
  color: var(--text-dim);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

/* REVEAL ANIMATION */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: reveal 0.8s ease forwards;
}
.hero-content .eyebrow.reveal { animation-delay: 0.05s; }
.hero-content h1.reveal { animation-delay: 0.15s; }
.hero-content .hero-sub.reveal { animation-delay: 0.25s; }
.hero-content .hero-actions.reveal { animation-delay: 0.35s; }
.hero-content .hero-links.reveal { animation-delay: 0.45s; }

@keyframes reveal {
  to { opacity: 1; transform: translateY(0); }
}

.fade-in-section {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

@media (max-width: 700px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 62px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav-links.open { max-height: 320px; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 16px 24px;
    width: 100%;
    border-bottom: 1px solid var(--border);
  }
  .nav-cta { border-radius: 0; text-align: center; }
}
