/* ==========================================================================
   AB Financial Services (abfinserv.com) - Version 2.0
   Rich Royal Sapphire Blue + Electric Cyan + Champagne Gold Theme
   ========================================================================== */

:root {
  --brand-midnight: #040D21;
  --brand-navy: #071636;
  --brand-sapphire: #0C2354;
  --brand-royal: #153E90;
  --brand-electric: #2563EB;
  --brand-sky: #00C2FF;
  --brand-gold: #F59E0B;
  --brand-gold-light: #FDE68A;
  --brand-emerald: #10B981;
}

html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: #FAFBFD;
  color: #0F172A;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #F1F5F9;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #E4B44B, #0A2246);
  border-radius: 9999px;
  border: 2px solid #F1F5F9;
}

/* ==========================================================================
   BALANCED LUXURY THEME:
   1. Warm Ivory & Pearl Canvas (Reduces blue saturation across the page)
   2. Self-Contained Obsidian-Navy 3D Stage Card
   ========================================================================== */
.bg-royal-stage {
  background-color: #FFFFFF;
  background-image:
    radial-gradient(circle at 82% 28%, rgba(228, 180, 75, 0.14) 0%, transparent 45%),
    radial-gradient(circle at 15% 75%, rgba(37, 99, 235, 0.06) 0%, transparent 50%),
    linear-gradient(180deg, #FFFFFF 0%, #FDFBF7 55%, #F8FAFC 100%);
}

/* Inner Page Hero Banner (Bright Warm Pearl & Champagne Ivory — No Heavy Blue Block) */
.bg-hero-mesh {
  background-color: #FFFFFF;
  background-image:
    radial-gradient(circle at 85% 20%, rgba(228, 180, 75, 0.14) 0%, transparent 45%),
    radial-gradient(circle at 15% 75%, rgba(37, 99, 235, 0.05) 0%, transparent 50%),
    linear-gradient(135deg, #FFFFFF 0%, #FDFBF7 60%, #F7F9FC 100%);
}

/* Global Body Background: Clean Warm Alabaster / Pearl White */
.bg-bright-mesh {
  background-color: #FAFBFD;
  background-image:
    radial-gradient(at 0% 0%, rgba(228, 180, 75, 0.06) 0px, transparent 50%),
    radial-gradient(at 100% 35%, rgba(37, 99, 235, 0.04) 0px, transparent 50%),
    radial-gradient(at 50% 100%, rgba(245, 158, 11, 0.05) 0px, transparent 50%);
}

/* Glassmorphic Cards (Crisp White & Subtle Slate/Gold Border) */
.glass-card {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 18px 45px -15px rgba(15, 23, 42, 0.06);
}

.glass-card-blue {
  background: linear-gradient(145deg, #FFFFFF 0%, #FDFBF7 100%);
  border: 1px solid rgba(228, 180, 75, 0.28);
  box-shadow: 0 24px 60px -15px rgba(15, 23, 42, 0.08);
}

/* Dark Holographic 3D Stage Card (Self-contained dark viewport for the 3D WebGL core) */
.glass-hud {
  background: linear-gradient(145deg, #091936 0%, #061126 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(228, 180, 75, 0.35);
  box-shadow: 0 28px 65px -12px rgba(6, 17, 38, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

.glass-hud-gold {
  background: linear-gradient(135deg, rgba(16, 33, 66, 0.92) 0%, rgba(8, 19, 43, 0.95) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(228, 180, 75, 0.50);
  box-shadow: 0 20px 50px -12px rgba(228, 180, 75, 0.22);
}

/* 3D Perspective & Tilt Utilities */
.perspective-1000 {
  perspective: 1000px;
}
.perspective-1200 {
  perspective: 1200px;
}
.preserve-3d {
  transform-style: preserve-3d;
}
.js-tilt-card {
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
  transform-style: preserve-3d;
  will-change: transform;
}

/* Gradient Text Accents */
.text-gradient-blue {
  background: linear-gradient(135deg, #0A2246 0%, #1E40AF 45%, #D97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-hero-cyan {
  background: linear-gradient(135deg, #D97706 0%, #B45309 45%, #1D4ED8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-gold {
  background: linear-gradient(135deg, #F59E0B 0%, #FBBF24 50%, #D97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Shimmer Effect on Primary CTA Buttons */
.btn-shimmer {
  position: relative;
  overflow: hidden;
}
.btn-shimmer::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.35) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(25deg);
  transition: all 0.65s cubic-bezier(0.19, 1, 0.22, 1);
}
.btn-shimmer:hover::after {
  left: 130%;
}

/* Marquee Animation */
@keyframes marqueeScroll {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}
.animate-marquee {
  display: flex;
  width: max-content;
  animation: marqueeScroll 32s linear infinite;
}
.animate-marquee:hover {
  animation-play-state: paused;
}

/* Floating Animations */
@keyframes floatSlow {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}
@keyframes floatReverse {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(7px);
  }
}
.animate-float {
  animation: floatSlow 5s ease-in-out infinite;
}
.animate-float-delayed {
  animation: floatReverse 6s ease-in-out 1.5s infinite;
}

/* Custom Range Sliders */
input[type="range"].abfs-slider {
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  border-radius: 999px;
  outline: none;
  cursor: pointer;
  background: rgba(37, 99, 235, 0.18);
}

input[type="range"].abfs-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 4px solid #2563EB;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.45);
  cursor: grab;
  transition: transform 0.15s ease;
}

input[type="range"].abfs-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

/* Hero Dark Slider Variant */
input[type="range"].hero-dark-slider {
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  border-radius: 999px;
  outline: none;
  cursor: pointer;
  background: linear-gradient(90deg, #00C2FF 0%, #F59E0B 100%);
}
input[type="range"].hero-dark-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #F59E0B;
  border: 3px solid #FFFFFF;
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.85);
  cursor: grab;
  transition: transform 0.15s ease;
}
input[type="range"].hero-dark-slider::-webkit-slider-thumb:hover {
  transform: scale(1.18);
}

/* Reveal on Scroll Transitions */
.reveal-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-up.revealed {
  opacity: 1;
  transform: translateY(0);
}
