:root {
  --bg: #0a0e17;
  --bg-alt: #0f1420;
  --bg-alt-translucent: rgba(15, 20, 32, 0.72);
  --card: #131a2b;
  --text: #e7eaf3;
  --text-muted: #929cb3;
  --border: #232b3f;
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --accent: #22d3ee;
  --gold: #f59e0b;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max-width: 1140px;

  /* Fluid spacing system */
  --section-pad-y: clamp(48px, 8vw, 90px);
  --container-pad-x: clamp(16px, 4.5vw, 24px);
  --gap-sm: clamp(10px, 2vw, 14px);
  --gap-md: clamp(16px, 3vw, 22px);
  --gap-lg: clamp(24px, 5vw, 40px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  line-height: 1.6;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--container-pad-x); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
a, button { touch-action: manipulation; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

#bg-canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
header, main, footer { position: relative; z-index: 1; }

/* ============ NAVBAR ============ */
.navbar {
  position: sticky; top: 0;
  background: rgba(10,14,23,0.85);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-weight: 800; font-size: 1.25rem; color: var(--text); letter-spacing: -0.01em; }
.logo span { color: var(--accent); }
.nav-links { display: flex; list-style: none; gap: 26px; }
.nav-link { position: relative; font-size: 0.94rem; font-weight: 500; color: var(--text-muted); transition: color 0.2s; padding: 6px 0; }
.nav-link::after { content: ""; position: absolute; bottom: 0; left: 0; width: 0%; height: 2px; background: var(--accent); transition: width 0.25s; }
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 10px; border-radius: 6px; }
.menu-toggle span { width: 22px; height: 2px; background: var(--text); transition: transform 0.2s; display: block; }

/* ============ HERO ============ */
.hero { padding: clamp(40px, 8vw, 90px) 0 clamp(30px, 6vw, 60px); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--gap-lg);
  align-items: center;
}
.hero-hello {
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34,197,94,0.7);
  animation: pulse 2s infinite;
  display: inline-block;
  flex-shrink: 0;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34,197,94,0.6); }
  70% { box-shadow: 0 0 0 10px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}
