/**
 * AuraFlex Master Theme Stylesheet
 * High-performance, clean, modular CSS custom properties & utility architecture.
 *
 * @package AuraFlex
 */

/* ==========================================================================
   1. CSS Custom Properties / Design Tokens (Light Mode Default)
   ========================================================================== */
:root {
  /* Brand Palette (Overridden dynamically by functions.php Customizer inline CSS) */
  --af-primary: #4f46e5;
  --af-primary-rgb: 79, 70, 229;
  --af-primary-hover: #4338ca;
  --af-accent: #06b6d4;
  --af-accent-rgb: 6, 182, 212;
  --af-accent-hover: #0891b2;
  --af-accent-glow: rgba(6, 182, 212, 0.25);

  /* Neutrals & Surfaces (High Contrast Light Mode) */
  --af-bg: #ffffff;
  --af-surface: #f8fafc;
  --af-surface-hover: #f1f5f9;
  --af-surface-card: #ffffff;
  --af-text: #0f172a;
  --af-text-muted: #64748b;
  --af-text-light: #94a3b8;
  --af-border: #e2e8f0;
  --af-border-hover: #cbd5e1;

  /* Typography */
  --af-font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --af-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Geometry & Scaling */
  --af-container-max: 1240px;
  --af-radius-sm: 6px;
  --af-radius-md: 12px;
  --af-radius-lg: 20px;
  --af-radius-pill: 9999px;

  /* Elevation Shadows */
  --af-shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.05), 0 1px 2px -1px rgba(15, 23, 42, 0.05);
  --af-shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --af-shadow-lg: 0 12px 24px -4px rgba(15, 23, 42, 0.08), 0 4px 6px -2px rgba(15, 23, 42, 0.04);
  --af-shadow-xl: 0 20px 35px -6px rgba(15, 23, 42, 0.1), 0 10px 15px -3px rgba(15, 23, 42, 0.05);
  --af-shadow-glow: 0 0 25px rgba(var(--af-primary-rgb), 0.2);

  /* Transitions */
  --af-transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --af-transition-slow: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-family: var(--af-font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--af-text);
  background-color: var(--af-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  background-color: var(--af-bg);
  color: var(--af-text);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--af-font-heading);
  color: var(--af-text);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

p {
  margin-bottom: 1rem;
  color: var(--af-text-muted);
}

a {
  color: var(--af-primary);
  text-decoration: none;
  transition: var(--af-transition);
}

