/*
Theme Name: SERP Xperts 2026 Light Edition
Theme URI: https://serpxperts.com
Author: SERP Xperts
Author URI: https://serpxperts.com
Description: Premium Light-Mode AI SEO Agency Theme with 3D Visuals, Animations, Swiper Slideshows, and Generative Engine Optimization (GEO) features.
Version: 3.0
Requires at least: 5.9
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: serpxperts
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* =============================================
   0. GOOGLE FONTS IMPORT
   ============================================= */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* =============================================
   1. CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ============================================= */
:root {
  /* Background */
  --bg-page:         #F8F9FF;
  --bg-white:        #FFFFFF;
  --bg-surface:      #F1F3FA;
  --bg-muted:        #EEF0FB;

  /* Borders */
  --border-light:    #E2E5F1;
  --border-medium:   #C8CDDF;
  --border-strong:   #A0A8C0;

  /* Primary Palette — Deep Indigo */
  --primary-50:      #EEF2FF;
  --primary-100:     #E0E7FF;
  --primary-200:     #C7D2FE;
  --primary-400:     #818CF8;
  --primary-500:     #6366F1;
  --primary-600:     #4F46E5;
  --primary-700:     #4338CA;
  --primary-900:     #1E1B4B;

  /* Violet */
  --violet-400:      #A78BFA;
  --violet-500:      #8B5CF6;
  --violet-600:      #7C3AED;

  /* Emerald */
  --emerald-400:     #34D399;
  --emerald-500:     #10B981;
  --emerald-600:     #059669;

  /* Rose */
  --rose-400:        #FB7185;
  --rose-500:        #F43F5E;
  --rose-600:        #E11D48;

  /* Amber */
  --amber-400:       #FBBF24;
  --amber-500:       #F59E0B;

  /* Sky */
  --sky-400:         #38BDF8;
  --sky-500:         #0EA5E9;

  /* Text */
  --text-heading:    #0F172A;
  --text-body:       #1E293B;
  --text-secondary:  #475569;
  --text-muted:      #94A3B8;
  --text-white:      #FFFFFF;

  /* Typography */
  --font-display:    'Plus Jakarta Sans', sans-serif;
  --font-body:       'Inter', sans-serif;
  --font-alt:        'Space Grotesk', sans-serif;

  /* Spacing */
  --space-xs:        4px;
  --space-sm:        8px;
  --space-md:        16px;
  --space-lg:        24px;
  --space-xl:        32px;
  --space-2xl:       48px;
  --space-3xl:       64px;
  --space-4xl:       80px;

  /* Border Radius */
  --radius-sm:       8px;
  --radius-md:       12px;
  --radius-lg:       20px;
  --radius-xl:       28px;
  --radius-full:     9999px;

  /* Shadows */
  --shadow-xs:       0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-sm:       0 2px 8px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.04);
  --shadow-md:       0 8px 24px rgba(15, 23, 42, 0.10), 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-lg:       0 20px 48px rgba(15, 23, 42, 0.12), 0 8px 16px rgba(15, 23, 42, 0.08);
  --shadow-xl:       0 32px 64px rgba(15, 23, 42, 0.14), 0 12px 24px rgba(15, 23, 42, 0.08);
  --shadow-glow-primary: 0 0 40px rgba(99, 102, 241, 0.25), 0 8px 32px rgba(79, 70, 229, 0.15);
  --shadow-glow-violet:  0 0 40px rgba(139, 92, 246, 0.25), 0 8px 32px rgba(124, 58, 237, 0.15);

  /* Transitions */
  --transition-fast:   150ms ease;
  --transition-base:   250ms ease;
  --transition-slow:   400ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-spring: 600ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background-color: var(--bg-page);
  line-height: 1.7;
  overflow-x: hidden;
}

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

/* =============================================
   3. TYPOGRAPHY
   ============================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4.5rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.1rem; font-weight: 600; }
p  { color: var(--text-secondary); line-height: 1.75; }

.gradient-text {
  background: linear-gradient(135deg, var(--primary-600) 0%, var(--violet-500) 50%, var(--rose-500) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gradient-text-indigo {
  background: linear-gradient(135deg, var(--primary-600), var(--violet-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.section-pad { padding: 64px 0; }
.section-pad-lg { padding: 88px 0; }

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}
.section-header p {
  font-size: 1.05rem;
  margin-top: var(--space-md);
  color: var(--text-secondary);
}

/* =============================================
   5. BADGE / PILL CHIPS
   ============================================= */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: var(--font-alt);
}

