/* Logic8 - Main Stylesheet
   Professional digital design with dark theme elements */

/* ============================================
   CSS Custom Properties
   ============================================ */
:root {
  --color-primary: #ffffff;
  --color-secondary: #055eb8;
  --color-accent: #00c0a5;
  --color-accent-hover: #00a890;
  --color-accent-glow: rgba(0, 192, 165, 0.12);
  --color-accent-glow-strong: rgba(0, 192, 165, 0.25);
  --color-accent-blue: #0190d5;
  --color-accent-blue-glow: rgba(1, 144, 213, 0.12);
  --gradient-icon: linear-gradient(135deg, rgba(0, 192, 165, 0.15) 0%, rgba(1, 144, 213, 0.15) 100%);
  --gradient-icon-dark: linear-gradient(135deg, rgba(0, 192, 165, 0.1) 0%, rgba(1, 144, 213, 0.1) 100%);
  --color-light: #0e0f1a;
  --color-white: #ffffff;
  --color-text: #e2e8f0;
  --color-text-light: #94a3b8;
  --color-text-muted: #64748b;
  --color-footer-bg: #080910;
  --color-border: rgba(255, 255, 255, 0.08);
  --color-surface: rgba(255, 255, 255, 0.03);
  --color-dark-card: rgba(255, 255, 255, 0.03);
  --color-dark-card-border: rgba(255, 255, 255, 0.06);
  --color-success: #10b981;
  --color-error: #ef4444;
  --color-body-bg: #0a0b14;

  --gradient-hero: linear-gradient(160deg, #0a0b14 0%, #0e0f1a 40%, #12131f 70%, #0a0b14 100%);
  --gradient-dark: linear-gradient(180deg, #0a0b14 0%, #0e0f1a 100%);
  --gradient-accent: linear-gradient(135deg, #00c0a5 0%, #0190d5 100%);
  --gradient-accent-reverse: linear-gradient(135deg, #0190d5 0%, #00c0a5 100%);
  --gradient-cta: linear-gradient(135deg, #0a0b14 0%, #0e0f1a 50%, #0a0b14 100%);

  --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --max-width: 1200px;
  --header-height: 72px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.04), 0 10px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.08), 0 20px 48px rgba(0, 0, 0, 0.06);
  --radius: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

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

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-body-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.nav-open {
  overflow: hidden;
}

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

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

a:hover {
  color: var(--color-accent-hover);
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 { font-size: 3.25rem; font-weight: 800; }
h2 { font-size: 2.5rem; font-weight: 700; }
h3 { font-size: 1.5rem; font-weight: 600; }
h4 { font-size: 1.25rem; font-weight: 600; }

p {
  margin-bottom: 1rem;
}

/* ============================================
   Utility Classes
   ============================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 6rem 0;
}

.section-light {
  background-color: rgba(255, 255, 255, 0.02);
  background-image: radial-gradient(circle, rgba(0, 192, 165, 0.04) 1px, transparent 1px);
  background-size: 20px 20px;
  background-attachment: fixed;
}

/* Alternate section with subtle pattern */
.section-pattern {
  background-color: rgba(255, 255, 255, 0.015);
  background-image: radial-gradient(circle, rgba(0, 192, 165, 0.04) 1px, transparent 1px);
  background-size: 20px 20px;
  background-attachment: fixed;
}

/* Dark section with dot pattern */
.section-dark {
  background: var(--gradient-dark);
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

.section-dark::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 24px 24px;
  background-attachment: fixed;
  pointer-events: none;
}

/* Decorative circle pattern for dark sections */
.section-dark::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  border: 1px solid rgba(0, 192, 165, 0.06);
  box-shadow:
    0 0 0 40px rgba(0, 192, 165, 0.03),
    0 0 0 80px rgba(0, 192, 165, 0.02),
    0 0 0 120px rgba(0, 192, 165, 0.01);
  top: 50%;
  right: -150px;
  transform: translateY(-50%);
  pointer-events: none;
}

.section-dark > .container {
  position: relative;
  z-index: 1;
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--color-white);
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--color-text-light);
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.7;
}

.section-dark .section-header p {
  color: rgba(255, 255, 255, 0.6);
}

.text-center {
  text-align: center;
}

.text-accent {
  color: var(--color-accent);
}

/* Section label (small uppercase text above headings) */
.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  line-height: 1.4;
  letter-spacing: 0.01em;
  gap: 0.5rem;
}

.btn-primary {
  background: var(--gradient-accent);
  color: var(--color-white);
}

.btn-primary:hover {
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 192, 165, 0.35);
  filter: brightness(1.1);
}

.btn-secondary {
  background: var(--gradient-accent);
  color: var(--color-white);
}

.btn-secondary:hover {
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 192, 165, 0.35);
  filter: brightness(1.1);
}

/* Keep nav CTA solid blue */
.nav-cta.btn-primary {
  background: var(--color-accent-blue) !important;
  height: 40px !important;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.5rem !important;
  font-size: 0.9rem;
  border-radius: var(--radius);
  white-space: nowrap;
  transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.nav-cta.btn-primary:hover {
  background: #0080c0 !important;
  filter: none;
  box-shadow: 0 4px 16px rgba(1, 144, 213, 0.35);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255, 255, 255, 0.35);
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.55rem 1.25rem;
  font-size: 0.85rem;
}

.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ============================================
   Header & Navigation (Transparent/Dark)
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: transparent;
  transition: all var(--transition);
  height: var(--header-height);
}

.site-header.scrolled {
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.site-logo img {
  height: 40px;
  width: auto;
}

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

.nav-menu > a,
.nav-menu > .nav-dropdown > .dropdown-toggle {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  font-size: 0.9rem;
  position: relative;
  padding: 0.25rem 0;
  letter-spacing: 0.01em;
  transition: color var(--transition);
}

.nav-menu > a:hover,
.nav-menu > a.active,
.nav-menu > .nav-dropdown:hover > .dropdown-toggle {
  color: var(--color-accent);
}

/* Nav underline on hover */
.nav-menu > a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition);
  border-radius: 2px;
}

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

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.dropdown-toggle::after {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-top: -3px;
  transition: transform var(--transition);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: -12px;
  background: #12131b;
  min-width: 250px;
  padding: 0.5rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition);
  z-index: 1001;
}

