/* =========================================
   Zeeshan Ahmed — Portfolio
   Author: Zeeshan Ahmed
   ========================================= */

/* ----- Reset & Base ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0a0f;
  --bg-2: #11111b;
  --bg-3: #161624;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-2: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.08);
  --border-2: rgba(255, 255, 255, 0.14);
  --text: #f4f4f8;
  --text-dim: #b8b9c8;
  --text-mute: #8a8a9e;
  --primary: #7c3aed;
  --primary-2: #06b6d4;
  --accent: #f472b6;
  --grad: linear-gradient(135deg, #7c3aed 0%, #06b6d4 100%);
  --grad-soft: linear-gradient(135deg, rgba(124,58,237,0.18), rgba(6,182,212,0.18));
  --shadow-lg: 0 25px 60px -20px rgba(0,0,0,0.6);
  --shadow-glow: 0 0 50px rgba(124,58,237,0.4);
  --radius: 18px;
  --radius-sm: 12px;
  --container: 1240px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

/* Visible keyboard focus ring (WCAG 2.4.7) */
:focus-visible {
  outline: 2px solid var(--primary-2);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Skip-to-content link (WCAG 2.4.1) — hidden until keyboard-focused */
.skip-link {
  position: absolute;
  left: -10000px;
  top: 12px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--bg-2);
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  border: 1px solid var(--border-2);
  border-radius: 8px;
  text-decoration: none;
}
.skip-link:focus {
  left: 12px;
}
.form-group input:focus-visible,
.form-group textarea:focus-visible {
  outline: none;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
ul { list-style: none; }
button { background: none; border: none; cursor: pointer; font: inherit; color: inherit; }
input, textarea { font: inherit; color: inherit; }

::selection { background: var(--primary); color: #fff; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--primary), var(--primary-2)); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-2); }

/* ----- Layout ----- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 120px 0; position: relative; }

.section-head { margin-bottom: 60px; max-width: 720px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--primary-2);
  letter-spacing: 0.06em;
  margin-bottom: 16px;
  padding: 6px 14px;
  border-radius: 30px;
  background: rgba(6,182,212,0.08);
  border: 1px solid rgba(6,182,212,0.2);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.85rem, 4.2vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
  text-wrap: balance;
}

.section-sub {
  color: var(--text-dim);
  font-size: 1rem;
  max-width: 60ch;
  line-height: 1.6;
  text-wrap: pretty;
}
.section-head.center .section-sub { margin: 0 auto; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: 0.01em;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 25px -8px rgba(124,58,237,0.55);
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #06b6d4, #7c3aed);
  opacity: 0;
  transition: opacity var(--transition);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px -10px rgba(124,58,237,0.7);
}
.btn-primary:hover::after { opacity: 1; }
.btn-primary > * { position: relative; z-index: 1; }

.btn-ghost {
  background: var(--surface);
  border: 1px solid var(--border-2);
  color: var(--text);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover {
  background: var(--surface-2);
  border-color: var(--primary);
  transform: translateY(-3px);
  color: var(--primary-2);
}

.btn-full { width: 100%; justify-content: center; }

/* ----- Background Effects ----- */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: -2;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  pointer-events: none;
}

.bg-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(150px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
}
.bg-glow-1 {
  background: var(--primary);
  top: -200px;
  left: -200px;
}
.bg-glow-2 {
  background: var(--primary-2);
  bottom: -200px;
  right: -200px;
}

/* ----- Preloader ----- */
.preloader {
  position: fixed; inset: 0;
  background: var(--bg);
  z-index: 10000;
  display: grid;
  place-items: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.preloader.hidden { opacity: 0; visibility: hidden; }
.preloader-content { text-align: center; }
.preloader-logo {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 24px;
  animation: pulse 1.4s ease-in-out infinite;
}
.preloader-bar {
  width: 200px; height: 3px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.preloader-bar span {
  display: block; height: 100%;
  background: var(--grad);
  width: 0;
  animation: loadBar 1.4s ease-out forwards;
}
@keyframes loadBar { to { width: 100%; } }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.6; transform: scale(0.95); } }

/* ----- Scroll Progress ----- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 0%;
  height: 3px;
  background: var(--grad);
  z-index: 999;
  transition: width 0.1s linear;
}

/* ----- Navbar ----- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: all var(--transition);
}
.navbar.scrolled {
  padding: 12px 0;
  background: rgba(10,10,15,0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
}
.logo-mark {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--grad);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 6px 18px -4px rgba(124,58,237,0.6);
}
.logo-text .dot { color: var(--primary-2); }

.nav-menu ul {
  display: flex;
  gap: 4px;
}
.nav-link {
  position: relative;
  display: inline-block;
  padding: 10px 16px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-dim);
  border-radius: 8px;
  transition: color var(--transition);
}
.nav-link::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: var(--grad-soft);
  opacity: 0;
  transition: opacity var(--transition);
  z-index: -1;
}
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-link.active::before { opacity: 1; }
.nav-link:hover::before { opacity: 0.6; }

.nav-cta { padding: 11px 22px; font-size: 13.5px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 26px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ----- Hero ----- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  padding-bottom: 60px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: 30px;
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.25);
  color: #34d399;
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font-mono);
  margin-bottom: 28px;
}
.eyebrow-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 12px #10b981;
  animation: pulse 2s ease-in-out infinite;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 5.4vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin-bottom: 22px;
  text-wrap: balance;
}
.typed { color: var(--primary-2); }
.caret {
  display: inline-block;
  color: var(--primary-2);
  animation: blink 1s steps(2) infinite;
  margin-left: 2px;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-desc {
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--text-dim);
  max-width: 56ch;
  margin-bottom: 36px;
  text-wrap: pretty;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
}
.stat + .stat::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 5px;
  bottom: 25px;
  width: 1px;
  background: var(--border-2);
}
.stat strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  color: var(--text);
  letter-spacing: -0.015em;
  line-height: 1.15;
}
.stat p {
  font-size: 13px;
  color: var(--text-mute);
  line-height: 1.4;
}

.hero-socials {
  display: flex;
  gap: 12px;
}
.hero-socials a {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border-2);
  color: var(--text-dim);
  transition: all var(--transition);
}
.hero-socials a:hover {
  background: var(--grad);
  color: #fff;
  border-color: transparent;
  transform: translateY(-4px);
  box-shadow: 0 10px 20px -8px rgba(124,58,237,0.6);
}

/* Hero Visual / Orbit */
.hero-visual {
  position: relative;
  height: 520px;
  display: grid;
  place-items: center;
}
.orbit {
  position: relative;
  width: 380px;
  height: 380px;
}
.orbit-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px dashed rgba(255,255,255,0.1);
  animation: rotate 30s linear infinite;
}
.orbit-ring.r2 { inset: 50px; animation-duration: 22s; animation-direction: reverse; border-color: rgba(124,58,237,0.18); }
.orbit-ring.r3 { inset: 100px; animation-duration: 15s; border-color: rgba(6,182,212,0.18); }
@keyframes rotate { to { transform: rotate(360deg); } }

