/* ==========================================================================
   Sai Kumar Phaili — Digital Marketing Portfolio
   Design system: deep navy + electric blue accent + off-white surfaces
   ========================================================================== */

:root {
  /* Palette */
  --navy-950: #07101d;
  --navy-900: #0b1b2b;
  --navy-850: #0e2133;
  --navy-800: #12283d;
  --navy-700: #17344f;
  --navy-600: #1e4265;

  --accent: #2563eb;
  --accent-500: #3b82f6;
  --accent-700: #1d4ed8;
  --accent-soft: #e8effd;

  --amber: #f5a623;

  --ink: #0f172a;
  --slate: #475569;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-dark: #1d2f44;

  --bg: #f6f8fb;
  --bg-soft: #eef2f7;
  --surface: #ffffff;

  /* Type */
  --font-head: "Inter Tight", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Shape & depth */
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 12px 32px -14px rgba(15, 23, 42, 0.18);
  --shadow-lg: 0 28px 64px -24px rgba(7, 16, 29, 0.4);

  --max: 1200px;
  --nav-h: 72px;
}

/* ==========================================================================
   Reset & base
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--slate);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  animation: pageFade 0.45s ease both;
}

@keyframes pageFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 700;
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--accent-700); }

ul, ol { margin: 0; padding: 0; list-style: none; }

img, svg { display: block; max-width: 100%; }

button { font-family: inherit; cursor: pointer; }

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

:focus-visible {
  outline: 3px solid var(--accent-500);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 200;
  background: var(--navy-900);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 12px 0;
}
.skip-link:focus { left: 0; color: #fff; }

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

.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section-tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }

.section-white { background: var(--surface); }
.section-soft { background: var(--bg-soft); }
.section-navy { background: var(--navy-900); }
.section-navy-deep { background: var(--navy-950); }

.section-head {
  max-width: 720px;
  margin-bottom: clamp(2.25rem, 5vw, 3.5rem);
}
.section-head.center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.section-head.center .eyebrow::after {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.section-title { font-size: clamp(1.9rem, 4vw, 2.7rem); margin-bottom: 0.9rem; }
.section-lead { font-size: 1.08rem; color: var(--muted); margin: 0; }

/* Dark section overrides */
.section-navy .section-title,
.section-navy-deep .section-title { color: #fff; }
.section-navy .section-lead,
.section-navy-deep .section-lead { color: #9db1c7; }
.section-navy .eyebrow,
.section-navy-deep .eyebrow { color: var(--accent-500); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 12px;
  border: 1px solid transparent;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  text-decoration: none !important;
}
.btn .icon { width: 18px; height: 18px; }

.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 8px 20px -10px rgba(37, 99, 235, 0.55); }
.btn-accent:hover { background: var(--accent-700); color: #fff; transform: translateY(-2px); box-shadow: 0 14px 26px -12px rgba(37, 99, 235, 0.6); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

.btn-light { background: #fff; color: var(--navy-900); }
.btn-light:hover { background: #e8eef5; color: var(--navy-900); transform: translateY(-2px); }

.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.btn-outline-light:hover { border-color: #fff; color: #fff; transform: translateY(-2px); }

.btn-lg { padding: 1.05rem 1.9rem; font-size: 1.05rem; }

/* ==========================================================================
   Header / navigation
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  background: rgba(11, 27, 43, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
  background: rgba(7, 16, 29, 0.96);
  border-bottom-color: var(--line-dark);
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.5);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--nav-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: #fff;
  text-decoration: none;
}
.brand:hover { color: #fff; }

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--accent-500), var(--accent-700));
  color: #fff;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 16px -8px rgba(37, 99, 235, 0.7);
}

.brand-text {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.1;
  color: #fff;
}
.brand-text em { font-style: normal; color: var(--accent-500); font-weight: 500; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.nav-link {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.94rem;
  color: #c4d2e2;
  padding: 0.35rem 0;
  position: relative;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--accent-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-link:hover { color: #fff; }
.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }
.nav-link.active { color: #fff; }

.header-cta { padding: 0.7rem 1.2rem; font-size: 0.92rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 992px) {
  .nav-toggle { display: flex; }

  .site-nav {
    position: fixed;
    inset: var(--nav-h) 0 0;
    z-index: 99;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 2rem 24px;
    background: var(--navy-950);
    overflow-y: auto;
    opacity: 0;
    transform: translateY(-12px);
    pointer-events: none;
    transition: opacity 0.28s ease, transform 0.28s ease;
  }
  body.nav-open .site-nav { opacity: 1; transform: none; pointer-events: auto; }

  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0.25rem; }
  .nav-link {
    display: block;
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .nav-link::after { display: none; }
  .nav-link.active { color: var(--accent-500); }

  .header-cta { margin-top: 1.75rem; }
}

/* ==========================================================================
   Hero (home)
   ========================================================================== */
.hero {
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(59, 130, 246, 0.22), transparent 60%),
    radial-gradient(700px 420px at -10% 110%, rgba(37, 99, 235, 0.14), transparent 55%),
    var(--navy-900);
  color: #c9d7e6;
  padding: calc(var(--nav-h) + clamp(3rem, 7vw, 5.5rem)) 0 clamp(3.5rem, 7vw, 5.5rem);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid rgba(59, 130, 246, 0.4);
  background: rgba(37, 99, 235, 0.12);
  color: #9cc0ff;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  font-family: var(--font-head);
  letter-spacing: 0.03em;
  margin-bottom: 1.4rem;
}
.hero-eyebrow .icon { width: 15px; height: 15px; }

.hero h1 {
  color: #fff;
  font-size: clamp(2.4rem, 5.4vw, 3.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1.2rem;
}
.hero h1 .grad {
  background: linear-gradient(92deg, #7db4ff, #3b82f6 60%, #2563eb);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: #8ea5bd;
  margin-bottom: 2rem;
}
.hero-sub strong { color: #e6edf5; font-weight: 600; }

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.25rem;
}
.hero-chips span {
  font-size: 0.82rem;
  color: #b7c9dc;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  margin-top: 3rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.trust-item { display: flex; gap: 0.85rem; align-items: center; }
.trust-item .icon { width: 34px; height: 34px; padding: 8px; border-radius: 10px; background: rgba(37, 99, 235, 0.16); color: #7db4ff; flex-shrink: 0; }
.trust-item strong { display: block; color: #fff; font-family: var(--font-head); font-size: 1.12rem; line-height: 1.25; }
.trust-item span { font-size: 0.85rem; color: #8ea5bd; }

/* Hero visual card */
.hero-visual { position: relative; }

.growth-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 1.75rem;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(6px);
}
.growth-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.4rem;
}
.growth-card-top h3 { color: #fff; font-size: 1.05rem; }
.growth-card-top p { font-size: 0.85rem; color: #8ea5bd; margin: 0.3rem 0 0; }

.metric-badge {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  color: #0b1b2b;
  background: var(--amber);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  white-space: nowrap;
}

.chart-draw {
  width: 100%;
  height: auto;
  margin-bottom: 1.4rem;
  overflow: visible;
}
.chart-line {
  stroke-dasharray: 340;
  stroke-dashoffset: 340;
  animation: drawLine 2.2s ease forwards 0.3s;
  filter: drop-shadow(0 6px 14px rgba(59, 130, 246, 0.45));
}
.chart-line-2 {
  stroke-dasharray: 240;
  stroke-dashoffset: 240;
  animation: drawLine 2s ease forwards 0.8s;
}
@keyframes drawLine { to { stroke-dashoffset: 0; } }

.kpi-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.kpi {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
}
.kpi strong {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: #fff;
  font-family: var(--font-head);
  font-size: 1.05rem;
}
.kpi strong .trend { color: #34d399; }
.kpi span { font-size: 0.75rem; color: #8ea5bd; }

.hero-float {
  position: absolute;
  right: -12px;
  bottom: -18px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #fff;
  color: var(--ink);
  border-radius: 16px;
  padding: 0.85rem 1.1rem;
  box-shadow: var(--shadow-md);
  animation: floatY 5s ease-in-out infinite;
}
.hero-float .icon { width: 22px; height: 22px; color: var(--accent); }
.hero-float strong { display: block; font-family: var(--font-head); font-size: 0.9rem; }
.hero-float span { font-size: 0.78rem; color: var(--muted); }

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (max-width: 992px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 480px; }
}

/* ==========================================================================
   Marquee
   ========================================================================== */
.marquee {
  background: var(--navy-950);
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  overflow: hidden;
  padding: 1rem 0;
}
.marquee-track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: marquee 26s linear infinite;
}
.marquee span {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #8ea5bd;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
}
.marquee span::before { content: "\25C6"; color: var(--accent-500); font-size: 0.7rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   Cards & grids
   ========================================================================== */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

@media (max-width: 992px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: #cfd9e6;
}
.card .card-icon {
  width: 52px;
  height: 52px;
  padding: 13px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 1.1rem;
}
.card h3 { font-size: 1.18rem; margin-bottom: 0.5rem; }
.card p { font-size: 0.95rem; margin-bottom: 1rem; }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
}
.card-link .icon { width: 16px; height: 16px; transition: transform 0.2s ease; }
.card-link:hover .icon { transform: translateX(4px); }

/* Value-prop list card */
.feat-list { display: grid; gap: 1.1rem; }
.feat { display: flex; gap: 1rem; align-items: flex-start; }
.feat .feat-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  padding: 11px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}
.feat h3 { font-size: 1.02rem; margin-bottom: 0.25rem; }
.feat p { font-size: 0.92rem; margin: 0; }

/* ==========================================================================
   Stats strip
   ========================================================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}
.stat .stat-num {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 800;
  color: var(--navy-900);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat .stat-num em { font-style: normal; color: var(--accent); }
.stat p { margin-top: 0.6rem; font-size: 0.92rem; color: var(--muted); }
.stat::after {
  content: "";
  display: block;
  width: 34px;
  height: 3px;
  margin: 1rem auto 0;
  border-radius: 3px;
  background: var(--accent);
}

@media (max-width: 640px) {
  .stats-grid { grid-template-columns: 1fr; gap: 2.25rem; }
}

/* ==========================================================================
   Process steps
   ========================================================================== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; counter-reset: step; }
.step-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem 1.5rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.step-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.step-card::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--bg-soft);
}
.step-card .step-icon {
  width: 46px;
  height: 46px;
  padding: 11px;
  border-radius: 13px;
  background: var(--navy-900);
  color: #fff;
  margin-bottom: 1rem;
}
.step-card h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.step-card p { font-size: 0.9rem; margin: 0; }

@media (max-width: 992px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .steps { grid-template-columns: 1fr; } }

/* ==========================================================================
   Page hero
   ========================================================================== */
.page-hero {
  background:
    radial-gradient(800px 400px at 80% -10%, rgba(59, 130, 246, 0.2), transparent 60%),
    var(--navy-900);
  color: #c9d7e6;
  padding: calc(var(--nav-h) + clamp(3rem, 6vw, 4.5rem)) 0 clamp(2.5rem, 5vw, 4rem);
}
.page-hero h1 {
  color: #fff;
  font-size: clamp(2.1rem, 4.6vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  max-width: 16ch;
  margin-bottom: 1rem;
}
.page-hero .page-lead {
  max-width: 640px;
  font-size: 1.08rem;
  color: #8ea5bd;
  margin: 0;
}
.page-hero .hero-chips { margin: 1.5rem 0 0; }

/* ==========================================================================
   Service card (detailed)
   ========================================================================== */
.service-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.9rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: #cfd9e6; }
.service-card .card-icon { width: 54px; height: 54px; padding: 14px; border-radius: 15px; background: var(--accent-soft); color: var(--accent); margin-bottom: 1.1rem; }
.service-card h3 { font-size: 1.22rem; margin-bottom: 0.5rem; }
.service-card > p { font-size: 0.95rem; margin-bottom: 1.1rem; }
.service-card .inc {
  display: grid;
  gap: 0.5rem;
  margin: auto 0 1.4rem;
}
.service-card .inc li {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--slate);
}
.service-card .inc .icon { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; margin-top: 0.25rem; }
.service-tag {
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 0.85rem;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-700);
  background: var(--accent-soft);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
}

/* ==========================================================================
   Skills
   ========================================================================== */
.skill-group-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}
.skill-group-title .icon { width: 40px; height: 40px; padding: 10px; border-radius: 11px; background: var(--navy-900); color: #fff; }
.skill-group-title h3 { font-size: 1.4rem; }

.meter { margin-bottom: 1.35rem; }
.meter-label { display: flex; justify-content: space-between; margin-bottom: 0.45rem; font-size: 0.95rem; }
.meter-label strong { color: var(--ink); font-family: var(--font-head); font-weight: 600; }
.meter-label span { color: var(--muted); font-size: 0.88rem; }

.meter-track {
  height: 8px;
  border-radius: 8px;
  background: var(--bg-soft);
  overflow: hidden;
}
.meter-fill {
  height: 100%;
  width: 0%;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--accent-500), var(--accent-700));
  transition: width 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.tool-chips { display: flex; flex-wrap: wrap; gap: 0.65rem; }
.tool-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--slate);
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.tool-chip:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.tool-chip .icon { width: 16px; height: 16px; color: var(--accent); }

/* ==========================================================================
   Timeline (experience)
   ========================================================================== */
.timeline { position: relative; max-width: 860px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(var(--accent), var(--accent-soft));
  border-radius: 2px;
}
.timeline-item { position: relative; padding: 0 0 2.5rem 3.5rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: 4px;
  top: 6px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--accent);
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 5px var(--accent-soft);
}
.timeline-dot .icon { width: 15px; height: 15px; color: var(--accent); }

.timeline-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.75rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.timeline-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.timeline-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin-bottom: 0.6rem;
}
.timeline-meta .role { font-family: var(--font-head); font-weight: 700; color: var(--ink); font-size: 1.15rem; }
.timeline-meta .org { color: var(--accent); font-weight: 600; font-family: var(--font-head); font-size: 0.98rem; }
.timeline-meta .when {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--muted);
  background: var(--bg-soft);
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
}
.timeline-meta .when .icon { width: 14px; height: 14px; }
.timeline-card p { font-size: 0.95rem; margin-bottom: 0.75rem; }

.tag-list { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.tag-list li {
  font-size: 0.8rem;
  color: var(--slate);
  border: 1px solid var(--line);
  background: var(--bg);
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
}

/* ==========================================================================
   Cert / education cards
   ========================================================================== */
.cred-card {
  display: flex;
  gap: 1.1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.cred-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.cred-card .cred-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  padding: 12px;
  border-radius: 13px;
  background: var(--accent-soft);
  color: var(--accent);
}
.cred-card h3 { font-size: 1.08rem; margin-bottom: 0.2rem; }
.cred-card .cred-sub { color: var(--muted); font-size: 0.88rem; }
.cred-card .cred-badge {
  display: inline-block;
  margin-top: 0.6rem;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--navy-900);
  background: var(--amber);
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
}

/* ==========================================================================
   Portfolio / case studies
   ========================================================================== */
.case-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px dashed #c6d2e0;
  border-radius: var(--radius);
  padding: 1.9rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.case-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--accent); }
.case-card .case-ico {
  width: 50px;
  height: 50px;
  padding: 13px;
  border-radius: 14px;
  background: var(--bg-soft);
  color: var(--muted);
  margin-bottom: 1rem;
}
.case-card h3 { font-size: 1.12rem; margin-bottom: 0.3rem; }
.case-card .case-status {
  align-self: flex-start;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.9rem;
}
.case-slot {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--slate);
  padding: 0.45rem 0;
  border-top: 1px dashed var(--line);
}
.case-slot .icon { width: 15px; height: 15px; color: var(--accent); flex-shrink: 0; margin-top: 0.3rem; }
.case-slot strong { color: var(--ink); font-family: var(--font-head); font-weight: 600; margin-right: 0.25rem; }