.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  width: 100%;
  height: 12px;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.7);
}

.dropdown-menu a:hover {
  background-color: rgba(255, 255, 255, 0.06);
  color: var(--color-accent);
}

.nav-cta {
  margin-left: 0.5rem;
}

/* Remove underline animation from CTA button */
.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  color: var(--color-primary) !important;
}

/* Hamburger toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-white);
  transition: all var(--transition);
  border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 16, 0.7);
  backdrop-filter: blur(4px);
  z-index: 998;
}

.nav-overlay.active {
  display: block;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  padding: calc(var(--header-height) + 4rem) 0 4rem;
  background: var(--gradient-hero);
  color: var(--color-white);
  position: relative;
  overflow: hidden;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

/* Tech grid pattern overlay */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(1, 144, 213, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 30%, rgba(0, 192, 165, 0.06) 0%, transparent 50%),
    radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 24px 24px;
  pointer-events: none;
}

/* AI circuit node decoration */
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='400' height='400' viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='rgba(1,144,213,0.07)' stroke-width='1'%3E%3Ccircle cx='100' cy='100' r='4'/%3E%3Ccircle cx='200' cy='50' r='3'/%3E%3Ccircle cx='300' cy='120' r='4'/%3E%3Ccircle cx='150' cy='200' r='3'/%3E%3Ccircle cx='250' cy='250' r='4'/%3E%3Ccircle cx='350' cy='180' r='3'/%3E%3Ccircle cx='50' cy='300' r='4'/%3E%3Ccircle cx='200' cy='350' r='3'/%3E%3Ccircle cx='320' cy='320' r='4'/%3E%3Cline x1='100' y1='100' x2='200' y2='50'/%3E%3Cline x1='200' y1='50' x2='300' y2='120'/%3E%3Cline x1='100' y1='100' x2='150' y2='200'/%3E%3Cline x1='300' y1='120' x2='350' y2='180'/%3E%3Cline x1='150' y1='200' x2='250' y2='250'/%3E%3Cline x1='350' y1='180' x2='320' y2='320'/%3E%3Cline x1='250' y1='250' x2='320' y2='320'/%3E%3Cline x1='50' y1='300' x2='150' y2='200'/%3E%3Cline x1='200' y1='350' x2='250' y2='250'/%3E%3Cline x1='200' y1='350' x2='320' y2='320'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 400px 400px;
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
}

.hero > .container {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 600px;
}

.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-split .hero-content {
  text-align: left;
}