.hero-text h1 {
  font-size: clamp(2.2rem, 7vw, 3.6rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 16px;
  color: var(--text);
  letter-spacing: -0.02em;
}
.hero-role {
  font-size: clamp(1rem, 3vw, 1.3rem);
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 18px;
  min-height: 1.6em;
}
.role-static { color: var(--text); }
#typedText { color: var(--accent); }
.cursor { color: var(--accent); animation: blink 0.9s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-desc { color: var(--text-muted); max-width: 480px; margin-bottom: 28px; font-size: clamp(0.92rem, 2.6vw, 1rem); }
.hero-actions { display: flex; gap: 12px; margin-bottom: 28px; flex-wrap: wrap; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
  min-height: 48px;
  line-height: 1;
}
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--primary-dark); transform: translateY(-3px); box-shadow: 0 12px 28px rgba(99,102,241,0.35); }
.btn-outline { border-color: var(--accent); color: var(--accent); background: transparent; }
.btn-outline:hover { background: var(--accent); color: #05131a; transform: translateY(-3px); }
.btn-full { width: 100%; }
.btn-whatsapp { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: #25D366; color: #05130a; }
.btn-whatsapp:hover { background: #1fb955; transform: translateY(-3px); box-shadow: 0 12px 28px rgba(37,211,102,0.3); }

/* ============ SOCIAL ICONS ============ */
.social-icons { display: flex; gap: 12px; flex-wrap: wrap; }
.social-icons a {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: 0.2s;
}
.social-icons a:hover, .social-icons a:active { background: var(--accent); color: #05131a; border-color: var(--accent); transform: translateY(-3px); }

/* ============ HERO PHOTO ============ */
.hero-photo-col { position: relative; display: flex; align-items: center; justify-content: center; padding: 20px 0; }
.blob-shape {
  position: absolute;
  width: clamp(260px, 70vw, 340px);
  height: clamp(260px, 70vw, 340px);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 62% 38% 55% 45% / 45% 55% 45% 55%;
  animation: morph 8s ease-in-out infinite;
  z-index: 0;
  opacity: 0.85;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
@keyframes morph {
  0%, 100% { border-radius: 62% 38% 55% 45% / 45% 55% 45% 55%; }
  50% { border-radius: 45% 55% 40% 60% / 55% 40% 60% 40%; }
}
.hero-photo {
  position: relative;
  z-index: 1;
  width: clamp(240px, 65vw, 320px);
  height: auto;
  aspect-ratio: 320 / 380;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
  border: 2px solid var(--border);
}

.floating-card {
  position: absolute;
  z-index: 2;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  animation: floaty 4s ease-in-out infinite;
  white-space: nowrap;
}
.floating-card-1 { top: 0; left: 0; animation-delay: 0s; }
.floating-card-2 { bottom: 0; right: 0; animation-delay: -2s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.fc-number {
  background: var(--accent); color: #05131a;
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; font-weight: 700;
  flex-shrink: 0;
}

/* ============ STATS BAND ============ */
.stats-band {
  position: relative;
  background: linear-gradient(90deg, rgba(99,102,241,0.12), rgba(34,211,238,0.08));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: clamp(24px, 4vw, 34px) 0;
}
.stats-band-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap-md);
  text-align: center;
}
.stat-number { display: block; font-size: clamp(1.6rem, 5vw, 2.4rem); font-weight: 800; color: var(--accent); line-height: 1.1; }
.stat-label { font-size: 0.8rem; color: var(--text-muted); display: block; margin-top: 4px; }
.stat-block + .stat-block { border-left: 1px solid var(--border); }

/* ============ REVEAL ============ */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-reveal].in-view { opacity: 1; transform: translateY(0); }
.no-js [data-reveal] { opacity: 1; transform: none; }

/* ============ SECTIONS ============ */
.section { padding: var(--section-pad-y) 0; }
.section-alt { background: var(--bg-alt-translucent); }
.eyebrow {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.82rem;
  margin-bottom: 10px;
}
.eyebrow.center { text-align: center; }
.section-title {
  font-size: clamp(1.5rem, 4.5vw, 2rem);
  font-weight: 800;
  margin-bottom: clamp(28px, 5vw, 40px);
  text-align: center;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.section-title-left { text-align: left; margin-bottom: 20px; }

/* ============ ABOUT ============ */
.about-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: clamp(30px, 5vw, 60px);
  align-items: center;
}
.about-image { position: relative; display: flex; align-items: center; justify-content: center; padding: 20px 0; }
.about-blob {
  position: absolute;
  width: clamp(230px, 60vw, 280px);
  height: clamp(230px, 60vw, 280px);
  background: linear-gradient(135deg, var(--accent), var(--primary));
  border-radius: 40% 60% 55% 45% / 55% 45% 60% 40%;
  z-index: 0;
  opacity: 0.85;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.about-image img {
  position: relative;
  z-index: 1;
  width: clamp(220px, 60vw, 280px);
  height: auto;
  aspect-ratio: 280 / 320;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 24px 48px rgba(0,0,0,0.5);
  border: 2px solid var(--border);
}
.about-text { color: var(--text-muted); margin-bottom: 16px; font-size: clamp(0.92rem, 2.6vw, 1rem); }
.about-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(34,211,238,0.08);
  border: 1px solid rgba(34,211,238,0.25);
  color: var(--accent);
  padding: 7px 14px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
}
.tag i { font-size: 0.8rem; }

/* ============ CURRENTLY ============ */
.now-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--gap-md); }
.now-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: clamp(20px, 4vw, 26px);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.now-card:hover { transform: translateY(-5px); border-color: var(--accent); box-shadow: 0 14px 30px rgba(0,0,0,0.35); }
.now-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: linear-gradient(135deg, rgba(99,102,241,0.2), rgba(34,211,238,0.2));
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 14px;
}
.now-card h3 { font-size: 1rem; margin-bottom: 8px; color: var(--text); }
.now-card p { color: var(--text-muted); font-size: 0.9rem; }

/* ============ SKILLS MARQUEE ============ */
.marquee-wrap {
  overflow: hidden;
  width: 100%;
  padding: 10px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; gap: 12px; width: max-content; animation: marqueeLeft 30s linear infinite; will-change: transform; }
