/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ===== KEYFRAME ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.06); opacity: 0.85; }
}
@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@keyframes shine {
  0% { left: -100%; }
  100% { left: 200%; }
}
@keyframes blob {
  0%, 100% { border-radius: 60% 40% 50% 50% / 50% 60% 40% 50%; transform: translate(0, 0) scale(1); }
  33% { border-radius: 40% 60% 30% 70% / 60% 30% 70% 40%; transform: translate(20px, -30px) scale(1.05); }
  66% { border-radius: 50% 50% 70% 30% / 30% 70% 50% 50%; transform: translate(-20px, 20px) scale(0.95); }
}
@keyframes drawLine {
  from { stroke-dashoffset: 100; }
  to { stroke-dashoffset: 0; }
}
@keyframes bounceArrow {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(4px); }
}
@keyframes ringPulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.5); }
  70% { box-shadow: 0 0 0 14px rgba(37, 99, 235, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}
@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}
@keyframes blink {
  50% { border-color: transparent; }
}
@keyframes portraitFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(0.4deg); }
}

:root {
  --blue: #2563EB;
  --blue-dark: #1D4ED8;
  --blue-light: #EFF6FF;
  --slate-900: #0F172A;
  --slate-800: #1E293B;
  --slate-600: #475569;
  --slate-400: #94A3B8;
  --slate-100: #F1F5F9;
  --slate-50: #F8FAFC;
  --white: #FFFFFF;
  --border: #E2E8F0;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
  --shadow-md: 0 4px 12px rgba(37,99,235,.15);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --max-w: 1160px;
  --transition: 0.2s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--slate-800);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ===== TYPOGRAPHY ===== */
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; line-height: 1.25; letter-spacing: -0.015em; }
h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.35; }
h4 { font-size: 1rem; font-weight: 600; }
p { color: var(--slate-600); }

.text-blue { color: var(--blue); }
.text-muted { color: var(--slate-400); font-size: .875rem; }
.label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--blue); }

/* ===== LAYOUT ===== */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-sm { gap: 12px; }
.gap-md { gap: 24px; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius);
  font-weight: 600; font-size: .9375rem; cursor: pointer;
  border: 2px solid transparent; transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--blue); color: var(--white);
  border-color: var(--blue);
  position: relative; overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transform: skewX(-25deg);
  transition: left 0.6s ease;
}
.btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-primary:hover::before { left: 200%; }
.btn-primary svg, .btn svg { transition: transform 0.3s ease; }
.btn-primary:hover svg, .btn:hover svg { animation: bounceArrow 0.6s ease-in-out infinite; }
.btn-outline {
  background: transparent; color: var(--blue);
  border-color: var(--blue);
}
.btn-outline:hover { background: var(--blue); color: var(--white); transform: translateY(-1px); }
.btn-white {
  background: var(--white); color: var(--blue);
  border-color: var(--white);
}
.btn-white:hover { background: var(--blue-light); transform: translateY(-1px); }
.btn-sm { padding: 10px 20px; font-size: .875rem; }

/* ===== NAV ===== */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.95); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.nav-logo {
  font-size: 1.25rem; font-weight: 800; color: var(--slate-900);
  display: flex; align-items: center; gap: 8px;
}
.nav-logo span { color: var(--blue); }
.logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--blue) 0%, #8B5CF6 100%);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  transition: transform 0.4s ease, box-shadow 0.3s ease;
  position: relative;
}
.logo-icon svg { color: white; transition: transform 0.4s ease; }
.nav-logo:hover .logo-icon { transform: rotate(-12deg) scale(1.08); box-shadow: 0 6px 16px rgba(37,99,235,0.35); }
.nav-logo:hover .logo-icon svg { transform: scale(1.15); }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a {
  padding: 8px 16px; border-radius: 6px;
  font-weight: 500; font-size: .9375rem; color: var(--slate-600);
  transition: all var(--transition);
}
.nav-links a { position: relative; }
.nav-links a:not(.btn)::after {
  content: ''; position: absolute;
  bottom: 4px; left: 50%; transform: translateX(-50%);
  width: 0; height: 2px; background: var(--blue);
  transition: width 0.3s ease;
}
.nav-links a:not(.btn):hover::after, .nav-links a:not(.btn).active::after { width: 50%; }
.nav-links a:hover, .nav-links a.active { color: var(--blue); background: var(--blue-light); }
.nav-cta { margin-left: 8px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }

