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

/* ========================================
   Skeleton Loading with Shimmer
   ======================================== */

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

  100% {
    background-position: 200% 0;
  }
}

.skeleton {
  background: linear-gradient(90deg,
      #f1f5f9 0%,
      #e2e8f0 20%,
      #f8fafc 40%,
      #e2e8f0 60%,
      #f1f5f9 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: 8px;
}

.skeleton-text {
  height: 16px;
  border-radius: 4px;
}

.skeleton-title {
  height: 32px;
  border-radius: 6px;
}

.skeleton-heading {
  height: 48px;
  border-radius: 8px;
}

.skeleton-circle {
  border-radius: 50%;
}

.skeleton-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
}

/* Hero Section Entrance Animations */
@keyframes heroFadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroFadeInDown {
  0% {
    opacity: 0;
    transform: translateY(-30px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroFadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes heroScaleIn {
  0% {
    opacity: 0;
    transform: scale(0.95);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes heroDotsFadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

/* Base state - hidden before animation */
.hero-animate {
  opacity: 0;
}

/* Staggered animation delays for hero elements */
.hero-logo {
  animation: heroFadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 0.1s;
}

.hero-title {
  animation: heroFadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 0.25s;
}

.hero-subtitle {
  animation: heroFadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 0.4s;
}

.hero-mode-switcher {
  animation: heroFadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 0.55s;
}

.hero-input {
  animation: heroScaleIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 0.7s;
}

.hero-scroll-button {
  animation: heroFadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 0.9s;
}

/* Validate Hero specific animations - fade in from top */
.validate-hero-title {
  animation: heroFadeInDown 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 0.25s;
}

.validate-hero-subtitle {
  animation: heroFadeInDown 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 0.4s;
}

.validate-hero-mode-switcher {
  animation: heroFadeInDown 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 0.55s;
}

.validate-hero-input {
  animation: heroScaleIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 0.7s;
}

.validate-hero-scroll-button {
  animation: heroFadeInDown 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 0.9s;
}

.hero-dots {
  animation: heroDotsFadeIn 1.5s ease-out forwards;
  animation-delay: 0.3s;
}

/* ========================================
   Idea of the Day Section Animations
   ======================================== */

/* Scroll-triggered fade-in animation */
@keyframes ideaFadeInUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ideaScaleIn {
  0% {
    opacity: 0;
    transform: scale(0.96);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

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

  100% {
    background-position: 200% center;
  }
}

@keyframes subtlePulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(0, 102, 255, 0);
  }

  50% {
    box-shadow: 0 0 20px 2px rgba(0, 102, 255, 0.1);
  }
}

/* Base animation class for idea sections */
.idea-section {
  opacity: 0;
  animation: ideaFadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Staggered delays for idea sections */
.idea-section-1 {
  animation-delay: 0.1s;
}

.idea-section-2 {
  animation-delay: 0.2s;
}

.idea-section-3 {
  animation-delay: 0.3s;
}

.idea-section-4 {
  animation-delay: 0.4s;
}

.idea-section-5 {
  animation-delay: 0.5s;
}

.idea-section-6 {
  animation-delay: 0.6s;
}

/* Enhanced card hover effects */
.idea-card {
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.idea-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 102, 255, 0.08),
    0 8px 16px rgba(15, 23, 42, 0.06);
}

/* Tag hover animation */
.idea-tag {
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: default;
}

.idea-tag:hover {
  transform: translateY(-2px) scale(1.02);
  background-color: rgba(0, 102, 255, 0.1);
  color: rgb(0, 102, 255);
  border-color: rgba(0, 102, 255, 0.2);
}

/* Interactive element hover glow */
.idea-interactive {
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
}

.idea-interactive:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 102, 255, 0.12);
}

.idea-interactive::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s ease;
  box-shadow: 0 0 20px 4px rgba(0, 102, 255, 0.15);
  pointer-events: none;
}

.idea-interactive:hover::after {
  opacity: 1;
}

/* Subtle pulse animation for CTA elements */
.idea-cta {
  animation: subtlePulse 3s ease-in-out infinite;
}

.idea-cta:hover {
  animation: none;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 24px rgba(0, 102, 255, 0.2);
}

/* Icon hover rotation */
.idea-icon {
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.idea-icon:hover {
  transform: rotate(5deg) scale(1.1);
}

/* Stats/metrics hover effect */
.idea-stat {
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.idea-stat:hover {
  transform: scale(1.02);
  background-color: rgba(0, 102, 255, 0.05);
}