.orbit-dot {
  position: absolute;
  width: 50px; height: 50px;
  border-radius: 14px;
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition);
  cursor: pointer;
}
.orbit-dot:hover { transform: scale(1.15); border-color: var(--primary-2); }
.orbit-dot::after {
  content: attr(data-tip);
  position: absolute;
  top: -32px; left: 50%;
  transform: translateX(-50%);
  background: var(--bg-3);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  color: var(--text);
  border: 1px solid var(--border);
  opacity: 0;
  white-space: nowrap;
  transition: opacity var(--transition);
  pointer-events: none;
}
.orbit-dot:hover::after { opacity: 1; }

.d1 { top: 0; left: 50%; transform: translateX(-50%); }
.d2 { top: 50%; right: 0; transform: translateY(-50%); }
.d3 { bottom: 0; left: 50%; transform: translateX(-50%); }
.d4 { top: 50%; left: 0; transform: translateY(-50%); }
.d5 { top: 50px; right: 50px; }
.d6 { bottom: 50px; left: 50px; }

.orbit-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.avatar {
  position: relative;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: var(--grad);
  padding: 4px;
  box-shadow: var(--shadow-glow);
}
.avatar-inner {
  width: 100%; height: 100%;
  border-radius: 50%;
  background: var(--bg-2);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--text);
  overflow: hidden;
}
.avatar-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.about-portrait-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.avatar-status {
  position: absolute;
  bottom: 8px; right: 8px;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: #10b981;
  border: 4px solid var(--bg);
  box-shadow: 0 0 12px #10b981;
}
.orbit-tag {
  position: absolute;
  bottom: -8px; left: 50%;
  transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  border-radius: 30px;
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  font-size: 12px;
  font-family: var(--font-mono);
}
.pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.floating-card {
  position: absolute;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
}
.fc-1 { top: 50px; left: -10px; }
.fc-2 { bottom: 60px; right: 0; }
.fc-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(124,58,237,0.15);
  color: var(--primary);
}
.fc-icon-2 { background: rgba(6,182,212,0.15); color: var(--primary-2); }
.floating-card strong { display: block; font-size: 13.5px; font-weight: 600; }
.floating-card small { font-size: 11px; color: var(--text-mute); }