.chip-primary {
  background: var(--primary-50);
  color: var(--primary-600);
  border: 1px solid var(--primary-200);
}
.chip-violet {
  background: rgba(139, 92, 246, 0.08);
  color: var(--violet-600);
  border: 1px solid rgba(139, 92, 246, 0.2);
}
.chip-emerald {
  background: rgba(16, 185, 129, 0.08);
  color: var(--emerald-600);
  border: 1px solid rgba(16, 185, 129, 0.2);
}
.chip-rose {
  background: rgba(244, 63, 94, 0.08);
  color: var(--rose-600);
  border: 1px solid rgba(244, 63, 94, 0.2);
}

.chip-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

/* =============================================
   6. BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-display);
  transition: all var(--transition-base);
  cursor: pointer;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  letter-spacing: -0.01em;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-600), var(--violet-600));
  color: #fff;
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.35), inset 0 1px 0 rgba(255,255,255,0.15);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(79, 70, 229, 0.45), inset 0 1px 0 rgba(255,255,255,0.2);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: var(--bg-white);
  color: var(--text-heading);
  border: 1.5px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
  border-color: var(--primary-400);
  color: var(--primary-600);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--primary-600);
  border: 1.5px solid var(--primary-200);
}
.btn-outline:hover {
  background: var(--primary-50);
  border-color: var(--primary-400);
  transform: translateY(-1px);
}

.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-sm { padding: 9px 20px; font-size: 0.85rem; }

.btn i { transition: transform var(--transition-base); }
.btn:hover i { transform: translateX(3px); }

/* =============================================
   7. HEADER / NAVBAR
   ============================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: all var(--transition-base);
  background: transparent;
}

.site-header.scrolled,
.site-header.header-solid {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

/* Inner pages (blog, case studies, single posts, pages)
   always show solid header — no transparent overlay.
   WordPress adds .front-page only on the static front page,
   so :not(.front-page) covers every other template. */
body:not(.front-page) .site-header {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

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

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-mark {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary-600), var(--violet-600));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}
.logo-mark i { color: #fff; font-size: 0.9rem; }
.logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--text-heading);
  letter-spacing: -0.03em;
}
.logo-text span { color: var(--primary-600); }

/* Nav links */
.main-nav { flex: 1; display: flex; justify-content: center; }
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.main-nav ul li a {
  display: block;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}
.main-nav ul li a:hover,
.main-nav ul li.current-menu-item a {
  color: var(--primary-600);
  background: var(--primary-50);
}

.header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

/* Mobile toggle */
.mobile-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-light);
  background: var(--bg-white);
  align-items: center;
  justify-content: center;
  color: var(--text-heading);
  font-size: 1rem;
  cursor: pointer;
}

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  padding: 100px 32px 32px;
  flex-direction: column;
  gap: 12px;
  transform: translateX(100%);
  transition: transform var(--transition-slow);
}
.mobile-nav.open {
  transform: translateX(0);
}
.mobile-nav a {
  display: block;
  padding: 14px 20px;
  font-size: 1.2rem;
  font-weight: 600;
  font-family: var(--font-display);
  color: var(--text-heading);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  transition: all var(--transition-fast);
}
.mobile-nav a:hover { background: var(--primary-50); color: var(--primary-600); border-color: var(--primary-200); }
.mobile-nav-close {
  position: absolute;
  top: 20px; right: 20px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  color: var(--text-heading);
  cursor: pointer;
}

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

/* Mesh gradient background */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(99, 102, 241, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(139, 92, 246, 0.10) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(248, 249, 255, 1) 0%, rgba(238, 240, 251, 0.8) 100%);
}