a:hover {
  color: var(--af-primary-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* ==========================================================================
   3. Layout Containers & Grid Helpers
   ========================================================================== */
.af-container {
  width: 100%;
  max-width: var(--af-container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.af-container-prose {
  max-width: 840px;
}

.af-section {
  padding-top: clamp(4rem, 8vw, 7rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
}

.af-section-sm {
  padding-top: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: clamp(2rem, 4vw, 3.5rem);
}

.af-section-header {
  text-align: center;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.af-eyebrow {
  display: inline-block;
  font-family: var(--af-font-heading);
  font-size: 0.825rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--af-primary);
  margin-bottom: 0.75rem;
}

.af-section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 1rem;
}

.af-header-accent-line {
  width: 48px;
  height: 4px;
  background: linear-gradient(90deg, var(--af-primary), var(--af-accent));
  border-radius: var(--af-radius-pill);
  margin: 1.25rem auto 0;
}

/* ==========================================================================
   4. Buttons & Interactive Elements
   ========================================================================== */
.af-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--af-font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  padding: 0.85rem 1.6rem;
  border-radius: var(--af-radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--af-transition);
  white-space: nowrap;
}

.af-btn-primary {
  background-color: var(--af-primary);
  color: #ffffff !important;
  box-shadow: 0 4px 14px 0 rgba(var(--af-primary-rgb), 0.35);
}

.af-btn-primary:hover {
  background-color: var(--af-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 rgba(var(--af-primary-rgb), 0.45);
}

.af-btn-secondary {
  background-color: var(--af-surface);
  color: var(--af-text) !important;
  border-color: var(--af-border);
}

.af-btn-secondary:hover {
  background-color: var(--af-surface-hover);
  border-color: var(--af-border-hover);
  transform: translateY(-2px);
}

.af-btn-accent {
  background-color: var(--af-accent);
  color: #ffffff !important;
  box-shadow: 0 4px 14px 0 rgba(var(--af-accent-rgb), 0.35);
}

.af-btn-accent:hover {
  background-color: var(--af-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 rgba(var(--af-accent-rgb), 0.45);
}

.af-btn-lg {
  padding: 1.1rem 2rem;
  font-size: 1.05rem;
}

.af-btn-full {
  width: 100%;
}

.af-btn-icon {
  width: 1.1rem;
  height: 1.1rem;
  transition: transform 0.2s ease;
}

.af-btn:hover .af-btn-icon {
  transform: translateX(3px);
}

/* ==========================================================================
   5. Site Header & Navigation
   ========================================================================== */
.af-site-header {
  position: relative;
  z-index: 1000;
  background-color: var(--af-bg);
  border-bottom: 1px solid var(--af-border);
  transition: var(--af-transition);
}

.af-header-sticky {
  position: sticky;
  top: 0;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background-color: rgba(255, 255, 255, 0.88);
}

.af-header-scrolled {
  box-shadow: var(--af-shadow-md);
  border-bottom-color: rgba(226, 232, 240, 0.8);
}

.af-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.af-header-brand {
  display: flex;
  align-items: center;
}

.af-brand-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--af-font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--af-text);
  letter-spacing: -0.03em;
}

.af-brand-title:hover {
  color: var(--af-primary);
}

.af-brand-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--af-radius-sm);
  background: linear-gradient(135deg, var(--af-primary), var(--af-accent));
  color: #ffffff;
}

.af-brand-icon {
  width: 20px;
  height: 20px;
}

/* Desktop Navigation */
.af-main-navigation {
  display: flex;
  align-items: center;
}

.af-nav-pos-center .af-main-navigation {
  margin-left: auto;
  margin-right: auto;
}

.af-nav-pos-right .af-main-navigation {
  margin-left: auto;
  margin-right: 2rem;
}

.af-nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.af-nav-menu a {
  font-family: var(--af-font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--af-text);
  padding: 0.5rem 0;
  position: relative;
}

.af-nav-menu a:hover,
.af-nav-menu .current-menu-item > a {
  color: var(--af-primary);
}

.af-nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--af-primary);
  transition: width 0.25s ease;
}

.af-nav-menu a:hover::after,
.af-nav-menu .current-menu-item > a::after {
  width: 100%;
}

.af-header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Mobile Toggle */
.af-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: var(--af-radius-sm);
  color: var(--af-text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.af-menu-toggle:hover {
  background-color: var(--af-surface);
}

.af-hamburger-icon svg {
  width: 24px;
  height: 24px;
}

.af-hamburger-icon.close-icon {
  display: none;
}

.af-menu-toggle[aria-expanded="true"] .open-icon {
  display: none;
}

.af-menu-toggle[aria-expanded="true"] .close-icon {
  display: block;
}

/* Mobile Navigation Drawer */
.af-mobile-drawer {
  position: fixed;
  top: 80px;
  right: -100%;
  width: min(380px, 85vw);
  height: calc(100vh - 80px);
  background-color: var(--af-bg);
  box-shadow: var(--af-shadow-xl);
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 999;
  overflow-y: auto;
  border-left: 1px solid var(--af-border);
}

.af-mobile-drawer.is-active {
  right: 0;
}

.af-mobile-drawer-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.af-mobile-menu {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.af-mobile-menu a {
  font-family: var(--af-font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--af-text);
}

.af-drawer-backdrop {
  position: fixed;
  top: 80px;
  left: 0;
  width: 100vw;
  height: calc(100vh - 80px);
  background: rgba(15, 23, 42, 0.3);
  backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.af-drawer-backdrop.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* ==========================================================================
   6. Hero Section Architecture
   ========================================================================== */
.af-hero-section {
  position: relative;
  overflow: hidden;
  background-color: var(--af-bg);
}

.af-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1rem;
  background-color: rgba(var(--af-primary-rgb), 0.08);
  border: 1px solid rgba(var(--af-primary-rgb), 0.15);
  border-radius: var(--af-radius-pill);
  margin-bottom: 1.5rem;
}

.af-badge-white {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff !important;
}

.af-hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--af-primary);
  box-shadow: 0 0 10px var(--af-primary);
}