.marquee-track-reverse { animation: marqueeRight 30s linear infinite; }
.marquee-wrap:hover .marquee-track { animation-play-state: paused; }
@keyframes marqueeLeft  { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes marqueeRight { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 10px 18px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text);
  white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
}
.badge i { font-size: 1rem; color: var(--accent); transition: color 0.2s; }
.badge:hover { background: var(--primary); color: #fff; transform: translateY(-4px); box-shadow: 0 10px 24px rgba(99,102,241,0.35); }
.badge:hover i { color: #fff; }

/* ============ SERVICES ============ */
.services-brand { display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--accent); margin-bottom: 8px; flex-wrap: wrap; }
.services-title { margin-bottom: 0; }
.services-title span { color: var(--accent); }
.services-tagline { text-align: center; color: var(--text-muted); max-width: 560px; margin: 0 auto 40px; font-size: clamp(0.92rem, 2.6vw, 1rem); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: var(--gap-md); margin-bottom: clamp(40px, 6vw, 60px); }
.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: clamp(20px, 4vw, 26px);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 16px 34px rgba(0,0,0,0.4); border-color: var(--accent); }
.service-icon { font-size: 1.8rem; margin-bottom: 12px; }
.service-card h3 { font-size: 1.05rem; margin-bottom: 8px; color: var(--text); }
.service-card p { color: var(--text-muted); font-size: 0.9rem; }

/* ============ PROCESS ============ */
.process-header { text-align: center; margin-bottom: 30px; }
.process-title { font-size: clamp(1.1rem, 3.5vw, 1.4rem); font-weight: 800; color: var(--text); margin-top: 6px; }
.process-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--gap-md); margin-bottom: 44px; }
.process-step {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: clamp(22px, 4vw, 26px) clamp(20px, 4vw, 24px);
}
.process-step::before { content: ""; position: absolute; left: 24px; top: 0; width: 30px; height: 3px; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: 0 0 4px 4px; }
.step-num { display: block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 10px; }
.process-step h4 { font-size: 1.05rem; color: var(--text); margin-bottom: 8px; }
.process-step p { color: var(--text-muted); font-size: 0.9rem; }

.services-offer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(34,211,238,0.1));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: clamp(22px, 4vw, 30px) clamp(20px, 4vw, 34px);
  margin-bottom: 18px;
}
.offer-text h3 { font-size: clamp(1rem, 3vw, 1.15rem); margin-bottom: 6px; color: var(--text); }
.offer-text p { color: var(--text-muted); font-size: 0.9rem; }
.services-phone { text-align: center; color: var(--text-muted); font-size: 0.9rem; word-break: break-word; }
.services-phone strong { color: var(--text); }