/* Floating orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}
.orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(99,102,241,0.18) 0%, transparent 70%);
  top: -10%; left: -10%;
  animation: orb-float-1 12s ease-in-out infinite;
}
.orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(139,92,246,0.15) 0%, transparent 70%);
  bottom: 10%; right: 5%;
  animation: orb-float-2 15s ease-in-out infinite;
}
.orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(244,63,94,0.10) 0%, transparent 70%);
  top: 30%; right: 30%;
  animation: orb-float-3 10s ease-in-out infinite;
}

@keyframes orb-float-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, 20px) scale(1.05); }
  66% { transform: translate(-20px, 30px) scale(0.95); }
}
@keyframes orb-float-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-40px, -30px) scale(1.1); }
}
@keyframes orb-float-3 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20px, -20px); }
}

/* Grid pattern overlay */
.hero-grid-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(to right, rgba(99,102,241,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(99,102,241,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* Hero content */
.hero-content { display: flex; flex-direction: column; gap: 28px; }

.hero-headline {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-heading);
}

.hero-subtext {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Stats row */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 12px;
}
.stat-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-base);
}
.stat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--primary-200);
}
.stat-number {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary-600);
  letter-spacing: -0.03em;
  line-height: 1;
}
.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Hero Visual (right side) */
.hero-visual { position: relative; }

.hero-dashboard {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-xl), var(--shadow-glow-primary);
  position: relative;
  transform: perspective(1200px) rotateY(-8deg) rotateX(4deg);
  transition: transform var(--transition-slow);
}
.hero-dashboard:hover {
  transform: perspective(1200px) rotateY(-3deg) rotateX(2deg);
}

.dashboard-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}
.dash-dot { width: 11px; height: 11px; border-radius: 50%; }
.dash-dot.red { background: #FF5F57; }
.dash-dot.yellow { background: #FEBC2E; }
.dash-dot.green { background: #28C840; }
.dash-label {
  margin-left: auto;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: 'Courier New', monospace;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.dashboard-kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}
.kpi-card {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  padding: 16px;
  border: 1px solid var(--border-light);
}
.kpi-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.kpi-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-heading);
  letter-spacing: -0.03em;
  margin-top: 4px;
}
.kpi-delta {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--emerald-600);
  background: rgba(16,185,129,0.08);
  border-radius: 4px;
  padding: 2px 6px;
  margin-top: 4px;
}
.kpi-delta.down { color: var(--rose-500); background: rgba(244,63,94,0.08); }

.dashboard-bar-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 10px;
}
.dashboard-bars { display: flex; flex-direction: column; gap: 8px; }
.bar-row { display: flex; align-items: center; gap: 10px; }
.bar-name { font-size: 0.72rem; color: var(--text-muted); width: 90px; flex-shrink: 0; }
.bar-track {
  flex: 1;
  height: 8px;
  background: var(--bg-muted);
  border-radius: 4px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.bar-fill.indigo { background: linear-gradient(90deg, var(--primary-500), var(--violet-500)); }
.bar-fill.emerald { background: linear-gradient(90deg, var(--emerald-500), var(--sky-400)); }
.bar-fill.rose { background: linear-gradient(90deg, var(--rose-400), var(--amber-400)); }
.bar-fill.violet { background: linear-gradient(90deg, var(--violet-500), var(--primary-400)); }
.bar-pct { font-size: 0.72rem; color: var(--text-muted); width: 32px; text-align: right; }

.dashboard-footer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dash-footer-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-secondary);
}
.dash-footer-item i { color: var(--primary-500); font-size: 0.8rem; }

/* Floating badge on dashboard */
.float-badge {
  position: absolute;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-heading);
  animation: float-badge 6s ease-in-out infinite;
  z-index: 2;
}
.float-badge-1 {
  bottom: -16px; left: -20px;
  animation-delay: 0s;
}
.float-badge-2 {
  top: -16px; right: -16px;
  animation-delay: 2s;
}
.float-badge i { font-size: 1rem; }
.float-badge .badge-icon-emerald { color: var(--emerald-500); }
.float-badge .badge-icon-indigo { color: var(--primary-600); }

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

/* =============================================
   9. LOGO TICKER (PUBLISHER STRIP)
   ============================================= */
.ticker-section {
  padding: 40px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-white);
  overflow: hidden;
}
.ticker-label {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}
.ticker-track {
  display: flex;
  align-items: center;
  gap: 0;
  width: max-content;
  animation: ticker-scroll 30s linear infinite;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 48px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color var(--transition-fast);
}
.ticker-item:hover { color: var(--primary-600); }
.ticker-item i { font-size: 1rem; }
.ticker-sep {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--border-medium);
  flex-shrink: 0;
}

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* =============================================
   10. SERVICES SLIDESHOW
   ============================================= */
.services-section {
  padding: var(--space-4xl) 0;
  background: var(--bg-page);
  position: relative;
  overflow: hidden;
}
.services-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-medium), transparent);
}

