/* ==========================================================================
   Brain & Chip LTD — Custom Design System
   Layers on top of Tailwind CDN. Contains brand tokens, animations,
   glassmorphism, bento grid, scroll reveals, and premium interactions.
   ========================================================================== */

/* ── Google Fonts (loaded via <link> in HTML) ── */

/* ──────────────────────────────────────────────
   1. CSS CUSTOM PROPERTIES
   ────────────────────────────────────────────── */
:root {
  /* Brand Palette — derived from the BC logo */
  --navy-950: #050D1A;
  --navy-900: #0A1628;
  --navy-800: #0F1B2D;
  --navy-700: #162236;
  --navy-600: #1E3048;
  --navy-500: #2A4060;
  --navy-400: #3D5A80;
  --navy-300: #6B8AAF;
  --navy-200: #9FB8D4;
  --navy-100: #D0DEF0;

  --amber-600: #C98A0E;
  --amber-500: #E8A317;
  --amber-400: #F5B731;
  --amber-300: #FFCC4D;
  --amber-200: #FFE08A;

  --slate-400: #94A3B8;
  --slate-300: #CBD5E1;
  --slate-200: #E2E8F0;

  /* Semantic tokens (Dark Mode — default) */
  --bg-primary: var(--navy-950);
  --bg-secondary: var(--navy-900);
  --bg-tertiary: var(--navy-800);
  --bg-card: rgba(22, 34, 54, 0.55);
  --bg-card-hover: rgba(30, 48, 72, 0.65);
  --glass-bg: rgba(5, 13, 26, 0.6);
  --glass-bg-scrolled: rgba(5, 13, 26, 0.92);
  --glass-border: rgba(255, 255, 255, 0.06);
  --accent: var(--amber-500);
  --accent-hover: var(--amber-400);
  --text-primary: #ffffff;
  --text-secondary: #CBD5E1;
  --text-muted: #94A3B8;
  --border-subtle: rgba(255, 255, 255, 0.06);
  --shadow-color: rgba(0, 0, 0, 0.3);

  /* Typography */
  --font-display: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  --tracking-tight: -0.025em;
  --tracking-tighter: -0.04em;

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --transition-base: 0.35s var(--ease-out-expo);
  --transition-slow: 0.6s var(--ease-out-expo);

  /* Brand font */
  --font-brand: 'Bodoni Moda', 'Georgia', 'Times New Roman', serif;
}

/* ──────────────────────────────────────────────
   1b. BRAND TYPOGRAPHY (Matches Logo Exactly)
   ────────────────────────────────────────────── */

/* 
   The logo uses a Didone/Bodoni-style serif with:
   - ALL CAPS lettering
   - A lambda-shaped Λ (no crossbar) for the letter A
   - An italic calligraphic & ampersand
   - Wide letter-spacing
*/

.brand-name {
  font-family: var(--font-brand);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* The Λ character — uses the Greek capital Lambda for the crossbar-less A */
.brand-lambda {
  /* Lambda naturally has no crossbar — perfect match */
}

/* The italic calligraphic ampersand — distinctive and flowing */
.brand-amp {
  font-family: var(--font-brand);
  font-style: italic;
  font-weight: 400;
  color: var(--amber-500);
  display: inline-block;
  margin: 0 0.05em;
}

/* Inline version for smaller contexts (copyright, etc.) */
.brand-name-inline {
  font-family: var(--font-brand);
  font-weight: 700;
  letter-spacing: 0.12em;
}

/* Light mode: ensure brand name stays readable */
.light-mode .brand-name,
.light-mode .brand-name-inline {
  color: var(--text-primary);
}

.light-mode .brand-amp {
  color: var(--amber-600);
}


/* ──────────────────────────────────────────────
   2. GLOBAL RESETS & BASE STYLES
   ────────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  font-family: var(--font-display);
  background: var(--bg-primary);
  color: #fff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--amber-500);
  color: var(--navy-950);
}

/* ──────────────────────────────────────────────
   3. GLASSMORPHISM NAVIGATION
   ────────────────────────────────────────────── */
.nav-glass {
  background: var(--glass-bg);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--glass-border);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.nav-glass.scrolled {
  background: var(--glass-bg-scrolled);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4), 0 1px 0 rgba(255, 255, 255, 0.03) inset;
}

