/* CivilMatrix Custom Styles */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700;800;900&family=Inter:wght@400;500;600&family=Space+Grotesk:wght@700&display=swap');

/* Root Variables */
:root {
  --primary-dark: #0A1A2F; /* 0A1A2F */
  --primary-blue: orange; /* 1E3A8A */
  --accent-blue: rgb(255, 187, 60); /* 60A5FA */
  --premium-gold: #2e1c02; /* FBBF24 */
  --electric-blue: #38BDF8; /* 38BDF8 */
  --soft-bg: #F3F4F6; /* F3F4F6 */
  --pure-white: #FFFFFF; /* FFFFFF */
  --text-primary: #0A1A1A; /* 0A1A1A */
  --text-secondary: #4B5563; /* 4B5563 */
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-primary);
  line-height: 1.75;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* Text Shine Effect for H1 and H2 - White Overlay Shine */
h1, h2 {
  display: inline-block;
  color: var(--text-primary);
  background: linear-gradient(
    120deg,
    var(--text-primary) 0%,
    var(--text-primary) 35%,
    rgba(255, 255, 255, 1) 45%,
    rgba(255, 255, 255, 1) 55%,
    var(--text-primary) 65%,
    var(--text-primary) 100%
  );
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: shine-bright 4s ease-in-out infinite;
  -webkit-text-fill-color: transparent;
  will-change: background-position;
}

/* Ensure h1 and h2 are visible when background-clip is not supported */
@supports not (-webkit-background-clip: text) {
  h1, h2 {
    -webkit-text-fill-color: inherit;
    color: inherit;
    background: none;
    animation: none;
  }
}

/* Override for white text on dark backgrounds */
h1.text-white,
h2.text-white,
.gradient-dark-blue h1,
.gradient-dark-blue h2,
section.gradient-dark-blue h1,
section.gradient-dark-blue h2 {
  color: #ffffff !important;

  background-size: 300% 100%;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  display: inline-block;
  will-change: background-position;
}

/* Light background sections - white shine overlay on dark text */
.bg-white h1,
.bg-white h2,
.bg-soft-bg h1,
.bg-soft-bg h2,
section.bg-white h1,
section.bg-white h2 {
  color: var(--text-primary) !important;
  background-size: 300% 100%;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  animation: shine-bright 4s ease-in-out infinite;
  display: inline-block;
  will-change: background-position;
}

.hero-headline {
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #ffffff !important;
  display: inline-block;
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine-bright 4s ease-in-out infinite;
  will-change: background-position;
}
h2{
  display: block !important;
}
/* Force white text for hero headlines with shine animation */
.gradient-dark-blue .hero-headline,
section.gradient-dark-blue .hero-headline,
.hero-headline.text-white,
h1.hero-headline {
  color: #ffffff !important;
  display: inline-block;
  background-size: 300% 100%;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  animation: shine-bright 4s ease-in-out infinite;
  will-change: background-position;
}

/* Hero headline with text-white class - enable shine effect */
.hero-headline.text-white {
  display: inline-block;

  background-size: 300% 100%;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  animation: shine-bright 4s ease-in-out infinite;
  will-change: background-position;
}

/* Fallback for browsers without background-clip support */
@supports not (-webkit-background-clip: text) {
  .hero-headline {
    -webkit-text-fill-color: #ffffff;
    color: #ffffff !important;
    background: none;
  }
}

/* Hero Text Shine Animation */
.hero-text-shine {
  color: #ffffff !important;
  display: inline-block;
  background: linear-gradient(
    120deg,
    #ffffff 0%,
    #ffffff 35%,
    rgba(255, 255, 255, 1) 45%,
    rgba(255, 255, 255, 1) 55%,
    #ffffff 65%,
    #ffffff 100%
  );
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine-bright 4s ease-in-out infinite;
  will-change: background-position;
}

.hero-subtitle-shine {
  color: #ffffff !important;
  display: inline-block;
  background: linear-gradient(
    120deg,
    #ffffff 0%,
    #ffffff 35%,
    rgba(255, 255, 255, 1) 45%,
    rgba(255, 255, 255, 1) 55%,
    #ffffff 65%,
    #ffffff 100%
  );
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine-bright 4s ease-in-out infinite;
  will-change: background-position;
}