.swiper-services {
  padding: 20px 4px 60px !important;
  overflow: visible !important;
}
.swiper-services .swiper-slide {
  height: auto;
  transition: transform var(--transition-slow);
}

.service-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: all var(--transition-slow);
  cursor: default;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--card-gradient, linear-gradient(90deg, var(--primary-500), var(--violet-500)));
  opacity: 0;
  transition: opacity var(--transition-base);
}
.service-card:hover {
  transform: translateY(-8px) perspective(1000px) rotateX(2deg);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-200);
}
.service-card:hover::before { opacity: 1; }

.service-icon-wrap {
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-heading);
}
.service-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
  flex: 1;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary-600);
  padding: 8px 0;
  transition: gap var(--transition-fast);
  text-decoration: none;
}
.service-link:hover { gap: 10px; }
.service-link i { font-size: 0.8rem; }

/* Swiper pagination / nav */
.swiper-pagination-bullet {
  width: 8px !important;
  height: 8px !important;
  background: var(--border-medium) !important;
  opacity: 1 !important;
  transition: all var(--transition-base) !important;
}
.swiper-pagination-bullet-active {
  width: 24px !important;
  border-radius: 4px !important;
  background: var(--primary-600) !important;
}
.swiper-button-next,
.swiper-button-prev {
  color: var(--primary-600) !important;
  background: var(--bg-white) !important;
  border: 1.5px solid var(--border-light) !important;
  width: 48px !important;
  height: 48px !important;
  border-radius: 50% !important;
  box-shadow: var(--shadow-md) !important;
  transition: all var(--transition-base) !important;
}
.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 0.85rem !important;
  font-weight: 700 !important;
}
.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: var(--primary-600) !important;
  color: #fff !important;
  border-color: var(--primary-600) !important;
  box-shadow: var(--shadow-glow-primary) !important;
}

/* =============================================
   11. STATS SECTION
   ============================================= */
.stats-section {
  padding: var(--space-4xl) 0;
  background: linear-gradient(135deg, var(--primary-600) 0%, var(--violet-600) 50%, var(--primary-700) 100%);
  position: relative;
  overflow: hidden;
}
.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
  z-index: 1;
}
.stat-item-big {
  text-align: center;
  padding: 32px 20px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  transition: all var(--transition-base);
}
.stat-item-big:hover {
  background: rgba(255,255,255,0.14);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}
.stat-item-big .icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.2rem;
  color: #fff;
}
.stat-big-number {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.04em;
  line-height: 1;
}
.stat-big-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  margin-top: 8px;
  font-weight: 500;
}

/* =============================================
   12. PROCESS / HOW IT WORKS
   ============================================= */
.process-section {
  padding: var(--space-4xl) 0;
  background: var(--bg-white);
}
.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}
.process-steps::before {
  content: '';
  position: absolute;
  top: 36px;
  left: calc(16.66% + 36px);
  right: calc(16.66% + 36px);
  height: 2px;
  background: linear-gradient(90deg, var(--primary-200), var(--violet-400), var(--primary-200));
  z-index: 0;
}

.process-step {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 36px 28px;
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  transition: all var(--transition-slow);
}
.process-step:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-200);
  transform: translateY(-6px);
}
.step-number {
  width: 72px; height: 72px;
  border-radius: 50%;
  margin: 0 auto 24px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  position: relative;
}
.step-1 .step-number { background: var(--primary-50); color: var(--primary-600); border: 2px solid var(--primary-200); }
.step-2 .step-number { background: rgba(139,92,246,0.08); color: var(--violet-600); border: 2px solid rgba(139,92,246,0.2); }
.step-3 .step-number { background: rgba(16,185,129,0.08); color: var(--emerald-600); border: 2px solid rgba(16,185,129,0.2); }

.process-step h3 { font-size: 1.1rem; margin-bottom: 12px; }
.process-step p { font-size: 0.9rem; }

/* =============================================
   13. COMPARISON SECTION
   ============================================= */