.af-badge-white .af-hero-badge-dot {
  background-color: var(--af-accent);
  box-shadow: 0 0 10px var(--af-accent);
}

.af-hero-badge-text {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--af-primary);
  letter-spacing: 0.02em;
}

.af-badge-white .af-hero-badge-text {
  color: #ffffff;
}

/* 6.1 Mode A: Static Split Hero */
.af-hero-static {
  padding-top: clamp(3.5rem, 6vw, 6rem);
  padding-bottom: clamp(3.5rem, 6vw, 6rem);
}

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

.af-hero-title {
  font-size: clamp(2.4rem, 4.5vw, 3.75rem);
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.af-hero-subtitle {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 600px;
}

.af-hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.af-hero-proof {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.af-proof-stars {
  display: flex;
  color: #f59e0b;
}

.af-star-icon {
  width: 18px;
  height: 18px;
}

.af-proof-text {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--af-text-muted);
}

/* Visual Canvas & Mockup Frame */
.af-hero-visual-wrapper {
  position: relative;
}

.af-hero-visual-backdrop {
  position: absolute;
  top: 10%;
  right: -5%;
  width: 90%;
  height: 90%;
  background: radial-gradient(circle, rgba(var(--af-primary-rgb), 0.12) 0%, rgba(var(--af-accent-rgb), 0.08) 70%, transparent 100%);
  filter: blur(40px);
  z-index: 1;
}

.af-hero-visual-card {
  position: relative;
  z-index: 2;
  border-radius: var(--af-radius-lg);
  background: var(--af-surface-card);
  border: 1px solid var(--af-border);
  box-shadow: var(--af-shadow-xl);
  overflow: visible;
}

.af-mockup-frame {
  background: #ffffff;
  border-radius: var(--af-radius-lg);
  overflow: hidden;
  border: 1px solid var(--af-border);
}

.af-mockup-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background-color: var(--af-surface);
  border-bottom: 1px solid var(--af-border);
}