.nav-link {
  position: relative;
  color: var(--slate-300);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  transition: color var(--transition-base);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  transition: width var(--transition-base), left var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
  left: 0;
}

/* Mobile menu */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease-out-expo), opacity 0.3s ease;
  opacity: 0;
}

.mobile-menu.open {
  max-height: 400px;
  opacity: 1;
}

.hamburger-line {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.active .hamburger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ──────────────────────────────────────────────
   4. HERO SECTION
   ────────────────────────────────────────────── */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(180deg, var(--navy-950) 0%, var(--navy-900) 60%, var(--navy-800) 100%);
}

/* Animated gradient mesh background */
.hero-mesh {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 50% at 15% 45%, rgba(232, 163, 23, 0.10) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 85% 25%, rgba(59, 130, 246, 0.07) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 55% 85%, rgba(232, 163, 23, 0.05) 0%, transparent 65%),
    radial-gradient(ellipse 40% 40% at 75% 70%, rgba(99, 102, 241, 0.04) 0%, transparent 50%);
  background-size: 200% 200%, 200% 200%, 200% 200%, 200% 200%;
  animation: meshFloat 20s ease-in-out infinite alternate;
}

@keyframes meshFloat {
  0% {
    background-position: 0% 0%, 100% 0%, 50% 100%, 100% 50%;
  }
  25% {
    background-position: 50% 30%, 30% 50%, 80% 20%, 20% 80%;
  }
  50% {
    background-position: 100% 50%, 0% 100%, 30% 50%, 50% 30%;
  }
  75% {
    background-position: 30% 80%, 70% 30%, 60% 70%, 80% 60%;
  }
  100% {
    background-position: 0% 0%, 100% 0%, 50% 100%, 100% 50%;
  }
}

/* Subtle grid overlay */
.hero-grid-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 70%);
}

/* Noise texture overlay */
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.025;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.5'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

.hero-content {
  position: relative;
  z-index: 10;
}

/* Hero badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem 0.4rem 0.6rem;
  background: rgba(232, 163, 23, 0.08);
  border: 1px solid rgba(232, 163, 23, 0.2);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--amber-400);
  letter-spacing: 0.02em;
  animation: fadeInDown 0.8s var(--ease-out-expo) 0.2s both;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber-500);
  animation: pulse-dot 2s ease-in-out infinite;
}

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

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-15px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-title {
  letter-spacing: var(--tracking-tighter);
  line-height: 1.05;
  animation: fadeInUp 0.9s var(--ease-out-expo) 0.35s both;
}

.hero-subtitle {
  animation: fadeInUp 0.9s var(--ease-out-expo) 0.5s both;
}

.hero-ctas {
  animation: fadeInUp 0.9s var(--ease-out-expo) 0.65s both;
}

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

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  animation: fadeInUp 0.9s var(--ease-out-expo) 1s both;
}

.scroll-indicator-mouse {
  width: 24px;
  height: 38px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.scroll-indicator-dot {
  width: 3px;
  height: 8px;
  background: var(--amber-500);
  border-radius: 2px;
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(12px); opacity: 0.3; }
}

/* ──────────────────────────────────────────────
   5. BUTTONS
   ────────────────────────────────────────────── */
.btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  background: var(--accent);
  color: var(--navy-950);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(232, 163, 23, 0.3);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  background: transparent;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: all var(--transition-base);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.btn-secondary .arrow {
  transition: transform var(--transition-base);
}

.btn-secondary:hover .arrow {
  transform: translateX(4px);
}

