:root {
  --bg: #07070e;
  --bg-card: #0d0d1a;
  --text: #e4e4ec;
  --text-muted: #8888a0;
  --accent: #6c5ce7;
  --accent-glow: #a78bfa;
  --border: rgba(255,255,255,0.06);
  --radius: 12px;
  --radius-lg: 20px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Geist', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Timeline Navigation ── */
#timeline {
  position: fixed;
  left: 40px;
  top: 0;
  bottom: 0;
  width: 32px;
  z-index: 100;
  pointer-events: none;
}
.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(108,92,231,0.12);
  transform: translateX(-0.5px);
}
.timeline-dot {
  position: absolute;
  left: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(108,92,231,0.2);
  border: 2px solid rgba(108,92,231,0.25);
  transform: translate(-50%, -50%);
  transition: all 0.4s ease;
  pointer-events: auto;
  cursor: pointer;
}
.timeline-dot:hover {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 16px rgba(108,92,231,0.5);
}
.timeline-dot.active {
  background: var(--accent);
  border-color: var(--accent-glow);
  box-shadow: 0 0 20px rgba(108,92,231,0.6);
  width: 14px;
  height: 14px;
}

@media (max-width: 768px) {
  #timeline { left: 16px; }
}

/* ── Progress Bar ── */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-glow));
  z-index: 1000;
  width: 0%;
  transition: width 0.1s linear;
}

/* ── Starfield ── */
#starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.7;
}

/* ── Layout ── */
section {
  position: relative;
  z-index: 1;
  padding: 120px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.container {
  max-width: 900px;
  margin: 0 auto;
}

/* ── Section Labels ── */
.section-label {
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.section-label.visible { opacity: 1; transform: translateY(0); }

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 60px;
}
.hero-content { max-width: 700px; }

.hero-greeting {
  font-family: 'Geist Mono', monospace;
  font-size: 14px;
  color: var(--accent);
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s 0.1s forwards;
}

.hero h1 {
  font-size: clamp(42px, 7vw, 80px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s 0.2s forwards;
}
.hero h1 .accent {
  background: linear-gradient(135deg, var(--accent), #a78bfa, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(16px, 2.5vw, 20px);
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 40px;
  font-weight: 400;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s 0.35s forwards;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s 0.5s forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 60px;
  font-family: 'Geist', sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 30px rgba(108,92,231,0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 45px rgba(108,92,231,0.5);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.15);
}

.hero-scroll-hint {
  position: fixed;
  right: 40px;
  bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 100;
  pointer-events: none;
}
.hero-scroll-hint span {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-transform: uppercase;
  order: 1;
}
.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to top, var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
  order: 0;
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.3); }
}

/* ── Scroll Animations ── */
.anim-up {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.anim-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.anim-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.anim-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* ── Section Headers ── */
.section-header {
  margin-bottom: 64px;
}
.section-header h2 {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 12px;
}
.section-header p {
  color: var(--text-muted);
  font-size: 17px;
  max-width: 500px;
}

/* ── Stack Grid ── */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.stack-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: default;
}
.stack-item:hover {
  border-color: rgba(108,92,231,0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(108,92,231,0.1);
}
.stack-icon {
  font-size: 32px;
  margin-bottom: 10px;
}
.stack-name {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
}
.stack-level {
  font-size: 11px;
  color: var(--text-muted);
  font-family: 'Geist Mono', monospace;
}

/* ── Experience ── */
.exp-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.exp-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 32px;
  align-items: start;
  transition: all 0.3s ease;
}
.exp-card:hover {
  border-color: rgba(108,92,231,0.2);
  box-shadow: 0 8px 32px rgba(108,92,231,0.06);
}
.exp-meta .exp-period {
  font-family: 'Geist Mono', monospace;
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 6px;
  font-weight: 500;
}
.exp-meta .exp-company {
  font-weight: 700;
  font-size: 17px;
}
.exp-meta .exp-role {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}
.exp-detail h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}
.exp-detail p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
}
.exp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}
.exp-tag {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(108,92,231,0.1);
  color: var(--accent-glow);
  border: 1px solid rgba(108,92,231,0.15);
}

/* ── Client Cards ── */
.client-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all 0.3s ease;
}
.client-card:hover {
  border-color: rgba(108,92,231,0.25);
  transform: translateY(-2px);
}
.client-logo {
  font-size: 28px;
  margin-bottom: 10px;
}
.client-name {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 6px;
}
.client-desc {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
}

/* ── Offer Cards ── */
.offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.offer-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: all 0.3s ease;
}
.offer-card:hover {
  border-color: rgba(108,92,231,0.3);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(108,92,231,0.08);
}
.offer-icon {
  font-size: 36px;
  margin-bottom: 16px;
}
.offer-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}
.offer-card p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
}

/* ── Contact ── */
.contact-section {
  text-align: center;
  padding-bottom: 160px;
}
.contact-section .section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.contact-section .section-header p {
  text-align: center;
  max-width: 460px;
}
.contact-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 32px;
}
.contact-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 60px;
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 15px;
  transition: all 0.3s ease;
}
.contact-link:hover {
  border-color: var(--accent);
  box-shadow: 0 0 24px rgba(108,92,231,0.2);
  transform: translateY(-2px);
}
.contact-link .icon { font-size: 20px; }

/* ── Footer ── */
footer {
  text-align: center;
  padding: 40px 24px;
  color: var(--text-muted);
  font-size: 13px;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

/* ── Glow Orbs ── */
.glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.08;
}
.glow-orb-1 {
  width: 600px; height: 600px;
  background: var(--accent);
  top: -200px; right: -200px;
}
.glow-orb-2 {
  width: 500px; height: 500px;
  background: #818cf8;
  bottom: -200px; left: -200px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  section { padding: 80px 20px; }
  .exp-card {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 24px;
  }
  .stack-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 8px;
  }
  .hero h1 { font-size: 38px; }
  .hero-scroll-hint { right: 16px; bottom: 24px; }
  .hero-scroll-hint span { font-size: 9px; }
  .scroll-line { height: 40px; }
  .client-card { padding: 18px; }
  .clients-grid [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
  .offer-grid {
    grid-template-columns: 1fr;
  }
  .offer-card { padding: 28px 22px; }
  .contact-links { flex-direction: column; align-items: center; }
  .contact-link { width: 100%; max-width: 320px; justify-content: center; }
  .container { padding: 0 4px; }
  .section-header h2 { font-size: 26px; }
  .exp-tags { gap: 4px; }
  .exp-tag { font-size: 10px; padding: 3px 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  #starfield { display: none; }
}
