/* ==========================================================================
   AGENTEPRO - ULTRA PREMIUM STYLESHEET & ADVANCED ANIMATIONS
   ROAS SEEKER Design System
   ========================================================================== */

:root {
  --brand-blue: #0066FF;
  --brand-blue-dark: #0052CC;
  --brand-cyan: #00D2FF;
  --brand-purple: #7928CA;
  --brand-gold: #F59E0B;
  --brand-gold-glow: rgba(245, 158, 11, 0.4);
  --brand-whatsapp: #25D366;
  --brand-messenger: #0084FF;
  --brand-instagram-start: #E1306C;
  --brand-instagram-end: #F77737;
  
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(255, 255, 255, 0.8);
  --glass-shadow: 0 20px 40px -15px rgba(0, 102, 255, 0.07), 0 0 20px 0 rgba(0, 210, 255, 0.04);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Dynamic Mesh Background */
.mesh-gradient-bg {
  background-color: #f8fafc;
  background-image: 
    radial-gradient(at 0% 0%, rgba(0, 210, 255, 0.12) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(0, 102, 255, 0.14) 0px, transparent 50%),
    radial-gradient(at 50% 50%, rgba(121, 40, 202, 0.06) 0px, transparent 50%),
    radial-gradient(at 0% 100%, rgba(37, 211, 102, 0.08) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(0, 102, 255, 0.12) 0px, transparent 50%);
  background-attachment: fixed;
}

/* Grid Pattern Overlay */
.bg-grid-pattern {
  background-size: 32px 32px;
  background-image: 
    linear-gradient(to right, rgba(0, 102, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 102, 255, 0.04) 1px, transparent 1px);
}

/* Ultra Glassmorphism */
.glass-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 36px -10px rgba(15, 23, 42, 0.06), 0 0 1px 1px rgba(255, 255, 255, 0.8) inset;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card-dark {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
}

.glass-pill {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 10px 25px -5px rgba(0, 102, 255, 0.08);
}

/* Shimmer Light Effect (Sliding Shine) */
.btn-shimmer {
  position: relative;
  overflow: hidden;
}

.btn-shimmer::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 50%;
  height: 200%;
  background: linear-gradient(
    60deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transform: rotate(25deg);
  animation: shimmerSweep 3.5s infinite cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

@keyframes shimmerSweep {
  0% {
    left: -70%;
  }
  30%, 100% {
    left: 140%;
  }
}

/* Floating Levitating Keyframes */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes floatSlow {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(2deg);
  }
}

@keyframes floatReverse {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(8px) rotate(-2deg);
  }
}

@keyframes pulseGlow {
  0%, 100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 0.85;
    transform: scale(1.06);
  }
}

@keyframes borderRotate {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Applied Animation Classes */
.animate-float {
  animation: float 4s ease-in-out infinite;
}

.animate-float-slow {
  animation: floatSlow 6s ease-in-out infinite;
}

.animate-float-reverse {
  animation: floatReverse 5s ease-in-out infinite;
}

.animate-pulse-glow {
  animation: pulseGlow 4s ease-in-out infinite;
}

/* Neon Glows */
.glow-blue {
  box-shadow: 0 0 25px rgba(0, 102, 255, 0.45);
}

.glow-blue-lg {
  box-shadow: 0 10px 40px rgba(0, 102, 255, 0.4), 0 0 15px rgba(0, 210, 255, 0.3);
}

.glow-gold {
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.4), 0 0 12px rgba(251, 191, 36, 0.3);
}

.glow-whatsapp {
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.35);
}

.glow-instagram {
  box-shadow: 0 8px 25px rgba(225, 48, 108, 0.35);
}

/* Glowing Border for Featured Pricing Card */
.border-gradient-glow {
  position: relative;
  border-radius: 1.5rem;
  background: white;
}

.border-gradient-glow::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 1.6rem;
  background: linear-gradient(135deg, #0066FF, #00D2FF, #F59E0B, #7928CA, #0066FF);
  background-size: 300% 300%;
  animation: borderRotate 6s linear infinite;
  z-index: -1;
  opacity: 0.9;
  filter: blur(2px);
}

/* 3D Tilt Card Base */
.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out, box-shadow 0.3s ease;
  will-change: transform;
}

.tilt-inner {
  transform: translateZ(30px);
}

/* Live Chat Simulator Typing Dots */
.typing-dot {
  width: 6px;
  height: 6px;
  background-color: #64748b;
  border-radius: 50%;
  display: inline-block;
  animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) {
  animation-delay: -0.32s;
}
.typing-dot:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes typingBounce {
  0%, 80%, 100% {
    transform: scale(0);
  }
  40% {
    transform: scale(1);
  }
}

/* Text Gradients */
.text-gradient-brand {
  background: linear-gradient(135deg, #0052CC 0%, #0066FF 40%, #00D2FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.text-gradient-ai {
  background: linear-gradient(135deg, #0066FF 0%, #7928CA 60%, #FF0080 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Custom Checkmark Icon Animation */
.check-bounce {
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.group:hover .check-bounce {
  transform: scale(1.2);
}

/* FAQ Accordion Transition */
.faq-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  opacity: 0;
}

.faq-content.open {
  grid-template-rows: 1fr;
  opacity: 1;
}

.faq-content > div {
  overflow: hidden;
}

/* Modal Transition */
.modal-backdrop {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  transform: scale(0.95) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.active .modal-container {
  transform: scale(1) translateY(0);
}

/* Online Pulse Beacon */
.online-beacon {
  position: relative;
}
.online-beacon::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 9999px;
  background-color: #22c55e;
  opacity: 0.75;
  animation: beaconPing 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes beaconPing {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  75%, 100% {
    transform: scale(2.2);
    opacity: 0;
  }
}