/* Force white text for hero subtitles with shine animation */
.gradient-dark-blue .hero-subtitle-shine,
section.gradient-dark-blue .hero-subtitle-shine,
.gradient-dark-blue p.hero-subtitle-shine {
  color: #ffffff !important;
  display: inline-block;
  background: linear-gradient(
    120deg,
    #ffffff 0%,
    #ffffff 35%,
    rgba(255, 255, 255, 1) 45%,
    rgba(255, 255, 255, 1) 55%,
    #ffffff 65%,
    #ffffff 100%
  ) !important;
  background-size: 300% 100%;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  animation: shine-bright 4s ease-in-out infinite;
  will-change: background-position;
}

/* Hero subtitle with text-white class - enable shine effect */
.hero-subtitle-shine.text-white,
p.hero-subtitle-shine.text-white {
  display: inline-block;
  background: linear-gradient(
    120deg,
    #ffffff 0%,
    #ffffff 35%,
    rgba(255, 255, 255, 1) 45%,
    rgba(255, 255, 255, 1) 55%,
    #ffffff 65%,
    #ffffff 100%
  ) !important;
  background-size: 300% 100%;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  animation: shine-bright 4s ease-in-out infinite;
  will-change: background-position;
}

/* Ensure text is visible when background-clip is not supported */
@supports not (-webkit-background-clip: text) {
  .hero-headline,
  .hero-text-shine,
  .hero-subtitle-shine {
    -webkit-text-fill-color: #ffffff;
    color: #ffffff !important;
    background: none;
    animation: text-shine-glow 3s ease-in-out infinite;
  }
  
  .hero-subtitle-shine {
    animation: text-shine-glow 4s ease-in-out infinite;
  }
}

/* Glow animation fallback for browsers without background-clip support */
@keyframes text-shine-glow {
  0%, 100% {
    text-shadow: 
      0 0 10px rgba(96, 165, 250, 0.4),
      0 0 20px rgba(96, 165, 250, 0.3),
      0 0 30px rgba(96, 165, 250, 0.2);
  }
  50% {
    text-shadow: 
      0 0 20px rgba(96, 165, 250, 0.7),
      0 0 40px rgba(96, 165, 250, 0.5),
      0 0 60px rgba(96, 165, 250, 0.3),
      0 0 80px rgba(96, 165, 250, 0.1);
  }
}

/* Force white color for all hero section text */
section.gradient-dark-blue .hero-headline,
section.gradient-dark-blue .hero-subtitle-shine,
section.gradient-dark-blue h1,
section.gradient-dark-blue h2,
section.gradient-dark-blue h3,
section.gradient-dark-blue p,
section.gradient-dark-blue .text-xl,
section.gradient-dark-blue .text-lg,
section.gradient-dark-blue .text-white,
.gradient-dark-blue .hero-headline,
.gradient-dark-blue .hero-subtitle-shine,
.gradient-dark-blue h1,
.gradient-dark-blue h2,
.gradient-dark-blue h3,
.gradient-dark-blue p,
.gradient-dark-blue .text-xl,
.gradient-dark-blue .text-lg,
.gradient-dark-blue .text-white {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* Ensure shine animation works in gradient sections */
.gradient-dark-blue .hero-headline,
.gradient-dark-blue .hero-subtitle-shine,
.gradient-dark-blue .hero-text-shine {
  /* Shine animation is already applied via base classes */
  animation: shine-bright 4s ease-in-out infinite;
  will-change: background-position;
}

.gradient-dark-blue .hero-subtitle-shine {
  animation: shine-bright 4s ease-in-out infinite;
  will-change: background-position;
}

/* Ensure hero section paragraphs are white */
.gradient-dark-blue p.hero-subtitle-shine,
.gradient-dark-blue p.text-xl,
.gradient-dark-blue p.text-lg,
.gradient-dark-blue p.text-white,
.gradient-dark-blue p {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  /* Section titles inherit h2 shine effect */
}

.stats-number {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
}

/* Advanced Animations */
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

@keyframes float-slow {
  0%, 100% { transform: translateY(0px) translateX(0px); }
  33% { transform: translateY(-15px) translateX(10px); }
  66% { transform: translateY(-10px) translateX(-10px); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(96, 165, 250, 0.4); }
  50% { box-shadow: 0 0 40px rgba(96, 165, 250, 0.8); }
}

@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes text-reveal {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer-button {
  0% { 
    background-position: -200% center;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
  }
  50% {
    background-position: 0% center;
    box-shadow: 0 6px 25px rgba(96, 165, 250, 0.5);
  }
  100% { 
    background-position: 200% center;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
  }
}

/* New Button Pulse Animation */
@keyframes button-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3), 0 0 0 0 rgba(96, 165, 250, 0.7);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 6px 25px rgba(96, 165, 250, 0.5), 0 0 0 10px rgba(96, 165, 250, 0);
  }
}