/* ──────────────────────────────────────────────
   6. SECTION HEADING STYLES
   ────────────────────────────────────────────── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--amber-500);
  margin-bottom: 1rem;
}

.section-label-line {
  width: 32px;
  height: 2px;
  background: var(--amber-500);
  border-radius: 1px;
}

.section-title {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: var(--tracking-tight);
  line-height: 1.1;
  color: #fff;
}

.section-subtitle {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--slate-400);
  max-width: 600px;
}

/* ──────────────────────────────────────────────
   7. STATS / ABOUT SECTION
   ────────────────────────────────────────────── */
.stat-card {
  position: relative;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 1.25rem;
  transition: all var(--transition-base);
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--amber-500), var(--amber-300));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out-expo);
}

.stat-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  border-color: rgba(232, 163, 23, 0.15);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
}

.stat-card:hover::before {
  transform: scaleX(1);
}

.stat-number {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: var(--tracking-tighter);
  background: linear-gradient(135deg, var(--amber-400), var(--amber-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.stat-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--slate-400);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.5rem;
}

/* ──────────────────────────────────────────────
   8. BENTO BOX GRID (SERVICES)
   ────────────────────────────────────────────── */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(260px, auto);
  gap: 1.25rem;
}

.bento-card {
  position: relative;
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: 1.5rem;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: all 0.45s var(--ease-out-expo);
  overflow: hidden;
  cursor: default;
}

/* Gradient accent on hover */
.bento-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(232, 163, 23, 0.06) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.45s ease;
}

/* Subtle glow on hover */
.bento-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 30%, rgba(232, 163, 23, 0.04) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.bento-card:hover {
  transform: translateY(-6px);
  border-color: rgba(232, 163, 23, 0.2);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(232, 163, 23, 0.1);
}

.bento-card:hover::before,
.bento-card:hover::after {
  opacity: 1;
}

/* Card icon */
.bento-icon {
  position: relative;
  z-index: 1;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(232, 163, 23, 0.1);
  border: 1px solid rgba(232, 163, 23, 0.15);
  border-radius: 14px;
  margin-bottom: 1.5rem;
  color: var(--amber-500);
  transition: all var(--transition-base);
}

.bento-card:hover .bento-icon {
  background: rgba(232, 163, 23, 0.15);
  border-color: rgba(232, 163, 23, 0.3);
  transform: scale(1.05);
}

.bento-card-title {
  position: relative;
  z-index: 1;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  margin-bottom: 0.75rem;
}

.bento-card-desc {
  position: relative;
  z-index: 1;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--slate-400);
}

/* Bento layout — asymmetric for visual interest */
.bento-card:nth-child(1) {
  grid-column: span 2;
}

.bento-card:nth-child(4) {
  grid-column: span 2;
}

/* Large card extra styling */
.bento-card.bento-large {
  padding: 3rem;
}

.bento-card.bento-large .bento-card-title {
  font-size: 1.6rem;
}

/* ──────────────────────────────────────────────
   9. TRUST & COMPLIANCE BANNER
   ────────────────────────────────────────────── */
.trust-section {
  position: relative;
  overflow: hidden;
}

.trust-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--navy-900) 0%, var(--navy-800) 50%, var(--navy-900) 100%);
}

.trust-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 1.25rem;
  transition: all var(--transition-base);
  text-align: center;
}

.trust-badge:hover {
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  border-color: rgba(232, 163, 23, 0.15);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.trust-badge-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(232, 163, 23, 0.08);
  border: 1px solid rgba(232, 163, 23, 0.15);
  color: var(--amber-500);
}

.trust-badge-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.trust-badge-text {
  font-size: 0.8rem;
  color: var(--slate-400);
  line-height: 1.5;
}

/* ──────────────────────────────────────────────
   10. CONTACT SECTION
   ────────────────────────────────────────────── */