.compare-section {
  padding: var(--space-4xl) 0;
  background: var(--bg-page);
}
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}
.compare-card {
  border-radius: var(--radius-xl);
  padding: 36px;
}
.compare-card.bad {
  background: #FFF5F5;
  border: 1.5px solid #FECDD3;
}
.compare-card.good {
  background: linear-gradient(135deg, var(--primary-50), rgba(139,92,246,0.04));
  border: 1.5px solid var(--primary-200);
  box-shadow: var(--shadow-glow-primary);
}
.compare-card h3 {
  font-size: 1.1rem;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid currentColor;
  opacity: 0.3;
  display: flex;
  align-items: center;
  gap: 10px;
}
.compare-card h3 { opacity: 1; border-bottom-color: inherit; }
.compare-card.bad h3 { color: var(--rose-600); border-bottom-color: #FECDD3; }
.compare-card.good h3 { color: var(--primary-600); border-bottom-color: var(--primary-200); }

.compare-list { display: flex; flex-direction: column; gap: 14px; }
.compare-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.compare-list li i { margin-top: 2px; flex-shrink: 0; font-size: 0.85rem; }
.compare-card.bad .compare-list li i { color: var(--rose-500); }
.compare-card.good .compare-list li i { color: var(--emerald-500); }

/* =============================================
   14. ROI CALCULATOR
   ============================================= */
.calc-section {
  padding: var(--space-4xl) 0;
  background: var(--bg-white);
}
.calc-container {
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  box-shadow: var(--shadow-md);
}

.calc-title { font-size: 1rem; font-weight: 700; margin-bottom: 24px; color: var(--text-heading); }

.slider-group { margin-bottom: 28px; }
.slider-group label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.slider-group label span:last-child {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--primary-600);
}

input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--border-light);
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-600), var(--violet-600));
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(79,70,229,0.4);
  transition: box-shadow var(--transition-fast);
}
input[type="range"]::-webkit-slider-thumb:hover {
  box-shadow: 0 4px 16px rgba(79,70,229,0.5);
}

.calc-results {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: var(--shadow-sm);
}
.results-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.result-metric {
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--bg-page);
  border: 1px solid var(--border-light);
}
.result-metric h4 {
  font-size: 1.8rem;
  font-weight: 800;
  font-family: var(--font-display);
  letter-spacing: -0.04em;
  line-height: 1;
}
.result-metric p {
  font-size: 0.78rem;
  margin-top: 4px;
  color: var(--text-muted);
}
.metric-indigo h4 { color: var(--primary-600); }
.metric-violet h4 { color: var(--violet-600); }
.metric-emerald h4 { color: var(--emerald-600); }

.calc-guarantee {
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(16,185,129,0.06);
  border: 1px solid rgba(16,185,129,0.15);
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.calc-guarantee strong { color: var(--emerald-600); }

/* =============================================
   15. TESTIMONIALS
   ============================================= */
.testimonials-section {
  padding: var(--space-4xl) 0;
  background: linear-gradient(180deg, var(--bg-page) 0%, var(--bg-white) 100%);
}
.swiper-testimonials {
  padding: 16px 4px 56px !important;
  overflow: visible !important;
}
.testimonial-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}
.testimonial-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.testimonial-stars { color: var(--amber-400); font-size: 0.85rem; margin-bottom: 16px; }
.testimonial-quote {
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--text-body);
  font-style: italic;
  margin-bottom: 24px;
  position: relative;
}
.testimonial-quote::before {
  content: '"';
  font-family: Georgia, serif;
  font-size: 4rem;
  color: var(--primary-100);
  position: absolute;
  top: -20px; left: -10px;
  line-height: 1;
  pointer-events: none;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}
.author-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  flex-shrink: 0;
}
.author-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-heading);
}
.author-title {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* =============================================
   16. BLOG SECTION
   ============================================= */
.blog-section { padding: var(--space-4xl) 0; background: var(--bg-page); }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.post-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-slow);
}
.post-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-200);
}
.post-thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-50), var(--primary-100));
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
  color: var(--primary-400);
}
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-slow); }
.post-card:hover .post-thumb img { transform: scale(1.05); }
.post-body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.post-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.post-category { color: var(--primary-600); }
.post-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--border-medium); }
.post-body h3 {
  font-size: 1.05rem;
  margin-bottom: 12px;
  line-height: 1.4;
}
.post-body h3 a { color: var(--text-heading); transition: color var(--transition-fast); }
.post-body h3 a:hover { color: var(--primary-600); }
.post-excerpt { font-size: 0.88rem; color: var(--text-secondary); flex: 1; line-height: 1.7; }
.post-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
  font-size: 0.78rem;
  color: var(--text-muted);
}
.post-read-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary-600);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--transition-fast);
  text-decoration: none;
}
.post-read-link:hover { gap: 8px; }