/* ===== HERO ===== */
.hero {
  padding: 112px 0 96px;
  background: linear-gradient(180deg, var(--slate-50) 0%, var(--white) 100%);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.hero::before, .hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
}
.hero::before {
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(37,99,235,0.25), transparent 70%);
  top: -120px; right: -80px;
  animation: blob 18s ease-in-out infinite;
}
.hero::after {
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(139,92,246,0.18), transparent 70%);
  bottom: -120px; left: -80px;
  animation: blob 22s ease-in-out infinite reverse;
}
.hero .container { position: relative; z-index: 1; }
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 56px;
  align-items: center;
}
.hero-content { max-width: 740px; }
.hero-eyebrow { margin-bottom: 20px; opacity: 0; animation: fadeUp 0.6s ease-out 0.05s forwards; }
.hero h1 { margin-bottom: 24px; opacity: 0; animation: fadeUp 0.7s ease-out 0.18s forwards; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, #2563EB 0%, #8B5CF6 50%, #2563EB 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 6s ease-in-out infinite;
}
.hero p { font-size: 1.125rem; max-width: 580px; margin-bottom: 40px; opacity: 0; animation: fadeUp 0.7s ease-out 0.32s forwards; }
.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; opacity: 0; animation: fadeUp 0.7s ease-out 0.46s forwards; }
.hero-portrait {
  position: relative;
  display: flex;
  justify-content: center;
  opacity: 0;
  animation: fadeInScale 0.8s ease-out 0.32s forwards, portraitFloat 7s ease-in-out 1.2s infinite;
}
.hero-portrait::before {
  content: '';
  position: absolute;
  inset: 10% 5% 2%;
  background: radial-gradient(circle at 50% 50%, rgba(37,99,235,0.22), transparent 68%);
  filter: blur(24px);
  z-index: -1;
}
.hero-portrait img {
  width: min(100%, 420px);
  height: auto;
  display: block;
  filter: drop-shadow(0 24px 34px rgba(15,23,42,0.22));
}
.hero-stats {
  display: flex; gap: 48px; margin-top: 64px; padding-top: 48px;
  border-top: 1px solid var(--border);
  opacity: 0; animation: fadeUp 0.8s ease-out 0.6s forwards;
}
.hero-stats > div { transition: transform 0.3s ease; }
.hero-stats > div:hover { transform: translateY(-4px); }
.badge { animation: float 4s ease-in-out infinite; }
.stat-num { font-size: 2rem; font-weight: 800; color: var(--slate-900); line-height: 1; }
.stat-label { font-size: .875rem; color: var(--slate-400); margin-top: 4px; }

/* ===== SECTION HEADERS ===== */
.section-header { text-align: center; max-width: 640px; margin: 0 auto 64px; }
.section-header .label { margin-bottom: 12px; }
.section-header h2 { margin-bottom: 16px; }

/* ===== CARDS ===== */
.card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 12px; padding: 32px;
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1), box-shadow 0.35s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--blue), #8B5CF6);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s ease;
}
.card:hover { box-shadow: 0 12px 32px rgba(15,23,42,0.08), 0 2px 6px rgba(15,23,42,0.04); border-color: #C7D2FE; transform: translateY(-6px); }
.card:hover::before { transform: scaleX(1); }
.card-icon {
  width: 48px; height: 48px; background: var(--blue-light);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; color: var(--blue);
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1), background 0.3s ease;
}
.card:hover .card-icon { transform: rotate(-8deg) scale(1.1); background: var(--blue); color: white; }
.card h3 { margin-bottom: 10px; transition: color 0.3s ease; }
.card:hover h3 { color: var(--blue); }