/* ============ PROJECTS ============ */
.project-row {
  display: grid;
  grid-template-columns: 80px 1fr 260px;
  gap: clamp(20px, 3vw, 30px);
  align-items: start;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: clamp(24px, 4vw, 40px);
  margin-bottom: 24px;
  transition: transform 0.25s, border-color 0.25s;
}
.project-row:hover { border-color: var(--primary); }
.project-row:last-child { margin-bottom: 0; }
.project-number { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; color: var(--border); line-height: 1; }
.project-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 12px;
  border-radius: 30px;
  background: rgba(34,211,238,0.12);
  color: var(--accent);
  border: 1px solid rgba(34,211,238,0.3);
  margin-bottom: 10px;
}
.project-badge-gold { background: rgba(245,158,11,0.12); color: var(--gold); border-color: rgba(245,158,11,0.35); }
.project-category { color: var(--text-muted); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px; }
.project-info h3 { font-size: clamp(1.3rem, 4vw, 1.6rem); font-weight: 800; margin-bottom: 10px; color: var(--text); }
.project-tech { font-size: 0.82rem; color: var(--accent); font-weight: 600; margin-bottom: 14px; line-height: 1.5; }
.project-desc { color: var(--text-muted); margin-bottom: 14px; font-size: 0.94rem; }
.project-features { list-style: none; margin-bottom: 18px; }
.project-features li { color: var(--text-muted); padding: 4px 0 4px 20px; position: relative; font-size: 0.9rem; }
.project-features li::before { content: "▸"; position: absolute; left: 0; color: var(--accent); }
.project-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--accent); font-size: 0.92rem; }
.project-link svg { transition: transform 0.2s; }
.project-link:hover svg { transform: translateX(4px); }
.project-visual { border-radius: 16px; overflow: hidden; display: flex; }
.project-visual-img {
  width: 100%; height: 100%;
  min-height: 180px;
  object-fit: contain;
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  border: 1px solid var(--border);
}
.project-visual-generic {
  background: linear-gradient(135deg, rgba(99,102,241,0.25), rgba(34,211,238,0.2));
  border: 1px solid var(--border);
  min-height: 180px;
  align-items: center;
  justify-content: center;
}
.project-visual-icon { font-size: 4rem; color: #fff; opacity: 0.9; }

/* ============ TABS ============ */
.tabs { display: flex; justify-content: center; gap: 12px; margin-bottom: clamp(28px, 5vw, 50px); flex-wrap: wrap; }
.tab-btn {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 11px 24px;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
  font-family: inherit;
  font-size: 0.92rem;
  min-height: 44px;
}
.tab-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.tab-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ============ TIMELINE ============ */
.timeline-zigzag { position: relative; max-width: 760px; margin: 0 auto; }
.timeline-zigzag::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  width: 2px; height: 100%;
  background: linear-gradient(var(--primary), var(--accent));
  transform: translateX(-50%);
  z-index: 0;
}
.tz-item { display: grid; grid-template-columns: 1fr 48px 1fr; align-items: start; gap: 0 24px; margin-bottom: 44px; position: relative; }
.tz-item:last-child { margin-bottom: 0; }
.tz-icon {
  grid-column: 2;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--card);
  border: 2px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  z-index: 2;
  font-size: 1rem;
}
.tz-content {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: clamp(18px, 3vw, 22px);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.tz-content:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0,0,0,0.4); border-color: var(--accent); }
.tz-item.left .tz-content { grid-column: 1; text-align: right; }
.tz-item.right .tz-content { grid-column: 3; text-align: left; }
.tz-content h4 { color: var(--text); margin: 4px 0 8px; font-size: 1rem; }
.tz-content p { color: var(--text-muted); font-size: 0.88rem; }
.timeline-date { color: var(--accent); font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; }
.edu-card .edu-logo { width: 46px; height: 46px; object-fit: contain; background: #fff; border-radius: 8px; padding: 4px; margin-bottom: 10px; }
.tz-item.left .edu-logo { margin-left: auto; }
.tz-item.right .edu-logo { margin-right: auto; }
.edu-link { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 700; font-size: 0.85rem; margin-top: 10px; }
.edu-link:hover { text-decoration: underline; }

/* ============ CERTIFICATIONS ============ */
.cert-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--gap-md); }
.cert-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: 10px;
  padding: clamp(16px, 3vw, 20px);
  transition: transform 0.25s, box-shadow 0.25s;
}
.cert-card:hover { transform: translateY(-6px); box-shadow: 0 16px 32px rgba(0,0,0,0.4); }
.cert-card h4 { font-size: 0.98rem; margin-bottom: 6px; color: var(--text); line-height: 1.35; }
.cert-issuer { font-weight: 700; font-size: 0.85rem; color: var(--accent); }
.cert-date { color: var(--text-muted); font-size: 0.8rem; }
.cert-card-featured {
  position: relative;
  border-left-color: var(--gold);
  background: linear-gradient(135deg, rgba(245,158,11,0.08), rgba(99,102,241,0.06));
  grid-column: span 2;
}
.cert-card-featured h4 { font-size: 1.1rem; }
.cert-featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  background: rgba(245,158,11,0.12);
  border: 1px solid rgba(245,158,11,0.35);
  padding: 4px 10px;
  border-radius: 30px;
  margin-bottom: 12px;
}
.cert-featured-badge i { font-size: 0.68rem; }
.cert-card-featured .cert-issuer { color: var(--gold); }
.cert-desc { color: var(--text-muted); font-size: 0.84rem; margin: 10px 0 14px; line-height: 1.55; }
.cert-verify-link { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 700; font-size: 0.82rem; }
.cert-verify-link:hover { text-decoration: underline; }
.cert-cta { display: flex; justify-content: center; margin-top: clamp(28px, 5vw, 40px); }
.cert-cta .btn-outline { display: inline-flex; align-items: center; gap: 10px; }