.af-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.af-dot-red { background-color: #ef4444; }
.af-dot-yellow { background-color: #f59e0b; }
.af-dot-green { background-color: #10b981; }

.af-mockup-url {
  font-size: 0.75rem;
  color: var(--af-text-muted);
  background: #ffffff;
  padding: 0.2rem 0.8rem;
  border-radius: var(--af-radius-pill);
  border: 1px solid var(--af-border);
  margin-left: 0.5rem;
}

.af-mockup-body {
  display: grid;
  grid-template-columns: 80px 1fr;
  padding: 1.5rem;
  gap: 1.5rem;
  min-height: 280px;
}

.af-mockup-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.af-bar {
  background: var(--af-surface-hover);
  border-radius: var(--af-radius-pill);
  height: 12px;
}
.af-bar-sm { width: 60%; }
.af-bar-md { width: 85%; }
.af-bar-xs { width: 45%; }
.af-bar-full { width: 100%; }

.af-mockup-canvas {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.af-mock-chart {
  display: flex;
  align-items: flex-end;
  gap: 0.8rem;
  height: 140px;
  background: var(--af-surface);
  padding: 1rem;
  border-radius: var(--af-radius-md);
}

.af-chart-col {
  flex: 1;
  background: rgba(var(--af-primary-rgb), 0.2);
  border-radius: var(--af-radius-sm);
  transition: height 0.5s ease;
}

.af-chart-col-active {
  background: linear-gradient(180deg, var(--af-accent), var(--af-primary));
}

.af-mock-cards-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.af-mini-card {
  padding: 0.85rem;
  background: var(--af-surface);
  border-radius: var(--af-radius-md);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.af-mini-indicator {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--af-accent);
}

/* Floating Badges */
.af-floating-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1.25rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--af-border);
  border-radius: var(--af-radius-md);
  box-shadow: var(--af-shadow-lg);
  z-index: 10;
  animation: afFloat 4s ease-in-out infinite;
}

.af-floating-top {
  top: -20px;
  left: -20px;
}

.af-floating-bottom {
  bottom: -20px;
  right: -20px;
  animation-delay: -2s;
}

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

.af-floating-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(var(--af-primary-rgb), 0.12);
  color: var(--af-primary);
}

.af-floating-icon svg {
  width: 20px;
  height: 20px;
}

.af-floating-icon-cyan {
  background: rgba(var(--af-accent-rgb), 0.12);
  color: var(--af-accent);
}

.af-floating-info {
  display: flex;
  flex-direction: column;
}

.af-floating-metric {
  font-family: var(--af-font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--af-text);
  line-height: 1.2;
}

.af-floating-label {
  font-size: 0.75rem;
  color: var(--af-text-muted);
}

/* 6.2 Mode B: Swiper Touch Hero */
.af-hero-slider {
  position: relative;
  min-height: 620px;
}

.af-hero-swiper {
  width: 100%;
  height: 100%;
}

.af-hero-slide {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.af-slide-theme-1 {
  background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
}

.af-slide-theme-2 {
  background: linear-gradient(135deg, #f8fafc 0%, #ecfeff 100%);
}

.af-slide-theme-3 {
  background: linear-gradient(135deg, #f8fafc 0%, #fdf4ff 100%);
}

.af-slide-content {
  max-width: 780px;
}

.af-slide-title {
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.af-slide-subtitle {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  margin-bottom: 2rem;
}

.af-slider-controls {
  position: absolute;
  bottom: 2rem;
  left: 0;
  width: 100%;
  z-index: 20;
}

.af-slider-controls-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.af-slider-arrows {
  display: flex;
  gap: 0.5rem;
}

.af-slider-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--af-radius-sm);
  background: #ffffff;
  border: 1px solid var(--af-border);
  color: var(--af-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--af-transition);
  position: static !important;
  margin: 0 !important;
}

.af-slider-btn::after {
  display: none !important;
}

.af-slider-btn:hover {
  background: var(--af-primary);
  color: #ffffff;
  border-color: var(--af-primary);
}

.af-slider-btn svg {
  width: 20px;
  height: 20px;
}

.swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: var(--af-border-hover);
  opacity: 1;
  transition: var(--af-transition);
}

.swiper-pagination-bullet-active {
  width: 28px;
  border-radius: var(--af-radius-pill);
  background: var(--af-primary) !important;
}

/* 6.3 Mode C: Centered Hero */
.af-hero-centered {
  padding-top: clamp(4rem, 7vw, 6.5rem);
  padding-bottom: clamp(4rem, 7vw, 6.5rem);
}

.af-hero-centered-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.af-badge-center {
  margin-left: auto;
  margin-right: auto;
}

.af-hero-centered-title {
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.af-hero-centered-subtitle {
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  margin-bottom: 2.25rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.af-cta-center {
  justify-content: center;
}

.af-hero-client-strip {
  margin-top: 3.5rem;
  margin-bottom: 3.5rem;
}

.af-client-strip-label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--af-text-light);
  margin-bottom: 1.25rem;
}

.af-client-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 4vw, 3rem);
}

.af-client-badge {
  font-family: var(--af-font-heading);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #94a3b8;
  opacity: 0.85;
}

.af-hero-showcase-frame {
  margin-top: 2rem;
}

.af-mockup-centered-frame {
  box-shadow: var(--af-shadow-xl);
}

.af-mockup-body-centered {
  display: block;
  padding: 2.5rem;
  background: var(--af-surface);
}

.af-centered-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.af-metric-card {
  background: #ffffff;
  padding: 1.5rem;
  border-radius: var(--af-radius-md);
  border: 1px solid var(--af-border);
  text-align: left;
}

.af-metric-label {
  display: block;
  font-size: 0.85rem;
  color: var(--af-text-muted);
  margin-bottom: 0.5rem;
}

.af-metric-value {
  display: block;
  font-family: var(--af-font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--af-text);
  margin-bottom: 1rem;
}

.af-metric-progress {
  height: 6px;
  background: var(--af-surface-hover);
  border-radius: var(--af-radius-pill);
  overflow: hidden;
}

.af-progress-fill {
  height: 100%;
  background: var(--af-primary);
  border-radius: var(--af-radius-pill);
}

.af-fill-accent {
  background: var(--af-accent);
}

/* ==========================================================================
   7. Features / Service Grid
   ========================================================================== */
.af-features-section {
  background-color: var(--af-surface);
}

.af-features-grid {
  display: grid;
  gap: 2rem;
}

.af-grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.af-grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.af-grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