/* Button Shine Sweep Animation */
@keyframes button-shine {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(200%) translateY(200%) rotate(45deg);
  }
}

/* Card Background Animation Keyframes */
@keyframes card-glow {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.1;
  }
  50% {
    transform: translate(20px, -20px) scale(1.1);
    opacity: 0.2;
  }
}

@keyframes card-pattern {
  0%, 100% {
    background-position: 0% 0%, 100% 100%, 0% 0%;
    opacity: 0.2;
  }
  50% {
    background-position: 100% 100%, 0% 0%, 50% 50%;
    opacity: 0.1;
  }
}

@keyframes card-float-1 {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
    opacity: 0.1;
  }
  33% {
    transform: translate(10px, -15px) rotate(120deg);
    opacity: 0.2;
  }
  66% {
    transform: translate(-10px, 10px) rotate(240deg);
    opacity: 0.15;
  }
}

@keyframes card-float-2 {
  0%, 100% {
    transform: translate(0, 0) rotate(45deg) scale(1);
    opacity: 0.1;
  }
  50% {
    transform: translate(-15px, 15px) rotate(225deg) scale(1.2);
    opacity: 0.2;
  }
}

@keyframes card-float-3 {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
    opacity: 0.15;
  }
  25% {
    transform: translate(8px, -8px) rotate(90deg);
    opacity: 0.15;
  }
  50% {
    transform: translate(-8px, 8px) rotate(180deg);
    opacity: 0.2;
  }
  75% {
    transform: translate(8px, 8px) rotate(270deg);
    opacity: 0.15;
  }
}

/* Animated Border Gradient on Card Hover */
@keyframes border-gradient-flow {
  0% {
    background-position: 0% 50%, 0% 50%;
    box-shadow: 
      0 20px 40px red,
      0 0 0 2px red;
  }
  25% {
    box-shadow: 
      0 20px 40px yellow,
      0 0 0 2px yellow;
  }
  50% {
    background-position: 100% 50%, 100% 50%;
    box-shadow: 
      0 20px 40px red,
      0 0 0 2px red;
  }
  75% {
    box-shadow: 
      0 20px 40px rgba(14, 14, 138, 0.53),
      0 0 0 2px var(--accent-blue);
  }
  100% {
    background-position: 0% 50%, 0% 50%;
    box-shadow: 
      0 20px 40px rgba(148, 127, 11, 0.605),
      0 0 0 2px var(--primary-blue);
  }
}

@keyframes border-shadow-flow {
  0%, 100% {
    box-shadow: 
      0 20px 40px rgba(251, 191, 36, 0.9),  /* Premium gold */
      0 0 0 2px rgba(251, 191, 36, 1);      /* Premium gold */
  }
  25% {
    box-shadow: 
      0 20px 40px rgba(255, 215, 0, 0.8),   /* Brighter gold */
      0 0 0 2px rgba(255, 215, 0, 1);
  }
  50% {
    box-shadow: 
      0 20px 40px rgba(30, 58, 138, 0.45),  /* Deep blue shadow accent */
      0 0 0 2px rgba(251, 191, 36, 1);
  }
  75% {
    box-shadow: 
      0 20px 40px rgba(255, 255, 255, 0.6), /* White gleam */
      0 0 0 2px rgba(251, 191, 36, 0.9);
  }
}


@keyframes ripple {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  100% {
    transform: scale(4);
    opacity: 0;
  }
}

@keyframes bounce-in {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes rotate-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes icon-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes icon-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes icon-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.8; }
}

@keyframes border-glow {
  0%, 100% { box-shadow: 0 0 5px rgba(96, 165, 250, 0.5); }
  50% { box-shadow: 0 0 20px rgba(96, 165, 250, 0.8), 0 0 30px rgba(96, 165, 250, 0.6); }
}