/* ============ TESTIMONIALS ============ */
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--gap-md); }
.testimonial-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: clamp(24px, 4vw, 30px) clamp(20px, 4vw, 26px) clamp(20px, 3vw, 24px);
  transition: transform 0.25s, border-color 0.25s;
}
.testimonial-card:hover { transform: translateY(-5px); border-color: var(--accent); }
.quote-mark { width: 32px; height: 32px; color: var(--primary); opacity: 0.7; margin-bottom: 14px; }
.testimonial-card blockquote { color: var(--text); font-size: 0.95rem; line-height: 1.65; margin-bottom: 20px; font-style: italic; }
.testimonial-card figcaption strong { display: block; color: var(--accent); font-size: 0.88rem; }
.testimonial-card figcaption span { color: var(--text-muted); font-size: 0.8rem; }

/* ============ FAQ ============ */
.faq-container { max-width: 820px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; transition: border-color 0.2s; }
.faq-item[open] { border-color: var(--accent); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(16px, 3vw, 20px) clamp(18px, 3vw, 24px);
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  min-height: 56px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary i { color: var(--accent); transition: transform 0.25s; font-size: 0.85rem; flex-shrink: 0; }
.faq-item[open] summary i { transform: rotate(180deg); }
.faq-item p { padding: 0 clamp(18px, 3vw, 24px) clamp(16px, 3vw, 20px); color: var(--text-muted); font-size: 0.9rem; line-height: 1.65; }

/* ============ CTA BAND ============ */
.cta-band {
  position: relative;
  padding: clamp(40px, 7vw, 60px) 0;
  background: linear-gradient(135deg, rgba(99,102,241,0.18), rgba(34,211,238,0.12));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-title { font-size: clamp(1.3rem, 4vw, 1.7rem); font-weight: 800; color: var(--text); margin-bottom: 8px; max-width: 520px; }
.cta-sub { color: var(--text-muted); max-width: 520px; font-size: clamp(0.9rem, 2.6vw, 1rem); }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ============ CONTACT ============ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 60px); align-items: start; }
.contact-detail { margin: 20px 0; }
.contact-label { display: block; font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px; }
.copy-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.copy-row > span:first-child { word-break: break-word; font-size: 0.94rem; }
.copy-btn {
  background: var(--primary); color: #fff; border: none;
  padding: 9px 16px; border-radius: 6px;
  font-weight: 600; font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.2s;
  font-family: inherit;
  min-height: 36px;
}
.copy-btn:hover { background: var(--primary-dark); }
.contact-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: clamp(20px, 4vw, 32px);
}
.form-group { position: relative; margin-bottom: 22px; }
.form-group input, .form-group textarea {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 16px; /* prevents zoom on iOS */
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.2s;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--accent); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group label {
  position: absolute;
  left: 14px; top: 14px;
  color: var(--text-muted);
  font-size: 0.95rem;
  pointer-events: none;
  transition: 0.2s ease all;
  background: var(--card);
  padding: 0 4px;
}
.form-group input:focus + label, .form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label, .form-group textarea:not(:placeholder-shown) + label {
  top: -9px; left: 10px; font-size: 0.78rem; color: var(--accent);
}
.form-status { margin-top: 14px; font-size: 0.88rem; color: var(--accent); min-height: 1.2em; }

/* Credly inline link */
.credly-inline-link { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 700; font-size: 0.92rem; transition: color 0.2s; }
.credly-inline-link:hover { color: var(--primary); }
.credly-inline-link i { font-size: 1rem; }