.contact-form-input {
  width: 100%;
  padding: 0.85rem 1.15rem;
  background: rgba(22, 34, 54, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.95rem;
  outline: none;
  transition: all var(--transition-base);
}

.contact-form-input:focus {
  border-color: var(--amber-500);
  box-shadow: 0 0 0 3px rgba(232, 163, 23, 0.1);
  background: rgba(22, 34, 54, 0.8);
}

.contact-form-input::placeholder {
  color: var(--slate-400);
}

.contact-form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--slate-300);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
  transition: all var(--transition-base);
}

.contact-info-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(232, 163, 23, 0.12);
}

.contact-info-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(232, 163, 23, 0.1);
  border-radius: 10px;
  color: var(--amber-500);
}

/* Form success state */
.form-success {
  display: none;
  text-align: center;
  padding: 3rem 2rem;
  animation: fadeInUp 0.6s var(--ease-out-expo);
}

.form-success.show {
  display: block;
}

.form-success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  background: rgba(34, 197, 94, 0.1);
  border: 2px solid rgba(34, 197, 94, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #22c55e;
}

/* ──────────────────────────────────────────────
   11. FOOTER
   ────────────────────────────────────────────── */
.footer-link {
  color: var(--slate-400);
  font-size: 0.9rem;
  transition: color var(--transition-base);
}

.footer-link:hover {
  color: var(--amber-400);
}

.footer-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
}

/* ──────────────────────────────────────────────
   12. SCROLL REVEAL ANIMATIONS
   ────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* Reveal from left/right */
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal-left.revealed,
.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

/* Scale reveal */
.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

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

/* ──────────────────────────────────────────────
   13. UTILITY CLASSES
   ────────────────────────────────────────────── */
.text-gradient {
  background: linear-gradient(135deg, var(--amber-400), var(--amber-500), var(--amber-300));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glow-amber {
  box-shadow: 0 0 60px rgba(232, 163, 23, 0.08);
}

.divider-gradient {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--amber-500), transparent);
  opacity: 0.2;
}

/* ──────────────────────────────────────────────
   14. RESPONSIVE DESIGN
   ────────────────────────────────────────────── */

/* Tablets */
@media (max-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: minmax(220px, auto);
  }

  .bento-card:nth-child(1),
  .bento-card:nth-child(4) {
    grid-column: span 2;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .bento-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .bento-card:nth-child(1),
  .bento-card:nth-child(4) {
    grid-column: span 1;
  }

  .bento-card {
    padding: 2rem;
  }

  .hero-title {
    font-size: clamp(2rem, 8vw, 3rem) !important;
  }

  .stat-card {
    padding: 1.5rem;
  }

  .section-title {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .hero-ctas {
    flex-direction: column;
  }
}

/* ──────────────────────────────────────────────
   15. PRELOADER
   ────────────────────────────────────────────── */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--navy-950);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-logo {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  overflow: hidden;
  animation: preloaderPulse 1.5s ease-in-out infinite;
  box-shadow: 0 0 40px rgba(232, 163, 23, 0.15);
}

.preloader-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preloader-bar {
  width: 120px;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  margin-top: 1.5rem;
  overflow: hidden;
}

.preloader-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--amber-500), var(--amber-300));
  border-radius: 2px;
  animation: preloaderFill 1.8s ease-out forwards;
}

@keyframes preloaderPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

@keyframes preloaderFill {
  0% { width: 0%; }
  60% { width: 70%; }
  100% { width: 100%; }
}

/* ──────────────────────────────────────────────
   16. PAGE LOAD ENTRANCE ANIMATIONS
   ────────────────────────────────────────────── */
.page-loaded .hero-nav-entrance {
  animation: slideDown 0.7s var(--ease-out-expo) 0.1s both;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hero illustration entrance */
.page-loaded .hero-illustration-entrance {
  animation: scaleIn 1s var(--ease-out-expo) 0.5s both;
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.85) translateX(30px); }
  to { opacity: 1; transform: scale(1) translateX(0); }
}

