:root {
  color-scheme: dark;
  --bg: #05070b;
  --panel: rgba(255, 255, 255, 0.06);
  --panel-strong: rgba(255, 255, 255, 0.12);
  --text: #f5f7fb;
  --muted: #c9cdd7;
  --accent: #5ce1e6;
  --accent-2: #9f7aea;
  --accent-3: #5a8dee;
  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --radius: 16px;
  --glow: 0 0 40px rgba(92, 225, 230, 0.35);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Manrope', 'Space Grotesk', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: radial-gradient(circle at 20% 20%, rgba(92, 225, 230, 0.08), transparent 30%), radial-gradient(circle at 80% 10%, rgba(159, 122, 234, 0.1), transparent 25%), var(--bg);
  color: var(--text);
  min-height: 100vh;
  padding: 32px 28px 80px;
  line-height: 1.6;
}

main {
  max-width: 1200px;
  margin: 0 auto;
}

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

.site-header {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  margin: 0 auto 32px;
  max-width: 1200px;
  background: rgba(5, 7, 11, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow);
  z-index: 10;
}

.logo {
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 14px;
}

nav {
  display: flex;
  gap: 16px;
  align-items: center;
}

nav a {
  padding: 10px 14px;
  border-radius: 999px;
  transition: all 0.2s ease;
  color: var(--muted);
}

nav a:hover {
  color: var(--text);
  background: var(--panel-strong);
}

.bg-shapes {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}

.blob {
  position: absolute;
  width: 540px;
  height: 540px;
  filter: blur(120px);
  opacity: 0.5;
}

.blob-one {
  background: #5ce1e6;
  top: -120px;
  left: -60px;
}

.blob-two {
  background: #9f7aea;
  bottom: -200px;
  right: -120px;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 140px 140px;
  mix-blend-mode: soft-light;
}

.bg-shapes::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 80%, rgba(90, 141, 238, 0.1), transparent 30%);
}

.hero {
  padding: 32px 0 24px;
}

.eyebrow {
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  font-size: 12px;
  margin: 0 0 12px;
}

h1 {
  font-family: 'Space Grotesk', 'Manrope', system-ui, sans-serif;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.1;
  margin: 0 0 16px;
}

h2 {
  font-size: clamp(28px, 4vw, 40px);
  margin: 0 0 10px;
}

h3 {
  margin: 0 0 10px;
}

.lede {
  max-width: 720px;
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 600;
  border: 1px solid var(--border);
  color: var(--text);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.cta.solid {
  background: linear-gradient(120deg, #5ce1e6, #9f7aea);
  color: #040507;
  box-shadow: var(--glow);
  border: none;
}

.cta.outline {
  background: transparent;
}

.cta.ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: rgba(255, 255, 255, 0.4);
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  padding: 16px;
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
}

.meta-label {
  color: var(--muted);
  font-size: 12px;
  display: block;
}

.meta-value {
  font-weight: 600;
}

.section {
  padding: 40px 0 12px;
}

.section-heading {
  max-width: 720px;
}

.section-heading.inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.description {
  margin: 0;
  color: var(--muted);
}

.projects {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 24px;
}

.project-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow);
}

.project-meta p {
  margin: 0 0 10px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tags span,
.pill {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-weight: 600;
  font-size: 12px;
  border: 1px solid var(--border);
}

.pill.subtle {
  background: rgba(255, 255, 255, 0.04);
}

.project-visual {
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px;
  background: linear-gradient(140deg, rgba(92, 225, 230, 0.1), rgba(159, 122, 234, 0.08));
  position: relative;
  overflow: hidden;
  min-height: 220px;
}

.gradient-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.visual-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.dot.red { background: #ff6b6b; }
.dot.amber { background: #f7b731; }
.dot.green { background: #26de81; }

.window-title {
  color: var(--muted);
  font-size: 12px;
}

.visual-body {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 12px;
}

.chart {
  height: 120px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  position: relative;
  overflow: hidden;
}

.chart::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(92, 225, 230, 0.4), rgba(159, 122, 234, 0.4));
  mix-blend-mode: screen;
  opacity: 0.4;
}

.chart.small { height: 80px; }
.chart.tiny { height: 60px; }

.phone-frame {
  background: linear-gradient(160deg, rgba(92, 225, 230, 0.12), rgba(159, 122, 234, 0.12));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  padding: 18px;
  display: grid;
  place-items: center;
}

.phone-notch {
  width: 80px;
  height: 10px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 0 0 10px 10px;
  margin-bottom: 12px;
}

.phone-screen {
  width: 100%;
  aspect-ratio: 10 / 16;
  border-radius: 22px;
  background: #0c111a;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
}

.phone-screen::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 20%, rgba(92, 225, 230, 0.25), transparent 35%);
}

.pill.secondary {
  background: rgba(92, 225, 230, 0.12);
  border-color: rgba(92, 225, 230, 0.6);
}

.wave {
  height: 120px;
  border-radius: 12px;
  background: linear-gradient(120deg, rgba(92, 225, 230, 0.5), rgba(159, 122, 234, 0.45));
  box-shadow: 0 10px 40px rgba(92, 225, 230, 0.3);
  filter: blur(1px);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.split-pane {
  border-radius: 12px;
  padding: 12px;
  display: grid;
  gap: 12px;
  align-content: start;
}

.split-pane.light {
  background: rgba(255, 255, 255, 0.08);
}

.split-pane.dark {
  background: rgba(7, 10, 16, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.pane-label {
  color: var(--muted);
  margin: 0;
}

.pane-card {
  height: 100px;
  border-radius: 10px;
  background: linear-gradient(120deg, rgba(92, 225, 230, 0.35), rgba(159, 122, 234, 0.35));
}

.pane-card.narrow {
  height: 60px;
  background: rgba(255, 255, 255, 0.1);
}

.pane-card.wide {
  height: 180px;
  background: linear-gradient(160deg, rgba(90, 141, 238, 0.35), rgba(92, 225, 230, 0.4));
}

.about {
  padding-top: 24px;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.about-card {
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: var(--shadow);
}

.skills {
  padding-top: 32px;
}

.skill-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 24px;
}

.timeline {
  display: grid;
  gap: 12px;
}

.timeline-item {
  display: grid;
  gap: 6px;
  grid-template-columns: 120px 1fr;
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.contact {
  padding-top: 32px;
}

.contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--border);
  background: linear-gradient(120deg, rgba(92, 225, 230, 0.16), rgba(159, 122, 234, 0.16));
  box-shadow: var(--shadow);
}

.contact-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.site-footer {
  max-width: 1200px;
  margin: 40px auto 0;
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 16px;
}

@media (max-width: 900px) {
  .site-header {
    position: sticky;
    top: 10px;
    flex-wrap: wrap;
  }

  nav {
    width: 100%;
    justify-content: center;
  }

  .contact-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-heading.inline {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  body {
    padding: 20px 18px 60px;
  }

  .site-header {
    padding: 12px 16px;
  }

  nav {
    flex-wrap: wrap;
  }

  .hero-actions {
    flex-wrap: wrap;
  }

  .visual-body {
    grid-template-columns: 1fr;
  }

  .split {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
}

/* Subtle motion */
.project-card,
.about-card,
.contact-card,
.site-header {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-card:hover,
.about-card:hover,
.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}
