/* ============================================================
   AFM — Accounting & Finance Management
   Design System + Layout + Animations
   ============================================================ */

/* ---- CSS Variables ---- */
:root {
  --bg:           #ffffff;
  --bg-02:        #f4f6fb;
  --surface:      #f8f9fc;
  --surface-02:   #eef1f7;
  --border:       rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 0, 0, 0.16);

  --accent:       #2563EB;
  --accent-dark:  #1d4ed8;
  --accent-light: #2563EB;
  --purple:       #7c3aed;
  --gradient:     linear-gradient(135deg, #2563EB, #7c3aed);

  --text:         #0f172a;
  --text-muted:   #64748b;
  --text-faint:   #94a3b8;

  --radius-sm:    6px;
  --radius-md:    12px;
  --radius-lg:    20px;
  --radius-xl:    28px;

  --shadow-sm:    0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:    0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg:    0 12px 40px rgba(0,0,0,0.14);
  --shadow-accent:0 8px 32px rgba(37, 99, 235, 0.30);

  --transition:   0.3s ease;
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- Dark Theme Overrides ---- */
[data-theme="dark"] {
  --bg:           #0a0b0f;
  --bg-02:        #0e1118;
  --surface:      #111318;
  --surface-02:   #161b24;
  --border:       rgba(255, 255, 255, 0.07);
  --border-hover: rgba(255, 255, 255, 0.14);

  --text:         #ffffff;
  --text-muted:   #8892a0;
  --text-faint:   #4a5568;

  --shadow-sm:    0 1px 3px rgba(0,0,0,0.4);
  --shadow-md:    0 4px 16px rgba(0,0,0,0.5);
  --shadow-lg:    0 12px 40px rgba(0,0,0,0.6);
  --shadow-accent:0 8px 32px rgba(37, 99, 235, 0.35);
}

/* ---- Dark theme fixes for specific elements ---- */
[data-theme="dark"] #navbar.scrolled {
  background: rgba(10, 11, 15, 0.88);
  box-shadow: none;
}
[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link.active {
  background: rgba(255,255,255,0.06);
}
[data-theme="dark"] .hamburger:hover { background: rgba(255,255,255,0.08); }
[data-theme="dark"] .mobile-overlay { background: rgba(10, 11, 15, 0.97); }
[data-theme="dark"] .mobile-link:hover { background: rgba(255,255,255,0.06); }
[data-theme="dark"] .about-photo-badge { background: var(--surface-02); box-shadow: var(--shadow-md); }
[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group select,
[data-theme="dark"] .form-group textarea { background: var(--bg); }
[data-theme="dark"] .form-group select option { background: var(--surface); }
[data-theme="dark"] .social-link:hover { color: var(--text); border-color: var(--border-hover); background: rgba(255,255,255,0.08); }
[data-theme="dark"] .stat-label { color: rgba(255,255,255,0.75); }

/* ---- Theme toggle button ---- */
.theme-toggle {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  flex-shrink: 0;
  transition: background var(--transition), border-color var(--transition),
              color var(--transition), transform var(--transition);
  position: relative;
  overflow: hidden;
}
.theme-toggle:hover {
  background: var(--surface-02);
  border-color: var(--border-hover);
  color: var(--text);
  transform: rotate(15deg);
}
.icon-sun,
.icon-moon {
  position: absolute;
  transition: opacity 0.25s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
/* Light mode: show sun, hide moon */
.icon-sun  { opacity: 1; transform: rotate(0deg) scale(1); }
.icon-moon { opacity: 0; transform: rotate(-45deg) scale(0.6); }
/* Dark mode: show moon, hide sun */
[data-theme="dark"] .icon-sun  { opacity: 0; transform: rotate(45deg) scale(0.6); }
[data-theme="dark"] .icon-moon { opacity: 1; transform: rotate(0deg) scale(1); }

/* Smooth background transition on theme change */
body, #navbar, .hero, .marquee-section, .section,
.stats-section, .cta-banner, .footer {
  transition: background-color 0.35s ease, border-color 0.35s ease;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

/* ---- Container ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Section Base ---- */
.section {
  padding: 100px 0;
}

/* ---- Typography helpers ---- */
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all var(--transition);
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: var(--shadow-accent);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(37, 99, 235, 0.5);
  filter: brightness(1.08);
}

.btn-ghost {
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.11);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--accent-light);
  border: 1px solid rgba(37, 99, 235, 0.4);
}
.btn-outline:hover {
  background: rgba(37, 99, 235, 0.1);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.btn-white {
  background: #fff;
  color: var(--accent-dark);
  font-weight: 700;
}
.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,255,255,0.2);
}