.scroll-down {
  position: absolute;
  bottom: 30px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-mute);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.mouse {
  display: block;
  width: 22px; height: 36px;
  border: 2px solid var(--text-mute);
  border-radius: 12px;
  position: relative;
}
.mouse span {
  position: absolute;
  top: 6px; left: 50%;
  width: 3px; height: 6px;
  background: var(--text);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scrollMouse 1.6s ease-in-out infinite;
}
@keyframes scrollMouse {
  0% { transform: translate(-50%, 0); opacity: 1; }
  100% { transform: translate(-50%, 14px); opacity: 0; }
}

/* ----- Marquee ----- */
.marquee {
  padding: 24px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
  overflow: hidden;
  position: relative;
}
.marquee::before, .marquee::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
}
.marquee::before { left: 0; background: linear-gradient(to right, var(--bg-2), transparent); }
.marquee::after { right: 0; background: linear-gradient(to left, var(--bg-2), transparent); }
.marquee-track {
  display: flex;
  gap: 60px;
  white-space: nowrap;
  animation: scroll-x 30s linear infinite;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
}
.marquee-track span { color: var(--text-mute); transition: color var(--transition); }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span:hover { color: var(--primary-2); }
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* ----- About ----- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(260px, 360px) 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.about-img {
  display: flex;
  justify-content: center;
}
.about-img-wrap {
  position: relative;
  padding: 14px;
  width: 100%;
  max-width: 340px;
}
.about-portrait {
  position: relative;
  border-radius: 24px;
  padding: 4px;
  background: var(--grad);
  box-shadow: var(--shadow-glow);
  aspect-ratio: 1;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}
.about-portrait-inner {
  border-radius: 22px;
  overflow: hidden;
  background: var(--bg-2);
  height: 100%;
}
.about-portrait::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 26px;
  background: var(--grad);
  filter: blur(20px);
  opacity: 0.4;
  z-index: -1;
}
.exp-badge {
  position: absolute;
  bottom: 24px; right: -10px;
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  padding: 18px 24px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-lg);
}
.exp-badge strong {
  font-family: var(--font-display);
  font-size: 2.5rem;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
  line-height: 1;
}
.exp-badge small { font-size: 12px; color: var(--text-dim); line-height: 1.4; }

.about-content {
  max-width: 64ch;
}
.about-content h3 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  font-weight: 600;
  margin-bottom: 18px;
  letter-spacing: -0.01em;
  line-height: 1.25;
  text-wrap: balance;
}
.about-content p {
  color: var(--text-dim);
  margin-bottom: 16px;
  font-size: clamp(0.95rem, 1.05vw, 1.02rem);
  line-height: 1.65;
  text-wrap: pretty;
}

.about-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 28px;
  margin: 28px 0;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  list-style: none;
}
.about-meta li {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.5;
}
.about-meta strong {
  color: var(--text);
  font-weight: 600;
  flex: 0 0 110px;
}

.status-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  margin-right: 4px;
  animation: pulse 2s ease-in-out infinite;
}

.about-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ----- Services ----- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.service-card {
  position: relative;
  padding: 36px 30px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-soft);
  opacity: 0;
  transition: opacity var(--transition);
  z-index: 0;
}
.service-card::after {
  content: '';
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  background: var(--grad);
  border-radius: var(--radius);
  z-index: -1;
  opacity: 0;
  transition: opacity var(--transition);
}
.service-card:hover {
  transform: translateY(-8px);
  border-color: transparent;
}
.service-card:hover::before { opacity: 1; }
.service-card:hover::after { opacity: 1; }
.service-card > * { position: relative; z-index: 1; }

