/* Custom styles for the Aurora background and glassmorphism effect */
.aurora-background {
  background: linear-gradient(-45deg, #021907, #0A1406, #0e261d, #144101);
  background-size: 400% 400%;
}

.glass-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.glass-card-solid {
  background: rgba(10, 20, 15, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.section-highlight-bg {
  background-image: radial-gradient(at 20% 20%, rgba(144, 238, 144, 0.05) 0px, transparent 50%), 
                    radial-gradient(at 80% 80%, rgba(20, 65, 1, 0.15) 0px, transparent 50%);
}

/* Enhanced Slider Styles for Calculator */
.slider-enhanced, input[type="range"] {
  position: relative;
  background: rgba(55, 65, 81, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
}

input[type="range"]:hover {
  background: rgba(75, 85, 99, 0.7) !important;
  border-color: rgba(221, 192, 64, 0.2);
}

input[type="range"]:focus {
  outline: none;
  border-color: rgba(221, 192, 64, 0.3);
}

input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 18px;
  height: 18px;
  background: #ddc040;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.05);
  background: #f0d147;
}

input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: #ddc040;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
}

/* Enhanced Toggle Switch */
#compound-switch + div {
  background: rgba(75, 85, 99, 0.6) !important;
  border-color: rgba(156, 163, 175, 0.4) !important;
}

#compound-switch:checked + div {
  background: #ddc040 !important;
  border-color: rgba(221, 192, 64, 0.4) !important;
}

#compound-switch:checked + div .dot {
  transform: translateX(28px);
  background: rgba(7, 25, 11, 0.9) !important;
}

#compound-switch + div .dot {
  transition: all 0.3s ease;
}

#compound-switch + div:hover {
  background: rgba(75, 85, 99, 0.7) !important;
  border-color: rgba(221, 192, 64, 0.2) !important;
}

#compound-switch:checked + div:hover {
  background: #f0d147 !important;
  border-color: rgba(221, 192, 64, 0.6) !important;
}

/* Calculator Frame Enhancement */
.calculator-frame {
  transition: all 0.2s ease;
}

.calculator-frame:hover {
  border-color: rgba(221, 192, 64, 0.3);
  background: rgba(7, 25, 11, 0.85) !important;
}

/* Result Display Enhancement */
#percentage-gain {
  transition: all 0.3s ease;
}

/* Mobile Responsive Enhancements for Calculator */
@media (max-width: 768px) {
  .calculator-frame {
    padding: 1rem !important;
  }
  
  .calculator-frame .grid {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }
  
  input[type="range"]::-webkit-slider-thumb {
    width: 16px;
    height: 16px;
  }
}

/* Focus States for Accessibility */
input[type="range"]:focus-visible {
  outline: 2px solid rgba(221, 192, 64, 0.6);
  outline-offset: 2px;
}

#compound-switch:focus-visible + div {
  outline: 2px solid rgba(221, 192, 64, 0.6);
  outline-offset: 2px;
}

/* Smooth Transitions for Value Changes */
#slot-value, #period-value, #roi-value,
#initial-capital, #total-profit, #final-amount {
  transition: all 0.2s ease;
}

/* Splide.js custom styles */
.splide__pagination__page {
  background: rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.splide__pagination__page.is-active {
  background: #ddc040;
  transform: scale(1.2);
}

#testimonial-slider .splide__slide {
  opacity: 0.4;
  transform: scale(0.9);
  transition: opacity 0.4s, transform 0.4s;
}

#testimonial-slider .splide__slide.is-active {
  opacity: 1;
  transform: scale(1);
}

/* Modern frame for calculator on desktop */
@media (min-width: 1024px) {
  .calculator-frame {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 3px dashed rgba(221, 192, 64, 0.5);
    border-radius: 1.5rem;
    box-shadow: 0 0 40px rgba(221, 192, 64, 0.15);
    padding: 2rem;
    transition: all 0.3s ease;
  }
  
  .calculator-frame:hover {
    border-color: rgba(221, 192, 64, 0.8);
    box-shadow: 0 0 60px rgba(221, 192, 64, 0.25);
  }
}

