/* =========================================================
   Anil Kumar — Finance × Data × AI Portfolio
   Core Design System
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Colors */
  --bg-0: #04050c;
  --bg-1: #080a18;
  --bg-2: #0d1024;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-strong: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.18);

  --text-0: #f6f7fb;
  --text-1: #c4c9db;
  --text-2: #8992ab;
  --text-3: #5b6280;

  --blue: #4f8dff;
  --blue-soft: #7db2ff;
  --violet: #9b6bff;
  --cyan: #3ee9e0;
  --green: #2fe3a5;
  --amber: #ffb547;
  --blue-rgb: 79, 141, 255;
  --violet-rgb: 155, 107, 255;
  --green-rgb: 47, 227, 165;

  --grad-primary: linear-gradient(120deg, var(--blue) 0%, var(--violet) 55%, var(--cyan) 100%);
  --grad-radial: radial-gradient(circle at 30% 20%, rgba(var(--blue-rgb), 0.35), transparent 60%);

  /* Type */
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing / Shape */
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-xl: 40px;
  --container: 1280px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Color themes ---------- */
:root[data-theme="emerald"] {
  --blue: #14e0a4;
  --blue-soft: #5ff0c4;
  --violet: #2fe3a5;
  --cyan: #baff5c;
  --green: #2fe3a5;
  --amber: #ffd166;
  --blue-rgb: 20, 224, 164;
  --violet-rgb: 47, 227, 165;
  --green-rgb: 186, 255, 92;
}
:root[data-theme="sunset"] {
  --blue: #ffb547;
  --blue-soft: #ffcc80;
  --violet: #ff6b8b;
  --cyan: #c84fff;
  --green: #ff8a5c;
  --amber: #ffd166;
  --blue-rgb: 255, 181, 71;
  --violet-rgb: 255, 107, 139;
  --green-rgb: 200, 79, 255;
}
:root[data-theme="ocean"] {
  --blue: #22d3ee;
  --blue-soft: #67e8f9;
  --violet: #3b82f6;
  --cyan: #6366f1;
  --green: #2dd4bf;
  --amber: #38bdf8;
  --blue-rgb: 34, 211, 238;
  --violet-rgb: 59, 130, 246;
  --green-rgb: 45, 212, 191;
}
:root[data-theme="mono"] {
  --blue: #cbd5e1;
  --blue-soft: #e2e8f0;
  --violet: #94a3b8;
  --cyan: #f1f5f9;
  --green: #cbd5e1;
  --amber: #e2e8f0;
  --blue-rgb: 203, 213, 225;
  --violet-rgb: 148, 163, 184;
  --green-rgb: 241, 245, 249;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg-0);
  color: var(--text-1);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Background atmosphere ---------- */
.bg-atmosphere {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 15% 8%, rgba(var(--blue-rgb), 0.16), transparent 42%),
    radial-gradient(circle at 85% 15%, rgba(var(--violet-rgb), 0.14), transparent 45%),
    radial-gradient(circle at 50% 90%, rgba(var(--green-rgb), 0.10), transparent 48%),
    linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 45%, var(--bg-2) 100%);
  transition: background 0.6s var(--ease);
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 90%);
}

.blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  z-index: -1;
  pointer-events: none;
}
.blob-1 { width: 460px; height: 460px; top: -120px; left: -140px; background: var(--blue); animation: float-a 22s ease-in-out infinite; }
.blob-2 { width: 380px; height: 380px; top: 40%; right: -160px; background: var(--violet); animation: float-b 26s ease-in-out infinite; }
.blob-3 { width: 320px; height: 320px; bottom: -140px; left: 30%; background: var(--green); opacity: 0.28; animation: float-a 30s ease-in-out infinite reverse; }

@keyframes float-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 80px) scale(1.12); }
}
@keyframes float-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-50px, -60px) scale(1.08); }
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-0);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-soft);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grad-primary);
  box-shadow: 0 0 12px var(--blue);
}

.gradient-text {
  background: var(--grad-primary);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient-shift 8s ease infinite;
}
@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.section-header {
  max-width: 640px;
  margin: 0 0 56px;
}
.section-header h2 {
  font-size: clamp(2rem, 3.4vw, 3rem);
  margin-bottom: 16px;
}
.section-header p { color: var(--text-2); font-size: 1.05rem; }
.section-header.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Layout helpers ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}
.section { padding: 128px 0; position: relative; }
.section.tight { padding: 88px 0; }