.service-icon {
  width: 60px; height: 60px;
  border-radius: 14px;
  background: var(--grad);
  display: grid;
  place-items: center;
  color: #fff;
  margin-bottom: 22px;
  box-shadow: 0 10px 25px -8px rgba(124,58,237,0.5);
  transition: transform var(--transition);
}
.service-card:hover .service-icon { transform: rotate(-6deg) scale(1.05); }

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.service-card p {
  color: var(--text-dim);
  font-size: 14.5px;
  margin-bottom: 18px;
}
.service-list li {
  font-size: 13.5px;
  color: var(--text-mute);
  padding-left: 22px;
  position: relative;
  margin-bottom: 8px;
}
.service-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 14px; height: 2px;
  background: var(--primary-2);
  border-radius: 2px;
}
.service-num {
  position: absolute;
  top: 24px; right: 26px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-mute);
  opacity: 0.4;
}

/* ----- Skills ----- */
/* Capability matrix — proficiency tiers replace skill % bars */
.capability-matrix {
  display: grid;
  gap: 32px;
  max-width: 960px;
  margin: 0 auto;
}
.cap-group {
  padding: 28px 28px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.cap-tier {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  margin-bottom: 18px;
  color: var(--text);
}
.cap-tier small {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 13px;
  color: var(--text-mute);
  letter-spacing: 0;
}
.cap-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.cap-dot-expert   { background: #10b981; box-shadow: 0 0 0 3px rgba(16,185,129,0.18); }
.cap-dot-advanced { background: #06b6d4; box-shadow: 0 0 0 3px rgba(6,182,212,0.18); }
.cap-dot-working  { background: #7b7b8e; box-shadow: 0 0 0 3px rgba(123,123,142,0.18); }

.cap-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cap-tags span {
  padding: 6px 12px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  font-family: var(--font-mono);
  color: var(--text);
  white-space: nowrap;
}

/* ----- Projects ----- */
.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  justify-content: center;
}
.filter-btn {
  padding: 10px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 30px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-dim);
  transition: all var(--transition);
}
.filter-btn:hover { color: var(--text); border-color: var(--border-2); }
.filter-btn.active {
  background: var(--grad);
  color: #fff;
  border-color: transparent;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 30px;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.project-card.hide { display: none; }
.project-card:hover {
  transform: translateY(-10px);
  border-color: var(--border-2);
  box-shadow: var(--shadow-lg);
}

.project-thumb {
  aspect-ratio: 16 / 11;
  background:
    linear-gradient(135deg, rgba(10,10,15,0.55), rgba(10,10,15,0.4)),
    linear-gradient(135deg, var(--p1, #7c3aed), var(--p2, #06b6d4));
  position: relative;
  overflow: hidden;
  padding: 30px;
  display: grid;
  place-items: center;
}

.thumb-mock {
  width: 100%;
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  overflow: hidden;
  backdrop-filter: blur(10px);
  transform: scale(0.95);
  transition: transform var(--transition);
}
.project-card:hover .thumb-mock { transform: scale(1); }

.mock-bar {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  background: rgba(0,0,0,0.3);
}
.mock-bar span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
}
.mock-bar span:nth-child(1) { background: #ff5f57; }
.mock-bar span:nth-child(2) { background: #febc2e; }
.mock-bar span:nth-child(3) { background: #28c840; }

.mock-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 130px;
}
.mock-line {
  height: 10px;
  background: rgba(255,255,255,0.2);
  border-radius: 4px;
}
.mock-line.w70 { width: 70%; }
.mock-line.w60 { width: 60%; }
.mock-line.w50 { width: 50%; }

.mock-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-top: 6px;
}
.mock-grid > div {
  aspect-ratio: 2 / 1;
  background: rgba(255,255,255,0.15);
  border-radius: 4px;
}

.mock-hero {
  aspect-ratio: 16 / 6;
  background: rgba(255,255,255,0.18);
  border-radius: 6px;
}
.mock-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 6px;
}
.mock-cards > div {
  aspect-ratio: 1;
  background: rgba(255,255,255,0.15);
  border-radius: 4px;
}

.mock-circle {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  margin-bottom: 6px;
}

.mock-side {
  width: 30%;
  background: rgba(255,255,255,0.18);
  border-radius: 4px;
  min-height: 90px;
}
.mock-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mock-body:has(.mock-side) { flex-direction: row; align-items: flex-start; }

.thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  opacity: 0;
  transition: opacity var(--transition);
}
.project-card:hover .thumb-overlay { opacity: 1; }

.thumb-link {
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 20px -6px rgba(124,58,237,0.6);
  transform: translateY(10px);
  transition: all var(--transition);
}
.project-card:hover .thumb-link {
  transform: translateY(0);
}
.thumb-link:hover { transform: scale(1.1) translateY(0); }

.project-body {
  padding: 26px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.project-cat {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--primary-2);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}
.project-body h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
  transition: color var(--transition);
}
.project-card:hover .project-body h3 { color: var(--primary-2); }
.project-body p {
  color: var(--text-dim);
  font-size: 14px;
  margin-bottom: 18px;
  flex: 1;
}
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.project-tags span {
  padding: 4px 10px;
  background: var(--bg-3);
  border-radius: 6px;
  font-size: 11.5px;
  font-family: var(--font-mono);
  color: var(--text-dim);
}

.projects-cta {
  text-align: center;
  margin-top: 60px;
}

/* ----- Experience / Timeline ----- */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px 0;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--border-2), transparent);
  transform: translateX(-50%);
}