#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1;
}

/* Loading states */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Smooth button transitions */
.btn-primary {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Improved focus states for accessibility */
*:focus {
  outline: 2px solid #ddc040;
  outline-offset: 2px;
}

/* Scroll behavior improvements */
html {
  scroll-behavior: smooth;
}

/* Image optimization */
img {
  max-width: 100%;
  height: auto;
}

.lazy-image {
  opacity: 0;
  transition: opacity 0.3s;
}

.lazy-image.loaded {
  opacity: 1;
}

/* Social Proof Counters */
.counter {
  animation: fadeInUp 0.8s ease-out;
}

.availability-alert {
  animation: pulse-glow 2s ease-in-out infinite alternate;
}

@keyframes pulse-glow {
  0% { box-shadow: 0 0 5px rgba(255, 165, 0, 0.2); }
  100% { box-shadow: 0 0 20px rgba(255, 165, 0, 0.4); }
}

/* FAQ Search Styles */
#faq-search {
  transition: all 0.3s ease;
}

#faq-search:focus {
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 20px rgba(221, 192, 64, 0.3);
}

.faq-item {
  transition: all 0.3s ease;
}

.faq-item.hidden-by-search {
  opacity: 0.3;
  transform: scale(0.98);
  pointer-events: none;
}

.faq-item.highlighted {
  background: rgba(221, 192, 64, 0.1);
  border-color: rgba(221, 192, 64, 0.3);
  box-shadow: 0 0 15px rgba(221, 192, 64, 0.2);
}

.faq-search-highlight {
  background: rgba(221, 192, 64, 0.3);
  padding: 1px 3px;
  border-radius: 3px;
  font-weight: 600;
}

/* No Results Message */
.no-results-message {
  text-align: center;
  padding: 2rem;
  color: #9CA3AF;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  margin: 1rem 0;
}

.no-results-message i {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
  opacity: 0.5;
}

/* Search Results Count */
#search-results-count {
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

/* Counter Animation */
@keyframes countUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.counter-animate {
  animation: countUp 0.8s ease-out;
}

/* Floating WhatsApp Button */
#whatsapp-float {
  animation: float-bounce 3s ease-in-out infinite;
}

@keyframes float-bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

#whatsapp-float .group:hover {
  animation-play-state: paused;
}

/* Mobile responsive for floating button */
@media (max-width: 768px) {
  #whatsapp-float {
    bottom: 1rem;
    right: 1rem;
  }
  
  #whatsapp-float a {
    width: 3.5rem;
    height: 3.5rem;
  }
  
  #whatsapp-float i {
    font-size: 1.5rem;
  }
}

/* Modern Hero Floating Icons Animations */
.modern-glass-card {
  background: rgba(10, 20, 15, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(221, 192, 64, 0.2);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.modern-glass-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(221, 192, 64, 0.1), transparent);
  transform: rotate(-45deg);
  transition: all 0.6s ease;
  opacity: 0;
}

.modern-glass-card:hover::before {
  opacity: 1;
  animation: shimmer 0.8s ease;
}

@keyframes shimmer {
  0% { transform: rotate(-45deg) translateX(-100%); }
  100% { transform: rotate(-45deg) translateX(100%); }
}

/* Advanced Floating Animations */
@keyframes float-1 {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  25% {
    transform: translateY(-15px) rotate(2deg);
  }
  50% {
    transform: translateY(-8px) rotate(0deg);
  }
  75% {
    transform: translateY(-12px) rotate(-1deg);
  }
}

@keyframes float-2 {
  0%, 100% {
    transform: translateY(0px) rotate(0deg) scale(1);
  }
  33% {
    transform: translateY(-12px) rotate(-2deg) scale(1.05);
  }
  66% {
    transform: translateY(-18px) rotate(1deg) scale(0.98);
  }
}