@media (max-width: 720px) {
  .section { padding: 88px 0; }
  .container { padding: 0 20px; }
}

/* ---------- Glass surfaces ---------- */
.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  border-radius: var(--radius-lg);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 15px 28px;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad-primary);
  color: #04050c;
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px -8px rgba(79, 141, 255, 0.55);
}
.btn-outline {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text-0);
  backdrop-filter: blur(10px);
}
.btn-outline:hover {
  border-color: var(--blue-soft);
  transform: translateY(-3px);
  background: var(--surface-strong);
}
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }
.btn svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translate(3px, -3px); }

/* ---------- Nav ---------- */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 18px 0;
  transition: padding 0.3s var(--ease), background 0.3s var(--ease);
}
.site-nav .nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 12px 20px 12px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(8, 10, 24, 0.55);
  border: 1px solid var(--border);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border-radius: 999px;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.site-nav.scrolled .nav-inner { background: rgba(6, 8, 18, 0.82); border-color: var(--border-strong); }

.nav-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-0);
  text-decoration: none;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--grad-primary);
  box-shadow: 0 0 14px var(--blue);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 9px 16px;
  border-radius: 999px;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}
.nav-links a:hover { color: var(--text-0); background: var(--surface-strong); }
.nav-links a.active { color: var(--text-0); background: var(--surface-strong); }

.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
}
.nav-toggle span { width: 16px; height: 1.5px; background: var(--text-0); transition: all 0.3s var(--ease); }
.nav-toggle.open span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  top: 84px; left: 20px; right: 20px;
  z-index: 199;
  padding: 20px;
  display: none;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.mobile-menu.open { display: flex; opacity: 1; transform: translateY(0); pointer-events: auto; }
.mobile-menu a {
  color: var(--text-1);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.1rem;
  padding: 13px 10px;
  border-bottom: 1px solid var(--border);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a.active { color: var(--blue-soft); }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-actions .btn { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 160px 24px 0;
  position: relative;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-1);
  margin-bottom: 32px;
}
.hero-badge .pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(47,227,165,0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(47,227,165,0.55); }
  70% { box-shadow: 0 0 0 10px rgba(47,227,165,0); }
  100% { box-shadow: 0 0 0 0 rgba(47,227,165,0); }
}

.hero h1 {
  font-size: clamp(3.4rem, 11vw, 9rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.95;
  color: var(--text-0);
}
.hero h1 .accent {
  background: var(--grad-primary);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient-shift 8s ease infinite;
}

/* ---------- Hero name letter animation ---------- */
.hero h1 .letter {
  display: inline-block;
  opacity: 0;
  animation: letter-in 0.8s var(--ease) forwards;
}
.hero h1 .letter-accent {
  display: inline-block;
  opacity: 0;
  background-image: var(--grad-primary);
  background-size: 400% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: letter-in 0.8s var(--ease) forwards, gradient-shift 8s ease infinite;
}
@keyframes letter-in {
  0% { opacity: 0; transform: translateY(36px) scale(0.8) rotate(6deg); filter: blur(8px); text-shadow: 0 0 24px var(--blue-soft); }
  55% { opacity: 1; filter: blur(0); text-shadow: 0 0 18px rgba(79,141,255,0.5); }
  100% { opacity: 1; transform: translateY(0) scale(1) rotate(0deg); text-shadow: 0 0 0 transparent; }
}
@media (prefers-reduced-motion: reduce) {
  .hero h1 .letter, .hero h1 .letter-accent { opacity: 1; animation: none; }
}

.hero-role {
  font-family: var(--font-mono);
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: var(--text-2);
  margin: 26px 0 20px;
  letter-spacing: 0.02em;
}
.hero-role .sep { color: var(--text-3); margin: 0 10px; }

.hero-sub {
  max-width: 620px;
  color: var(--text-2);
  font-size: 1.08rem;
  margin-bottom: 42px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; margin-bottom: 90px; }

.scroll-cue {
  position: absolute;
  bottom: 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.scroll-cue .line { width: 1px; height: 40px; background: linear-gradient(var(--text-3), transparent); animation: scroll-line 2s ease-in-out infinite; }
@keyframes scroll-line { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Marquee ---------- */
.marquee-strip {
  position: relative;
  width: 100%;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  padding: 22px 0;
  overflow: hidden;
}
.marquee-track {
  display: flex;
  width: max-content;
  gap: 0;
  animation: marquee 34s linear infinite;
}
.marquee-strip:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  display: flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.4vw, 1.7rem);
  font-weight: 500;
  color: var(--text-2);
  white-space: nowrap;
  padding: 0 28px;
}
.marquee-track span::after {
  content: '◆';
  font-size: 0.7rem;
  color: var(--blue);
  margin-left: 28px;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Stats ---------- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 80px;
}
.stat-card {
  padding: 30px 26px;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.stat-card:hover { transform: translateY(-6px); border-color: var(--border-strong); }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-weight: 700;
  color: var(--text-0);
  display: block;
  margin-bottom: 6px;
}
.stat-label { color: var(--text-2); font-size: 0.88rem; }

@media (max-width: 860px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Bento grid ---------- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 210px;
  grid-auto-flow: dense;
  gap: 22px;
}
.bento-card {
  position: relative;
  overflow: hidden;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-decoration: none;
  transition: transform 0.45s var(--ease), border-color 0.45s var(--ease), box-shadow 0.45s var(--ease);
  isolation: isolate;
  background-image: var(--img, none);
  background-size: cover;
  background-position: center;
}
.bento-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), var(--glow, rgba(79,141,255,0.28)), transparent 65%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  z-index: 0;
}
.bento-card:hover::before { opacity: 1; }
.bento-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: 0 30px 60px -25px rgba(0,0,0,0.6);
}
.bento-card .card-pattern {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.5;
  pointer-events: none;
}
.bento-card > * { position: relative; z-index: 1; }