.btn-lg { padding: 14px 28px; font-size: 15px; }
.btn-full { width: 100%; justify-content: center; }

/* ============================================================
   NAVBAR
   ============================================================ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0;
  transition: background var(--transition), border-color var(--transition), backdrop-filter var(--transition);
  border-bottom: 1px solid transparent;
}

#navbar.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-color: var(--border);
  box-shadow: 0 1px 24px rgba(0,0,0,0.07);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  flex-shrink: 0;
}
.logo-afm {
  font-size: 22px;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}
.logo-tagline {
  font-size: 9px;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  margin-right: 8px;
}
.nav-link {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover,
.nav-link.active {
  color: var(--text);
  background: rgba(0,0,0,0.05);
}
.nav-link.active {
  color: var(--accent);
}

.nav-cta { flex-shrink: 0; }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
  margin-left: auto;
}
.hamburger:hover { background: rgba(0,0,0,0.06); }
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Overlay */
.mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.mobile-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  width: 100%;
  padding: 0 32px;
}
.mobile-link {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-muted);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  transition: color var(--transition), background var(--transition);
  width: 100%;
}
.mobile-link:hover { color: var(--text); background: rgba(0,0,0,0.05); }
.mobile-cta { margin-top: 16px; font-size: 16px !important; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 140px 0 80px;
}

/* Gradient mesh background — dynamic color shift */
.hero-mesh {
  position: absolute;
  inset: -150px;
  z-index: 0;
  animation: meshHueShift 12s ease-in-out infinite alternate;
}
@keyframes meshHueShift {
  0%   { filter: hue-rotate(0deg); }
  50%  { filter: hue-rotate(30deg); }
  100% { filter: hue-rotate(-20deg); }
}
.mesh-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  will-change: transform;
}
.mesh-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #2563EB 0%, rgba(37,99,235,0.4) 50%, transparent 75%);
  top: -100px; right: -50px;
  animation: orbFloat1 8s ease-in-out infinite;
}
.mesh-2 {
  width: 550px; height: 550px;
  background: radial-gradient(circle, #818CF8 0%, rgba(129,140,248,0.4) 50%, transparent 75%);
  bottom: -80px; left: -50px;
  animation: orbFloat2 10s ease-in-out infinite;
}
.mesh-3 {
  width: 450px; height: 450px;
  background: radial-gradient(circle, #06B6D4 0%, rgba(6,182,212,0.35) 50%, transparent 75%);
  top: 20%; left: 40%;
  opacity: 0.45;
  animation: orbFloat3 7s ease-in-out infinite;
}
/* Extra pseudo-orbs for richer color blend */
.hero-mesh::before,
.hero-mesh::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
}
.hero-mesh::before {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #A855F7 0%, rgba(168,85,247,0.3) 50%, transparent 75%);
  top: 5%; right: 10%;
  opacity: 0.4;
  animation: orbFloat4 9s ease-in-out infinite;
}
.hero-mesh::after {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #3B82F6 0%, rgba(59,130,246,0.3) 50%, transparent 75%);
  bottom: 10%; left: 20%;
  opacity: 0.35;
  animation: orbFloat5 11s ease-in-out infinite;
}
@keyframes orbFloat1 {
  0%   { transform: translate(0, 0) scale(1); }
  25%  { transform: translate(-180px, 120px) scale(1.15); }
  50%  { transform: translate(100px, -80px) scale(0.9); }
  75%  { transform: translate(-60px, -100px) scale(1.1); }
  100% { transform: translate(0, 0) scale(1); }
}
@keyframes orbFloat2 {
  0%   { transform: translate(0, 0) scale(1); }
  30%  { transform: translate(160px, -100px) scale(1.2); }
  60%  { transform: translate(-100px, 140px) scale(0.85); }
  85%  { transform: translate(60px, -50px) scale(1.08); }
  100% { transform: translate(0, 0) scale(1); }
}
@keyframes orbFloat3 {
  0%   { transform: translate(-50%, 0) scale(1); }
  33%  { transform: translate(-30%, -120px) scale(1.25); }
  66%  { transform: translate(-70%, 80px) scale(0.85); }
  100% { transform: translate(-50%, 0) scale(1); }
}
@keyframes orbFloat4 {
  0%   { transform: translate(0, 0) scale(1); }
  40%  { transform: translate(-140px, 100px) scale(1.2); }
  70%  { transform: translate(120px, -130px) scale(0.85); }
  100% { transform: translate(0, 0) scale(1); }
}
@keyframes orbFloat5 {
  0%   { transform: translate(0, 0) scale(1); }
  45%  { transform: translate(100px, -90px) scale(1.15); }
  80%  { transform: translate(-120px, 110px) scale(0.9); }
  100% { transform: translate(0, 0) scale(1); }
}

/* Dark mode — keep orbs visible */
[data-theme="dark"] .mesh-orb { opacity: 0.45; }
[data-theme="dark"] .mesh-3 { opacity: 0.35; }
[data-theme="dark"] .hero-mesh::before { opacity: 0.3; }
[data-theme="dark"] .hero-mesh::after { opacity: 0.25; }

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
}