@keyframes wave-animation {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes badge-entrance {
  0% {
    opacity: 0;
    transform: scale(0.5) rotate(-10deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

@keyframes progress-fill {
  from { width: 0%; }
  to { width: var(--progress-value, 100%); }
}

@keyframes text-shine {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

/* New Shine Animation - White Overlay Effect */
@keyframes shine {
  0% {
    background-position: 200% 0;
  }
  50% {
    background-position: -100% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Enhanced shine animation with more visibility */
@keyframes shine-bright {
  0% {
    background-position: 150% 0;
    opacity: 0.8;
  }
  25% {
    background-position: 0% 0;
    opacity: 1;
  }
  50% {
    background-position: -50% 0;
    opacity: 1;
  }
  75% {
    background-position: -100% 0;
    opacity: 0.8;
  }
  100% {
    background-position: 150% 0;
    opacity: 0.8;
  }
}

/* Disable shine animation when needed */
.shiny-text.disabled,
h1.disabled,
h2.disabled,
.hero-headline.disabled,
.hero-subtitle-shine.disabled {
  animation: none;
}

/* Utility Classes */
.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-pulse-glow {
  animation: pulse-glow 3s ease-in-out infinite;
}

.animate-slide-up {
  animation: slide-up 0.6s ease-out forwards;
}

.animate-fade-in {
  animation: fade-in 0.8s ease-out forwards;
}

/* Enhanced Button Styles */
.btn-primary {
  background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
  color: #ffffff !important;
  padding: 0.875rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  background-size: 200% 200%;
  animation: button-pulse 2s ease-in-out infinite;
  box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
  z-index: 1;
}

/* Ensure text and content are above animation layers */
.btn-primary > *,
.btn-primary span,
.btn-primary .icon {
  position: relative;
  z-index: 2;
  color: #ffffff !important;
}

.btn-primary::before {
  content: '';
  position: absolute;
  color: #ffffff !important;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s;
  z-index: 1;
  pointer-events: none;
}

.btn-primary:hover {
  color: #ffffff !important;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 30px rgba(30, 58, 138, 0.5), 0 0 25px rgba(96, 165, 250, 0.4);
  animation: none;
}

.btn-primary:hover > *,
.btn-primary:hover span,
.btn-primary:hover .icon {
  color: #ffffff !important;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:active {
  transform: translateY(-1px) scale(0.98);
  box-shadow: 0 5px 15px rgba(30, 58, 138, 0.4);
}

.btn-primary .icon {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 2;
  color: #ffffff !important;
}

.btn-primary:hover .icon {
  transform: translateX(6px) scale(1.1);
  color: #ffffff !important;
}

/* Button shine overlay */
.btn-primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 70%
  );
  animation: button-shine 3s linear infinite;
  pointer-events: none;
  z-index: 0;
}

.btn-secondary {
  background: transparent;
  color: var(--primary-blue) !important;
  padding: 0.875rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid var(--primary-blue);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(30, 58, 138, 0.1);
  z-index: 1;
}

/* Ensure text and content are above animation layers */
.btn-secondary > *,
.btn-secondary span {
  position: relative;
  z-index: 10;
  color: var(--primary-blue) !important;
  transition: color 0.4s ease;
}

/* EXCEPTION: Don't set color on white text buttons - let them be white by default */
.btn-secondary.text-white > *,
.btn-secondary.text-white span {
  color: #ffffff !important;
  z-index: 10;
}

.btn-secondary::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: var(--primary-blue);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
  z-index: 0;
  pointer-events: none;
}

/* Default hover: Blue background, white text - BUT exclude white background buttons */
.btn-secondary:hover:not(.text-white):not(.border-white) {
  background: var(--primary-blue);
  transform: translateY(-3px) scale(1.02);
  border-color: var(--primary-blue);
  box-shadow: 0 8px 25px rgba(30, 58, 138, 0.4);
}

.btn-secondary:hover:not(.text-white):not(.border-white) > *,
.btn-secondary:hover:not(.text-white):not(.border-white) span,
.btn-secondary:hover:not(.text-white):not(.border-white) * {
}

.btn-secondary:hover:not(.text-white):not(.border-white) .icon {
  transform: translateX(6px) scale(1.1);
}

/* CRITICAL: White background buttons must have black icons on hover */
.btn-secondary.text-white:hover .icon,
.btn-secondary.border-white:hover .icon {
  transform: translateX(6px) scale(1.1);
  color: #000000 !important;
}

.btn-secondary:hover::before {
  width: 300px;
  height: 300px;
}

/* CRITICAL: Ensure animation pseudo-elements don't interfere with text color */
.btn-secondary.text-white:hover::before,
.btn-secondary.border-white:hover::before {
  z-index: 0;
  pointer-events: none;
}

.btn-secondary.text-white:hover::after,
.btn-secondary.border-white:hover::after {
  z-index: 0;
  pointer-events: none;
}

.btn-secondary:active {
  transform: translateY(-1px) scale(0.98);
}

.btn-secondary .icon {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), color 0.4s ease;
  position: relative;
  z-index: 10;
  color: var(--primary-blue) !important;
}

/* White border button on dark background */
.btn-secondary.text-white {
  color: #ffffff !important;
  border-color: #ffffff;
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.1);
}

/* Default state: white text for white border buttons */
.btn-secondary.text-white > *,
.btn-secondary.text-white span,
.btn-secondary.text-white .icon {
  color: #ffffff !important;
}

.btn-secondary.text-white::before {
  background: #ffffff;
}

/* CRITICAL FIX: When white background buttons are hovered, ALL text must be BLACK */
/* This rule MUST override everything else - placed at end of button styles */
.btn-secondary.text-white:hover,
.btn-secondary.border-white:hover {
  border-color: #ffffff !important;
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
  transform: translateY(-3px) scale(1.02);
  color: #000000 !important;
  -webkit-text-fill-color: #000000 !important;
}

/* Override ALL child elements - highest priority */
.btn-secondary.text-white:hover *,
.btn-secondary.border-white:hover * {
  color: #000000 !important;
  -webkit-text-fill-color: #000000 !important;
  z-index: 10;
  position: relative;
}

/* Specific overrides for common elements */
.btn-secondary.text-white:hover > *,
.btn-secondary.border-white:hover > *,
.btn-secondary.text-white:hover span,
.btn-secondary.border-white:hover span,
.btn-secondary.text-white:hover p,
.btn-secondary.border-white:hover p,
.btn-secondary.text-white:hover div,
.btn-secondary.border-white:hover div {
  color: #000000 !important;
  -webkit-text-fill-color: #000000 !important;
}

/* SVG and icon overrides */
.btn-secondary.text-white:hover svg,
.btn-secondary.border-white:hover svg,
.btn-secondary.text-white:hover .icon,
.btn-secondary.border-white:hover .icon,
.btn-secondary.text-white:hover [class*="icon"],
.btn-secondary.border-white:hover [class*="icon"] {
  color: #000000 !important;
  fill: #000000 !important;
  stroke: #000000 !important;
  transform: translateX(6px) scale(1.1);
}

/* Enhanced Card Styles */
.card {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
  color: var(--text-primary) !important;
}

/* Animated Background Graphics for Cards */
.card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.08) 0%, transparent 70%);
  animation: card-glow 8s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(96, 165, 250, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(30, 58, 138, 0.05) 0%, transparent 50%),
    linear-gradient(135deg, transparent 0%, rgba(96, 165, 250, 0.03) 50%, transparent 100%);
  background-size: 200% 200%, 200% 200%, 100% 100%;
  animation: card-pattern 12s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
  border-radius: 1rem;
}

