:root {
  --bg: #0c0f14;
  --bg-alt: #12171f;
  --surface: #1a2130;
  --border: #2a3548;
  --text: #e8ecf4;
  --text-muted: #94a3b8;
  --accent: #3b9eff;
  --accent-dim: #2563a8;
  --accent-glow: rgba(59, 158, 255, 0.15);
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --font-logo: "Syne", system-ui, sans-serif;
  --radius: 12px;
  --container: min(1080px, 100% - 2rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 15, 20, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text);
}

.logo-mark {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--accent);
}

.logo-text {
  font-family: var(--font-logo);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.nav {
  display: none;
  gap: 1.75rem;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--accent);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin-inline: auto;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-mobile {
  display: flex;
  flex-direction: column;
  padding: 0 1rem 1rem;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.nav-mobile[hidden] {
  display: none;
}

.nav-mobile a {
  padding: 0.75rem 0;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}

.nav-mobile a:last-child {
  border-bottom: none;
}

@media (min-width: 768px) {
  .nav {
    display: flex;
  }

  .nav-toggle,
  .nav-mobile {
    display: none !important;
  }
}

/* Hero */
.hero {
  position: relative;
  padding: 20rem 0 20rem;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero-glow {
  position: absolute;
  top: -30%;
  right: -5%;
  width: 55%;
  max-width: 520px;
  aspect-ratio: 1;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
  animation: glow-drift 8s ease-in-out infinite alternate;
}

.hero-glow-alt {
  top: auto;
  bottom: -40%;
  left: -15%;
  right: auto;
  width: 45%;
  max-width: 400px;
  animation-delay: -4s;
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 2.75rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4rem;
  }
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.hero-eyebrow {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 5.5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.hero-accent {
  color: var(--accent);
}

.hero-lead {
  margin: 0;
  color: var(--text-muted);
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  line-height: 1.7;
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 480px) {
  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

.hero-panel {
  padding: 1.5rem 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.hero-panel-title {
  margin: 0 0 1.25rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.hero-checklist {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.hero-checklist li {
  position: relative;
  padding-left: 1.35rem;
  font-size: 0.95rem;
  color: var(--text);
}

.hero-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}

@media (max-width: 899px) {
  .hero-content {
    text-align: center;
  }

  .hero-lead {
    margin-inline: auto;
  }

  .hero-actions {
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }
}

@media (min-width: 900px) {
  .hero-actions .btn {
    min-width: 11rem;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: #0c0f14;
}

.btn-primary:hover {
  background: #5cb0ff;
  box-shadow: 0 4px 20px rgba(59, 158, 255, 0.35);
  transform: translateY(-1px);
}

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--border);
}

.section-title {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
}

.section-intro {
  margin: 0 auto 2.5rem;
  color: var(--text-muted);
  max-width: 36rem;
  text-align: center;
}

/* Cards */
.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.card:hover {
  border-color: var(--accent-dim);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

.card-icon {
  display: block;
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
}

.card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Tech */
.tech-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tech-list li {
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  transition: border-color 0.2s, transform 0.2s;
}

.tech-list li:hover {
  border-color: var(--accent-dim);
  transform: translateX(4px);
}

.tech-list code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  color: var(--accent);
  background: rgba(59, 158, 255, 0.1);
  padding: 0.15em 0.4em;
  border-radius: 4px;
}

/* Profile */
.profile-grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 768px) {
  .profile-grid {
    grid-template-columns: 1fr minmax(220px, 280px);
    gap: 2.5rem;
  }
}

.profile-main p {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  text-align: justify;
}

.profile-main p strong {
  color: var(--text);
  font-weight: 600;
}

.profile-quote {
  margin: 0.5rem 0 0;
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
}

.profile-quote p {
  margin: 0;
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.55;
  color: var(--text);
}

.profile-details {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.profile-detail {
  display: grid;
  gap: 0.2rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.profile-detail:last-child {
  border-bottom: none;
}

.profile-detail dt {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.profile-detail dd {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text);
}

/* Contact */
.contact-grid {
  display: grid;
  gap: 2rem;
  max-width: 52rem;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
  }
}

.contact-intro {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s, background 0.2s;
}

a.contact-item:hover {
  border-color: var(--accent);
  background: rgba(59, 158, 255, 0.06);
}

.contact-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.contact-note {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.contact-note code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  color: var(--accent);
}

/* Footer */
.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}

.site-footer p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
}

.footer-location {
  margin-top: 0.5rem !important;
  font-size: 0.85rem !important;
}

/* Animations */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glow-drift {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(-3%, 5%) scale(1.05);
  }
}

.hero-in {
  opacity: 0;
  animation: fade-up 0.7s ease forwards;
}

.hero-in-d1 { animation-delay: 0.1s; }
.hero-in-d2 { animation-delay: 0.2s; }
.hero-in-d3 { animation-delay: 0.35s; }

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-right {
  transform: translateX(28px);
}

.reveal-right.is-visible {
  transform: translateX(0);
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.25s, box-shadow 0.25s;
}

.reveal-stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.15s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.2s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.25s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.3s; }
.reveal-stagger.is-visible > *:nth-child(7) { transition-delay: 0.35s; }

.reveal-stagger.is-visible > .card:hover,
.reveal-stagger.is-visible > li:hover {
  transform: translateY(-3px);
}

.reveal-stagger.is-visible > li:hover {
  transform: translateX(4px);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-in,
  .hero-glow {
    animation: none;
    opacity: 1;
  }

  .reveal,
  .reveal-stagger > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