/* ──────────────────────────────────────────────
   17. HERO ILLUSTRATION
   ────────────────────────────────────────────── */
.hero-illustration {
  position: relative;
  z-index: 10;
}

.hero-illustration img {
  width: 100%;
  max-width: 580px;
  height: auto;
  border-radius: 1.5rem;
  filter: drop-shadow(0 20px 60px rgba(232, 163, 23, 0.08));
}

/* Subtle glow behind illustration */
.hero-illustration::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80%;
  height: 80%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(232, 163, 23, 0.08) 0%, transparent 70%);
  z-index: -1;
  border-radius: 50%;
}

/* ──────────────────────────────────────────────
   18. SERVICE CARD IMAGES
   ────────────────────────────────────────────── */
.bento-card-image {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: 1rem;
  margin-bottom: 1.5rem;
  opacity: 0.85;
  transition: opacity var(--transition-base), transform var(--transition-base);
}

.bento-card.bento-large .bento-card-image {
  max-height: 200px;
}

.bento-card:hover .bento-card-image {
  opacity: 1;
  transform: scale(1.02);
}

/* Reposition bento cards to accommodate images */
.bento-card.has-image {
  justify-content: flex-start;
}

/* ──────────────────────────────────────────────
   19. LIGHT MODE
   ────────────────────────────────────────────── */
.light-mode {
  --bg-primary: #F8FAFC;
  --bg-secondary: #F1F5F9;
  --bg-tertiary: #E2E8F0;
  --bg-card: rgba(255, 255, 255, 0.75);
  --bg-card-hover: rgba(255, 255, 255, 0.9);
  --glass-bg: rgba(248, 250, 252, 0.7);
  --glass-bg-scrolled: rgba(248, 250, 252, 0.95);
  --glass-border: rgba(0, 0, 0, 0.06);
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #64748B;
  --border-subtle: rgba(0, 0, 0, 0.08);
  --shadow-color: rgba(0, 0, 0, 0.08);
}

/* Body & backgrounds */
.light-mode {
  background: var(--bg-primary) !important;
  color: var(--text-primary);
}

.light-mode .hero-section {
  background: linear-gradient(180deg, #F1F5F9 0%, #E2E8F0 60%, #F1F5F9 100%);
}

.light-mode .hero-mesh {
  background:
    radial-gradient(ellipse 70% 50% at 15% 45%, rgba(232, 163, 23, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 85% 25%, rgba(59, 130, 246, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 55% 85%, rgba(232, 163, 23, 0.04) 0%, transparent 65%),
    radial-gradient(ellipse 40% 40% at 75% 70%, rgba(99, 102, 241, 0.03) 0%, transparent 50%);
}

.light-mode .hero-grid-overlay {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
}

.light-mode .hero-section::before {
  opacity: 0.01;
}

/* Text */
.light-mode h1,
.light-mode h2,
.light-mode h3,
.light-mode h4 {
  color: var(--text-primary);
}

.light-mode p,
.light-mode .hero-subtitle,
.light-mode .section-subtitle,
.light-mode .bento-card-desc,
.light-mode .stat-label,
.light-mode .trust-badge-text,
.light-mode .footer-link,
.light-mode .contact-info-card p {
  color: var(--text-secondary) !important;
}

/* Navigation */
.light-mode .nav-glass {
  background: var(--glass-bg);
  border-bottom-color: var(--glass-border);
}

.light-mode .nav-glass.scrolled {
  background: var(--glass-bg-scrolled);
  box-shadow: 0 4px 30px var(--shadow-color);
}

.light-mode .nav-link {
  color: var(--text-secondary);
}

.light-mode .nav-link:hover,
.light-mode .nav-link.active {
  color: var(--text-primary);
}

.light-mode .hamburger-line {
  background: var(--text-primary) !important;
}

/* Logo text */
.light-mode #nav-logo span,
.light-mode footer a span {
  color: var(--text-primary);
}

/* Cards & surfaces */
.light-mode .stat-card,
.light-mode .bento-card,
.light-mode .trust-badge,
.light-mode .contact-info-card {
  background: var(--bg-card);
  border-color: var(--border-subtle);
  box-shadow: 0 1px 3px var(--shadow-color);
}

.light-mode .stat-card:hover,
.light-mode .bento-card:hover,
.light-mode .trust-badge:hover,
.light-mode .contact-info-card:hover {
  background: var(--bg-card-hover);
  box-shadow: 0 8px 30px var(--shadow-color);
}

/* Process cards */
.light-mode [class*="bg-navy-700"] {
  background: rgba(241, 245, 249, 0.8) !important;
  border-color: var(--border-subtle) !important;
}

/* Form */
.light-mode .contact-form-input {
  background: rgba(241, 245, 249, 0.8);
  border-color: var(--border-subtle);
  color: var(--text-primary);
}

.light-mode .contact-form-input::placeholder {
  color: var(--text-muted);
}

.light-mode .contact-form-input:focus {
  background: #fff;
}

.light-mode .contact-form-label {
  color: var(--text-secondary);
}

/* Form container */
.light-mode #contact .rounded-2xl {
  background: var(--bg-card) !important;
  border-color: var(--border-subtle) !important;
}

/* Sections */
.light-mode section {
  background: transparent;
}

.light-mode section > [class*="bg-gradient"],
.light-mode section > [class*="bg-navy"] {
  background: transparent !important;
}

.light-mode .trust-section::before {
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-tertiary) 50%, var(--bg-secondary) 100%);
}

