/* ============================================================
   Dostie — Duolingo-style animations
   Bouncy, playful, springy
   ============================================================ */

/* ---------- Keyframes ---------- */
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}
@keyframes float-y-slow {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-22px) rotate(-2deg); }
}
@keyframes float-y-fast {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
@keyframes bob {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-8px) scale(1.04); }
}
@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  15%      { transform: rotate(-6deg); }
  30%      { transform: rotate(5deg); }
  45%      { transform: rotate(-4deg); }
  60%      { transform: rotate(3deg); }
  75%      { transform: rotate(-2deg); }
}
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes pulse-glow {
  0%, 100% {
    box-shadow:
      0 12px 30px rgba(0,0,0,0.5),
      0 0 0 0 rgba(236, 72, 153, 0.5);
  }
  50% {
    box-shadow:
      0 12px 30px rgba(0,0,0,0.5),
      0 0 0 20px rgba(236, 72, 153, 0);
  }
}
@keyframes pulse-ring {
  0%   { transform: translate(-50%, -50%) scale(0.6); opacity: 0.8; }
  100% { transform: translate(-50%, -50%) scale(1.6); opacity: 0; }
}
@keyframes pop-in {
  0%   { transform: translateY(30px) scale(0.85); opacity: 0; }
  60%  { transform: translateY(-6px) scale(1.04); opacity: 1; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}
@keyframes pop-in-left {
  0%   { transform: translateX(-40px) scale(0.9); opacity: 0; }
  60%  { transform: translateX(6px) scale(1.02); opacity: 1; }
  100% { transform: translateX(0) scale(1); opacity: 1; }
}
@keyframes pop-in-right {
  0%   { transform: translateX(40px) scale(0.9); opacity: 0; }
  60%  { transform: translateX(-6px) scale(1.02); opacity: 1; }
  100% { transform: translateX(0) scale(1); opacity: 1; }
}
@keyframes fade-up {
  0%   { transform: translateY(24px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
@keyframes bounce-in {
  0%   { transform: scale(0.3); opacity: 0; }
  50%  { transform: scale(1.08); opacity: 1; }
  70%  { transform: scale(0.95); }
  100% { transform: scale(1); }
}
@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
@keyframes orbit {
  from { transform: rotate(0deg) translateX(140px) rotate(0deg); }
  to   { transform: rotate(360deg) translateX(140px) rotate(-360deg); }
}
@keyframes blob-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(40px, -30px) scale(1.1); }
  66%      { transform: translate(-30px, 30px) scale(0.95); }
}
@keyframes bg-pan {
  0%, 100% { background-position: 0% 0%; }
  50%      { background-position: 100% 100%; }
}
@keyframes confetti-fall {
  0%   { transform: translateY(-20px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(120vh) rotate(720deg); opacity: 0; }
}
@keyframes sparkle {
  0%, 100% { transform: scale(0) rotate(0deg);   opacity: 0; }
  50%      { transform: scale(1) rotate(180deg); opacity: 1; }
}

/* ---------- Reveal-on-scroll base ---------- */
[data-reveal] {
  opacity: 0;
  will-change: transform, opacity;
}
[data-reveal].is-in {
  animation-fill-mode: forwards;
  animation-duration: 0.8s;
  animation-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1); /* springy */
}
[data-reveal="up"].is-in     { animation-name: pop-in; }
[data-reveal="left"].is-in   { animation-name: pop-in-left; }
[data-reveal="right"].is-in  { animation-name: pop-in-right; }
[data-reveal="fade"].is-in   { animation-name: fade-up; }
[data-reveal="bounce"].is-in { animation-name: bounce-in; }

[data-stagger] > *:not(.is-in) { opacity: 0; }

/* ---------- Hero animations ---------- */
.hero__bg-glow--purple { animation: blob-drift 14s ease-in-out infinite; }
.hero__bg-glow--blue   { animation: blob-drift 18s ease-in-out infinite reverse; }

.hero__title-accent {
  background-size: 200% 200% !important;
  animation: gradient-shift 6s ease-in-out infinite;
}

.hero__phone .phone {
  animation: float-y-slow 6s ease-in-out infinite;
}

/* Store badge — springy press */
.store-badge {
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.25s ease;
}
.store-badge:hover {
  transform: translateY(-4px) scale(1.04) rotate(-1deg);
}
.store-badge:active {
  transform: translateY(2px) scale(0.97);
  transition-duration: 0.08s;
}

/* Nav logo wiggle on hover */
.nav__logo {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-origin: center;
}
.nav__brand:hover .nav__logo {
  animation: wiggle 0.6s ease-in-out;
}

/* Nav link hover lift */
.nav__link {
  transition: color 0.2s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.nav__link:hover { transform: translateY(-2px); }

/* ---------- Why section ---------- */
.why__bubble--a .why__bubble-img { animation: float-y 5s ease-in-out infinite; }
.why__bubble--b .why__bubble-img { animation: float-y 5.5s ease-in-out infinite 0.6s; }
.why__bubble--main .why__bubble-img {
  animation: bob 4s ease-in-out infinite;
}

.why__bubble--main .why__bubble-img::after {
  content: "";
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  border: 2px dashed rgba(236, 72, 153, 0.3);
  animation: spin-slow 22s linear infinite;
  pointer-events: none;
}
.why__bubble--main .why__bubble-img { position: relative; }

.why__bubble-tag {
  animation: float-y-fast 3.4s ease-in-out infinite;
}

/* Feature card — springy lift + icon bounce */
.feat {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              border-color 0.3s ease,
              background 0.3s ease,
              box-shadow 0.3s ease;
}
.feat:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 24px 50px -20px rgba(168, 85, 247, 0.45);
}
.feat__icon {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.feat:hover .feat__icon {
  animation: wiggle 0.7s ease-in-out;
}

/* ---------- Reviews ---------- */
.review {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              border-color 0.3s ease,
              box-shadow 0.3s ease;
}
.review:hover {
  transform: translateY(-10px) rotate(-0.5deg);
  box-shadow: 0 30px 60px -25px rgba(236, 72, 153, 0.4);
}
.review:nth-child(2):hover { transform: translateY(-10px) rotate(0.5deg); }
.review__avatar {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.review:hover .review__avatar {
  animation: wiggle 0.7s ease-in-out;
}
.review__stars {
  transition: transform 0.3s ease;
}
.review:hover .review__stars {
  transform: scale(1.15);
}

.reviews__heart {
  display: inline-block;
  animation: bob 1.6s ease-in-out infinite;
  transform-origin: center;
}

/* ---------- Contact card (no animation per request) ---------- */
.contact__card {
  transition: box-shadow 0.3s ease;
}

/* ---------- Welcome list item slide ---------- */
.welcome__list li {
  transition: transform 0.3s ease, padding-left 0.3s ease;
}
.welcome__list li:hover {
  transform: translateX(6px);
  padding-left: 36px;
}
.welcome__list li:hover::before {
  transform: scale(1.4) rotate(45deg);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.welcome__list li::before {
  transition: transform 0.3s ease;
}

/* ---------- Footer social bounce ---------- */
.footer__socials a {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              background 0.25s ease,
              color 0.25s ease;
}
.footer__socials a:hover {
  transform: translateY(-4px) scale(1.15) rotate(-6deg);
}

.footer__col a {
  display: inline-block;
  transition: color 0.2s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.footer__col a:hover {
  transform: translateX(4px);
}

/* ---------- Floating background sparkles ---------- */
.hero::before,
.hero::after {
  content: "✦";
  position: absolute;
  color: rgba(236, 72, 153, 0.5);
  font-size: 24px;
  animation: sparkle 4s ease-in-out infinite;
  pointer-events: none;
}
.hero::before { top: 18%; left: 8%; animation-delay: 0.5s; }
.hero::after  { top: 70%; left: 45%; font-size: 18px; color: rgba(168, 85, 247, 0.6); animation-delay: 2s; }

.reviews::before {
  content: "✦";
  position: absolute;
  top: 12%; right: 6%;
  color: rgba(168, 85, 247, 0.4);
  font-size: 22px;
  animation: sparkle 5s ease-in-out infinite 1s;
}
.reviews { position: relative; }

/* ---------- Section title underline draw ---------- */
.section-title {
  position: relative;
  display: inline-block;
}
.section-title--center {
  display: block;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; }
}