/* Hero chip */
.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 100px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  box-shadow: var(--shadow-sm);
  margin-bottom: 32px;
}
.chip-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22C55E;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.5); }
  50% { box-shadow: 0 0 0 6px rgba(34,197,94,0); }
}

.hero-title {
  font-size: clamp(40px, 7vw, 76px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 24px;
}

/* Shimmer text gradient */
.text-gradient {
  background: linear-gradient(135deg, #2563EB 0%, #818CF8 50%, #2563EB 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s ease infinite;
}
@keyframes shimmer {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

.hero-sub {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

/* Hero metrics */
.hero-metrics {
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 0;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.hm-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 32px;
  text-align: center;
}
.hm-num {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}
.hm-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}
.hm-sep {
  width: 1px;
  height: 48px;
  background: var(--border);
  flex-shrink: 0;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
}
.scroll-track {
  width: 24px;
  height: 40px;
  border-radius: 100px;
  border: 2px solid var(--border-hover);
  display: flex;
  justify-content: center;
  padding-top: 8px;
}
.scroll-dot {
  width: 4px;
  height: 8px;
  background: var(--accent);
  border-radius: 100px;
  animation: scrollBounce 2s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(10px); opacity: 0.3; }
}

/* Scroll-reveal animation (V3-style) */
.anim-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.anim-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.d1 { transition-delay: 0.1s; }
.d2 { transition-delay: 0.2s; }
.d3 { transition-delay: 0.3s; }
.d4 { transition-delay: 0.4s; }
.d5 { transition-delay: 0.5s; }

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee-section {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  overflow: hidden;
  background: var(--bg-02);
  position: relative;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}
.marquee-label {
  display: none;
}
.marquee-track {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}
.marquee-inner {
  display: flex;
  align-items: center;
  gap: 0;
  width: max-content;
  animation: marquee 28s linear infinite;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee-inner:hover { animation-play-state: paused; }

.marquee-item {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0 28px;
  white-space: nowrap;
  transition: color var(--transition);
}
.marquee-item:hover { color: var(--text); }
.marquee-dot {
  color: var(--accent);
  font-size: 10px;
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-light);
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.25);
  padding: 4px 12px;
  border-radius: 40px;
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  position: relative;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient);
  opacity: 0;
  transition: opacity var(--transition);
  border-radius: inherit;
  z-index: 0;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow: 0 20px 60px rgba(37, 99, 235, 0.15);
}