.hero h1 {
  color: var(--color-white);
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.hero .tagline {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 1.5rem;
  max-width: 500px;
  font-weight: 400;
}

.hero .hero-text {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.65);
  max-width: 520px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.hero .btn-group {
  justify-content: flex-start;
}

.hero-image {
  position: relative;
}

.hero-image img {
  border-radius: var(--radius-lg);
  width: 100%;
  height: auto;
}

/* Dot frame around hero image */
.hero-image::before {
  content: '';
  position: absolute;
  top: -15px;
  right: -15px;
  width: 50%;
  height: 50%;
  background-image: radial-gradient(var(--color-accent) 1.5px, transparent 1.5px);
  background-size: 12px 12px;
  opacity: 0.3;
  z-index: -1;
  border-radius: var(--radius);
}

/* Center aligned hero (for inner pages) */
.hero-center {
  text-align: center;
}

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

.hero-center .hero-text,
.hero-center .tagline {
  margin-left: auto;
  margin-right: auto;
}

.hero-center .btn-group {
  justify-content: center;
}

/* Service page hero (smaller) */
.hero-sm {
  min-height: auto;
  padding: calc(var(--header-height) + 4rem) 0 4rem;
}

/* ============================================
   Tech Partners Strip
   ============================================ */
.partners {
  padding: 2.5rem 0;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.partners-label {
  text-align: center;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.partners-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  padding: 0 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.partners-logos img {
  height: 28px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  opacity: 0.5;
  transition: opacity var(--transition), filter var(--transition), transform var(--transition), background var(--transition);
  filter: brightness(0) invert(1) opacity(0.6);
  padding: 6px 12px;
  border-radius: 8px;
  background: transparent;
}

.partners-logos img:hover {
  opacity: 1;
  filter: none;
  transform: translateY(-2px) scale(1.05);
  background: rgba(255, 255, 255, 0.9);
}

/* ============================================
   Stats Section
   ============================================ */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item {
  padding: 2rem 1rem;
}

.stat-item .stat-number {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1.1;
  margin-bottom: 0.5rem;
  letter-spacing: -0.03em;
}

.section-dark .stat-item .stat-number {
  color: var(--color-accent);
}

.stat-item .stat-label {
  font-size: 0.95rem;
  color: var(--color-text-light);
  font-weight: 500;
}

.section-dark .stat-item .stat-label {
  color: rgba(255, 255, 255, 0.55);
}

/* Accent background stats section - uses gradient */
.section-accent {
  background: var(--gradient-accent);
  padding: 4rem 0;
}

.section-accent .stat-item .stat-number {
  color: var(--color-white);
}

.section-accent .stat-item .stat-label {
  color: var(--color-primary);
  font-weight: 600;
}

/* ============================================
   Cards Grid (Light background)
   ============================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.card {
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 192, 165, 0.3), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(0, 192, 165, 0.2);
  box-shadow: 0 20px 60px rgba(0, 192, 165, 0.08);
}

.card:hover::after {
  opacity: 1;
}

.card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  background: var(--gradient-icon);
  border-radius: 14px;
  color: var(--color-accent-blue);
  transition: all var(--transition);
  border: 1px solid rgba(1, 144, 213, 0.1);
}

.card-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: url(#icon-grad);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Filled SVG icons (WordPress-style detailed icons) */
.card-icon.icon-filled svg,
.card-icon.icon-filled svg path,
.card-icon.icon-filled svg circle,
.card-icon.icon-filled svg rect,
.card-icon.icon-filled svg polygon {
  fill: url(#icon-grad);
  stroke: none;
  stroke-width: 0;
}

.card-icon.icon-filled svg {
  width: 32px;
  height: 32px;
}

.card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.15rem;
  color: #ffffff;
}

.card p {
  color: #94a3b8;
  font-size: 0.95rem;
  margin-bottom: 0;
  line-height: 1.6;
}

/* Image cards (for resource library) */
.card-has-image {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--color-light, #f5f5f5);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.card-has-image:hover .card-image img {
  transform: scale(1.03);
}

.card-body {
  padding: 1.5rem 2rem 2rem;
}

.card-body .btn {
  margin-top: 1rem;
}

/* Dark cards (for service grids on dark backgrounds) */
.cards-grid-dark {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.card-dark {
  background: var(--color-dark-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--color-dark-card-border);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

/* Clickable card links */
a.card-dark.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

a.card-dark.card-link h3 {
  color: #ffffff;
}

a.card-dark.card-link p {
  color: var(--color-text-light);
}

.card-dark::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-accent);
  opacity: 0;
  transition: opacity var(--transition);
}

.card-dark:hover {
  border-color: rgba(0, 192, 165, 0.15);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.card-dark:hover::before {
  opacity: 1;
}

.card-dark:hover .card-icon {
  background: var(--gradient-icon);
  transform: translateY(-2px);
  border-color: rgba(1, 144, 213, 0.2);
}

.card-dark .card-icon {
  background: var(--gradient-icon-dark);
  border-color: rgba(1, 144, 213, 0.06);
}

.card-dark .card-icon svg {
  stroke: url(#icon-grad);
}

.card-dark .card-icon.icon-filled svg,
.card-dark .card-icon.icon-filled svg path,
.card-dark .card-icon.icon-filled svg circle,
.card-dark .card-icon.icon-filled svg rect,
.card-dark .card-icon.icon-filled svg polygon {
  fill: url(#icon-grad);
  stroke: none;
}

.card-dark h3 {
  color: var(--color-white);
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.card-dark p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
  margin-bottom: 0;
  line-height: 1.6;
}

/* ============================================
   Approach / Steps
   ============================================ */
.approach-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.approach-image {
  position: relative;
  min-height: 400px;
}

.approach-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.approach-content {
  background: #12131b;
  padding: 3rem;
  position: relative;
  overflow: hidden;
}

/* Concentric circles decoration in approach */
.approach-content::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 1px solid rgba(0, 192, 165, 0.06);
  box-shadow:
    0 0 0 30px rgba(0, 192, 165, 0.03),
    0 0 0 60px rgba(0, 192, 165, 0.02),
    0 0 0 90px rgba(0, 192, 165, 0.01);
  bottom: -100px;
  right: -100px;
  pointer-events: none;
}

.approach-content .section-label {
  color: var(--color-accent);
}

.approach-content h2 {
  color: var(--color-white);
  margin-bottom: 2rem;
}

.approach-list {
  list-style: none;
  padding: 0;
  position: relative;
  z-index: 1;
}

.approach-list li {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}

.approach-dot {
  width: 10px;
  height: 10px;
  background: var(--color-accent);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 6px;
  box-shadow: 0 0 8px rgba(0, 192, 165, 0.4);
}

.approach-list li strong {
  color: var(--color-white);
  display: block;
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.approach-list li span {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Simpler steps grid (for about page etc) */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 30px;
  left: 15%;
  right: 15%;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  z-index: 0;
}

.step-item {
  position: relative;
  z-index: 1;
}

.step-number {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-white);
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  box-shadow: 0 0 20px rgba(0, 192, 165, 0.3);
}

.step-item h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.step-item p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

.section-dark .step-item p {
  color: rgba(255, 255, 255, 0.55);
}

/* ============================================
   Two Column Layout
   ============================================ */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: stretch;
}

.two-col-text h2 {
  margin-bottom: 1rem;
  color: #ffffff;
}

.two-col-text h3 {
  margin-bottom: 0.95rem;
  margin-top: 1.25rem;
  color: #ffffff;
}

.two-col-text p {
  color: #94a3b8;
  line-height: 1.7;
}

.two-col-image {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  min-height: 300px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ============================================
   Testimonials
   ============================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(12px);
}

.testimonial-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(0, 192, 165, 0.2);
  box-shadow: 0 20px 60px rgba(0, 192, 165, 0.08);
}

.testimonial-card::before {
  content: '\201C';
  font-size: 5rem;
  color: var(--color-accent);
  opacity: 0.2;
  position: absolute;
  top: 0.5rem;
  left: 1.5rem;
  line-height: 1;
  font-family: Georgia, serif;
}

.testimonial-card blockquote {
  font-size: 1rem;
  font-style: italic;
  color: #e2e8f0;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  padding-top: 1.5rem;
}

.testimonial-author {
  font-weight: 600;
  color: #ffffff;
  font-size: 0.95rem;
}

.testimonial-company {
  font-size: 0.85rem;
  color: #64748b;
}

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

.blog-card {
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(12px);
}

.blog-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(0, 192, 165, 0.2);
  box-shadow: 0 20px 60px rgba(0, 192, 165, 0.08);
}

.blog-card-image {
  height: 200px;
  background: var(--gradient-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.05);
}

.blog-card-content {
  padding: 1.5rem;
}

.blog-card-date {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-card-content h3 {
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.blog-card-content h3 a {
  color: #ffffff;
}

.blog-card-content h3 a:hover {
  color: var(--color-accent);
}

.blog-card-excerpt {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.read-more {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.read-more:hover {
  gap: 0.5rem;
}

.read-more::after {
  content: '\2192';
  transition: all var(--transition);
}

/* ============================================
   Blog Post Page
   ============================================ */
.blog-post {
  padding: calc(var(--header-height) + 3rem) 0 5rem;
}

.blog-post-header {
  text-align: center;
  margin-bottom: 3rem;
}

.blog-post-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.blog-post-date {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.blog-post-content {
  max-width: 780px;
  margin: 0 auto;
}

.blog-post-content h2 {
  margin: 2.5rem 0 1rem;
  font-size: 1.75rem;
}

.blog-post-content h3 {
  margin: 2rem 0 0.75rem;
}

.blog-post-content p {
  margin-bottom: 1.25rem;
  line-height: 1.8;
}

.blog-post-content ul,
.blog-post-content ol {
  margin: 1rem 0 1.25rem 1.5rem;
}

.blog-post-content ul {
  list-style: disc;
}

.blog-post-content ol {
  list-style: decimal;
}

.blog-post-content li {
  margin-bottom: 0.5rem;
}

.blog-post-content blockquote {
  border-left: 3px solid var(--color-accent);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  background: rgba(0, 192, 165, 0.06);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: #e2e8f0;
}

.blog-post-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  font-weight: 600;
}

/* ============================================
   Blog Listing Page
   ============================================ */
.blog-listing {
  padding: calc(var(--header-height) + 3rem) 0 5rem;
}

.blog-listing-header {
  text-align: center;
  margin-bottom: 3rem;
}

.blog-listing-header h1 {
  margin-bottom: 0.75rem;
}

.blog-listing-header p {
  color: var(--color-text-light);
  font-size: 1.1rem;
}

/* ============================================
   Contact Form
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: start;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: #e2e8f0;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all var(--transition);
  background: rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-glow);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

.form-message {
  display: none;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-top: 1rem;
  font-weight: 500;
  font-size: 0.95rem;
}

.form-message.success {
  background-color: rgba(16, 185, 129, 0.1);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.form-message.error {
  background-color: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.contact-details {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

/* Dot pattern on contact details */
.contact-details::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 20px 20px;
  background-attachment: fixed;
  pointer-events: none;
}

.contact-details > * {
  position: relative;
  z-index: 1;
}

.contact-details h3 {
  color: var(--color-white);
  margin-bottom: 2rem;
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.75rem;
  align-items: flex-start;
}

.contact-info-icon {
  width: 42px;
  height: 42px;
  background: var(--gradient-icon);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(1, 144, 213, 0.1);
}

.contact-info-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: url(#icon-grad);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-info-text strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--color-white);
  font-size: 0.9rem;
}

.contact-info-text a,
.contact-info-text span {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
}

.contact-info-text a:hover {
  color: var(--color-accent);
}

/* ============================================
   Values / Features Grid
   ============================================ */
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.value-card {
  padding: 2rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(12px);
}

.value-card:hover {
  border-color: rgba(0, 192, 165, 0.2);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 20px 60px rgba(0, 192, 165, 0.08);
  transform: translateY(-4px);
}

.value-card h3 {
  margin-bottom: 0.75rem;
  color: #ffffff;
  font-size: 1.1rem;
}

.value-card p {
  color: #94a3b8;
  font-size: 0.95rem;
  margin-bottom: 0;
  line-height: 1.6;
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
  background: rgba(255, 255, 255, 0.02);
  color: var(--color-white);
  text-align: center;
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

/* Dot pattern */
.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  background-attachment: fixed;
  pointer-events: none;
}

/* Gradient accent line at top */
.cta-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-accent);
}

.cta-section > .container {
  position: relative;
  z-index: 1;
}

.cta-section h2 {
  color: var(--color-white);
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 2rem;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   Service Page Specifics
   ============================================ */
.service-intro {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.service-intro p {
  font-size: 1.1rem;
  color: var(--color-text-light);
  line-height: 1.8;
}

.service-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.service-feature {
  padding: 2rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  backdrop-filter: blur(12px);
  overflow: hidden;
}

.service-feature:hover {
  border-color: rgba(0, 192, 165, 0.2);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 20px 60px rgba(0, 192, 165, 0.08);
  transform: translateY(-4px);
}

.service-feature-icon {
  width: 52px;
  height: 52px;
  background: var(--gradient-icon);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(1, 144, 213, 0.1);
  transition: all var(--transition);
}

.service-feature-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: url(#icon-grad);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-feature-icon.icon-filled svg {
  width: 30px;
  height: 30px;
  fill: url(#icon-grad);
  stroke: none;
  stroke-width: 0;
}

.service-feature h3 {
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
  color: #ffffff;
}

.service-feature p {
  color: #94a3b8;
  font-size: 0.95rem;
  margin-bottom: 0;
  line-height: 1.6;
}

/* Dark service features (for dark backgrounds) */
.service-features-dark {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-feature-dark {
  padding: 2rem;
  background: var(--color-dark-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-dark-card-border);
  transition: all var(--transition);
  text-align: center;
}

.service-feature-dark:hover {
  border-color: rgba(0, 192, 165, 0.15);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.service-feature-dark .feature-icon {
  font-size: 2rem;
  color: var(--color-accent);
  margin-bottom: 1rem;
  display: block;
}

.service-feature-dark h3 {
  color: var(--color-white);
  margin-bottom: 0.75rem;
  font-size: 1.05rem;
}

.service-feature-dark p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
  margin-bottom: 0;
  line-height: 1.6;
}

/* Service image section (legacy, kept for reference) */

/* ============================================
   Who We Help
   ============================================ */
.help-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.help-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(12px);
}

.help-card:hover {
  border-color: rgba(0, 192, 165, 0.2);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 20px 60px rgba(0, 192, 165, 0.08);
  transform: translateY(-4px);
}

.help-card-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  background: var(--gradient-icon);
  border-radius: 14px;
  color: var(--color-accent-blue);
  transition: all var(--transition);
  border: 1px solid rgba(1, 144, 213, 0.1);
}

.help-card-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: url(#icon-grad);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.help-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.help-card p {
  font-size: 0.9rem;
  color: #94a3b8;
  margin-bottom: 0;
}

/* ============================================
   Pull Quote
   ============================================ */
.pull-quote {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.pull-quote blockquote {
  font-size: 1.3rem;
  font-style: italic;
  color: #e2e8f0;
  line-height: 1.7;
  position: relative;
}

.pull-quote blockquote::before {
  content: '\201C';
  font-size: 4rem;
  color: var(--color-accent);
  display: block;
  text-align: center;
  line-height: 1;
  margin-bottom: 0.5rem;
  font-family: Georgia, serif;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background-color: var(--color-footer-bg);
  color: rgba(255, 255, 255, 0.7);
  padding: 5rem 0 0;
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-accent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-about .footer-logo {
  height: 36px;
  width: auto;
  margin-bottom: 1.25rem;
  object-fit: contain;
}

.footer-about p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.45);
}

.site-footer h4 {
  color: var(--color-white);
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
}

.footer-links a {
  display: block;
  color: rgba(255, 255, 255, 0.45);
  padding: 0.3rem 0;
  font-size: 0.9rem;
  transition: all var(--transition);
}

.footer-links a:hover {
  color: var(--color-accent);
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  align-items: flex-start;
  color: rgba(255, 255, 255, 0.45);
}

.footer-contact-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.footer-contact-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-contact-item a {
  color: rgba(255, 255, 255, 0.45);
}

.footer-contact-item a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.3);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
  .cards-grid,
  .cards-grid-dark {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .help-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-split {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-image {
    max-width: 500px;
    margin: 0 auto;
  }

  .approach-split {
    grid-template-columns: 1fr;
  }

  .approach-image {
    min-height: 300px;
  }

  .service-features-dark {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  /* Disable fixed background on mobile (not supported on iOS Safari) */
  .section-light,
  .section-pattern {
    background-attachment: scroll;
  }
  .hero::before,
  .section-dark::before,
  .cta-section::before,
  .contact-details::before,
  .section-accent::before {
    background-attachment: scroll;
  }
  .site-footer {
    background-attachment: scroll, scroll;
  }

  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.85rem; }
  h3 { font-size: 1.2rem; }

  .section {
    padding: 4rem 0;
  }

  .container {
    padding: 0 1.25rem;
  }

  /* Mobile navigation */
  .nav-toggle {
    display: flex;
    z-index: 1001;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: #12131b;
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 2rem 2rem;
    gap: 0;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
    transition: right var(--transition);
    z-index: 999;
    overflow-y: auto;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-menu > a,
  .nav-menu > .nav-dropdown > .dropdown-toggle {
    padding: 0.85rem 0;
    width: 100%;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav-menu > a::after {
    display: none;
  }

  .nav-menu .nav-cta {
    margin-left: 0;
    margin-top: 1.5rem;
    width: 100%;
    text-align: center;
  }

  /* Dropdown mobile */
  .nav-dropdown .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    padding-left: 0.5rem;
    padding-top: 0;
    min-width: 0;
    background: transparent;
  }

  .nav-dropdown.open .dropdown-menu {
    display: block;
  }

  .nav-dropdown.open .dropdown-toggle::after {
    transform: rotate(-135deg);
    margin-top: 3px;
  }

  /* Hero mobile */
  .hero {
    min-height: auto;
    padding: calc(var(--header-height) + 3rem) 0 3.5rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero .btn-group {
    justify-content: center;
  }

  .hero-split .hero-content {
    text-align: center;
  }

  .hero-split .hero-content .tagline,
  .hero-split .hero-content .hero-text {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-image::before {
    display: none;
  }

  .btn-group {
    flex-direction: column;
    align-items: stretch;
  }

  /* Grids to single/dual column */
  .cards-grid,
  .cards-grid-dark,
  .stats-row,
  .steps-grid,
  .two-col,
  .testimonials-grid,
  .blog-grid,
  .contact-grid,
  .values-grid,
  .service-features,
  .service-features-dark,
  .help-cards {
    grid-template-columns: 1fr;
  }

  .stats-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .stat-item {
    padding: 1rem 0.5rem;
  }

  .stat-item .stat-number {
    font-size: 2.25rem;
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-grid::before {
    display: none;
  }

  .two-col {
    gap: 2rem;
  }

  .approach-split {
    border-radius: var(--radius-lg);
  }

  .approach-content {
    padding: 2rem;
  }

  .partners-logos {
    gap: 2rem;
  }

  .partners-logos img {
    height: 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .blog-post-header h1 {
    font-size: 1.75rem;
  }

  .service-features-dark {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 1.85rem; }

  .hero h1 {
    font-size: 2rem;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .stats-row {
    grid-template-columns: 1fr;
  }

  .help-cards {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Workshop Steps (2-col layout)
   ============================================ */
.workshop-steps {
  display: grid;
  gap: 2rem;
  max-width: 680px;
  margin: 2.5rem auto 0;
}

.workshop-step {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 1.5rem;
  align-items: start;
}

.workshop-step-num {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-white);
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 20px rgba(0, 192, 165, 0.3);
}

.workshop-step-content h3 {
  margin-bottom: 0.4rem;
  font-size: 1.1rem;
}

.workshop-step-content p {
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: 0;
}

/* Larger accent icons inside plain cards */
.card .service-feature-icon {
  width: 56px;
  height: 56px;
  background: rgba(0, 192, 165, 0.1);
}

.card .service-feature-icon svg {
  width: 50px;
  height: 50px;
}

/* Center card-icon when inside text-center cards */
.card[style*="text-align: center"] .card-icon {
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   Scroll Reveal Animations
   ============================================ */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  0% {
    opacity: 0;
    transform: translateX(-30px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  0% {
    opacity: 0;
    transform: translateX(30px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes countUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Elements waiting to be revealed */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.reveal-left {
  transform: translateX(-30px);
}

.reveal.reveal-right {
  transform: translateX(30px);
}

.reveal.reveal-scale {
  transform: scale(0.9);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

/* Stagger children animations */
.stagger-children .reveal {
  transition-delay: calc(var(--stagger-index, 0) * 0.1s);
}

/* Hero entrance animation - triggered by JS adding .animate class */
.hero .hero-content.animate {
  animation: fadeInLeft 0.8s ease-out both;
}

.hero .hero-image.animate {
  animation: fadeInRight 0.8s ease-out 0.15s both;
}

.hero-center .hero-content.animate {
  animation: fadeInUp 0.8s ease-out both;
}

/* ============================================
   Floating Orbs (Parallax Background)
   ============================================ */
.site-bg-grid {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    linear-gradient(rgba(0, 192, 165, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 192, 165, 0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* Tech background image layer */
.site-tech-bg {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url('../images/tech-bg.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0.07;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}

.site-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  animation: orbFloat 20s ease-in-out infinite;
}

.site-orb-1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(0, 192, 165, 0.15), transparent 70%);
  top: -100px; right: -150px;
  animation-delay: 0s;
}

.site-orb-2 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(1, 144, 213, 0.12), transparent 70%);
  bottom: -100px; left: -100px;
  animation-delay: -7s;
}

.site-orb-3 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.1), transparent 70%);
  top: 40%; left: 50%;
  animation-delay: -14s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(60px, -80px) scale(1.15); }
  50% { transform: translate(-40px, 50px) scale(0.9); }
  75% { transform: translate(80px, 60px) scale(1.1); }
}

/* Ensure content sits above background elements */
.hero,
.section,
.section-light,
.section-dark,
.section-pattern,
.section-accent,
.cta-section,
.site-footer,
.blog-post,
.blog-listing,
.contact-grid,
.download-gate {
  position: relative;
  z-index: 1;
}

/* ============================================
   Gradient Text Utility
   ============================================ */
.gradient-text {
  background: linear-gradient(135deg, #00c0a5, #0190d5, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Section label with gradient */
.section-label {
  background: linear-gradient(135deg, #00c0a5, #0190d5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   Enhanced Button Styles (Shimmer)
   ============================================ */
.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

/* Enhanced card hover effects */
.card-dark:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 192, 165, 0.1);
}

.help-card:hover .help-card-icon {
  transform: scale(1.1);
  background: linear-gradient(135deg, rgba(0, 192, 165, 0.2) 0%, rgba(1, 144, 213, 0.2) 100%);
  border-color: rgba(1, 144, 213, 0.2);
}

/* Testimonial card subtle float on hover */
.testimonial-card:hover {
  transform: translateY(-4px);
}

/* Blog card image zoom */
.blog-card:hover .blog-card-image img {
  transform: scale(1.08);
}

/* Button pulse animation for CTAs */
@keyframes subtlePulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(0, 192, 165, 0.25); }
  50% { box-shadow: 0 4px 24px rgba(0, 192, 165, 0.45); }
}

.cta-section .btn-primary {
  animation: subtlePulse 3s ease-in-out infinite;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-section .btn-primary:hover {
  animation: none;
  transform: translateY(-2px);
}

/* Approach dot pulse */
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 8px rgba(0, 192, 165, 0.4); }
  50% { box-shadow: 0 0 16px rgba(0, 192, 165, 0.7); }
}

.approach-dot {
  animation: dotPulse 2.5s ease-in-out infinite;
}

/* Step number hover */
.step-number {
  transition: transform var(--transition), box-shadow var(--transition);
}

.step-item:hover .step-number {
  transform: scale(1.1);
  box-shadow: 0 0 30px rgba(0, 192, 165, 0.5);
}

/* Service feature icon float on hover */
.service-feature:hover .service-feature-icon {
  transform: translateY(-3px);
  transition: transform var(--transition);
}

.service-feature-icon {
  transition: transform var(--transition);
}

/* ============================================
   Pattern Overlays for Solid Colour Sections
   ============================================ */

/* Accent (green/teal) section pattern overlay */
.section-accent {
  position: relative;
  overflow: hidden;
}

.section-accent::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 20px 20px;
  background-attachment: fixed;
  pointer-events: none;
}

.section-accent::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.section-accent > .container {
  position: relative;
  z-index: 1;
}

/* CTA section enhanced pattern */
.cta-section {
  background: var(--gradient-cta);
}

/* Hero container z-index (above dot pattern and tech overlay) */
.hero > .container {
  z-index: 3;
}

/* Footer pattern overlay */
.site-footer {
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(180deg, var(--color-footer-bg), var(--color-footer-bg));
  background-size: 24px 24px, 100% 100%;
  background-attachment: fixed, scroll;
}

/* ============================================
   Book Appointment Page
   ============================================ */
.appointment-wrapper {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.appointment-wrapper p {
  font-size: 1.1rem;
  color: var(--color-text-light);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.appointment-iframe-container {
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.appointment-iframe-container iframe {
  display: block;
  width: 100%;
  border: 0;
}

/* ============================================
   Smooth transitions for interactive elements
   ============================================ */
.value-card,
.service-feature,
.card,
.card-dark,
.help-card,
.blog-card,
.testimonial-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Image container hover effect */
.two-col-image {
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.two-col-image:hover {
  transform: scale(1.02);
}

/* Stats number count animation */
.stat-item {
  transition: transform var(--transition);
}

.stat-item:hover {
  transform: translateY(-3px);
}

.stat-item:hover .stat-number {
  text-shadow: 0 0 30px rgba(0, 192, 165, 0.3);
  transition: text-shadow var(--transition);
}

/* Service page hero entrance */
.hero-sm .hero-content.animate {
  animation: fadeInUp 0.7s ease-out both;
}

/* Enhanced gradient line animation at top of CTA/footer */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.site-footer::before,
.cta-section::after {
  background: linear-gradient(90deg, #00c0a5, #055eb8, #00c0a5, #055eb8);
  background-size: 300% 100%;
  animation: gradientShift 6s ease-in-out infinite;
}

/* Accent section gradient line at bottom */
.section-accent {
  border-bottom: 3px solid transparent;
  background-clip: padding-box;
}

/* ============================================
   Download Gate
   ============================================ */
.download-gate-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.download-gate-info h2 {
  margin-bottom: 1rem;
}

.download-gate-info p {
  color: var(--color-text-light);
  line-height: 1.7;
}

.download-gate-features {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.download-gate-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  color: #e2e8f0;
  font-weight: 500;
}

.gate-check svg {
  fill: none;
  stroke: url(#icon-grad);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.download-gate-note {
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.download-gate-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  text-align: center;
  backdrop-filter: blur(12px);
}

.download-gate-card-icon {
  margin-bottom: 1rem;
}

.download-gate-card-icon svg {
  fill: none;
  stroke: url(#icon-grad);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.download-gate-card h3 {
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
}

.download-gate-card .form-group {
  text-align: left;
}

.download-gate-privacy {
  font-size: 0.8rem;
  color: var(--color-text-light);
  margin-top: 1rem;
  margin-bottom: 0;
}

/* ============================================
   Library Search
   ============================================ */
.library-search-wrap {
  max-width: 560px;
  margin: 0 auto 3rem;
  text-align: center;
}

.library-search {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.library-search:hover {
  border-color: rgba(0, 192, 165, 0.2);
}

.library-search:focus-within {
  border-color: rgba(0, 192, 165, 0.4);
  box-shadow: 0 0 0 3px rgba(0, 192, 165, 0.1);
}

.library-search-icon {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  fill: none;
  stroke: var(--color-text-light);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
  opacity: 0.5;
  transition: all 0.3s ease;
}

.library-search:focus-within .library-search-icon {
  stroke: var(--color-accent);
  opacity: 1;
}

.library-search .form-input {
  padding: 1rem 1.5rem 1rem 3.25rem;
  width: 100%;
  border: none;
  border-radius: 100px;
  font-size: 1rem;
  font-family: var(--font-body);
  background: transparent;
  color: var(--color-text);
  outline: none;
}

.library-search .form-input::placeholder {
  color: var(--color-text-light);
  opacity: 0.6;
}

.library-count {
  font-size: 0.8rem;
  color: var(--color-text-light);
  margin-top: 1rem;
  letter-spacing: 0.02em;
  opacity: 0.7;
}

@media (max-width: 768px) {
  .download-gate-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ============================================
   Modal
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1rem;
}

.modal-content {
  background: #1a1c28;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2.5rem;
  max-width: 440px;
  width: 100%;
  position: relative;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
  animation: modalIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(30px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #94a3b8;
  line-height: 1;
}

.modal-close:hover {
  color: #ffffff;
}

/* ============================================
   IMMERSIVE ANIMATIONS & PARALLAX
   ============================================ */

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #00c0a5, #0190d5, #8b5cf6);
  z-index: 10000;
  transform-origin: left;
  transform: scaleX(0);
  transition: none;
  pointer-events: none;
}

/* Cursor glow that follows mouse */
.cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 192, 165, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
  opacity: 0;
}
.cursor-glow.active {
  opacity: 1;
}

/* Floating particles */
.particle-field {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: rgba(0, 192, 165, 0.4);
  animation: particleDrift linear infinite;
}

@keyframes particleDrift {
  0% {
    transform: translateY(100vh) translateX(0) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
    transform: translateY(90vh) translateX(10px) scale(1);
  }
  90% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(-10vh) translateX(-20px) scale(0.5);
    opacity: 0;
  }
}

/* 3D tilt effect on cards */
.tilt-card {
  transform-style: preserve-3d;
  perspective: 1000px;
}

.tilt-card-inner {
  transition: transform 0.15s ease-out;
  will-change: transform;
}

/* Magnetic button effect */
.btn-magnetic {
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

/* Enhanced reveal variants */
.reveal.reveal-rotate {
  transform: translateY(40px) rotate(2deg);
}

.reveal.reveal-zoom {
  transform: scale(0.85);
}

.reveal.revealed {
  transform: translateY(0) translateX(0) scale(1) rotate(0deg);
}

/* Parallax section layers */
.parallax-section {
  will-change: transform;
}

/* Image reveal with clip-path wipe (for img tags only, not background-image divs) */
.image-reveal {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1s cubic-bezier(0.77, 0, 0.175, 1);
}

.image-reveal.revealed {
  clip-path: inset(0 0% 0 0);
}

/* Never clip two-col-image divs — they use background-image which gets hidden by clip-path */
.two-col-image.image-reveal {
  clip-path: none;
}

.two-col-image.image-reveal.revealed {
  clip-path: none;
}

/* Text split word animation */
.text-reveal-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}

.text-reveal-word span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.text-reveal-word.revealed span {
  transform: translateY(0);
}

/* Hero parallax layers */
.hero {
  overflow: hidden;
}

.hero-content,
.hero-image {
  will-change: transform;
}

/* Animated gradient border on cards on hover */
.card-dark::after,
.help-card::after,
.value-card::after,
.service-feature::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid transparent;
  background: linear-gradient(135deg, rgba(0, 192, 165, 0.3), rgba(1, 144, 213, 0.3), rgba(139, 92, 246, 0.3)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 2;
}

.card-dark:hover::after,
.help-card:hover::after,
.value-card:hover::after,
.service-feature:hover::after {
  opacity: 1;
}

.card-dark,
.help-card,
.value-card,
.service-feature {
  position: relative;
  overflow: hidden;
}

/* Glow trail on card hover */
.card-glow {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 192, 165, 0.15), transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

/* Section divider waves */
.section-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: 2;
}

.section-wave svg {
  display: block;
  width: 100%;
  height: 60px;
}

.section-wave svg path {
  fill: var(--color-body-bg);
}

.section-wave-top {
  top: -1px;
  bottom: auto;
  transform: rotate(180deg);
}

/* Animated counting numbers glow */
.stat-number {
  transition: text-shadow 0.3s ease, transform 0.3s ease;
}

/* Two-col image parallax */
.two-col-image {
  overflow: hidden;
}

.two-col-image-inner {
  width: 100%;
  height: 120%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  will-change: transform;
  transition: transform 0.1s linear;
}

/* Animated underline on section labels */
.section-label {
  position: relative;
  display: inline-block;
  padding-bottom: 4px;
}

.section-label::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #00c0a5, #0190d5);
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.revealed .section-label::after,
.section-label.revealed::after {
  width: 100%;
}

/* Smooth scroll snap feel */
html {
  scroll-behavior: smooth;
}

/* Line connector between steps */
.steps-grid {
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0, 192, 165, 0.2), rgba(1, 144, 213, 0.2), transparent);
  z-index: 0;
}

.step-item {
  position: relative;
  z-index: 1;
}

/* Breathing glow on accent elements */
@keyframes breatheGlow {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(0, 192, 165, 0.2)); }
  50% { filter: drop-shadow(0 0 20px rgba(0, 192, 165, 0.4)); }
}

.hero .section-label {
  animation: breatheGlow 4s ease-in-out infinite;
}

/* Smooth morph on orbs based on scroll */
.site-orb {
  transition: filter 0.3s ease;
}

/* Hover lift for two-col images */
.two-col:hover .two-col-image {
  transform: scale(1.01);
}

/* Loading screen fade */
body {
  opacity: 0;
  transition: opacity 0.4s ease;
}

body.js-loaded {
  opacity: 1;
}

/* ============================================
   NEW ANIMATION FEATURES
   ============================================ */

/* --- Typed Text Effect --- */
.typed-text {
  min-height: 1.2em;
}

.typed-char {
  opacity: 0;
  animation: typeChar 0.05s forwards;
}

@keyframes typeChar {
  to { opacity: 1; }
}

.typed-cursor {
  display: inline-block;
  width: 3px;
  height: 1em;
  background: var(--color-accent);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: cursorBlink 0.7s infinite;
}

.typed-cursor-done {
  animation: cursorFadeOut 0.6s forwards;
}

@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@keyframes cursorFadeOut {
  to { opacity: 0; }
}

/* --- Letter Reveal --- */
.letter-reveal {
  overflow: hidden;
}

.letter-reveal-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px) rotateX(40deg);
  transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.letter-reveal-char:empty {
  width: 0.3em;
}

.letter-revealed .letter-reveal-char {
  opacity: 1;
  transform: translateY(0) rotateX(0);
}

/* --- Ken Burns on Images --- */
.ken-burns {
  transition: background-size 8s ease-out, background-position 8s ease-out;
}

.ken-burns-active {
  background-size: 115% !important;
  background-position: center 40% !important;
}

/* --- Aurora Gradient Behind Hero --- */
.aurora-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.15;
  pointer-events: none;
  background: linear-gradient(
    125deg,
    rgba(233, 69, 96, 0.5),
    rgba(15, 52, 96, 0.5),
    rgba(233, 69, 96, 0.3),
    rgba(15, 52, 96, 0.5)
  );
  background-size: 400% 400%;
  animation: auroraShift 12s ease-in-out infinite;
  filter: blur(60px);
}

@keyframes auroraShift {
  0% { background-position: 0% 50%; }
  33% { background-position: 100% 0%; }
  66% { background-position: 50% 100%; }
  100% { background-position: 0% 50%; }
}

/* --- Mouse Sparkle Trail --- */
.mouse-sparkle {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  opacity: 1;
  animation: sparkleDrift 0.8s ease-out forwards;
}

@keyframes sparkleDrift {
  to {
    transform: translate(var(--drift-x), var(--drift-y)) scale(0);
    opacity: 0;
  }
}

/* --- Scroll Navigation Dots --- */
.scroll-dots {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.scroll-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.scroll-dot:hover {
  background: rgba(255, 255, 255, 0.5);
  transform: scale(1.3);
}

.scroll-dot.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  transform: scale(1.4);
  box-shadow: 0 0 8px rgba(233, 69, 96, 0.5);
}

/* --- Card Ripple on Click --- */
.card-ripple {
  position: absolute;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(233, 69, 96, 0.3);
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: rippleExpand 0.6s ease-out forwards;
}

@keyframes rippleExpand {
  to {
    width: 400px;
    height: 400px;
    opacity: 0;
  }
}

/* --- Elastic Bounce Entrance for Cards --- */
.reveal-elastic {
  opacity: 0;
  transform: scale(0.8) translateY(30px);
  transition: opacity 0.5s ease, transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.reveal-elastic.revealed {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* --- Stat Counter Glow --- */
.stat-number.counting {
  color: var(--color-accent);
  text-shadow: 0 0 15px rgba(233, 69, 96, 0.6);
  transition: color 0.3s, text-shadow 0.3s;
}

.stat-number.counted {
  color: var(--color-white, #ffffff);
  text-shadow: 0 0 20px rgba(233, 69, 96, 0.4);
  transition: color 0.8s ease, text-shadow 1.5s ease;
}

/* Mobile animation adjustments */
@media (max-width: 768px) {
  .scroll-progress {
    height: 2px;
  }

  .cursor-glow,
  .particle-field {
    display: none;
  }

  .site-orb-1 {
    width: 400px; height: 400px;
  }

  .site-orb-2 {
    width: 350px; height: 350px;
  }

  .site-orb-3 {
    width: 300px; height: 300px;
  }

  .site-bg-grid {
    background-size: 40px 40px;
  }

  .site-tech-bg {
    opacity: 0.04;
    background-attachment: scroll;
  }

  /* Ensure two-col images show properly on mobile */
  .two-col-image {
    min-height: 250px;
  }

  /* Card links stack properly */
  a.card-dark.card-link {
    display: block;
  }

  /* Partner logos wrap nicely */
  .partners-logos {
    gap: 1.5rem;
  }

  .partners-logos img {
    height: 22px;
  }

  /* Steps connector line hidden on mobile (stacked layout) */
  .steps-grid::before {
    display: none;
  }

  /* Hide mouse-based effects on mobile */
  .mouse-sparkle {
    display: none;
  }

  /* Move scroll dots closer to edge on mobile */
  .scroll-dots {
    right: 8px;
    gap: 8px;
  }

  .scroll-dot {
    width: 7px;
    height: 7px;
  }

  /* Tone down aurora on mobile */
  .aurora-bg {
    opacity: 0.08;
  }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .scroll-progress,
  .cursor-glow,
  .particle-field,
  .site-orb,
  .site-bg-grid,
  .site-tech-bg,
  .aurora-bg,
  .mouse-sparkle,
  .scroll-dots {
    display: none !important;
  }
  .reveal,
  .reveal-elastic,
  .letter-reveal-char {
    opacity: 1 !important;
    transform: none !important;
  }
  .ken-burns {
    background-size: cover !important;
  }
  body {
    opacity: 1 !important;
  }
}