/* Footer */
.light-mode footer {
  background: transparent;
}

.light-mode footer > [class*="bg-navy"] {
  background: transparent !important;
}

.light-mode .footer-divider {
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.1), transparent);
}

.light-mode .divider-gradient {
  background: linear-gradient(90deg, transparent, rgba(232, 163, 23, 0.3), transparent);
}

.light-mode footer p {
  color: var(--text-muted) !important;
}

/* Buttons */
.light-mode .btn-secondary {
  color: var(--text-primary);
  border-color: rgba(0, 0, 0, 0.15);
}

.light-mode .btn-secondary:hover {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.25);
}

/* Scroll indicator */
.light-mode .scroll-indicator-mouse {
  border-color: rgba(0, 0, 0, 0.15);
}

/* Theme toggle button */
.theme-toggle {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--amber-500);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  flex-shrink: 0;
}

.theme-toggle:hover {
  background: rgba(232, 163, 23, 0.1);
  border-color: rgba(232, 163, 23, 0.2);
  transform: rotate(15deg);
}

.light-mode .theme-toggle {
  border-color: var(--border-subtle);
  background: rgba(0, 0, 0, 0.03);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  position: absolute;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.theme-toggle .icon-sun {
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
}

.theme-toggle .icon-moon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.light-mode .theme-toggle .icon-sun {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.light-mode .theme-toggle .icon-moon {
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
}

/* Global transitions for theme switch */
body,
.nav-glass,
.stat-card,
.bento-card,
.trust-badge,
.contact-info-card,
.contact-form-input,
.hero-section,
footer,
section {
  transition: background 0.5s ease, color 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
}

/* ──────────────────────────────────────────────
   20. REDUCED MOTION
   ────────────────────────────────────────────── */
/* ──────────────────────────────────────────────
   21. CURSOR-TRACKING GLOW (Stripe Effect)
   ────────────────────────────────────────────── */
.glow-card {
  --mouse-x: 50%;
  --mouse-y: 50%;
  position: relative;
}

.glow-card .glow-effect {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    500px circle at var(--mouse-x) var(--mouse-y),
    rgba(232, 163, 23, 0.07),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
}

.glow-card:hover .glow-effect {
  opacity: 1;
}

/* Light mode glow */
.light-mode .glow-card .glow-effect {
  background: radial-gradient(
    500px circle at var(--mouse-x) var(--mouse-y),
    rgba(232, 163, 23, 0.08),
    transparent 40%
  );
}

/* ──────────────────────────────────────────────
   22. INFINITE MARQUEE TICKER
   ────────────────────────────────────────────── */
.marquee-section {
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.light-mode .marquee-section {
  border-color: rgba(0, 0, 0, 0.06);
}

.marquee-track {
  display: inline-flex;
  white-space: nowrap;
  animation: marquee-scroll 35s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 2.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--slate-400);
  letter-spacing: 0.02em;
}

.marquee-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--amber-500);
  opacity: 0.5;
  flex-shrink: 0;
}