.tl-item {
  position: relative;
  width: 50%;
  padding: 20px 40px;
  margin-bottom: 20px;
}
.tl-item:nth-child(odd) { left: 0; text-align: right; }
.tl-item:nth-child(even) { left: 50%; }

.tl-dot {
  position: absolute;
  top: 30px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 0 6px var(--bg), 0 0 20px rgba(124,58,237,0.6);
  z-index: 1;
}
.tl-item:nth-child(odd) .tl-dot { right: -10px; }
.tl-item:nth-child(even) .tl-dot { left: -10px; }

.tl-content {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
  position: relative;
}
.tl-content:hover {
  border-color: var(--border-2);
  transform: translateY(-3px);
  background: var(--surface-2);
}
.tl-date {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--primary-2);
  background: rgba(6,182,212,0.08);
  padding: 4px 12px;
  border-radius: 30px;
  margin-bottom: 12px;
}
.tl-content h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.tl-content h4 {
  font-size: 14px;
  color: var(--primary-2);
  font-weight: 500;
  margin-bottom: 12px;
}
.tl-content p {
  font-size: 14px;
  color: var(--text-dim);
}

/* ----- Education ----- */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 50px;
}

.edu-card {
  position: relative;
  padding: 32px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
  overflow: hidden;
}
.edu-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 0;
  background: var(--grad);
  transition: height var(--transition);
  border-radius: 0 4px 4px 0;
}
.edu-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-2);
  background: var(--surface-2);
  box-shadow: var(--shadow-lg);
}
.edu-card:hover::before { height: 100%; }

.edu-icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--grad-soft);
  color: var(--primary-2);
  border: 1px solid var(--border-2);
  margin-bottom: 20px;
  transition: all var(--transition);
}
.edu-card:hover .edu-icon {
  background: var(--grad);
  color: #fff;
  border-color: transparent;
  transform: rotate(-6deg);
}

.edu-year {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--primary-2);
  background: rgba(6,182,212,0.08);
  padding: 4px 12px;
  border-radius: 30px;
  margin-bottom: 12px;
}

.edu-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.edu-card h4 {
  font-size: 14px;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 14px;
}
.edu-card p {
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 18px;
}

.edu-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.edu-tags span {
  padding: 5px 12px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text-dim);
}

/* Single-card feature layout (used for Education now that focus areas live in Services) */
.edu-feature {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: start;
  max-width: 860px;
  margin: 0 auto;
  padding: 36px 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.edu-feature-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: var(--grad-soft);
  color: var(--primary-2);
  border: 1px solid var(--border-2);
}
.edu-feature-body h3 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  font-weight: 600;
  margin: 12px 0 6px;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.edu-feature-body h4 {
  font-size: 14px;
  color: var(--primary-2);
  font-weight: 500;
  margin-bottom: 14px;
}
.edu-feature-body p {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 18px;
  max-width: 60ch;
  text-wrap: pretty;
}
@media (max-width: 640px) {
  .edu-feature {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 28px 22px;
  }
}

.cert-strip {
  padding: 32px 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.cert-strip::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: var(--grad);
  filter: blur(120px);
  opacity: 0.12;
}

.cert-strip-head h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.cert-strip-head p {
  color: var(--text-dim);
  font-size: 14px;
}

.cert-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
  position: relative;
  z-index: 1;
}
.cert-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-dim);
  transition: color var(--transition);
}
.cert-list li:hover { color: var(--text); }
.cert-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--grad);
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(124,58,237,0.6);
}

@media (max-width: 768px) {
  .cert-strip { grid-template-columns: 1fr; gap: 24px; padding: 26px; }
  .cert-list { grid-template-columns: 1fr; }
}