/* ==========================================================================
   Contact page
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2rem; align-items: start; }
@media (max-width: 992px) { .contact-grid { grid-template-columns: 1fr; } }

.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.form-field { margin-bottom: 1.1rem; }
.form-field label {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 0.98rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.8rem 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.form-note { font-size: 0.8rem; color: var(--muted); margin-top: 0.8rem; }

.detail-list { display: grid; gap: 0.9rem; }
.detail-item {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.1rem 1.25rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.detail-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.detail-item .detail-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  padding: 11px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}
.detail-item h3 { font-size: 0.95rem; margin-bottom: 0.15rem; }
.detail-item a, .detail-item span { font-size: 0.95rem; color: var(--slate); word-break: break-word; }
.detail-item a:hover { color: var(--accent); }

.calendly-card {
  background: var(--navy-900);
  border-radius: var(--radius);
  padding: 1.75rem;
  color: #c9d7e6;
}
.calendly-card h3 { color: #fff; font-size: 1.15rem; margin-bottom: 0.5rem; }
.calendly-card p { font-size: 0.92rem; margin-bottom: 1.25rem; }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(700px 320px at 90% 20%, rgba(59, 130, 246, 0.25), transparent 60%),
    var(--navy-900);
  text-align: center;
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}
.cta-band h2 {
  color: #fff;
  font-size: clamp(1.9rem, 4.4vw, 3rem);
  max-width: 22ch;
  margin: 0 auto 1rem;
}
.cta-band p {
  color: #8ea5bd;
  max-width: 560px;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
}
.cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.9rem; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--navy-950);
  color: #8ea5bd;
  padding: clamp(3rem, 6vw, 4.5rem) 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}
@media (max-width: 992px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand .brand { margin-bottom: 1rem; }
.footer-brand p { font-size: 0.92rem; max-width: 34ch; }

.footer-col h4 {
  color: #fff;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.1rem;
}
.footer-col ul { display: grid; gap: 0.55rem; }
.footer-col a {
  color: #9db1c7;
  font-size: 0.94rem;
}
.footer-col a:hover { color: #fff; }

.footer-contact { display: grid; gap: 0.75rem; font-size: 0.94rem; }
.footer-contact a { color: #9db1c7; display: inline-flex; align-items: center; gap: 0.5rem; }
.footer-contact a:hover { color: #fff; }
.footer-contact .icon { width: 16px; height: 16px; color: var(--accent-500); }

.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding: 1.4rem 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.85rem;
}
.footer-bottom .mini-nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.footer-bottom a { color: #9db1c7; }
.footer-bottom a:hover { color: #fff; }

/* ==========================================================================
   Floating WhatsApp CTA
   ========================================================================== */