.marquee-item svg {
  color: var(--amber-500);
  flex-shrink: 0;
}

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

/* ──────────────────────────────────────────────
   23. CEO / LEADERSHIP SECTION
   ────────────────────────────────────────────── */
.ceo-avatar-placeholder {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-600));
  border: 3px solid rgba(232, 163, 23, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.ceo-avatar-placeholder::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid rgba(232, 163, 23, 0.1);
  animation: pulse-ring 3s ease-in-out infinite;
}

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

.light-mode .ceo-avatar-placeholder {
  background: linear-gradient(135deg, #E2E8F0, #F1F5F9);
  border-color: rgba(232, 163, 23, 0.3);
}

.ceo-quote {
  position: relative;
  padding-left: 1.5rem;
  border-left: 3px solid var(--amber-500);
  font-style: italic;
  color: var(--slate-300);
}

/* ──────────────────────────────────────────────
   24. TESTIMONIAL CAROUSEL
   ────────────────────────────────────────────── */
.testimonial-carousel {
  position: relative;
  overflow: hidden;
  min-height: 280px;
}

.testimonial-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s var(--ease-out-expo);
  pointer-events: none;
}

.testimonial-slide.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  position: relative;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 1.5rem;
  padding: 2.5rem;
}

.testimonial-stars {
  display: flex;
  gap: 0.25rem;
  color: var(--amber-500);
  margin-bottom: 1rem;
}

.testimonial-text {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--slate-300);
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-author {
  font-weight: 700;
  font-size: 0.95rem;
}

.testimonial-role {
  font-size: 0.8rem;
  color: var(--slate-400);
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.testimonial-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.testimonial-dot.active {
  background: var(--amber-500);
  transform: scale(1.2);
}

.light-mode .testimonial-dot {
  background: rgba(0, 0, 0, 0.1);
}

/* ──────────────────────────────────────────────
   25. DOWNLOAD PROFILE BANNER
   ────────────────────────────────────────────── */
.download-banner {
  background: linear-gradient(135deg, rgba(232, 163, 23, 0.06) 0%, rgba(22, 34, 54, 0.8) 60%);
  border: 1px solid rgba(232, 163, 23, 0.12);
  border-radius: 1.5rem;
  transition: all var(--transition-base);
}

.download-banner:hover {
  border-color: rgba(232, 163, 23, 0.25);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.light-mode .download-banner {
  background: linear-gradient(135deg, rgba(232, 163, 23, 0.06) 0%, rgba(255, 255, 255, 0.8) 60%);
  border-color: rgba(232, 163, 23, 0.15);
}

/* ──────────────────────────────────────────────
   26. BACK-TO-TOP BUTTON
   ────────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 40;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--amber-500);
  color: var(--navy-950);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all 0.4s var(--ease-out-expo);
  box-shadow: 0 4px 20px rgba(232, 163, 23, 0.3);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--amber-400);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(232, 163, 23, 0.4);
}

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

  html {
    scroll-behavior: auto;
  }

  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-scale {
    opacity: 1;
    transform: none;
  }

  .preloader {
    display: none;
  }

  .marquee-track {
    animation: none;
  }
}

