/**
 * Klickie Animations CSS
 * All keyframe animations and animation-related styles
 */

/* ===== LOADER ANIMATIONS ===== */
@keyframes hashtag-flip {
  0% {
    transform: rotateY(0deg);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  50% {
    transform: rotateY(90deg);
    opacity: 0.5;
  }
  100% {
    transform: rotateY(360deg);
    opacity: 1;
  }
}

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

@keyframes loader-fade-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* ===== FLOATING ANIMATIONS ===== */
@keyframes float {
  0%, 100% {
    transform: translateY(0px) translateX(var(--translate-x, -50%));
  }
  50% {
    transform: translateY(-5px) translateX(var(--translate-x, -50%));
  }
}

@keyframes float-reverse {
  0%, 100% {
    transform: translateY(0px) translateX(var(--translate-x, 50%));
  }
  50% {
    transform: translateY(5px) translateX(var(--translate-x, 50%));
  }
}

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

/* ===== PULSE & GLOW ANIMATIONS ===== */
@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0px 0px 5px rgba(28, 217, 135, 0.3);
  }
  50% {
    box-shadow: 0px 0px 10px rgba(28, 217, 135, 0.5);
  }
}

/* ===== GRADIENT ANIMATIONS ===== */
@keyframes gradient-move {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* ===== ARROW/SLIDE ANIMATIONS ===== */
@keyframes slide-arrow {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* ===== RIPPLE ANIMATION (Mobile) ===== */
@keyframes ripple-expand {
  0% {
    width: 0px;
    height: 0px;
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
  100% {
    width: 300px;
    height: 300px;
    opacity: 0;
  }
}

/* ===== ANIMATION CLASSES ===== */

/* Loader */
.loader-hashtag {
  font-family: "Chivo", sans-serif;
  font-weight: 600;
  font-size: 5rem;
  color: #141414;
  animation: hashtag-flip 1.5s ease-out forwards;
  transform-origin: center;
  position: relative;
  display: inline-block;
}

.loader-text {
  font-family: "Chivo", sans-serif;
  font-weight: 600;
  font-style: italic;
  font-size: 3rem;
  color: #141414;
  opacity: 0;
  animation: loader-fade-in 0.5s ease-out 2.2s forwards;
  margin-left: 0.25rem;
}

#loader .hashtag {
  animation: pulse 2s infinite;
}

/* Animated gradient text */
.animated-gradient {
  background: linear-gradient(90deg, #20cc81, #7a5ef8, #20cc81);
  background-size: 200% 200%;
  animation: gradient-move 4s ease infinite;
  -webkit-background-clip: text;
  background-clip: text;
}

/* Tilt cards - NO floating animation, only VanillaTilt interaction */
.wrapper-tilt {
  transform: perspective(1500px);
  transition: transform 0.2s ease;
  transform-style: preserve-3d;
  will-change: transform;
  /* NO animation properties - bubbles are static, only move via VanillaTilt */
}

/* REMOVED: Float animations for bubbles - Original site does NOT have floating animation
   Bubbles are static and only move via VanillaTilt on mouse hover (desktop) or gyroscope (mobile) */

/* Arrow button animation */
.arrow-button:hover .arrow-move {
  animation: slide-arrow 1s linear infinite;
}

/* Subtle float for blur backgrounds */
.blur-3xl {
  animation: subtle-float 8s ease-in-out infinite;
}

/* Logo hover animation */
.hashtag-container {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  perspective: 800px;
  perspective-origin: center;
  transform-style: preserve-3d;
  margin-right: 0px;
}

.hashtag-container span {
  display: inline-block;
  transform-style: preserve-3d;
  transition: transform 0.6s ease-in-out;
}

.logo-container:hover .hashtag-container span {
  transform: rotateY(360deg);
}

/* Card click effect */
.wrapper-tilt:active,
.card:active {
  transform: scale(0.98);
  transition: transform 0.1s ease;
}

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

.feature-card:hover {
  transform: translateY(-8px);
}

.feature-card svg {
  transition: transform 0.3s ease;
}

.feature-card:hover svg {
  transform: scale(1.1);
}

/* Testimonial card hover */
.testimonial-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* WhatsApp button shine effect */
.whatsapp-button {
  position: relative;
  overflow: hidden;
  background-color: #25d366;
  color: white;
  transition: all 0.3s ease;
}

.whatsapp-button:hover {
  background-color: #128c7e;
}

.whatsapp-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.7s ease;
}

.whatsapp-button:hover::before {
  left: 100%;
}

/* Main button gradient */
.main-button {
  background: linear-gradient(135deg, #141414 0%, #2c2c2c 100%);
  transition: all 0.2s ease;
}

.main-button:hover {
  background: linear-gradient(135deg, #2c2c2c 0%, #141414 100%);
  transform: translateY(-1px);
}

/* Glow button effect */
.glow-effect {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 140px;
  height: 140px;
  background: radial-gradient(
    circle,
    rgba(60, 171, 164, 0.9) 0%,
    rgba(63, 179, 174, 0.6) 40%,
    transparent 70%
  );
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
  transition: all 0.1s ease;
  filter: blur(25px);
  opacity: 0.4;
}

@media (max-width: 767px) {
  .glow-effect {
    width: 40px;
    height: 40px;
  }
}

/* Cursor/typing animation */
.typing-cursor {
  display: inline-block;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  from, to {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

/* Color transition helper */
.color-transition {
  transition: all 0.3s ease !important;
  -webkit-transition: all 0.3s ease !important;
}

/* GPU acceleration helper */
.force-repaint {
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* Category slide background */
.category-container {
  position: relative;
}

.category-slide-bg {
  position: absolute;
  top: 6px;
  height: calc(100% - 12px);
  border-radius: 40px;
  transition: all 0.3s ease-in-out;
  z-index: 1;
}

.category-button {
  position: relative;
  z-index: 2;
}

/* Dropdown arrow rotation */
.dropdown-arrow {
  transition: transform 0.2s ease;
}

.dropdown-open .dropdown-arrow {
  transform: rotate(180deg);
}

/* Chevron rotation */
.chevron {
  transition: transform 0.3s ease;
}

.chevron.rotate {
  transform: rotate(180deg);
}