/* ============ FOOTER ============ */
.footer { border-top: 1px solid var(--border); padding: clamp(30px, 5vw, 40px) 0 clamp(24px, 4vw, 30px); color: var(--text-muted); font-size: 0.9rem; padding-bottom: calc(clamp(24px, 4vw, 30px) + env(safe-area-inset-bottom, 0px)); }
.footer-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; }
.footer-brand .logo { font-size: 1.15rem; }
.footer-brand p { font-size: 0.84rem; margin-top: 6px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.footer-links a { color: var(--text-muted); font-size: 0.88rem; font-weight: 500; transition: color 0.2s; padding: 4px 0; }
.footer-links a:hover { color: var(--accent); }
.footer-copy { font-size: 0.8rem; padding-top: 12px; border-top: 1px solid var(--border); width: 100%; }

/* ============ BACK TO TOP ============ */
.back-to-top {
  position: fixed;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  right: 20px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  box-shadow: 0 10px 24px rgba(99,102,241,0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s, visibility 0.3s, background 0.2s;
  z-index: 90;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--primary-dark); }

/* ============ FOCUS ============ */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ============================================================
   RESPONSIVE — Mobile-first polish
   ============================================================ */

/* Large tablets / small laptops */
@media (max-width: 1024px) {
  .project-row { grid-template-columns: 60px 1fr 220px; }
}

/* Tablets */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 32px; }
  .hero-hello { justify-content: center; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .social-icons { justify-content: center; }
  .hero-photo-col { margin-top: 20px; }

  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-image { margin-bottom: 0; }
  .about-tags { justify-content: center; }

  .project-row { grid-template-columns: 1fr; gap: 22px; }
  .project-number { font-size: 1.8rem; }
  .project-visual { max-width: 340px; margin: 0 auto; width: 100%; }
  .project-visual-img, .project-visual-generic { min-height: 200px; }

  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .services-offer { flex-direction: column; text-align: center; }
  .services-offer .btn { width: 100%; justify-content: center; }
  .cta-inner { flex-direction: column; text-align: center; }
  .cta-title, .cta-sub { max-width: 100%; margin-left: auto; margin-right: auto; }
  .cta-actions { justify-content: center; width: 100%; }
  .cta-actions .btn { flex: 1 1 auto; min-width: 180px; }

  .stats-band-inner { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .stat-block + .stat-block { border-left: none; }
  .stat-block:nth-child(odd) { border-right: 1px solid var(--border); }
}

/* Mobile nav breakpoint */
@media (max-width: 768px) {
  .nav-inner { height: 60px; }
  .nav-links {
    position: absolute;
    top: 60px; left: 0; right: 0;
    background: rgba(10,14,23,0.98);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-bottom: 1px solid var(--border);
    display: none;
    padding: 8px 0;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; text-align: left; }
  .nav-link {
    display: block;
    padding: 14px 24px;
    font-size: 1rem;
    border-left: 2px solid transparent;
    transition: 0.2s;
  }
  .nav-link::after { display: none; }
  .nav-link:hover, .nav-link.active {
    background: rgba(34,211,238,0.06);
    border-left-color: var(--accent);
    color: var(--accent);
  }
  .menu-toggle { display: flex; }
}

/* Phones */
@media (max-width: 640px) {
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; }

  .social-icons a { width: 42px; height: 42px; }

  .floating-card { font-size: 0.72rem; padding: 8px 12px; }
  .floating-card-1 { top: -6px; left: -4px; }
  .floating-card-2 { bottom: -6px; right: -4px; }
  .fc-number { width: 24px; height: 24px; font-size: 0.68rem; }

  .timeline-zigzag::before { left: 22px; }
  .tz-item { grid-template-columns: 44px 1fr; gap: 0 14px; margin-bottom: 28px; }
  .tz-icon { grid-column: 1; }
  .tz-item.left .tz-content, .tz-item.right .tz-content {
    grid-column: 2;
    text-align: left;
  }
  .tz-item.left .edu-logo, .tz-item.right .edu-logo { margin-left: 0; margin-right: auto; }

  .cert-card-featured { grid-column: span 1; }

  .contact-form { padding: 20px; }

  .cta-actions { flex-direction: column; width: 100%; }
  .cta-actions .btn { width: 100%; }

  .project-visual { max-width: 100%; }

  .copy-btn { padding: 8px 14px; }
}

/* Small phones */
@media (max-width: 400px) {
  .hero-text h1 { font-size: 2rem; }
  .hero-role { font-size: 1rem; }
  .hero-photo { width: 220px; }

  .floating-card { font-size: 0.68rem; padding: 7px 10px; }
  .floating-card-1 { top: -10px; left: -8px; }
  .floating-card-2 { bottom: -10px; right: -8px; }

  .stat-number { font-size: 1.5rem; }
  .stat-label { font-size: 0.72rem; }

  .btn { padding: 12px 20px; font-size: 0.9rem; }

  .services-offer { padding: 20px; }
  .process-step { padding: 20px; }

  .back-to-top { width: 42px; height: 42px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); right: 16px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .marquee-track, .marquee-track-reverse { animation: none !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .pulse-dot { animation: none !important; }
}

/* Landscape phones - prevent hero from being squished */
@media (max-width: 900px) and (orientation: landscape) and (max-height: 500px) {
  .hero { padding: 30px 0 20px; }
  .hero-photo-col { display: none; }
  .hero-text { padding: 20px 0; }
}
/* On mobile, hide the duplicate About photo — hero already shows it */
@media (max-width: 900px) {
  .about-image { display: none; }
}