/* =============================================
   17. CONTACT SECTION
   ============================================= */
.contact-section {
  padding: var(--space-4xl) 0;
  background: var(--bg-white);
}
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}

.contact-info { display: flex; flex-direction: column; gap: 28px; }
.contact-info h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.contact-info > p { font-size: 1.05rem; }

.contact-detail-list { display: flex; flex-direction: column; gap: 16px; }
.contact-detail {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  text-decoration: none;
  transition: all var(--transition-base);
}
.contact-detail:hover {
  border-color: var(--primary-300, var(--primary-200));
  box-shadow: var(--shadow-sm);
  transform: translateX(4px);
}
.contact-detail-icon {
  width: 42px; height: 42px;
  border-radius: var(--radius-sm);
  background: var(--primary-50);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary-600);
  font-size: 0.9rem;
  flex-shrink: 0;
}
.contact-detail-text { font-size: 0.9rem; font-weight: 600; color: var(--text-heading); }
.contact-detail-sub { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }

/* Contact Form */
.contact-form-wrap {
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-md);
}
.contact-form-wrap h3 { font-size: 1.2rem; margin-bottom: 28px; color: var(--text-heading); }

.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--bg-white);
  color: var(--text-body);
  font-size: 0.92rem;
  font-family: var(--font-body);
  outline: none;
  transition: all var(--transition-fast);
}
.form-control:focus {
  border-color: var(--primary-400);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}
.form-control::placeholder { color: var(--text-muted); }
select.form-control { cursor: pointer; }

.form-success-msg {
  display: none;
  text-align: center;
  padding: 24px;
  background: rgba(16,185,129,0.06);
  border: 1px solid rgba(16,185,129,0.2);
  border-radius: var(--radius-md);
  color: var(--emerald-600);
  font-weight: 600;
  margin-top: 16px;
}

/* =============================================
   18. FOOTER
   ============================================= */
.site-footer {
  background: var(--text-heading);
  color: rgba(255,255,255,0.7);
  padding: 80px 0 0;
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-500), var(--violet-500), var(--rose-500), var(--primary-500));
  background-size: 200% 100%;
  animation: gradient-shift 4s linear infinite;
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 60px;
}

.footer-brand .site-logo { margin-bottom: 20px; }
.footer-brand .site-logo .logo-text { color: #fff; }
.footer-tagline {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 280px;
}
.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.25);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--emerald-400);
}
.footer-status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--emerald-400);
  animation: pulse-dot 2s ease-in-out infinite;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col ul li a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-col ul li a:hover { color: #fff; }
.footer-col ul li a i { font-size: 0.8rem; opacity: 0.6; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 0.82rem; color: rgba(255,255,255,0.4); }
.footer-bottom a { color: rgba(255,255,255,0.4); transition: color var(--transition-fast); }
.footer-bottom a:hover { color: #fff; }
.footer-social { display: flex; gap: 12px; }
.social-btn {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.55);
  font-size: 0.85rem;
  transition: all var(--transition-base);
  text-decoration: none;
}
.social-btn:hover {
  background: var(--primary-600);
  border-color: var(--primary-600);
  color: #fff;
  transform: translateY(-2px);
}

/* =============================================
   19. ANIMATIONS & SCROLL REVEAL
   ============================================= */
.reveal {
  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);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* =============================================
   20. RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { display: none; }
  .hero-content { max-width: 100%; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .compare-grid { grid-template-columns: 1fr; max-width: 560px; }
  .contact-inner { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --space-4xl: 72px; }
  .main-nav, .header-actions .btn { display: none; }
  .mobile-toggle { display: flex; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .process-steps::before { display: none; }
  .blog-grid { grid-template-columns: 1fr; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .calc-container { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .section-header { margin-bottom: 48px; }
}

@media (max-width: 480px) {
  .hero-headline { font-size: 2.2rem; }
  .hero-stats { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .stats-grid { grid-template-columns: 1fr; }
}

/* =============================================
   21. UTILITY CLASSES
   ============================================= */
.text-center { text-align: center; }
.text-primary { color: var(--primary-600); }
.text-muted { color: var(--text-muted); }
.mt-auto { margin-top: auto; }
.w-full { width: 100%; }
.flex { display: flex; }
.items-center { align-items: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }

/* =============================================
   22. SCROLL PROGRESS BAR
   ============================================= */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-600), var(--violet-500), var(--rose-500));
  z-index: 9999;
  width: 0%;
  transition: width 0.1s linear;
}

/* =============================================
   23. BACK TO TOP
   ============================================= */
.back-to-top {
  position: fixed;
  bottom: 32px; right: 32px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-600), var(--violet-600));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  border: none;
  font-size: 0.9rem;
  opacity: 0;
  transform: translateY(16px);
  transition: all var(--transition-base);
  z-index: 500;
  text-decoration: none;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-4px); box-shadow: var(--shadow-glow-primary); }

