/* ============================================
   Sugar Daddy Kolkata - Animations Stylesheet
   ============================================ */

/* ---- Fade In Up (Scroll Reveal) ---- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  opacity: 0;
  animation: fadeInUp 0.7s ease forwards;
}

.fade-in-up.visible {
  opacity: 1;
}

/* ---- Fade In ---- */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

/* ---- Fade In Left ---- */
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.fade-in-left {
  opacity: 0;
  animation: fadeInLeft 0.7s ease forwards;
}

.fade-in-left.visible {
  opacity: 1;
}

/* ---- Fade In Right ---- */
@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.fade-in-right {
  opacity: 0;
  animation: fadeInRight 0.7s ease forwards;
}

.fade-in-right.visible {
  opacity: 1;
}

/* ---- Scale In ---- */
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.scale-in {
  opacity: 0;
  animation: scaleIn 0.6s ease forwards;
}

.scale-in.visible {
  opacity: 1;
}

/* ---- Stagger Delays ---- */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }
.stagger-6 { animation-delay: 0.6s; }

/* ---- Hero Entrance ---- */
@keyframes heroEntrance {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-badge {
  animation: heroEntrance 0.6s ease forwards;
}

.hero h1 {
  opacity: 0;
  animation: heroEntrance 0.7s ease 0.2s forwards;
}

.hero-subtitle {
  opacity: 0;
  animation: heroEntrance 0.7s ease 0.4s forwards;
}

.hero-cta {
  opacity: 0;
  animation: heroEntrance 0.7s ease 0.6s forwards;
}

.hero-image {
  opacity: 0;
  animation: scaleIn 0.8s ease 0.4s forwards;
}

.hero-stats {
  opacity: 0;
  animation: heroEntrance 0.7s ease 0.8s forwards;
}

/* ---- Float Animation ---- */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

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

/* ---- Pulse Glow ---- */
@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(184, 134, 11, 0.2);
  }
  50% {
    box-shadow: 0 0 40px rgba(184, 134, 11, 0.4);
  }
}

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

/* ---- Shimmer Effect ---- */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.shimmer {
  background: linear-gradient(90deg, transparent 0%, rgba(184, 134, 11, 0.1) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

/* ---- Rotate ---- */
@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.rotate {
  animation: rotate 20s linear infinite;
}

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

.bounce {
  animation: bounce 2s ease-in-out infinite;
}

/* ---- Counter Animation Helper ---- */
.counter-value {
  font-variant-numeric: tabular-nums;
}

/* ---- Smooth Section Transitions ---- */
.section {
  transition: opacity 0.3s ease;
}

/* ---- Loading Skeleton ---- */
@keyframes skeleton {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.skeleton {
  background: linear-gradient(90deg, var(--bg-surface) 25%, var(--bg-elevated) 50%, var(--bg-surface) 75%);
  background-size: 200% 100%;
  animation: skeleton 1.5s ease infinite;
  border-radius: var(--radius-md);
}

/* ---- Card Hover Effects ---- */
.profile-card,
.blog-card,
.feature-card,
.story-card,
.guide-card {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.3s ease;
}

/* ---- Button Hover Enhancements ---- */
.btn {
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.5s ease, height 0.5s ease;
}

.btn:hover::after {
  width: 300px;
  height: 300px;
}

/* ---- Scroll Indicator ---- */
@keyframes scrollBounce {
  0%, 100% {
    transform: translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateY(10px);
    opacity: 0.5;
  }
}

.scroll-indicator {
  animation: scrollBounce 2s ease-in-out infinite;
}

/* ---- Gold Border Glow ---- */
@keyframes borderGlow {
  0%, 100% {
    border-color: rgba(184, 134, 11, 0.3);
  }
  50% {
    border-color: rgba(184, 134, 11, 0.8);
  }
}

.border-glow {
  animation: borderGlow 2s ease-in-out infinite;
}

/* ---- Image Hover Zoom ---- */
.profile-image img,
.blog-image img,
.content-image img {
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Link Underline Effect ---- */
.nav-desktop a {
  position: relative;
}

.nav-desktop a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.nav-desktop a:hover::after,
.nav-desktop a.active::after {
  transform: scaleX(1);
}

/* ---- Parallax Placeholder ---- */
.parallax {
  will-change: transform;
}

[data-reveal]:not(.fade-in-up):not(.fade-in-left):not(.fade-in-right):not(.scale-in):not(.fade-in) {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}

[data-reveal].visible:not(.fade-in-up):not(.fade-in-left):not(.fade-in-right):not(.scale-in):not(.fade-in) {
  opacity: 1;
  transform: none;
}

/* ---- Reduce Motion ---- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