.bento-card.span-2x2 { grid-column: span 2; grid-row: span 2; }
.bento-card.span-2x1 { grid-column: span 2; }
.bento-card.span-1x2 { grid-row: span 2; }

.card-tag {
  display: inline-flex;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--surface-strong);
  border: 1px solid var(--border-strong);
  color: var(--blue-soft);
  margin-bottom: auto;
}
.bento-card h3 {
  font-size: 1.4rem;
  margin: 16px 0 8px;
  color: var(--text-0);
}
.span-2x2 h3 { font-size: 1.9rem; }
.bento-card p { color: var(--text-2); font-size: 0.92rem; max-width: 42ch; }
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.card-meta span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-2);
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
}
.card-arrow {
  position: absolute;
  top: 26px; right: 26px;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--surface-strong);
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s var(--ease), background 0.4s var(--ease);
  z-index: 1;
}
.bento-card:hover .card-arrow { transform: rotate(45deg); background: var(--grad-primary); }
.card-arrow svg { width: 16px; height: 16px; stroke: var(--text-0); }
.bento-card:hover .card-arrow svg { stroke: #04050c; }

@media (max-width: 980px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-card.span-2x2 { grid-column: span 2; }
}
@media (max-width: 640px) {
  .bento-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .bento-card, .bento-card.span-2x2, .bento-card.span-2x1, .bento-card.span-1x2 { grid-column: span 1; grid-row: span 1; min-height: 240px; }
}

/* ---------- Filter chips ---------- */
.filter-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 48px; }
.filter-chip {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-2);
  font-size: 0.86rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.filter-chip:hover { color: var(--text-0); border-color: var(--blue-soft); }