@keyframes float-3 {
  0%, 100% {
    transform: translateY(0px) translateX(0px);
  }
  20% {
    transform: translateY(-10px) translateX(3px);
  }
  40% {
    transform: translateY(-5px) translateX(-2px);
  }
  60% {
    transform: translateY(-15px) translateX(1px);
  }
  80% {
    transform: translateY(-8px) translateX(-1px);
  }
}

@keyframes float-4 {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  30% {
    transform: translateY(-20px) rotate(3deg);
  }
  60% {
    transform: translateY(-10px) rotate(-2deg);
  }
}

@keyframes float-5 {
  0%, 100% {
    transform: translateY(0px) scale(1);
  }
  25% {
    transform: translateY(-8px) scale(1.1);
  }
  50% {
    transform: translateY(-16px) scale(0.95);
  }
  75% {
    transform: translateY(-5px) scale(1.05);
  }
}

@keyframes float-6 {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  40% {
    transform: translateY(-14px) rotate(-3deg);
  }
  80% {
    transform: translateY(-7px) rotate(2deg);
  }
}

@keyframes float-7 {
  0%, 100% {
    transform: translateY(0px) translateX(0px) rotate(0deg);
  }
  35% {
    transform: translateY(-18px) translateX(2px) rotate(1deg);
  }
  70% {
    transform: translateY(-6px) translateX(-1px) rotate(-1deg);
  }
}

.animate-float-1 {
  animation: float-1 8s ease-in-out infinite;
}

.animate-float-2 {
  animation: float-2 10s ease-in-out infinite 1s;
}

.animate-float-3 {
  animation: float-3 7s ease-in-out infinite 2s;
}

.animate-float-4 {
  animation: float-4 9s ease-in-out infinite 0.5s;
}

.animate-float-5 {
  animation: float-5 6s ease-in-out infinite 1.5s;
}

.animate-float-6 {
  animation: float-6 8.5s ease-in-out infinite 3s;
}

.animate-float-7 {
  animation: float-7 7.5s ease-in-out infinite 2.5s;
}

/* Icon Pulse Animation */
@keyframes icon-pulse {
  0%, 100% {
    transform: scale(1);
    filter: brightness(1);
  }
  50% {
    transform: scale(1.1);
    filter: brightness(1.2);
  }
}

.icon-pulse {
  animation: icon-pulse 3s ease-in-out infinite;
}

/* Hover Effects for Icons */
.icon-hover-effect:hover .modern-glass-card {
  transform: scale(1.15) translateY(-5px);
  box-shadow: 0 20px 40px rgba(221, 192, 64, 0.3);
  border-color: rgba(221, 192, 64, 0.6);
}

.icon-hover-effect:hover .icon-pulse {
  animation-play-state: paused;
  transform: scale(1.2);
  filter: brightness(1.3);
}

/* Hero Image Animation */
@keyframes hero-image-float {
  0%, 100% {
    transform: translateY(0px) scale(1);
  }
  50% {
    transform: translateY(-10px) scale(1.02);
  }
}

.hero-image-animate {
  animation: hero-image-float 6s ease-in-out infinite;
}

/* Responsive Adjustments for Mobile */
@media (max-width: 768px) {
  .modern-glass-card {
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
  }
  
  .animate-float-1,
  .animate-float-2,
  .animate-float-3,
  .animate-float-4,
  .animate-float-5,
  .animate-float-6,
  .animate-float-7 {
    animation-duration: 4s;
  }
  
  .icon-hover-effect:hover .modern-glass-card {
    transform: scale(1.1) translateY(-3px);
  }
}

/* Advanced Background Particles */
.bg-particle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(221, 192, 64, 0.1) 0%, transparent 70%);
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  pointer-events: none;
}

.particle-1 {
  width: 60px;
  height: 60px;
  top: 10%;
  left: 20%;
  animation: particle-float-1 12s infinite;
}

.particle-2 {
  width: 40px;
  height: 40px;
  top: 60%;
  right: 25%;
  animation: particle-float-2 15s infinite 2s;
}