/* ----- Testimonials ----- */
.testimonials-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 20px 4px 30px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.testimonials-track::-webkit-scrollbar { display: none; }

.testimonial-card {
  flex: 0 0 calc(33.333% - 16px);
  scroll-snap-align: start;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
  position: relative;
  min-width: 320px;
}
.testimonial-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.quote-icon {
  color: var(--primary);
  opacity: 0.25;
  margin-bottom: 16px;
}
.testimonial-card p {
  font-size: 15px;
  color: var(--text-dim);
  margin-bottom: 24px;
  font-style: italic;
  line-height: 1.7;
}
.t-meta {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 12px;
  align-items: center;
}
.t-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
  font-size: 15px;
}
.t-meta strong { display: block; font-size: 14px; }
.t-meta small { font-size: 12px; color: var(--text-mute); }
.t-stars { color: #fbbf24; font-size: 13px; letter-spacing: 1px; }

.t-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 20px;
}
.t-dots button {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border-2);
  transition: all var(--transition);
}
.t-dots button.active {
  background: var(--grad);
  width: 24px;
  border-radius: 4px;
}

/* ----- Contact ----- */
.contact-card {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  padding: 60px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  position: relative;
  overflow: hidden;
}
.contact-card::before {
  content: '';
  position: absolute;
  top: -150px; right: -150px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: var(--grad);
  filter: blur(120px);
  opacity: 0.18;
}

.contact-info .section-tag { margin-bottom: 14px; }
.contact-info .section-title { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.contact-info > p {
  color: var(--text-dim);
  margin: 16px 0 32px;
  font-size: 15px;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 32px;
}
.contact-list li {
  display: flex;
  align-items: center;
  gap: 14px;
}
.ci-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: var(--grad-soft);
  color: var(--primary-2);
  border: 1px solid var(--border);
}
.contact-list small {
  display: block;
  font-size: 11.5px;
  color: var(--text-mute);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.contact-list a, .contact-list span {
  font-size: 14.5px;
  color: var(--text);
  font-weight: 500;
  transition: color var(--transition);
}
.contact-list a:hover { color: var(--primary-2); }

.contact-socials {
  display: flex;
  gap: 10px;
}
.contact-socials a {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  color: var(--text-dim);
  transition: all var(--transition);
}
.contact-socials a:hover {
  background: var(--grad);
  color: #fff;
  border-color: transparent;
  transform: translateY(-3px);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  z-index: 1;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-group {
  position: relative;
}
.form-group input, .form-group textarea {
  width: 100%;
  padding: 18px 20px 8px;
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  outline: none;
  transition: all var(--transition);
  resize: vertical;
}
.form-group textarea { padding-top: 22px; min-height: 130px; }
.form-group input:focus, .form-group textarea:focus {
  border-color: var(--primary);
  background: var(--bg-2);
  box-shadow: 0 0 0 4px rgba(124,58,237,0.12);
}
.form-group label {
  position: absolute;
  left: 20px;
  top: 18px;
  font-size: 14px;
  color: var(--text-mute);
  pointer-events: none;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  background: transparent;
}
.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group input:valid:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
  top: 4px;
  font-size: 11px;
  color: var(--primary-2);
}
.form-group input,
.form-group textarea { /* trigger floating with placeholder hack */ }
.form-group input::placeholder, .form-group textarea::placeholder { color: transparent; }
.form-group input, .form-group textarea { /* placeholder needs to exist */ }

.form-status {
  font-size: 13px;
  margin-top: 8px;
  text-align: center;
  min-height: 18px;
}
.form-status.success { color: #10b981; }
.form-status.error { color: #f43f5e; }

/* Inline validation states */
.form-group { position: relative; }
.form-group.valid input,
.form-group.valid textarea {
  border-color: rgba(16,185,129,0.4);
}
.form-group.invalid input,
.form-group.invalid textarea {
  border-color: rgba(244,63,94,0.5);
}
.field-hint {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  color: #f43f5e;
  min-height: 16px;
  transition: opacity 0.2s ease;
}
.form-group.valid .field-hint { color: #10b981; }
.form-group.valid .field-hint::before { content: '✓ '; }
.field-count {
  position: absolute;
  bottom: 10px;
  right: 14px;
  font-size: 11.5px;
  font-family: var(--font-mono);
  color: var(--text-mute);
  pointer-events: none;
}
.field-count.over { color: #f43f5e; }

/* Honeypot — hidden from humans, visible to bots that auto-fill all inputs */
.honeypot {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* ----- Footer ----- */
.footer {
  padding: 80px 0 30px;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 50px;
  padding-bottom: 50px;
  border-bottom: 1px solid var(--border);
}
.footer-brand p {
  color: var(--text-dim);
  margin-top: 16px;
  font-size: 14.5px;
  max-width: 320px;
}
.footer-col h5 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}
.footer-col ul li {
  margin-bottom: 10px;
}
.footer-col a, .footer-col li {
  color: var(--text-dim);
  font-size: 14px;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--primary-2); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 13px;
  color: var(--text-mute);
  flex-wrap: wrap;
  gap: 12px;
}
.heart {
  color: #f43f5e;
  display: inline-block;
  animation: heartbeat 1.4s ease-in-out infinite;
}
@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.25); }
}

/* ----- Back to Top ----- */
.back-top {
  position: fixed;
  bottom: 30px; right: 30px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 10px 25px -8px rgba(124,58,237,0.6);
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition);
}
.back-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-top:hover {
  transform: translateY(-6px) scale(1.05);
}