/* =============================================
   24. CASE STUDIES PAGE STYLES
   ============================================= */
.case-studies-page {
  padding-bottom: var(--space-4xl);
}
.case-studies-hero {
  padding: 100px 0 52px;
  background: linear-gradient(180deg, var(--primary-50) 0%, var(--bg-page) 100%);
  text-align: center;
  border-bottom: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
}
.case-studies-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 50% 10%, rgba(99, 102, 241, 0.08) 0%, transparent 60%);
  pointer-events: none;
}
.case-studies-hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-top: var(--space-md);
  margin-bottom: var(--space-md);
}
.case-studies-hero p {
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto;
  font-size: 1.1rem;
}

/* Category Filter Bar */
.case-studies-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: var(--space-xl) auto var(--space-2xl);
  padding: 0 var(--space-md);
}
.filter-btn {
  font-family: var(--font-alt);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border-medium);
  background: var(--bg-white);
  color: var(--text-secondary);
  transition: all var(--transition-base);
}
.filter-btn:hover {
  border-color: var(--primary-400);
  color: var(--primary-600);
  background: var(--primary-50);
}
.filter-btn.active {
  background: linear-gradient(135deg, var(--primary-600), var(--violet-600));
  border-color: transparent;
  color: var(--text-white);
  box-shadow: var(--shadow-glow-primary);
}

/* Grid Layout */
.case-studies-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* Case Study Card */
.case-study-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-slow), box-shadow var(--transition-slow), border-color var(--transition-slow);
  position: relative;
  overflow: hidden;
}
.case-study-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-200);
}
.case-study-card.highlight:hover {
  box-shadow: var(--shadow-glow-primary);
}

/* Card Header */
.card-header-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
}
.case-study-client {
  font-family: var(--font-alt);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

/* Card Typography */
.case-study-card h3 {
  font-size: 1.5rem;
  line-height: 1.4;
  margin-bottom: var(--space-md);
  color: var(--text-heading);
}
.case-study-excerpt {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: var(--space-lg);
}

/* Card Metrics */
.case-study-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  background: var(--bg-muted);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-bottom: var(--space-lg);
}
.metric-box {
  text-align: center;
}
.metric-value {
  font-family: var(--font-alt);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-600);
  background: linear-gradient(135deg, var(--primary-700), var(--violet-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.metric-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-top: 4px;
  letter-spacing: 0.02em;
}

/* Card Expandable Details */
.card-details-wrapper {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow), opacity var(--transition-slow), margin-top var(--transition-slow);
}
.case-study-card.expanded .card-details-wrapper {
  max-height: 1200px;
  opacity: 1;
  margin-top: var(--space-lg);
  border-top: 1px solid var(--border-light);
  padding-top: var(--space-lg);
}
.detail-section {
  margin-bottom: var(--space-md);
}
.detail-section h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-heading);
  text-transform: uppercase;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.detail-section h4 i {
  color: var(--primary-500);
  font-size: 0.9rem;
}
.detail-section p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}
.detail-testimonial {
  background: var(--primary-50);
  border-left: 3px solid var(--primary-500);
  padding: 12px 16px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-top: var(--space-md);
}
.detail-testimonial p {
  font-style: italic;
  font-size: 0.85rem;
  color: var(--text-body);
  margin-bottom: 6px;
}
.detail-testimonial span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Card Toggle Button */
.card-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  background: var(--primary-50);
  border: 1px solid var(--primary-100);
  border-radius: var(--radius-md);
  color: var(--primary-600);
  font-family: var(--font-alt);
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: auto;
  transition: all var(--transition-base);
}
.card-toggle-btn:hover {
  background: var(--primary-100);
  color: var(--primary-700);
}
.card-toggle-btn i {
  transition: transform var(--transition-base);
}
.case-study-card.expanded .card-toggle-btn {
  background: var(--bg-muted);
  border-color: var(--border-light);
  color: var(--text-secondary);
}
.case-study-card.expanded .card-toggle-btn i {
  transform: rotate(180deg);
}