.filter-chip.active { background: var(--grad-primary); color: #04050c; border-color: transparent; }

/* ---------- About / two column ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 72px;
  align-items: center;
}
.about-text h2 { font-size: clamp(2rem, 3.6vw, 3rem); margin-bottom: 22px; }
.about-text p { color: var(--text-2); margin-bottom: 18px; font-size: 1.02rem; }
.about-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 30px 0 34px;
}
.about-facts div {
  padding: 14px 16px;
  border-radius: var(--radius-md);
}
.about-facts .k { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.08em; }
.about-facts .v { font-family: var(--font-display); font-size: 1.05rem; color: var(--text-0); margin-top: 4px; }

.headshot-wrap { position: relative; display: flex; justify-content: center; }
.headshot-mask {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(circle at 30% 20%, rgba(79,141,255,0.4), transparent 55%),
    radial-gradient(circle at 80% 90%, rgba(155,107,255,0.35), transparent 55%),
    linear-gradient(160deg, #12162c, #05060e);
  display: flex;
  align-items: center;
  justify-content: center;
}
.headshot-mask img { width: 100%; height: 100%; object-fit: cover; display: block; }
.headshot-mask .placeholder-icon { width: 40%; height: 40%; opacity: 0.35; stroke: var(--text-0); }
.headshot-mask::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 80px rgba(0,0,0,0.4);
  border-radius: var(--radius-xl);
}
.headshot-glow {
  position: absolute;
  inset: -20px;
  border-radius: var(--radius-xl);
  background: var(--grad-primary);
  filter: blur(50px);
  opacity: 0.28;
  z-index: -1;
  animation: gradient-shift 8s ease infinite;
}
.floating-badge {
  position: absolute;
  bottom: 26px;
  left: -18px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: badge-float 5s ease-in-out infinite;
}
.floating-badge .num { font-family: var(--font-display); font-size: 1.5rem; color: var(--text-0); font-weight: 700; }
.floating-badge .lbl { font-size: 0.72rem; color: var(--text-2); line-height: 1.2; max-width: 90px; }
@keyframes badge-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-grid.reverse-mobile { display: flex; flex-direction: column-reverse; }
}

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-left: 32px; border-left: 1px solid var(--border); }
.timeline-item { position: relative; padding-bottom: 44px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -37px; top: 4px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--grad-primary);
  box-shadow: 0 0 14px var(--blue);
}
.timeline-item .t-date { font-family: var(--font-mono); font-size: 0.75rem; color: var(--blue-soft); margin-bottom: 6px; }
.timeline-item h4 { font-size: 1.2rem; color: var(--text-0); margin-bottom: 4px; }
.timeline-item .t-org { color: var(--text-2); font-size: 0.9rem; margin-bottom: 10px; }
.timeline-item p { color: var(--text-2); font-size: 0.92rem; max-width: 60ch; }

/* ---------- Skills matrix ---------- */
.skills-matrix { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.skill-group { padding: 28px; }
.skill-group h4 { color: var(--text-0); font-size: 1rem; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.skill-group h4::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--grad-primary); }
.skill-bars { display: flex; flex-direction: column; gap: 14px; }
.skill-bar-row { display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--text-2); margin-bottom: 5px; }
.skill-bar { height: 5px; border-radius: 999px; background: rgba(255,255,255,0.07); overflow: hidden; }
.skill-bar span { display: block; height: 100%; border-radius: 999px; background: var(--grad-primary); width: 0%; transition: width 1.4s var(--ease); }

@media (max-width: 900px) { .skills-matrix { grid-template-columns: 1fr; } }

