:root {
  --bg: #09111f;
  --surface: rgba(9, 17, 31, 0.72);
  --surface-strong: rgba(14, 26, 46, 0.92);
  --text: #f4f8ff;
  --muted: #9aafd2;
  --line: rgba(129, 201, 255, 0.16);
  --primary: #7bf0ff;
  --primary-strong: #c0fbff;
  --secondary: #8b95ff;
  --shadow: 0 28px 70px rgba(1, 5, 14, 0.56);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  font-family: Georgia, "Palatino Linotype", "Book Antiqua", serif;
  background:
    radial-gradient(circle at top right, rgba(123, 240, 255, 0.14), transparent 22rem),
    radial-gradient(circle at bottom left, rgba(139, 149, 255, 0.16), transparent 24rem),
    linear-gradient(180deg, #07101d 0%, #0b1425 45%, #08101e 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(123, 240, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(123, 240, 255, 0.07) 1px, transparent 1px);
  background-size: 4rem 4rem;
  mask-image: radial-gradient(circle at center, black 32%, transparent 82%);
  opacity: 0.24;
}

a {
  color: inherit;
}

.scanline {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent 0%, rgba(123, 240, 255, 0.035) 50%, transparent 100%);
  background-size: 100% 0.35rem;
  opacity: 0.2;
}

.ambient {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(24px);
  opacity: 0.72;
  z-index: 0;
}

.ambient-one {
  top: 4rem;
  right: -4rem;
  width: 20rem;
  height: 20rem;
  background: radial-gradient(circle, rgba(123, 240, 255, 0.28), transparent 70%);
  animation: drift-one 16s ease-in-out infinite;
}

.ambient-two {
  left: -6rem;
  bottom: 6rem;
  width: 26rem;
  height: 26rem;
  background: radial-gradient(circle, rgba(139, 149, 255, 0.22), transparent 72%);
  animation: drift-two 20s ease-in-out infinite;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1rem 0 3rem;
}

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem 0 2rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 0;
}

.brand {
  text-decoration: none;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-left: auto;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
}

.language-toggle {
  min-width: 3.25rem;
  height: 3rem;
  padding: 0 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 16, 30, 0.72);
  color: var(--primary);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(123, 240, 255, 0.06) inset;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2rem;
  align-items: end;
  margin-top: 4rem;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--primary);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p,
ul {
  margin-top: 0;
}

h1 {
  display: grid;
  gap: 0.25rem;
  max-width: 8ch;
  margin-bottom: 1rem;
  font-size: clamp(3rem, 7vw, 5.8rem);
  line-height: 0.9;
  text-transform: uppercase;
  text-shadow: 0 0 28px rgba(123, 240, 255, 0.12);
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.05;
}

h3 {
  margin-bottom: 0.4rem;
  font-size: 1.35rem;
}

.lead,
.content-card p,
.project-card p,
.timeline-summary,
.footer-copy {
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 1.03rem;
  line-height: 1.7;
}

.lead {
  max-width: 35rem;
  color: var(--muted);
}

.origin-line {
  margin-top: 1rem;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  color: #dbe8ff;
  font-size: 0.98rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  text-decoration: none;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-weight: 700;
}

.button-primary {
  background: var(--primary);
  color: #061120;
  box-shadow: 0 0 30px rgba(123, 240, 255, 0.22);
}

.button-primary:hover {
  background: var(--primary-strong);
}

.button-secondary {
  border: 1px solid var(--line);
  background: rgba(9, 17, 31, 0.56);
}

.hero-card,
.content-card,
.project-card,
.timeline-item,
.footer {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-card::before,
.content-card::before,
.project-card::before,
.timeline-item::before,
.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(123, 240, 255, 0.06), transparent 40%, rgba(139, 149, 255, 0.08));
  pointer-events: none;
}

.hero-card,
.content-card,
.project-card,
.timeline-item {
  border-radius: 1.5rem;
  padding: 1.5rem;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.hero-card:hover,
.content-card:hover,
.project-card:hover,
.timeline-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 34px 74px rgba(1, 5, 14, 0.65);
  border-color: rgba(123, 240, 255, 0.34);
}

.card-label,
.project-stack,
.timeline-meta p,
.timeline-meta span {
  position: relative;
  z-index: 1;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--muted);
}

.snapshot-list {
  position: relative;
  z-index: 1;
  padding-left: 1.1rem;
  margin-bottom: 0;
}

.snapshot-list li {
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.signal-cluster {
  display: flex;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.signal-cluster span {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #ffffff);
  box-shadow: 0 0 0 0 rgba(123, 240, 255, 0.28);
  animation: pulse 2.8s infinite;
}

.signal-cluster span:nth-child(2) {
  animation-delay: 0.35s;
}

.signal-cluster span:nth-child(3) {
  animation-delay: 0.7s;
}

.resume-prompt,
.inline-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  margin-top: 1rem;
  color: var(--primary);
  text-decoration: none;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-weight: 700;
}

.section {
  padding: 4rem 0 1rem;
}

.section-heading {
  margin-bottom: 1.75rem;
}

.focus-grid,
.project-grid,
.timeline {
  display: grid;
  gap: 1.25rem;
}

.focus-grid,
.project-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.timeline {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-card {
  min-height: 13rem;
}

.feature-kicker {
  position: relative;
  z-index: 1;
  margin-bottom: 0.8rem;
  color: var(--secondary);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.project-header,
.timeline-meta,
.resume-cta-card h3 {
  position: relative;
  z-index: 1;
}

.project-header {
  margin-bottom: 1rem;
}

.timeline-summary {
  position: relative;
  z-index: 1;
  color: #dbe8ff;
}

.footer {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.5rem;
  padding: 2rem;
  margin-top: 4rem;
  border-radius: 1.75rem;
}

.contact-links {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.9rem;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

.contact-links a {
  text-decoration: none;
  color: var(--primary);
  font-weight: 700;
}

.section,
.footer,
.hero-card,
.project-card,
.timeline-item,
.content-card {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
  transition-delay: var(--delay, 0ms);
}

.hero-copy {
  animation: fade-up 850ms ease both;
}

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

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drift-one {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(-2rem, 2rem, 0) scale(1.08);
  }
}

@keyframes drift-two {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(3rem, -2rem, 0) scale(0.96);
  }
}

@keyframes pulse {
  0% {
    transform: scale(0.96);
    box-shadow: 0 0 0 0 rgba(123, 240, 255, 0.28);
  }
  70% {
    transform: scale(1.08);
    box-shadow: 0 0 0 0.85rem rgba(123, 240, 255, 0);
  }
  100% {
    transform: scale(0.96);
    box-shadow: 0 0 0 0 rgba(123, 240, 255, 0);
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .section,
  .footer,
  .hero-card,
  .project-card,
  .timeline-item,
  .content-card {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
  }

  .hero-grid,
  .focus-grid,
  .project-grid,
  .timeline,
  .footer {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 1rem, 100%);
  }

  .site-nav {
    flex-wrap: wrap;
    align-items: center;
  }

  .nav-links {
    margin-left: 0;
    gap: 0.75rem;
  }

  .hero-grid {
    margin-top: 2rem;
  }

  .hero-card,
  .content-card,
  .project-card,
  .timeline-item,
  .footer {
    padding: 1.2rem;
  }
}