.af-feature-card {
  background: #ffffff;
  border: 1px solid var(--af-border);
  border-radius: var(--af-radius-lg);
  padding: 2.25rem 2rem;
  transition: var(--af-transition);
  display: flex;
  flex-direction: column;
}

.af-feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(var(--af-primary-rgb), 0.3);
  box-shadow: var(--af-shadow-lg);
}

.af-feature-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--af-radius-md);
  background: rgba(var(--af-primary-rgb), 0.08);
  color: var(--af-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: var(--af-transition);
}

.af-feature-card:hover .af-feature-icon-wrap {
  background: var(--af-primary);
  color: #ffffff;
}

.af-feature-icon {
  width: 26px;
  height: 26px;
}

.af-feature-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.af-feature-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--af-text-muted);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.af-feature-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--af-font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--af-primary);
}

.af-link-arrow {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.af-feature-link:hover .af-link-arrow {
  transform: translateX(4px);
}

/* ==========================================================================
   8. Profile / About Section
   ========================================================================== */
.af-profile-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
}

.af-profile-media {
  position: relative;
}

.af-profile-media-inner {
  position: relative;
}

.af-profile-avatar-fallback {
  background: linear-gradient(135deg, var(--af-surface), #e0e7ff);
  border: 1px solid var(--af-border);
  border-radius: var(--af-radius-lg);
  padding: 4rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.af-avatar-symbol {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--af-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--af-shadow-md);
}

.af-avatar-symbol svg {
  width: 40px;
  height: 40px;
}

.af-caption-title {
  display: block;
  font-family: var(--af-font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--af-text);
}

.af-caption-sub {
  font-size: 0.875rem;
  color: var(--af-text-muted);
}

.af-profile-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: #ffffff;
  border: 1px solid var(--af-border);
  border-radius: var(--af-radius-md);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--af-shadow-lg);
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 260px;
}

.af-profile-badge-number {
  font-family: var(--af-font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--af-primary);
  line-height: 1;
}

.af-profile-badge-label {
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--af-text);
}

.af-profile-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  margin-bottom: 1.25rem;
}

.af-profile-bio p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.af-skills-group {
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}

.af-skills-heading {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--af-text);
  margin-bottom: 0.85rem;
}

.af-skills-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.af-skill-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  background: var(--af-surface);
  border: 1px solid var(--af-border);
  border-radius: var(--af-radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--af-text);
}

.af-pill-check {
  width: 14px;
  height: 14px;
  color: var(--af-accent);
}

.af-profile-footer {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--af-border);
}

.af-connect-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--af-text-muted);
}

/* ==========================================================================
   9. Stats & Milestones
   ========================================================================== */
.af-stats-card-wrap {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: var(--af-radius-lg);
  padding: clamp(2.5rem, 5vw, 3.5rem);
  color: #ffffff;
  box-shadow: var(--af-shadow-xl);
}

.af-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.af-stat-item {
  text-align: center;
}

.af-stat-number-wrap {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.2rem;
  margin-bottom: 0.5rem;
}

.af-counter {
  font-family: var(--af-font-heading);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.03em;
}

.af-stat-suffix {
  font-family: var(--af-font-heading);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--af-accent);
}

.af-stat-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: #94a3b8;
  margin-bottom: 0;
}

/* ==========================================================================
   10. Portfolio & Post Feed
   ========================================================================== */
.af-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.af-filter-btn {
  background: var(--af-surface);
  border: 1px solid var(--af-border);
  padding: 0.5rem 1.25rem;
  border-radius: var(--af-radius-pill);
  font-family: var(--af-font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--af-text-muted);
  cursor: pointer;
  transition: var(--af-transition);
}

.af-filter-btn:hover,
.af-filter-btn.active {
  background: var(--af-primary);
  color: #ffffff;
  border-color: var(--af-primary);
}

.af-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.af-card {
  background: #ffffff;
  border: 1px solid var(--af-border);
  border-radius: var(--af-radius-lg);
  overflow: hidden;
  transition: var(--af-transition);
  display: flex;
  flex-direction: column;
}

.af-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--af-shadow-lg);
  border-color: rgba(var(--af-primary-rgb), 0.25);
}

.af-card-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  background-color: var(--af-surface);
  overflow: hidden;
}