/* Animated geometric shapes */
.card .card-graphic-1,
.card .card-graphic-2,
.card .card-graphic-3 {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  opacity: 0.1;
}

.card .card-graphic-1 {
  top: 10%;
  right: 10%;
  width: 60px;
  height: 60px;
  border: 2px solid var(--accent-blue);
  border-radius: 50%;
  animation: card-float-1 6s ease-in-out infinite;
  opacity: 0.1 !important;
}

.card .card-graphic-2 {
  bottom: 15%;
  left: 15%;
  width: 40px;
  height: 40px;
  border: 2px solid rgb(237, 209, 209);
  transform: rotate(45deg);
  animation: card-float-2 8s ease-in-out infinite;
  opacity: 0.1 !important;
}

.card .card-graphic-3 {
  top: 50%;
  right: 5%;
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, rgba(255, 0, 0, 0.323), rgba(255, 255, 0, 0.619));
  border-radius: 4px;
  animation: card-float-3 7s ease-in-out infinite;
  opacity: 0.1 !important;

}

/* Ensure card content is above graphics */
.card > *:not(.card-graphic-1):not(.card-graphic-2):not(.card-graphic-3) {
  position: relative;
  z-index: 1;
}

.card h1,
.card h2,
.card h3,
.card h4,
.card h5,
.card h6 {
  color: var(--text-primary) !important;
}