/* Responsive Grid */
@media (max-width: 992px) {
  .case-studies-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}
@media (max-width: 768px) {
  .case-studies-hero h1 {
    font-size: 2.2rem;
  }
}

/* =============================================
   25. CASE STUDY CARD — ADVANCED COMPONENTS
   ============================================= */

/* 3-column layout option */
.cs-3col {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 1100px) {
  .cs-3col { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .cs-3col { grid-template-columns: 1fr; }
}

/* Accent bar at top of card */
.cs-accent-bar {
  height: 4px;
  border-radius: 4px 4px 0 0;
  margin: -40px -40px 0;
  position: relative;
  top: -40px;
  left: -40px;
  width: calc(100% + 80px);
}

/* Timeline badge */
.cs-timeline-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: var(--font-alt);
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 4px 12px;
  white-space: nowrap;
}

/* Before / After block */
.cs-before-after {
  display: flex;
  align-items: stretch;
  gap: 0;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: var(--space-lg);
}
.cs-ba-col {
  flex: 1;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cs-ba-before {
  background: rgba(244, 63, 94, 0.04);
}
.cs-ba-after {
  background: rgba(16, 185, 129, 0.04);
}
.cs-ba-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  font-size: 1rem;
  color: var(--text-muted);
  background: var(--bg-muted);
  border-left: 1px solid var(--border-light);
  border-right: 1px solid var(--border-light);
}
.cs-ba-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 4px;
}
.cs-ba-row {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.cs-ba-metric {
  font-family: var(--font-alt);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-muted);
}
.cs-ba-win {
  background: linear-gradient(135deg, var(--emerald-600), var(--sky-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.cs-ba-desc {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Revenue / impact callout */
.cs-revenue-callout {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, rgba(99,102,241,0.06), rgba(79,70,229,0.04));
  border: 1.5px solid rgba(99,102,241,0.18);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: var(--space-lg);
}
.cs-revenue-callout > i {
  font-size: 1.4rem;
  color: var(--primary-500);
  flex-shrink: 0;
}
.cs-revenue-callout > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cs-revenue-num {
  font-family: var(--font-alt);
  font-size: 1.1rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-700), var(--violet-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.cs-revenue-label {
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Filter button icon spacing */
.filter-btn i {
  margin-right: 4px;
}

/* =============================================
   26. SERVICES SECTION — SPLIT HEADINGS
   ============================================= */
.services-heading-split {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin-bottom: 12px;
}

.services-heading-line {
  margin: 0;
  line-height: 1.2;
}

.services-heading-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 28px;
  border-radius: var(--radius-full);
  font-size: 2rem;
  font-weight: 800;
  font-family: var(--font-display);
}

.services-heading-label--primary {
  background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(79,70,229,0.04));
  border: 1.5px solid rgba(99,102,241,0.18);
  color: var(--primary-700);
}

.services-heading-label--primary i {
  font-size: 1.5rem;
  color: var(--primary-600);
  background: rgba(99,102,241,0.12);
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.services-heading-label--violet {
  background: linear-gradient(135deg, rgba(139,92,246,0.08), rgba(124,58,237,0.04));
  border: 1.5px solid rgba(139,92,246,0.18);
}

.services-heading-label--violet i {
  font-size: 1.5rem;
  color: var(--violet-600);
  background: rgba(139,92,246,0.12);
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Ampersand separator */
.services-heading-separator {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 0;
  position: relative;
}

.services-heading-separator::before,
.services-heading-separator::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--border-medium);
  margin: 0 12px;
}

.services-heading-amp {
  font-family: var(--font-alt);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 3px 12px;
}

@media (max-width: 640px) {
  .services-heading-label {
    font-size: 1.4rem;
    padding: 8px 18px;
    gap: 8px;
  }
  .services-heading-label--primary i,
  .services-heading-label--violet i {
    width: 36px; height: 36px;
    font-size: 1.1rem;
  }
}