.af-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.af-card:hover .af-card-thumb img {
  transform: scale(1.05);
}

.af-card-thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.af-placeholder-icon {
  width: 48px;
  height: 48px;
  color: var(--af-primary);
  opacity: 0.7;
}

.af-card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.af-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.af-badge-cat {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.6rem;
  background: rgba(var(--af-primary-rgb), 0.1);
  color: var(--af-primary);
  border-radius: var(--af-radius-sm);
}

.af-card-date {
  font-size: 0.8rem;
  color: var(--af-text-light);
}

.af-card-title {
  font-size: 1.25rem;
  line-height: 1.35;
  margin-bottom: 0.75rem;
}

.af-card-title a {
  color: var(--af-text);
}

.af-card-title a:hover {
  color: var(--af-primary);
}

.af-card-excerpt {
  font-size: 0.925rem;
  color: var(--af-text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.af-link-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--af-font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--af-primary);
}

.af-link-icon {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.af-link-inline:hover .af-link-icon {
  transform: translateX(4px);
}

/* ==========================================================================
   11. Testimonials
   ========================================================================== */
.af-testimonials-section {
  background-color: var(--af-surface);
}

.af-testimonial-card {
  background: #ffffff;
  border: 1px solid var(--af-border);
  border-radius: var(--af-radius-lg);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 320px;
  box-shadow: var(--af-shadow-sm);
}

.af-testi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.af-testi-stars {
  display: flex;
  color: #f59e0b;
}

.af-quote-icon {
  width: 32px;
  height: 32px;
  color: rgba(var(--af-primary-rgb), 0.2);
}

.af-testi-quote {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--af-text);
  font-style: italic;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.af-testi-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.af-author-avatar-initials {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--af-primary), var(--af-accent));
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--af-font-heading);
  font-weight: 700;
  font-size: 1rem;
}

.af-author-name {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.af-author-role {
  font-size: 0.825rem;
  color: var(--af-text-muted);
}

.af-testi-controls {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
}

/* ==========================================================================
   12. Call to Action Banner
   ========================================================================== */
.af-cta-banner {
  position: relative;
  background: linear-gradient(135deg, var(--af-primary) 0%, #312e81 100%);
  border-radius: var(--af-radius-lg);
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1.5rem, 5vw, 4rem);
  text-align: center;
  overflow: hidden;
  box-shadow: var(--af-shadow-xl);
  color: #ffffff;
}

.af-cta-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}

.af-glow-1 {
  top: -20%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: rgba(6, 182, 212, 0.35);
}

.af-glow-2 {
  bottom: -20%;
  left: -10%;
  width: 350px;
  height: 350px;
  background: rgba(147, 51, 234, 0.3);
}

.af-cta-content {
  position: relative;
  z-index: 5;
  max-width: 760px;
  margin: 0 auto;
}

.af-cta-heading {
  color: #ffffff;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.af-cta-subhead {
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

.af-cta-form {
  max-width: 540px;
  margin: 0 auto;
}

.af-input-group {
  display: flex;
  background: #ffffff;
  border-radius: var(--af-radius-md);
  padding: 0.4rem;
  box-shadow: var(--af-shadow-lg);
}

.af-form-input {
  flex-grow: 1;
  border: none;
  background: transparent;
  padding: 0.8rem 1.25rem;
  color: var(--af-text);
  font-size: 0.95rem;
  outline: none;
}

.af-btn-input {
  padding: 0.8rem 1.5rem;
}

.af-form-note {
  display: block;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.85rem;
}

/* ==========================================================================
   13. Footer Architecture
   ========================================================================== */
.af-site-footer {
  background-color: #0f172a;
  color: #94a3b8;
  border-top: 1px solid #1e293b;
}

.af-footer-top {
  padding-top: clamp(4rem, 7vw, 5.5rem);
  padding-bottom: clamp(3rem, 5vw, 4.5rem);
}

.af-footer-grid {
  display: grid;
  gap: 3rem;
}

.af-footer-cols-1 { grid-template-columns: 1fr; }
.af-footer-cols-2 { grid-template-columns: 1.5fr 1fr; }
.af-footer-cols-3 { grid-template-columns: 1.5fr 1fr 1fr; }
.af-footer-cols-4 { grid-template-columns: 1.4fr 0.9fr 0.9fr 1.2fr; }

.af-footer-brand-col .af-brand-title {
  color: #ffffff;
  margin-bottom: 1.25rem;
}

.af-footer-brand-desc {
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.af-footer-title {
  color: #ffffff;
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.af-footer-links li {
  margin-bottom: 0.75rem;
}

.af-footer-links a {
  color: #94a3b8;
  font-size: 0.925rem;
}

.af-footer-links a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.af-footer-note {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.af-pill-check-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--af-accent);
  background: rgba(6, 182, 212, 0.1);
  padding: 0.35rem 0.85rem;
  border-radius: var(--af-radius-pill);
}

.af-tag-icon {
  width: 14px;
  height: 14px;
}

/* Social Icon Badges */
.af-social-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.af-social-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--af-radius-sm);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  transition: var(--af-transition);
}