.card p {
  color: var(--text-secondary) !important;
}

/* Shimmer effect on card */
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.1), transparent);
  transition: left 0.5s;
  z-index: 1;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-12px);
  border: 2px solid transparent;
  position: relative;
  background-clip: padding-box;
  animation: border-shadow-flow 3s linear infinite;
}

.card:hover::before {
  left: 100%;
  z-index: 1;
}

.card:hover .card-icon {
  transform: scale(1.1) rotate(5deg);
}

.card-icon {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Gradient Backgrounds */
.gradient-dark-blue {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-blue));
}

.gradient-blue-flow {
  background: linear-gradient(90deg, var(--primary-blue), var(--accent-blue));
}

.gradient-premium {
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue) 90%, rgba(251, 191, 36, 0.6));
}

/* Wave SVG Styles */
.wave-divider {
  width: 100%;
  height: 100px;
  fill: var(--soft-bg);
}

.wave-divider-dark {
  fill: var(--primary-dark);
}

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-blue), var(--electric-blue));
  z-index: 9999;
  transition: width 0.1s ease;
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: all 0.3s ease;
  text-decoration: none;
  animation: icon-pulse 2s ease-in-out infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
  animation: none;
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: white;
}

/* Glass Morphism */
.glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Stats Counter */
.stat-item {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.stat-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
}

@media (max-width: 768px) {
  .mobile-menu {
    display: block;
  }
  
  .desktop-menu {
    display: none;
  }
}

/* Parallax Effect */
.parallax {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Grid Pattern Background */
.grid-pattern {
  background-image: 
    linear-gradient(rgba(30, 58, 138, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 58, 138, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
}

/* Square Pattern Graphics */
.square-pattern-bg {
  position: absolute;
  inset: 0;
  opacity: 0.1;
  background-image: 
    repeating-linear-gradient(0deg, transparent, transparent 40px, rgba(96, 165, 250, 0.3) 40px, rgba(96, 165, 250, 0.3) 41px),
    repeating-linear-gradient(90deg, transparent, transparent 40px, rgba(96, 165, 250, 0.3) 40px, rgba(96, 165, 250, 0.3) 41px);
  background-size: 80px 80px;
}

/* Animated Square Graphics */
.animated-square {
  position: absolute;
  border: 2px solid;
  animation: float-slow 15s ease-in-out infinite;
  opacity: 0.2;
}

.animated-square-1 {
  width: 120px;
  height: 120px;
  border-color: rgba(96, 165, 250, 0.5);
  top: 20%;
  left: 15%;
  animation-delay: 0s;
}

.animated-square-2 {
  width: 80px;
  height: 80px;
  border-color: rgba(251, 191, 36, 0.4);
  top: 30%;
  right: 20%;
  animation-delay: 2s;
}

.animated-square-3 {
  width: 100px;
  height: 100px;
  border-color: rgba(96, 165, 250, 0.45);
  bottom: 25%;
  left: 25%;
  animation-delay: 4s;
}

.animated-square-4 {
  width: 60px;
  height: 60px;
  border-color: rgba(251, 191, 36, 0.35);
  top: 50%;
  right: 30%;
  animation-delay: 1s;
}

/* Loading Animation */
@keyframes shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}

.shimmer {
  animation: shimmer 2s infinite;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  background-size: 1000px 100%;
}

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}

/* Focus Styles for Accessibility */
*:focus {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
}

/* Skip to Content Link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary-blue);
  color: white;
  padding: 8px;
  text-decoration: none;
  z-index: 10000;
}

.skip-link:focus {
  top: 0;
}

/* Trust Badge Styles */
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(251, 191, 36, 0.05));
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--premium-gold);
  transition: all 0.3s ease;
  animation: badge-entrance 0.6s ease-out;
}