/* ===== CASE STUDY CARDS ===== */
.case-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden;
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1), box-shadow 0.4s ease;
}
.case-card:hover { box-shadow: 0 16px 40px rgba(15,23,42,0.1); transform: translateY(-8px); }
.case-thumb {
  height: 8px; background: var(--blue);
  position: relative; overflow: hidden;
}
.case-thumb::after {
  content: ''; position: absolute; top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
  transition: left 0.6s ease;
}
.case-card:hover .case-thumb::after { left: 200%; }
.case-thumb.green { background: #10B981; }
.case-thumb.purple { background: #8B5CF6; }
.case-thumb.orange { background: #F59E0B; }
.case-body { padding: 28px; }
.case-industry {
  display: inline-block; font-size: .75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--blue); background: var(--blue-light);
  padding: 4px 10px; border-radius: 20px; margin-bottom: 16px;
}
.case-industry.green { color: #059669; background: #D1FAE5; }
.case-industry.purple { color: #7C3AED; background: #EDE9FE; }
.case-industry.orange { color: #D97706; background: #FEF3C7; }
.case-body h3 { margin-bottom: 10px; }
.case-metrics {
  display: flex; gap: 24px; margin: 20px 0;
  padding: 16px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.metric-val { font-size: 1.5rem; font-weight: 800; color: var(--slate-900); line-height: 1; }
.metric-label { font-size: .75rem; color: var(--slate-400); margin-top: 2px; }
.case-link {
  font-size: .875rem; font-weight: 600; color: var(--blue);
  display: inline-flex; align-items: center; gap: 6px; margin-top: 4px;
  transition: gap var(--transition);
  position: relative;
}
.case-link::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 1.5px; background: var(--blue);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s ease;
}
.case-link:hover { gap: 12px; }
.case-link:hover::after { transform: scaleX(0.6); }

/* ===== SKILL TAGS ===== */
.skill-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 20px;
  font-size: .8125rem; font-weight: 500;
  background: var(--slate-100); color: var(--slate-800);
  border: 1px solid var(--border);
}

/* ===== PROCESS STEPS ===== */
.process { counter-reset: step; }
.process-step {
  display: flex; gap: 24px; align-items: flex-start;
  padding: 32px 0; border-bottom: 1px solid var(--border);
  counter-increment: step;
}
.process-step:last-child { border-bottom: none; }
.step-num {
  flex-shrink: 0; width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue) 0%, #8B5CF6 100%);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.125rem;
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1);
  position: relative;
}
.process-step:hover .step-num { transform: scale(1.15) rotate(-8deg); animation: ringPulse 1.5s ease-out infinite; }
.step-content h3 { margin-bottom: 8px; }

/* ===== TESTIMONIAL ===== */
.testimonial-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 12px; padding: 32px;
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1), box-shadow 0.3s ease;
}
.testimonial-card:hover { transform: translateY(-6px) rotate(-0.5deg); box-shadow: 0 16px 32px rgba(15,23,42,0.08); }
.testimonial-card blockquote { font-size: 1.0625rem; font-style: italic; color: var(--slate-800); margin-bottom: 20px; }
.testimonial-card blockquote::before { content: '\201C'; color: var(--blue); font-size: 2rem; line-height: 0; vertical-align: -.4em; margin-right: 4px; }
.author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--blue-light); display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: var(--blue); font-size: .9375rem;
}
.author-name { font-weight: 600; font-size: .9375rem; color: var(--slate-900); }
.author-title { font-size: .8125rem; color: var(--slate-400); }

