/* Landing Page Animations & Custom Styles */

/* Fade-in animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

/* Pulse animation for badge */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

.dark ::-webkit-scrollbar-track {
  background: #0f172a;
}

.light ::-webkit-scrollbar-track,
:not(.dark) ::-webkit-scrollbar-track {
  background: #f1f5f9;
}

.dark ::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 5px;
}

.light ::-webkit-scrollbar-thumb,
:not(.dark) ::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 5px;
}

.dark ::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

.light ::-webkit-scrollbar-thumb:hover,
:not(.dark) ::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Gradient blob animations */
@keyframes blob {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -50px) scale(1.1);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }
}

.animate-blob {
  animation: blob 7s infinite;
}

.animation-delay-2000 {
  animation-delay: 2s;
}

.animation-delay-4000 {
  animation-delay: 4s;
}

/* Hover effects */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Glow effect */
.glow-cyan {
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.5);
  transition: box-shadow 0.3s ease;
}

.glow-cyan:hover {
  box-shadow: 0 0 25px rgba(6, 182, 212, 0.6);
}

/* Mobile menu slide */
@keyframes slideDown {
  from {
    opacity: 0;
    max-height: 0;
  }
  to {
    opacity: 1;
    max-height: 500px;
  }
}

.mobile-menu-enter {
  animation: slideDown 0.3s ease-out forwards;
}

/* Intersection observer fade-in */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Feature card hover */
.feature-card {
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(6, 182, 212, 0.3);
  box-shadow: 0 10px 15px -3px rgba(6, 182, 212, 0.1);
}

.feature-card:hover .feature-icon {
  background-color: rgba(6, 182, 212, 0.1);
}

/* Button transitions */
.btn-primary {
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: scale(1.02);
}

.btn-primary:active {
  transform: scale(0.98);
}

/* Arrow slide animation */
.arrow-slide {
  transition: transform 0.3s ease;
}

.group:hover .arrow-slide {
  transform: translateX(4px);
}

/* Backdrop blur support */
@supports (backdrop-filter: blur(10px)) {
  .backdrop-blur-md {
    backdrop-filter: blur(12px);
  }
}

/* Navbar scroll states */
#navbar.scrolled {
  backdrop-filter: blur(16px);
}

.dark #navbar.scrolled {
  background: rgb(15, 23, 42) !important;
  border-bottom-color: rgb(30, 41, 59) !important;
}

.light #navbar.scrolled,
:not(.dark) #navbar.scrolled {
  background: rgb(255, 255, 255) !important;
  border-bottom-color: rgb(226, 232, 240) !important;
}