.trust-badge:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
  border-color: rgba(251, 191, 36, 0.5);
}

.trust-badge-icon {
  width: 20px;
  height: 20px;
  animation: icon-pulse 2s ease-in-out infinite;
}

/* Icon Animations */
.icon-animate-bounce:hover {
  animation: icon-bounce 0.6s ease-in-out;
}

.icon-animate-rotate:hover {
  animation: icon-rotate 0.6s ease-in-out;
}

.icon-animate-pulse {
  animation: icon-pulse 2s ease-in-out infinite;
}

/* Floating Elements */
.floating-element {
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
  backdrop-filter: blur(10px);
  pointer-events: none;
}

.floating-circle {
  animation: float-slow 8s ease-in-out infinite;
}

.floating-square {
  animation: float-slow 10s ease-in-out infinite;
  border-radius: 20%;
}

.floating-triangle {
  width: 0;
  height: 0;
  border-left: 30px solid transparent;
  border-right: 30px solid transparent;
  border-bottom: 50px solid var(--accent-blue);
  animation: float-slow 12s ease-in-out infinite;
  opacity: 0.15;
}

/* Text Reveal Animation */
.text-reveal {
  opacity: 0;
  animation: text-reveal 0.8s ease-out forwards;
}

.text-reveal-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
}

/* Enhanced Stats Counter */
.stats-counter {
  position: relative;
  display: inline-block;
}

.stats-counter::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.2), transparent);
  animation: progress-fill 2s ease-out forwards;
}

/* Client Logo Carousel */
.logo-carousel {
  display: flex;
  gap: 3rem;
  animation: scroll-logos 30s linear infinite;
  will-change: transform;
}

.logo-carousel:hover {
  animation-play-state: paused;
}

.logo-item {
  flex-shrink: 0;
  opacity: 0.6;
  filter: grayscale(100%);
  transition: all 0.3s ease;
}

.logo-item:hover {
  opacity: 1;
  filter: grayscale(0%);
  transform: scale(1.1);
}

@keyframes scroll-logos {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Enhanced Form Inputs */
.form-input {
  transition: all 0.3s ease;
  position: relative;
  color: var(--text-primary) !important;
  background-color: #ffffff !important;
}

.form-input::placeholder {
  color: var(--text-secondary);
  opacity: 0.6;
}

.form-input:focus {
  border-color: var(--accent-blue) !important;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
  transform: translateY(-2px);
  color: var(--text-primary) !important;
  background-color: #ffffff !important;
  outline: none;
}

.form-input:valid {
  border-color: #10b981 !important;
}

.form-input:invalid:not(:placeholder-shown) {
  border-color: #ef4444 !important;
  animation: shake 0.5s;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-10px); }
  75% { transform: translateX(10px); }
}

.form-label-float {
  position: absolute;
  left: 1rem;
  top: 1rem;
  transition: all 0.3s ease;
  pointer-events: none;
  color: var(--text-secondary) !important;
}

.form-input:focus + .form-label-float,
.form-input:not(:placeholder-shown) + .form-label-float {
  top: -0.5rem;
  left: 0.75rem;
  font-size: 0.75rem;
  background: white;
  padding: 0 0.25rem;
  color: var(--accent-blue) !important;
  font-weight: 600;
}

/* Testimonial Enhancements */
.testimonial-card {
  position: relative;
  padding: 2rem;
  background: white;
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  color: var(--text-primary) !important;
  overflow: hidden;
}

/* Animated graphics for testimonial cards */
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -1rem;
  left: 1rem;
  font-size: 6rem;
  color: rgba(96, 165, 250, 0.1);
  font-family: Georgia, serif;
  line-height: 1;
  z-index: 0;
  animation: card-glow 8s ease-in-out infinite;
}

.testimonial-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 80% 20%, rgba(96, 165, 250, 0.05) 0%, transparent 50%);
  animation: card-pattern 10s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

/* Ensure testimonial card content is above graphics */
.testimonial-card > * {
  position: relative;
  z-index: 1;
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  color: var(--text-primary) !important;
}

.testimonial-card p {
  color: var(--text-secondary) !important;
}

