:root {
  --abyss: #030b1a;
  --deep: #061a33;
  --ocean: #0a2c55;
  --cyan: #5ee7ff;
  --foam: #9ff3ff;
  --blue: #2d7bff;
  --text: #e6f4ff;
  --muted: #8fb3d1;
  --card: rgba(13, 45, 85, 0.45);
  --border: rgba(94, 231, 255, 0.18);
  --radius: 16px;
  --max: 1140px;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(45, 123, 255, 0.25), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(94, 231, 255, 0.12), transparent 60%),
    linear-gradient(180deg, var(--deep) 0%, var(--abyss) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#bubbles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

header, main, footer { position: relative; z-index: 1; }
main { flex: 1; }

a { color: var(--cyan); }

h1, h2, h3 { line-height: 1.15; margin: 0 0 0.6em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; }

.center { text-align: center; }
.muted { color: var(--muted); font-weight: 400; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--cyan);
  letter-spacing: 0.04em;
  margin: 0 0 0.8rem;
}

.lede { font-size: 1.15rem; color: var(--muted); max-width: 36rem; }

.gradient-text {
  background: linear-gradient(90deg, var(--foam), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Nav */
.nav {
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  text-decoration: none;
  font-size: 1.2rem;
  letter-spacing: 0.01em;
}
.brand strong { color: var(--cyan); }
.nav nav { display: flex; align-items: center; gap: 1.5rem; }
.nav nav a:not(.btn) {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.nav nav a:not(.btn):hover,
.nav nav a[aria-current="page"] { color: var(--text); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  color: var(--abyss);
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 30px rgba(45, 123, 255, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(94, 231, 255, 0.4); }
.btn-small { padding: 0.55rem 1.1rem; font-size: 0.9rem; }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: none;
}
.btn-ghost:hover { border-color: var(--cyan); box-shadow: none; }

.text-link { font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* Hero */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 2rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }

.hero-art { position: relative; display: grid; place-items: center; }
.droplet {
  width: min(380px, 100%);
  filter: drop-shadow(0 20px 60px rgba(45, 123, 255, 0.45));
  animation: bob 6s ease-in-out infinite;
  position: relative;
  z-index: 1;
}
.fill-wave { animation: slosh 4s linear infinite; }
.bars rect { fill: rgba(255, 255, 255, 0.22); stroke: rgba(255, 255, 255, 0.5); stroke-width: 1; }
.trend {
  stroke-dasharray: 220;
  stroke-dashoffset: 220;
  animation: draw 2.4s 0.4s ease-out forwards;
}
.trend-dot { opacity: 0; animation: fadeIn 0.4s 2.6s forwards, pulse 2s 3s ease-in-out infinite; transform-origin: 270px 170px; }
.circuit path { stroke-dasharray: 6 6; animation: flow 3s linear infinite; }

.ripple {
  position: absolute;
  bottom: 4%;
  width: 260px;
  height: 50px;
  border: 2px solid rgba(94, 231, 255, 0.4);
  border-radius: 50%;
  opacity: 0;
  animation: ripple 4.5s ease-out infinite;
}
.r2 { animation-delay: 1.5s; }
.r3 { animation-delay: 3s; }

@keyframes bob { 50% { transform: translateY(-12px); } }
@keyframes slosh { to { transform: translateX(200px); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes pulse { 50% { transform: scale(1.5); } }
@keyframes flow { to { stroke-dashoffset: -24; } }
@keyframes ripple {
  0% { transform: scale(0.4); opacity: 0.8; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* Dividers & sections */
.wave-divider svg { display: block; width: 100%; height: 80px; }
.wave-divider path { fill: rgba(10, 44, 85, 0.35); }

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.services { padding-top: 2rem; }
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  backdrop-filter: blur(8px);
  transition: transform 0.25s, border-color 0.25s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(94, 231, 255, 0.5); }
.card p { color: var(--muted); margin: 0; }
.card-link { display: block; color: var(--text); text-decoration: none; }
.card-icon {
  width: 56px;
  height: 56px;
  color: var(--cyan);
  margin-bottom: 1.2rem;
  padding: 10px;
  border-radius: 14px;
  background: rgba(94, 231, 255, 0.08);
  border: 1px solid var(--border);
}
.card-icon svg { width: 100%; height: 100%; }

.experience {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}
.experience-copy p { color: var(--muted); }
.stats { display: grid; gap: 1rem; }
.stat {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--cyan);
  background: linear-gradient(90deg, rgba(94, 231, 255, 0.08), transparent);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.stat-value { font-family: var(--mono); font-size: 2.2rem; font-weight: 600; color: var(--foam); }
.stat-label { color: var(--muted); }

.cta {
  text-align: center;
  background: linear-gradient(135deg, rgba(45, 123, 255, 0.18), rgba(94, 231, 255, 0.08));
  border: 1px solid var(--border);
  border-radius: 24px;
  margin: 2rem auto 4rem;
  max-width: calc(var(--max) - 3rem);
}
.cta p { color: var(--muted); margin-bottom: 1.8rem; }

/* About */
.about-hero {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  align-items: center;
}
.about-hero p { color: var(--muted); }
.about-hero .lede { color: var(--text); }
.portrait svg {
  width: 100%;
  filter: drop-shadow(0 20px 50px rgba(45, 123, 255, 0.45));
  animation: bob 6s ease-in-out infinite;
}
.portrait-initials {
  font-family: var(--mono);
  font-size: 64px;
  font-weight: 600;
  fill: var(--abyss);
}

.timeline {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  border-left: 2px solid var(--border);
}
.timeline li { position: relative; padding: 0 0 2.2rem 2rem; }
.timeline li::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 0 14px rgba(94, 231, 255, 0.6);
}
.timeline-period { font-family: var(--mono); font-size: 0.85rem; color: var(--cyan); }
.timeline h3 { margin: 0.3rem 0 0.4rem; }
.timeline p { color: var(--muted); margin: 0; max-width: 42rem; }

.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.7rem; }
.chips li {
  font-family: var(--mono);
  font-size: 0.9rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(94, 231, 255, 0.06);
}

/* Footer */
.footer { margin-top: auto; }
.footer-waves { display: block; width: 100%; height: 90px; }
.wave { transform-origin: center; }
.wave-1 { fill: rgba(45, 123, 255, 0.25); animation: sway 9s ease-in-out infinite; }
.wave-2 { fill: var(--ocean); animation: sway 7s ease-in-out infinite reverse; }
@keyframes sway { 50% { transform: translateX(-40px) scaleY(1.08); } }
.footer-inner {
  background: var(--ocean);
  padding: 0.5rem 1.5rem 2rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.9rem;
}
.footer-inner p { margin: 0; }
.footer-inner a { text-decoration: none; }

/* Responsive */
@media (max-width: 860px) {
  .hero, .experience, .about-hero { grid-template-columns: 1fr; }
  .hero { text-align: left; padding-top: 1.5rem; }
  .hero-art { order: -1; }
  .droplet { width: 240px; }
  .portrait { max-width: 200px; }
  .nav nav { gap: 1rem; }
}
@media (max-width: 480px) {
  .nav nav a:not(.btn):first-child { display: none; }
  .btn-small { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .trend { stroke-dashoffset: 0; }
  .trend-dot { opacity: 1; }
}