.particle-3 {
  width: 80px;
  height: 80px;
  bottom: 20%;
  left: 15%;
  animation: particle-float-3 18s infinite 4s;
}

.particle-4 {
  width: 30px;
  height: 30px;
  top: 30%;
  right: 15%;
  animation: particle-float-4 10s infinite 1s;
}

.particle-5 {
  width: 50px;
  height: 50px;
  bottom: 40%;
  right: 40%;
  animation: particle-float-5 14s infinite 3s;
}

@keyframes particle-float-1 {
  0%, 100% {
    transform: translateY(0px) translateX(0px) scale(1);
    opacity: 0.3;
  }
  25% {
    transform: translateY(-30px) translateX(15px) scale(1.2);
    opacity: 0.6;
  }
  50% {
    transform: translateY(-10px) translateX(-10px) scale(0.8);
    opacity: 0.4;
  }
  75% {
    transform: translateY(-40px) translateX(20px) scale(1.1);
    opacity: 0.7;
  }
}

@keyframes particle-float-2 {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0.2;
  }
  33% {
    transform: translateY(-25px) rotate(120deg);
    opacity: 0.5;
  }
  66% {
    transform: translateY(-50px) rotate(240deg);
    opacity: 0.3;
  }
}

@keyframes particle-float-3 {
  0%, 100% {
    transform: translateX(0px) scale(1);
    opacity: 0.4;
  }
  50% {
    transform: translateX(30px) scale(1.3);
    opacity: 0.8;
  }
}

@keyframes particle-float-4 {
  0%, 100% {
    transform: translateY(0px) translateX(0px);
    opacity: 0.3;
  }
  50% {
    transform: translateY(-20px) translateX(-15px);
    opacity: 0.6;
  }
}

@keyframes particle-float-5 {
  0%, 100% {
    transform: scale(1) rotate(0deg);
    opacity: 0.3;
  }
  25% {
    transform: scale(1.4) rotate(90deg);
    opacity: 0.7;
  }
  50% {
    transform: scale(0.9) rotate(180deg);
    opacity: 0.4;
  }
  75% {
    transform: scale(1.2) rotate(270deg);
    opacity: 0.6;
  }
}

/* Connection Lines Animation */
.connection-line {
  stroke-dasharray: 10 20;
  animation: flow 8s linear infinite;
}

.connection-line-1 {
  animation-delay: 0s;
}

.connection-line-2 {
  animation-delay: 2s;
}

.connection-line-3 {
  animation-delay: 4s;
}

@keyframes flow {
  0% {
    stroke-dashoffset: 0;
    opacity: 0.2;
  }
  50% {
    opacity: 0.8;
  }
  100% {
    stroke-dashoffset: -300;
    opacity: 0.2;
  }
}

/* Gradient Text Animation */
@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.animate-gradient {
  background-size: 200% 200%;
  animation: gradient 4s ease infinite;
}

/* Enhanced Glow Effects */
.modern-glass-card:hover {
  box-shadow: 
    0 0 30px rgba(221, 192, 64, 0.3),
    0 0 60px rgba(221, 192, 64, 0.2),
    inset 0 0 20px rgba(255, 255, 255, 0.1);
}

/* Performance Optimization for Animations */
.animate-float-1,
.animate-float-2,
.animate-float-3,
.animate-float-4,
.animate-float-5,
.animate-float-6,
.animate-float-7,
.hero-image-animate,
.bg-particle {
  will-change: transform;
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

/* Reduce Motion for Accessibility */
@media (prefers-reduced-motion: reduce) {
  .animate-float-1,
  .animate-float-2,
  .animate-float-3,
  .animate-float-4,
  .animate-float-5,
  .animate-float-6,
  .animate-float-7,
  .hero-image-animate,
  .bg-particle,
  .connection-line,
  .icon-pulse {
    animation: none;
  }
  
  .modern-glass-card:hover {
    transform: scale(1.05);
  }
}