.float-cta {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 12px 28px -8px rgba(37, 211, 102, 0.6);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.float-cta:hover { transform: translateY(-4px) scale(1.04); color: #fff; box-shadow: 0 18px 34px -10px rgba(37, 211, 102, 0.7); }
.float-cta svg { width: 30px; height: 30px; fill: #fff; }

/* ==========================================================================
   Blog / testimonials
   ========================================================================== */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 992px) { .post-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .post-grid { grid-template-columns: 1fr; } }

.post-card {
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.post-card .status-pill {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.9rem;
}
.post-card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.post-card p { font-size: 0.92rem; }

.quote-card {
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 1.9rem;
}
.quote-card .quote-mark {
  font-family: var(--font-head);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 0.6rem;
}
.quote-card blockquote { margin: 0 0 1.1rem; font-size: 1.05rem; color: var(--ink); font-family: var(--font-head); font-weight: 600; line-height: 1.4; }
.quote-card .attribution { font-size: 0.88rem; color: var(--muted); }
.quote-card .attribution strong { color: var(--ink); display: block; }

/* ==========================================================================
   Reveal animation (scroll)
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ==========================================================================
   Utility / misc
   ========================================================================== */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.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;
}

.divider-band {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

.icon { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .chart-line, .chart-line-2 { stroke-dashoffset: 0; }
  .hero-float { animation: none; }
  .marquee-track { animation: none; flex-wrap: wrap; width: 100%; }
}