/* ===== CTA BANNER ===== */
.cta-banner {
  background: var(--slate-900); color: var(--white);
  padding: 80px 0; text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at top left, rgba(37,99,235,0.25), transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(139,92,246,0.18), transparent 50%);
  animation: gradientShift 12s ease-in-out infinite;
  background-size: 200% 200%;
}
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner h2 { color: var(--white); margin-bottom: 16px; }
.cta-banner p { color: var(--slate-400); max-width: 520px; margin: 0 auto 40px; }
.cta-banner .actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ===== CONTACT FORM ===== */
.form-group { margin-bottom: 24px; }
.form-group label { display: block; font-weight: 600; font-size: .9375rem; margin-bottom: 8px; color: var(--slate-800); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  font-size: 1rem; font-family: var(--font); color: var(--slate-800);
  background: var(--white); transition: border-color var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
.form-group textarea { resize: vertical; min-height: 140px; }
.form-group select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

/* ===== ABOUT PAGE ===== */
.about-hero { padding: 80px 0 0; background: var(--slate-50); }
.about-hero h1 { max-width: 700px; }
.value-item { display: flex; gap: 16px; padding: 24px 0; border-bottom: 1px solid var(--border); }
.value-item:last-child { border-bottom: none; }
.value-icon {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 10px;
  background: var(--blue-light); display: flex; align-items: center; justify-content: center; color: var(--blue);
}
.team-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 12px; padding: 32px; text-align: center;
}
.team-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--blue-light); display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.5rem; color: var(--blue);
  margin: 0 auto 16px;
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1);
}
.team-card { transition: transform 0.4s cubic-bezier(.2,.8,.2,1), box-shadow 0.3s ease; }
.team-card:hover { transform: translateY(-6px); box-shadow: 0 16px 32px rgba(15,23,42,0.08); }
.team-card:hover .team-avatar { transform: scale(1.1) rotate(-6deg); animation: ringPulse 1.5s ease-out infinite; }

.contact-panel {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.contact-panel h2 { margin-bottom: 12px; }
.contact-panel p { max-width: 560px; }

/* ===== PAGE HERO ===== */
.page-hero {
  padding: 72px 0; background: var(--slate-50);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(37,99,235,0.15), transparent 70%);
  top: -150px; right: -100px;
  filter: blur(60px);
  animation: blob 20s ease-in-out infinite;
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .label { margin-bottom: 12px; opacity: 0; animation: fadeUp 0.5s ease-out 0.05s forwards; }
.page-hero h1 { max-width: 700px; margin-bottom: 16px; opacity: 0; animation: fadeUp 0.6s ease-out 0.15s forwards; }
.page-hero p { font-size: 1.125rem; max-width: 560px; opacity: 0; animation: fadeUp 0.6s ease-out 0.28s forwards; }

/* ===== SCROLL PROGRESS BAR ===== */
.scroll-progress {
  position: fixed; top: 0; left: 0;
  height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--blue), #8B5CF6);
  z-index: 999;
  transition: width 0.1s linear;
  box-shadow: 0 0 10px rgba(37,99,235,0.4);
}

/* ===== STAGGER REVEAL ===== */
.stagger-reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s cubic-bezier(.2,.8,.2,1), transform 0.6s cubic-bezier(.2,.8,.2,1); }
.stagger-reveal.revealed { opacity: 1; transform: translateY(0); }