/* ---------- Cards generic (services, blog, testimonials) ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card-grid.two-col { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 980px) { .card-grid, .card-grid.two-col { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .card-grid, .card-grid.two-col { grid-template-columns: 1fr; } }

.service-card { padding: 34px; transition: transform 0.4s var(--ease), border-color 0.4s var(--ease); position: relative; overflow: hidden; }
.service-card:hover { transform: translateY(-6px); border-color: var(--border-strong); }
.service-icon {
  width: 52px; height: 52px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-strong);
  border: 1px solid var(--border-strong);
  margin-bottom: 22px;
}
.service-icon svg { width: 24px; height: 24px; stroke: var(--blue-soft); }
.service-card h3 { font-size: 1.25rem; margin-bottom: 10px; color: var(--text-0); }
.service-card p { color: var(--text-2); font-size: 0.92rem; margin-bottom: 18px; }
.service-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.service-list li { font-size: 0.85rem; color: var(--text-2); display: flex; align-items: center; gap: 8px; }
.service-list li::before { content: '—'; color: var(--blue-soft); }

.process-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 70px; }
.process-step { padding: 28px; position: relative; }
.process-step .step-num { font-family: var(--font-mono); font-size: 0.8rem; color: var(--blue-soft); margin-bottom: 14px; }
.process-step h4 { color: var(--text-0); font-size: 1.05rem; margin-bottom: 8px; }
.process-step p { color: var(--text-2); font-size: 0.86rem; }
@media (max-width: 900px) { .process-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .process-row { grid-template-columns: 1fr; } }

/* Testimonials */
.testimonial-card { padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.stars { display: flex; gap: 3px; color: var(--amber); }
.stars svg { width: 15px; height: 15px; fill: var(--amber); }
.testimonial-card blockquote { color: var(--text-1); font-size: 1rem; line-height: 1.65; }
.testimonial-person { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.avatar-initials {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--grad-primary);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; color: #04050c; font-size: 0.9rem;
  flex-shrink: 0;
}
.testimonial-person .p-name { color: var(--text-0); font-weight: 600; font-size: 0.92rem; }
.testimonial-person .p-role { color: var(--text-3); font-size: 0.8rem; }

.trust-strip { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 60px; }
.trust-badge { padding: 12px 22px; border-radius: 999px; font-size: 0.82rem; color: var(--text-2); font-family: var(--font-mono); }

/* Blog */
.blog-featured { display: grid; grid-template-columns: 1fr 1fr; gap: 0; overflow: hidden; margin-bottom: 60px; text-decoration: none; }
.blog-featured .bf-media { min-height: 340px; position: relative; overflow: hidden; background-image: var(--img, none); background-size: cover; background-position: center; }
.blog-featured .bf-content { padding: 48px; display: flex; flex-direction: column; justify-content: center; }
.blog-featured .bf-content h3 { font-size: 1.8rem; margin: 14px 0 16px; }
.blog-featured .bf-content p { color: var(--text-2); margin-bottom: 24px; }
@media (max-width: 900px) { .blog-featured { grid-template-columns: 1fr; } .blog-featured .bf-media { min-height: 220px; } }

.blog-card { overflow: hidden; display: flex; flex-direction: column; text-decoration: none; transition: transform 0.4s var(--ease), border-color 0.4s var(--ease); }
.blog-card:hover { transform: translateY(-6px); border-color: var(--border-strong); }
.blog-card .bc-media { height: 180px; position: relative; overflow: hidden; background-image: var(--img, none); background-size: cover; background-position: center; }
.blog-card .bc-content { padding: 26px; }
.blog-card h3 { font-size: 1.1rem; margin: 12px 0 10px; color: var(--text-0); }
.blog-card p { color: var(--text-2); font-size: 0.88rem; }
.blog-meta { display: flex; gap: 14px; font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-3); margin-top: 16px; }

.pattern-canvas { position: absolute; inset: 0; opacity: 0.6; }

/* ---------- Media page ---------- */
.media-icon-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(4, 5, 12, 0.55);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s var(--ease), background 0.4s var(--ease);
}
.blog-card:hover .icon-circle, .blog-featured:hover .icon-circle { transform: scale(1.1); background: var(--grad-primary); }
.icon-circle svg { width: 20px; height: 20px; color: var(--text-0); transition: color 0.4s var(--ease); }
.blog-featured .icon-circle { width: 72px; height: 72px; }
.blog-featured .icon-circle svg { width: 26px; height: 26px; }
.blog-card:hover .icon-circle svg, .blog-featured:hover .icon-circle svg { color: #04050c; }

.media-badge {
  position: absolute;
  bottom: 14px;
  right: 14px;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(4, 5, 12, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-0);
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: start; }
.contact-form { padding: 42px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field label { font-size: 0.8rem; color: var(--text-2); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.05em; }
.field input, .field textarea, .field select {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: var(--text-0);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--blue-soft);
  background: rgba(255,255,255,0.06);
}
.field textarea { resize: vertical; min-height: 130px; }
.form-status { font-size: 0.85rem; margin-top: 10px; min-height: 20px; }
.form-status.success { color: var(--green); }

.contact-info-card { padding: 30px; margin-bottom: 20px; }
.contact-info-card h4 { color: var(--text-0); font-size: 0.95rem; margin-bottom: 6px; }
.contact-info-card p, .contact-info-card a { color: var(--text-2); font-size: 0.9rem; text-decoration: none; }
.contact-info-card a:hover { color: var(--blue-soft); }
.avail-dot { display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--green); margin-bottom: 8px; }
.avail-dot span { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }

@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } .form-row { grid-template-columns: 1fr; } }

/* ---------- Page header (inner pages) ---------- */
.page-header { padding: 170px 0 60px; text-align: center; }
.page-header .eyebrow { justify-content: center; }
.page-header h1 { font-size: clamp(2.6rem, 5.5vw, 4.2rem); margin-bottom: 18px; }
.page-header p { color: var(--text-2); max-width: 600px; margin: 0 auto; font-size: 1.05rem; }