.af-social-item:hover {
  background: var(--af-primary);
  color: #ffffff;
  transform: translateY(-2px);
}

.af-social-icon {
  width: 18px;
  height: 18px;
}

.af-footer-bottom {
  border-top: 1px solid #1e293b;
  padding: 1.75rem 0;
}

.af-footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.af-copyright-text {
  font-size: 0.875rem;
  color: #64748b;
}

.af-back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: 1px solid #334155;
  color: #94a3b8;
  padding: 0.4rem 1rem;
  border-radius: var(--af-radius-pill);
  font-size: 0.825rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--af-transition);
}

.af-back-to-top:hover {
  background: #1e293b;
  color: #ffffff;
}

.af-icon-rotate-180 {
  transform: rotate(180deg);
  width: 16px;
  height: 16px;
}

.af-icon-rotate-90 {
  transform: rotate(90deg);
  width: 16px;
  height: 16px;
}

/* ==========================================================================
   14. Single Post & Prose Styles
   ========================================================================== */
.af-single-header {
  margin-bottom: 2.5rem;
}

.af-single-title {
  font-size: clamp(2.2rem, 4vw, 3.25rem);
  margin-top: 1rem;
  margin-bottom: 1.25rem;
}

.af-single-lead {
  font-size: 1.2rem;
  color: var(--af-text-muted);
  line-height: 1.6;
}

.af-single-featured-image {
  margin-bottom: 3rem;
  border-radius: var(--af-radius-lg);
  overflow: hidden;
}

.af-prose {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #334155;
}

.af-prose p {
  margin-bottom: 1.5rem;
}

.af-prose h2 {
  font-size: 1.85rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.af-prose h3 {
  font-size: 1.45rem;
  margin-top: 2rem;
  margin-bottom: 0.85rem;
}

.af-prose blockquote {
  border-left: 4px solid var(--af-primary);
  padding-left: 1.5rem;
  font-style: italic;
  color: var(--af-text);
  margin: 2rem 0;
}

/* ==========================================================================
   15. Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .af-hero-split-grid {
    grid-template-columns: 1fr;
  }
  .af-features-grid.af-grid-cols-4,
  .af-features-grid.af-grid-cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .af-portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .af-footer-cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .af-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .af-profile-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .af-main-navigation,
  .d-none-mobile {
    display: none !important;
  }
  .af-menu-toggle {
    display: flex;
  }
  .af-features-grid.af-grid-cols-2,
  .af-features-grid.af-grid-cols-3,
  .af-features-grid.af-grid-cols-4 {
    grid-template-columns: 1fr;
  }
  .af-portfolio-grid {
    grid-template-columns: 1fr;
  }
  .af-footer-cols-2,
  .af-footer-cols-3,
  .af-footer-cols-4 {
    grid-template-columns: 1fr;
  }
  .af-stats-grid {
    grid-template-columns: 1fr;
  }
  .af-centered-grid {
    grid-template-columns: 1fr;
  }
  .af-hero-cta-group {
    flex-direction: column;
    width: 100%;
  }
  .af-hero-cta-group .af-btn {
    width: 100%;
  }
  .af-input-group {
    flex-direction: column;
    gap: 0.5rem;
    background: transparent;
    box-shadow: none;
    padding: 0;
  }
  .af-form-input {
    background: #ffffff;
    border-radius: var(--af-radius-md);
  }
  .af-btn-input {
    width: 100%;
  }
}