/* ===== TIMELINE ANIMATION ===== */
.tl-dot { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.tl-item:hover .tl-dot { transform: scale(1.3); box-shadow: 0 0 0 6px var(--blue-light); }

/* ===== TOOL CHIP HOVER ===== */
.tool-chip {
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  cursor: default;
}
.tool-chip:hover {
  transform: translateY(-3px);
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}

/* ===== METRIC BOX HOVER ===== */
.metric-box { transition: transform 0.3s ease, border-color 0.3s ease; }
.metric-box:hover { transform: translateY(-4px); border-color: var(--blue); }
.metric-box .metric-val { transition: color 0.3s ease; }
.metric-box:hover .metric-val { color: var(--blue); }

/* ===== FORM FOCUS ANIMATION ===== */
.form-group input,
.form-group select,
.form-group textarea { transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { transform: translateY(-1px); }

/* ===== OPTION CARD HOVER ===== */
.option-card { transition: transform 0.3s ease, border-color 0.25s ease, background 0.25s ease; }
.option-card:hover { transform: translateY(-3px); }

/* ===== SERVICE CARD ICON ANIMATION ===== */
.service-icon { transition: transform 0.4s cubic-bezier(.2,.8,.2,1); }
.service-card:hover .service-icon { transform: rotate(-8deg) scale(1.08); }

/* ===== SKILL DOT FILL ANIMATION ===== */
.dot { transition: transform 0.3s ease; transform: scale(0); }
.dot.empty { transform: scale(0.7); }
.skill-matrix.in-view .dot { transform: scale(1); }
.skill-matrix.in-view .dot.empty { transform: scale(0.7); }
.skill-matrix tr td .level-dot .dot:nth-child(1) { transition-delay: 0.05s; }
.skill-matrix tr td .level-dot .dot:nth-child(2) { transition-delay: 0.12s; }
.skill-matrix tr td .level-dot .dot:nth-child(3) { transition-delay: 0.19s; }
.skill-matrix tr td .level-dot .dot:nth-child(4) { transition-delay: 0.26s; }
.skill-matrix tr td .level-dot .dot:nth-child(5) { transition-delay: 0.33s; }

/* ===== COUNTER STYLE ===== */
.counter[data-target] { display: inline-block; }

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

/* ===== FOOTER ===== */
.footer {
  background: var(--slate-900); color: var(--slate-400);
  padding: 64px 0 32px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand .nav-logo { color: var(--white); margin-bottom: 16px; }
.footer-brand p { font-size: .9375rem; max-width: 260px; }
.footer-col h4 { color: var(--white); margin-bottom: 16px; font-size: .9375rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { font-size: .9375rem; color: var(--slate-400); transition: color var(--transition); }
.footer-col ul a:hover { color: var(--white); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 32px; border-top: 1px solid #1E293B;
  font-size: .875rem;
}
.footer-bottom a { color: var(--slate-400); transition: color var(--transition); }
.footer-bottom a:hover { color: var(--white); }

/* ===== BADGE / PILL ===== */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 20px;
  font-size: .8125rem; font-weight: 600;
  background: var(--blue-light); color: var(--blue);
  border: 1px solid #BFDBFE;
}

/* ===== ALERT BOX ===== */
.success-msg {
  display: none; padding: 16px 20px; border-radius: var(--radius);
  background: #D1FAE5; border: 1px solid #6EE7B7; color: #065F46;
  font-weight: 500; margin-top: 16px;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: .875rem; color: var(--slate-400);
  margin-bottom: 40px;
}
.breadcrumb a { color: var(--blue); }
.breadcrumb span { color: var(--slate-300); }

/* ===== BLOG INDEX / FILTER ===== */
.filter-bar {
  display: flex; gap: 8px; flex-wrap: wrap;
  padding-bottom: 24px; border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}
.filter-chip {
  background: var(--white); color: var(--slate-600);
  border: 1.5px solid var(--border); border-radius: 999px;
  padding: 8px 18px; font: inherit; font-size: .875rem; font-weight: 600;
  cursor: pointer; transition: all var(--transition);
}
.filter-chip:hover { border-color: var(--blue); color: var(--blue); }
.filter-chip.active { background: var(--blue); color: var(--white); border-color: var(--blue); }
.post-list { display: flex; flex-direction: column; }
.post-row {
  padding: 36px 0; border-bottom: 1px solid var(--border);
}
.post-row:first-child { padding-top: 0; }
.post-row:last-child { border-bottom: none; }
.post-row-meta {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-bottom: 12px;
}
.post-row-title { display: block; }
.post-row-title h2 {
  font-size: clamp(1.375rem, 2.4vw, 1.75rem);
  margin-bottom: 12px; color: var(--slate-900);
  transition: color var(--transition);
}
.post-row-title:hover h2 { color: var(--blue); }
.post-row p { margin-bottom: 14px; max-width: 720px; }
.post-empty {
  text-align: center; padding: 64px 0; color: var(--slate-400);
}

/* ===== POST / ARTICLE LAYOUT ===== */
.post-header {
  padding: 64px 0 40px;
  background: var(--slate-50);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.post-header::before {
  content: '';
  position: absolute;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(37,99,235,0.12), transparent 70%);
  top: -120px; right: -100px;
  filter: blur(60px);
  pointer-events: none;
}
.post-header .container { position: relative; z-index: 1; }
.post-container { max-width: 760px; margin: 0 auto; }
.post-header h1 {
  margin: 12px 0 16px;
  font-size: clamp(1.875rem, 4vw, 2.75rem);
}
.post-dek {
  font-size: 1.1875rem; color: var(--slate-600);
  max-width: 680px; margin-bottom: 24px;
}
.post-meta {
  display: flex; gap: 10px; font-size: .875rem; color: var(--slate-400);
  align-items: center;
}
.post-body {
  padding: 56px 0 72px;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--slate-800);
}
.post-body p { color: var(--slate-800); margin-bottom: 20px; }
.post-body p.lead {
  font-size: 1.25rem; line-height: 1.6;
  color: var(--slate-900);
  border-left: 3px solid var(--blue);
  padding-left: 20px; margin-bottom: 32px;
}
.post-body h2 {
  font-size: 1.625rem;
  margin: 48px 0 16px;
  color: var(--slate-900);
}
.post-body h3 {
  font-size: 1.1875rem;
  margin: 32px 0 12px;
  color: var(--slate-900);
}
.post-body ul, .post-body ol {
  margin: 0 0 24px 24px; padding: 0;
}
.post-body li {
  margin-bottom: 10px;
  color: var(--slate-800);
}
.post-body li strong { color: var(--slate-900); }
.post-body a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.post-body a:hover { text-decoration-thickness: 2px; }
.post-body pre {
  background: var(--slate-900);
  color: #E2E8F0;
  border-radius: 10px;
  padding: 20px 24px;
  margin: 24px 0 32px;
  overflow-x: auto;
  font-size: .9375rem;
  line-height: 1.6;
  border: 1px solid var(--slate-800);
}
.post-body pre code {
  font-family: ui-monospace, "SF Mono", "Cascadia Code", "Roboto Mono", Menlo, monospace;
  font-size: .9375rem;
  white-space: pre;
}
.post-body code:not(pre code) {
  background: var(--slate-100);
  color: var(--slate-900);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: .9em;
  font-family: ui-monospace, "SF Mono", "Cascadia Code", "Roboto Mono", Menlo, monospace;
}
.post-callout {
  background: var(--blue-light);
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  padding: 20px 24px;
  margin: 32px 0;
  color: var(--slate-900);
  font-size: 1rem;
  line-height: 1.6;
}
.post-callout strong { color: var(--blue-dark); }

/* metric row used in case study */
.metric-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin: 32px 0;
}
.metric-box {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 20px 16px;
  text-align: center;
}
.metric-box .metric-val { font-size: 1.625rem; }
.metric-box .metric-label { margin-top: 6px; }
@media (max-width: 768px) {
  .metric-row { grid-template-columns: repeat(2, 1fr); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-portrait { justify-content: flex-start; }
  .hero-portrait img { width: min(100%, 360px); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; gap: 24px; }
  .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .hero { padding: 72px 0 64px; }
  .hero-portrait img { width: min(100%, 320px); }
  .hero-stats { flex-wrap: wrap; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .nav-links { display: none; flex-direction: column; gap: 4px; width: 100%; padding: 12px 0 16px; }
  .nav-links.open { display: flex; }
  .nav-links.open a { width: 100%; }
  .nav-toggle { display: block; }
  .nav-inner { flex-wrap: wrap; }
  .contact-panel { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .cta-banner .actions { flex-direction: column; align-items: center; }
}

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