.service-icon {
  position: relative;
  z-index: 1;
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(37, 99, 235, 0.25);
  border-radius: var(--radius-md);
  color: var(--accent-light);
  margin-bottom: 20px;
  transition: background var(--transition), border-color var(--transition);
}
.service-card:hover .service-icon {
  background: rgba(37, 99, 235, 0.22);
  border-color: rgba(37, 99, 235, 0.5);
}

.service-title {
  position: relative;
  z-index: 1;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.service-desc {
  position: relative;
  z-index: 1;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}
.service-arrow {
  position: relative;
  z-index: 1;
  color: var(--accent-light);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity var(--transition), transform var(--transition);
}
.service-card:hover .service-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ============================================================
   STATS
   ============================================================ */
.stats-section {
  padding: 80px 0;
  background: var(--bg-02);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 48px 24px;
  background: var(--surface);
  gap: 8px;
}
.stat-number {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 800;
  letter-spacing: -0.04em;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.stat-label {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-section { background: var(--bg); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-content .section-tag { margin-bottom: 16px; }
.about-content .section-title {
  text-align: left;
  margin-bottom: 28px;
}

.about-text {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}
.about-text strong { color: var(--text); font-weight: 600; }

.about-values {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 32px 0;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.value-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.value-icon {
  width: 32px; height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 99, 235, 0.12);
  border-radius: var(--radius-sm);
  color: var(--accent-light);
  flex-shrink: 0;
}
.value-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}
.value-text {
  font-size: 13px;
  color: var(--text-muted);
}

.about-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* Photo column */
.about-photo-col {
  position: relative;
}
.about-photo-wrapper {
  position: relative;
}
.about-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.about-photo-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: rgba(255,255,255,0.95);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  min-width: 260px;
}
.badge-icon {
  width: 40px; height: 40px;
  background: var(--gradient);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.badge-icon svg { color: white; }
.badge-name {
  font-size: 14px;
  font-weight: 700;
}
.badge-role {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ============================================================
   WHY AFM
   ============================================================ */
.why-section { background: var(--bg-02); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.why-card {
  padding: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-sm);
}
.why-card:hover {
  border-color: rgba(37, 99, 235, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(37, 99, 235, 0.1);
}
.why-number {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 16px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.4;
}
.why-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.why-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-section { background: var(--bg); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.testimonial-card {
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-sm);
}
.testimonial-card:hover {
  border-color: rgba(37, 99, 235, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(37, 99, 235, 0.1);
}
.stars {
  display: flex;
  gap: 3px;
  color: #f59e0b;
}
.testimonial-text {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.75;
  font-style: italic;
  flex: 1;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.author-avatar {
  width: 40px; height: 40px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}
.author-name {
  font-size: 14px;
  font-weight: 700;
}
.author-role {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
  background: var(--bg-02);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta-banner-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.cta-banner-bg .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.12;
  animation: orbFloat1 8s ease-in-out infinite;
}
.blob-cta-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #2563EB 0%, transparent 70%);
  top: -150px; right: -150px;
}
.blob-cta-2 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, #7c3aed 0%, transparent 70%);
  bottom: -100px; left: -100px;
  animation-delay: 4s;
}
.cta-banner-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}
.cta-banner-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 16px;
}
.cta-banner-subtitle {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 500px;
  line-height: 1.7;
}
.cta-banner-ctas { flex-shrink: 0; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-section { background: var(--bg); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}

.contact-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 40px;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition);
}
.contact-item:hover { border-color: rgba(37, 99, 235, 0.3); }
.contact-icon {
  width: 36px; height: 36px;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-light);
  flex-shrink: 0;
}
.contact-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  margin-bottom: 4px;
}
.contact-value {
  font-size: 15px;
  font-weight: 500;
}

