@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

.gradient-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    backdrop-filter: blur(10px);
}

.glass-effect {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.carousel-section {
  position: relative;
  padding: 8rem 0;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.08) 50%, rgba(102, 126, 234, 0.05) 100%);
  border-top: 2px solid rgba(102, 126, 234, 0.1);
  border-bottom: 2px solid rgba(102, 126, 234, 0.1);
}

.carousel-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.carousel-container {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 3rem;
  z-index: 1;
}

.carousel-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
  min-width: 100%;
  padding: 0 1rem;
}

.plans-carousel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 4rem;
  height: 4rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
  backdrop-filter: blur(15px);
  border: 3px solid rgba(102, 126, 234, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
  box-shadow: 0 8px 32px rgba(102, 126, 234, 0.2);
}

.carousel-btn:hover {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.1));
  border-color: rgba(102, 126, 234, 0.6);
  transform: translateY(-50%) scale(1.15);
  box-shadow: 0 12px 40px rgba(102, 126, 234, 0.3);
}

.carousel-btn.prev {
  left: -2rem;
}

.carousel-btn.next {
  right: -2rem;
}

.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 3rem;
}

.indicator {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: rgba(102, 126, 234, 0.3);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
}

.indicator:hover {
  background: rgba(102, 126, 234, 0.5);
  transform: scale(1.2);
}

.indicator.active {
  background: linear-gradient(135deg, #667eea, #764ba2);
  width: 2.5rem;
  border-radius: 0.5rem;
  border-color: rgba(102, 126, 234, 0.3);
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
}

.plan-card {
  background: linear-gradient(145deg, #ffffff 0%, #f8f9ff 50%, #ffffff 100%);
  border: 3px solid transparent;
  background-clip: padding-box;
  position: relative;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border-radius: 2rem;
  padding: 2.5rem;
  cursor: pointer;
  box-shadow: 0 10px 40px rgba(102, 126, 234, 0.1);
}

.plan-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 2rem;
  padding: 3px;
  background: linear-gradient(135deg, #667eea, #764ba2, #667eea);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s;
}

.plan-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
  border-radius: 2rem;
  opacity: 0;
  transition: opacity 0.4s;
}

.plan-card:hover::before {
  opacity: 1;
}

.plan-card:hover::after {
  opacity: 1;
}

.plan-card:hover {
  transform: translateY(-16px) scale(1.05);
  box-shadow: 0 40px 80px rgba(102, 126, 234, 0.25);
  border-color: rgba(102, 126, 234, 0.2);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: white;
  border-radius: 2rem;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.modal-backdrop.active .modal-content {
  transform: translate(-50%, -50%) scale(1);
}

.text-gradient {
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.floating {
  animation: float 6s ease-in-out infinite;
}

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

.shimmer {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  background-size: 200% 100%;
  animation: shimmer 3s infinite;
}

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

.pulse-glow {
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(102, 126, 234, 0.3); }
  50% { box-shadow: 0 0 40px rgba(102, 126, 234, 0.6); }
}

.premium-badge {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  animation: pulse 2s infinite;
}

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

/* Hero Parallax Animations */
.hero-parallax {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.parallax-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  will-change: transform;
}

/* Floating animations with different delays */
.floating-delay-1 {
  animation: float 8s ease-in-out infinite;
  animation-delay: 0s;
}

.floating-delay-2 {
  animation: float 10s ease-in-out infinite;
  animation-delay: 2s;
}

.floating-delay-3 {
  animation: float 9s ease-in-out infinite;
  animation-delay: 1s;
}

.floating-delay-4 {
  animation: float 11s ease-in-out infinite;
  animation-delay: 3s;
}

.floating-delay-5 {
  animation: float 7s ease-in-out infinite;
  animation-delay: 4s;
}

/* Twinkle animations */
.twinkle {
  animation: twinkle 3s ease-in-out infinite;
}

.twinkle-delay {
  animation: twinkle 4s ease-in-out infinite;
  animation-delay: 2s;
}

@keyframes twinkle {
  0%, 100% { 
    opacity: 0.3; 
    transform: scale(1);
  }
  50% { 
    opacity: 0.8; 
    transform: scale(1.2);
  }
}

/* Pulse particles */
.pulse-particle {
  animation: pulse-particle 4s ease-in-out infinite;
}

.pulse-particle-delay {
  animation: pulse-particle 5s ease-in-out infinite;
  animation-delay: 2.5s;
}

@keyframes pulse-particle {
  0%, 100% { 
    opacity: 0.3;
    transform: scale(1);
    box-shadow: 0 0 10px rgba(147, 51, 234, 0.3);
  }
  50% { 
    opacity: 0.8;
    transform: scale(1.5);
    box-shadow: 0 0 20px rgba(147, 51, 234, 0.6);
  }
}