/* ----- WhatsApp floating chat button ----- */
.wa-fab {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px -8px rgba(37,211,102,0.55), 0 0 0 0 rgba(37,211,102,0.55);
  color: #fff;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition);
  animation: wa-pulse 2.5s ease-in-out infinite;
}
.wa-fab:hover {
  transform: translateY(-4px) scale(1.06);
  animation-play-state: paused;
}
.wa-fab:focus-visible {
  outline: 2px solid #25D366;
  outline-offset: 4px;
}
@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 12px 30px -8px rgba(37,211,102,0.55), 0 0 0 0 rgba(37,211,102,0.6); }
  50% { box-shadow: 0 12px 30px -8px rgba(37,211,102,0.55), 0 0 0 14px rgba(37,211,102,0); }
}
.wa-tooltip {
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(-6px);
  background: var(--bg-3);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--border-2);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}
.wa-tooltip::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 8px;
  height: 8px;
  background: var(--bg-3);
  border-left: 1px solid var(--border-2);
  border-bottom: 1px solid var(--border-2);
}
.wa-fab:hover .wa-tooltip,
.wa-fab:focus-visible .wa-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}
@media (max-width: 640px) {
  .wa-fab { width: 50px; height: 50px; bottom: 20px; left: 20px; }
  .wa-fab svg { width: 22px; height: 22px; }
  .wa-tooltip { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .wa-fab { animation: none; }
}

/* ----- Reveal Animations ----- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left {
  opacity: 0; transform: translateX(-40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal-right {
  opacity: 0; transform: translateX(40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal-left.visible, .reveal-right.visible { opacity: 1; transform: translateX(0); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1100px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 40px; }
  .hero-grid { gap: 40px; }
  .nav-cta { display: none; }
}

@media (max-width: 980px) {
  .section { padding: 90px 0; }

  .hero-grid { grid-template-columns: 1fr; gap: 50px; text-align: center; }
  .hero-text .eyebrow, .hero-cta, .hero-stats, .hero-socials { justify-content: center; }
  .hero-text .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-stats { gap: 30px; }
  .stat + .stat::before { display: none; }
  .hero-visual { height: 420px; }
  .orbit { width: 320px; height: 320px; }
  .floating-card { display: none; }

  .section-head { text-align: center; margin-left: auto; margin-right: auto; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-img-wrap { max-width: 320px; margin: 0 auto; }
  .about-portrait { max-width: 280px; }
  .about-meta { grid-template-columns: 1fr; }

  .contact-card { grid-template-columns: 1fr; gap: 40px; padding: 40px 30px; }

  .timeline::before { left: 22px; }
  .tl-item, .tl-item:nth-child(odd), .tl-item:nth-child(even) {
    width: 100%; left: 0; text-align: left; padding-left: 60px; padding-right: 0;
  }
  .tl-item:nth-child(odd) .tl-dot, .tl-item:nth-child(even) .tl-dot {
    left: 12px; right: auto;
  }

  .testimonial-card { flex: 0 0 calc(100% - 30px); }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 70px; left: 0; right: 0;
    background: rgba(10,10,15,0.96);
    backdrop-filter: blur(20px);
    padding: 30px 24px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    transition: transform var(--transition);
    height: calc(100vh - 70px);
    overflow-y: auto;
  }
  .nav-menu.open { transform: translateY(0); }
  .nav-menu ul { flex-direction: column; gap: 6px; }
  .nav-link {
    display: block;
    padding: 14px 18px;
    font-size: 16px;
  }
  .nav-toggle { display: flex; }

  .footer-inner { grid-template-columns: 1fr; gap: 30px; padding-bottom: 30px; text-align: center; }
  .footer-brand p { margin-left: auto; margin-right: auto; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .filter-bar { gap: 6px; }
  .filter-btn { padding: 8px 14px; font-size: 12.5px; }

  .container { padding: 0 18px; }
  .section { padding: 70px 0; }

  .hero { padding-top: 100px; }
  .hero-stats { gap: 20px; }
  .stat-num { font-size: 1.7rem; }
  .orbit { width: 280px; height: 280px; }
  .orbit-dot { width: 42px; height: 42px; }
  .avatar { width: 130px; height: 130px; }
  .avatar-inner { font-size: 2.6rem; }

  .service-card { padding: 28px 22px; }
  .contact-card { padding: 30px 22px; }
  .form-row { grid-template-columns: 1fr; }

  .scroll-down { display: none; }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; width: 100%; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .hero-stats { justify-content: space-around; width: 100%; }
  .about-cta { width: 100%; }
  .about-cta .btn { flex: 1; justify-content: center; min-width: 0; }
  .about-meta { padding: 20px; }
  .about-meta li { flex-direction: column; gap: 2px; }
  .about-meta strong { flex: none; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-mute); }
  .exp-badge { padding: 14px 18px; }
  .exp-badge strong { font-size: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   CSS Scroll-Driven Animations (Chrome 115+, Edge, Safari TP)
   ============================================================
   We use @supports so the JS-based IntersectionObserver reveals
   remain the source of truth for browsers without this feature.
   In supporting browsers, the CSS takes over with better fidelity. */

@supports (animation-timeline: view()) and (animation-timeline: scroll()) {

  /* 1. Scroll progress bar driven entirely by CSS — no JS needed.
     The existing #scrollProgress element still gets width set by main.js
     for old browsers; here we override with a clean keyframe tied to scroll. */
  #scrollProgress {
    animation: cssScrollProgress linear;
    animation-timeline: scroll(root);
  }
  @keyframes cssScrollProgress {
    from { width: 0%; }
    to   { width: 100%; }
  }

  /* 2. Reveal animations via view() — fires as the element enters the viewport.
     Overrides the IntersectionObserver-based .visible class. */
  .reveal,
  .reveal-left,
  .reveal-right {
    opacity: 0;
    animation: cssReveal linear both;
    animation-timeline: view();
    animation-range: entry 5% cover 30%;
  }
  .reveal-left  { transform: translateX(-40px); animation-name: cssRevealLeft; }
  .reveal-right { transform: translateX(40px);  animation-name: cssRevealRight; }

  @keyframes cssReveal {
    to { opacity: 1; transform: translateY(0); }
  }
  @keyframes cssRevealLeft {
    to { opacity: 1; transform: translateX(0); }
  }
  @keyframes cssRevealRight {
    to { opacity: 1; transform: translateX(0); }
  }

  /* 3. Section section-tag chip pops as the section title enters */
  .section-tag {
    animation: tagPop linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 20%;
  }
  @keyframes tagPop {
    from { opacity: 0; transform: scale(0.85) translateY(8px); }
    to   { opacity: 1; transform: scale(1)    translateY(0); }
  }
}

/* ============================================================
   Hero WebGL canvas — fills .orbit, sits behind .orbit-center
   ============================================================ */
.hero-scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
  pointer-events: none;
}
.orbit-center {
  position: relative;
  z-index: 2;
}

/* ============================================================
   View Transitions API (Chrome 111+, Safari 18+, behind flag in Firefox)
   ============================================================ */

/* Cross-document transitions for in-site navigation (index ↔ resume ↔ 404) */
@view-transition {
  navigation: auto;
}

/* Same-document transitions wrap filter / theme changes via JS */
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.35s;
  animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Brand mark morphs continuously across pages */
.nav-logo .logo-mark,
.brand .brand-mark {
  view-transition-name: brand-mark;
}

/* Project cards opt in via inline style="view-transition-name: vt-card-N"
   (assigned by main.js so each card morphs independently) */

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) { animation: none; }
}