/* Form */
.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-md);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.form-group:last-of-type { margin-bottom: 24px; }

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
  -webkit-appearance: none;
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238892a0' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}
.form-group select option {
  background: #ffffff;
  color: var(--text);
}
.form-group textarea { resize: vertical; min-height: 100px; }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-faint);
}

.form-success {
  margin-top: 16px;
  padding: 14px 18px;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.3);
  border-radius: var(--radius-md);
  color: var(--accent-light);
  font-size: 14px;
  font-weight: 500;
  display: none;
}
.form-success.visible { display: block; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg-02);
  border-top: 1px solid var(--border);
  padding: 80px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  gap: 60px;
  padding-bottom: 60px;
}
.footer-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: 16px;
  margin-bottom: 24px;
}
.footer-social {
  display: flex;
  gap: 10px;
}
.social-link {
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}
.social-link:hover {
  color: var(--accent);
  border-color: rgba(37,99,235,0.3);
  background: rgba(37,99,235,0.06);
}
.footer-heading {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  margin-bottom: 20px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-links a, .footer-links span {
  font-size: 14px;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--text); }
.footer-contact li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
}
.footer-contact svg { flex-shrink: 0; color: var(--text-faint); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom p {
  font-size: 13px;
  color: var(--text-faint);
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.stagger-1 { transition-delay: 0.05s !important; }
.stagger-2 { transition-delay: 0.12s !important; }
.stagger-3 { transition-delay: 0.19s !important; }
.stagger-4 { transition-delay: 0.26s !important; }

/* ============================================================
   RESPONSIVE — TABLET (≤ 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 60px; }
  .about-photo-col { order: -1; max-width: 400px; }
  .about-photo { aspect-ratio: 4 / 3; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {
  /* Navbar */
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .theme-toggle { margin-left: auto; }
  .nav-container { gap: 8px; }

  /* Hero */
  .hero { padding: 120px 0 80px; min-height: auto; }
  .hero-btns { flex-direction: column; align-items: center; }
  .hero-btns .btn { width: 100%; justify-content: center; }
  .hero-metrics {
    flex-direction: column;
    border-radius: var(--radius-lg);
    width: 100%;
  }
  .hm-item { padding: 16px 24px; }
  .hm-sep { width: 100%; height: 1px; }
  .scroll-indicator { display: none; }

  /* Marquee */
  .marquee-section { padding: 16px 0; }

  /* Sections */
  .section { padding: 72px 0; }
  .section-header { margin-bottom: 40px; }

  /* Services */
  .services-grid { grid-template-columns: 1fr; }

  /* Stats */
  .stats-section { padding: 60px 0; }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    border-radius: var(--radius-lg);
  }
  .stat-item { padding: 32px 20px; }

  /* About */
  .about-section .section-title { font-size: 28px; }
  .about-photo-badge {
    position: static;
    margin-top: 16px;
    width: 100%;
  }
  .about-ctas { flex-direction: column; }
  .about-ctas .btn { width: 100%; justify-content: center; }

  /* Why */
  .why-grid { grid-template-columns: 1fr; }

  /* Testimonials */
  .testimonials-grid { grid-template-columns: 1fr; }

  /* CTA Banner */
  .cta-banner { padding: 72px 0; }
  .cta-banner-content { flex-direction: column; align-items: flex-start; }
  .cta-banner-ctas .btn { width: 100%; justify-content: center; }

  /* Contact */
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 24px; }

  /* Footer */
  .footer { padding: 60px 0 0; }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-bottom: 40px;
  }
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; }
}

/* ============================================================
   RESPONSIVE — SMALL MOBILE (≤ 400px)
   ============================================================ */
@media (max-width: 400px) {
  .hero-title { font-size: 32px; }
  .hero-metrics { border-radius: var(--radius-md); }
  .hm-item { padding: 12px 16px; }
  .container { padding: 0 16px; }
  .contact-form { padding: 20px; }
  .stats-grid { grid-template-columns: 1fr; }
}