.testimonial-card h4 {
  color: var(--text-primary) !important;
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Wave Animation */
.wave-animated {
  animation: wave-animation 15s linear infinite;
}

/* Link and Text Color Fixes */
a.text-accent-blue {
  color: var(--accent-blue) !important;
}

a.text-accent-blue:hover {
  color: var(--primary-blue) !important;
}

a.text-primary-blue {
  color: #ffffff !important;
}

a.text-primary-blue:hover {
  color: #000000 !important;
}

a.text-gray-700 {
  color: #374151 !important;
}

a.text-gray-700:hover {
  color: var(--accent-blue) !important;
}

/* Ensure text visibility on all backgrounds */
.text-white {
  color: #ffffff !important;
}

.text-gray-200 {
  color: rgba(229, 231, 235, 1) !important;
}

.text-gray-700 {
  color: #374151 !important;
}

.text-text-primary {
  color: var(--text-primary) !important;
}

.text-text-secondary {
  color: var(--text-secondary) !important;
}

.text-accent-blue {
  color: var(--accent-blue) !important;
}

.text-primary-blue {
  color: var(--primary-blue) !important;
}

.text-premium-gold {
  color: var(--premium-gold) !important;
}

/* Hover states for all links */
a:hover {
  opacity: 1;
}

/* Navigation link hover states */
nav a.text-gray-700:hover {
  color: var(--accent-blue) !important;
  opacity: 1;
}

nav a.text-primary-blue:hover {
  color: var(--accent-blue) !important;
  opacity: 1;
}

/* Ensure all text in dark sections is visible */
.gradient-dark-blue,
.gradient-premium {
  color: #ffffff !important;
}

.gradient-dark-blue *:not(.btn-primary):not(.btn-secondary):not(a.btn-primary):not(a.btn-secondary),
.gradient-premium *:not(.btn-primary):not(.btn-secondary):not(a.btn-primary):not(a.btn-secondary) {
  color: #ffffff !important;
}

.gradient-dark-blue a:not(.btn-primary):not(.btn-secondary),
.gradient-premium a:not(.btn-primary):not(.btn-secondary) {
  color: #ffffff !important;
}

.gradient-dark-blue a:not(.btn-primary):not(.btn-secondary):hover,
.gradient-premium a:not(.btn-primary):not(.btn-secondary):hover {
  color: rgba(255, 255, 255, 0.9) !important;
  opacity: 1;
}

/* Service card links */
.card a.text-accent-blue {
  color: var(--accent-blue) !important;
  font-weight: 600;
}

.card a.text-accent-blue:hover {
  color: var(--primary-blue) !important;
  text-decoration: underline;
}

/* Stats section text */
.gradient-dark-blue .stat-item,
.gradient-dark-blue .stat-item * {
  color: #ffffff !important;
}

/* Guarantee section text */
.bg-soft-bg .card h3,
.bg-soft-bg .card p {
  color: var(--text-primary) !important;
}

.bg-soft-bg .card p.text-sm {
  color: var(--text-secondary) !important;
}

/* Logo carousel text */
.logo-item span {
  color: #374151 !important;
}

.logo-item:hover span {
  color: var(--primary-blue) !important;
}

/* Footer text colors */
footer {
  color: rgba(255, 255, 255, 0.9) !important;
}

footer h4 {
  color: #ffffff !important;
}

footer a {
  color: rgba(209, 213, 219, 1) !important; /* text-gray-300 */
}

footer a:hover {
  color: var(--accent-blue) !important;
  opacity: 1;
}

footer p,
footer li {
  color: rgba(209, 213, 219, 1) !important;
}

/* Why Choose Us section text */
.bg-white h3,
.bg-white p {
  color: var(--text-primary) !important;
}

.bg-white .text-text-secondary {
  color: var(--text-secondary) !important;
}

/* Stats section - ensure white text */
.gradient-dark-blue h2,
.gradient-dark-blue h3,
.gradient-dark-blue p,
.gradient-dark-blue span {
  color: #ffffff !important;
}

/* Trust badge text */
.trust-badge {
  color: var(--premium-gold) !important;
}

.trust-badge span {
  color: var(--premium-gold) !important;
}

/* Guarantee section */
.bg-soft-bg h2,
.bg-soft-bg h3 {
  color: var(--text-primary) !important;
}

.bg-soft-bg p {
  color: var(--text-secondary) !important;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

