:root {
  --bg: #0c0f14;
  --bg-card: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.08);
  --text: #e8eaed;
  --muted: #9aa3b2;
  --accent: #5eead4;
  --accent-2: #818cf8;
  --gradient: linear-gradient(135deg, #5eead4 0%, #818cf8 50%, #f472b6 100%);
  --font: "DM Sans", system-ui, sans-serif;
  --mono: "JetBrains Mono", monospace;
  --header-h: 4rem;
}

[data-theme="light"] {
  --bg: #f4f6fa;
  --bg-card: rgba(255, 255, 255, 0.85);
  --border: rgba(15, 23, 42, 0.1);
  --text: #0f172a;
  --muted: #64748b;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black, transparent);
  pointer-events: none;
  z-index: 0;
}

.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}
.orb-a {
  width: 420px;
  height: 420px;
  background: #5eead4;
  top: -120px;
  right: -80px;
  animation: float 12s ease-in-out infinite;
}
.orb-b {
  width: 360px;
  height: 360px;
  background: #818cf8;
  bottom: 10%;
  left: -100px;
  animation: float 14s ease-in-out infinite reverse;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(24px, 20px);
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  height: var(--header-h);
  backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.logo-dot {
  color: var(--accent);
}

.nav {
  display: flex;
  gap: 1.5rem;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav a:hover {
  color: var(--accent);
}

.theme-toggle {
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 1.1rem;
}

main {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.hero {
  padding: 3rem 0 4rem;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
  font-weight: 700;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-role {
  font-size: 1.25rem;
  color: var(--muted);
  min-height: 1.6em;
  margin: 0 0 1.25rem;
  font-family: var(--mono);
}

.cursor {
  animation: blink 1s step-end infinite;
  color: var(--accent);
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}

.hero-lead {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 36rem;
  margin: 0 0 2rem;
}
.hero-lead strong {
  color: var(--text);
}

.hero-stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.stat {
  display: flex;
  flex-direction: column;
}
.stat-num {
  font-size: 2rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-suffix {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-left: -0.25rem;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn-primary {
  background: var(--gradient);
  color: #0c0f14;
  box-shadow: 0 8px 32px rgba(94, 234, 212, 0.25);
}
.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--bg-card);
}

.section {
  padding: 3rem 0;
  scroll-margin-top: var(--header-h);
}
.section-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin: 0 0 1.25rem;
  font-family: var(--mono);
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem 1.75rem;
  backdrop-filter: blur(8px);
}
.card p {
  margin: 0 0 1rem;
}
.card p:last-child {
  margin-bottom: 0;
}
.card.compact h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}
.card.compact p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.skill-groups {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.skill-group h3 {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.chip {
  font-size: 0.85rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: border-color 0.2s, transform 0.2s;
}
.chip:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.timeline-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem 1.75rem;
  border-left: 3px solid var(--accent);
}
.timeline-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
  font-family: var(--mono);
}
.badge {
  background: rgba(94, 234, 212, 0.15);
  color: var(--accent);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
}
.timeline-item h3 {
  margin: 0 0 0.25rem;
  font-size: 1.15rem;
}
.company {
  margin: 0 0 1rem;
  color: var(--accent-2);
  font-weight: 500;
}
.timeline-item ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
}
.timeline-item li {
  margin-bottom: 0.4rem;
}

.contact-card {
  text-align: center;
}
.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 1.25rem 0 1.5rem;
}
.contact-links a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}
.contact-links a:hover {
  text-decoration: underline;
}
.contact-links span {
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem;
  font-size: 0.8rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 640px) {
  .nav {
    display: none;
  }
  .hero-stats {
    gap: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .orb {
    animation: none;
  }
}