/* ---------- CTA banner ---------- */
.cta-banner {
  padding: 70px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 18px; }
.cta-banner p { color: var(--text-2); max-width: 500px; margin: 0 auto 34px; }
.cta-banner .actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { padding: 100px 0 40px; position: relative; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 40px; margin-bottom: 70px; }
.footer-top h2 { font-size: clamp(2rem, 5vw, 3.4rem); max-width: 640px; }
.footer-socials { display: flex; flex-direction: column; gap: 6px; }
.footer-social-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--text-1);
  text-decoration: none;
  padding: 8px 0;
  width: fit-content;
}
.footer-social-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 4px;
  width: 100%; height: 1.5px;
  background: var(--grad-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.footer-social-link:hover::after { transform: scaleX(1); }
.footer-social-link:hover { color: var(--text-0); }
.footer-social-link svg { width: 16px; height: 16px; opacity: 0.6; transition: transform 0.4s var(--ease); }
.footer-social-link:hover svg { transform: translate(3px,-3px) rotate(45deg); opacity: 1; }

.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; padding: 40px 0; border-top: 1px solid var(--border); }
.footer-col h5 { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-3); margin-bottom: 18px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-col a { color: var(--text-2); text-decoration: none; font-size: 0.9rem; transition: color 0.25s var(--ease); }
.footer-col a:hover { color: var(--blue-soft); }
.footer-col p { color: var(--text-2); font-size: 0.9rem; max-width: 32ch; }

.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 30px; border-top: 1px solid var(--border); flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 0.8rem; color: var(--text-3); }
.footer-bottom .status { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--text-3); font-family: var(--font-mono); }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; align-items: flex-start; }
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal-stagger.in-view > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.in-view > *:nth-child(1) { transition-delay: 0.02s; }
.reveal-stagger.in-view > *:nth-child(2) { transition-delay: 0.09s; }
.reveal-stagger.in-view > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger.in-view > *:nth-child(4) { transition-delay: 0.23s; }
.reveal-stagger.in-view > *:nth-child(5) { transition-delay: 0.30s; }
.reveal-stagger.in-view > *:nth-child(6) { transition-delay: 0.37s; }
.reveal-stagger.in-view > *:nth-child(7) { transition-delay: 0.44s; }
.reveal-stagger.in-view > *:nth-child(8) { transition-delay: 0.51s; }
.reveal-stagger.in-view > *:nth-child(9) { transition-delay: 0.58s; }

/* ---------- Misc ---------- */
::selection { background: var(--blue); color: #04050c; }
a { color: inherit; }
img { max-width: 100%; display: block; }

.divider-fade { height: 1px; background: linear-gradient(90deg, transparent, var(--border) 20%, var(--border) 80%, transparent); margin: 0; }

.back-to-top {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  cursor: pointer;
}
.back-to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top svg { width: 18px; height: 18px; stroke: var(--text-0); }

/* ---------- Theme switcher ---------- */
.theme-switcher {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 150;
}
.theme-toggle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid var(--border-strong);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}
.theme-toggle:hover { transform: translateY(-3px); border-color: var(--blue-soft); }
.theme-toggle svg { width: 19px; height: 19px; stroke: var(--text-0); transition: stroke 0.4s var(--ease); }
.theme-toggle.open { border-color: var(--blue-soft); }

.theme-panel {
  position: absolute;
  bottom: 60px;
  left: 0;
  padding: 18px;
  width: 208px;
  border-radius: var(--radius-md);
  opacity: 0;
  transform: translateY(10px) scale(0.96);
  transform-origin: bottom left;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.theme-panel.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.theme-panel-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
  margin-bottom: 14px;
}
.theme-swatches { display: flex; flex-wrap: wrap; gap: 12px; }
.swatch {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  background: linear-gradient(135deg, var(--sw1), var(--sw2), var(--sw3));
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.swatch:hover { transform: scale(1.12); }
.swatch.active { border-color: var(--text-0); box-shadow: 0 0 0 3px rgba(255,255,255,0.08); }
.swatch-name {
  margin-top: 12px;
  font-size: 0.78rem;
  color: var(--text-2);
  text-align: center;
}
