/* 
 * Soluvina: Zenira - Japanese Luxury Casino Hotel
 * Animations Stylesheet
 */

/* ===== Reveal Animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease, transform 1s ease;
}

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

/* Delay variations */
.reveal:nth-child(2) {
  transition-delay: 0.1s;
}

.reveal:nth-child(3) {
  transition-delay: 0.2s;
}

.reveal:nth-child(4) {
  transition-delay: 0.3s;
}

.reveal:nth-child(5) {
  transition-delay: 0.4s;
}

/* ===== Ripple Effect ===== */
.btn {
  position: relative;
  overflow: hidden;
}

.btn .ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: ripple 0.6s linear;
  background-color: rgba(255, 255, 255, 0.4);
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* ===== Image Hover Effects ===== */
.space-card .space-image img,
.game-card img,
.team-member img {
  transition: transform 0.5s ease;
}

.space-card:hover .space-image img,
.game-card:hover img {
  transform: scale(1.05);
}

/* ===== Logo Animation ===== */
@keyframes logoFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.logo h1 {
  animation: logoFloat 4s ease-in-out infinite;
}

/* ===== Incense Smoke Navigation ===== */
.nav-menu.mobile-active {
  animation: smokeReveal 0.5s ease forwards;
}

@keyframes smokeReveal {
  0% {
    opacity: 0;
    transform: translateX(100%);
    clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
}

/* ===== Button Hover Animation ===== */
.btn-primary:hover, 
.btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* ===== Divider Animation ===== */
@keyframes dividerExtend {
  from {
    width: 0;
  }
  to {
    width: 60px;
  }
}

.divider span {
  animation: dividerExtend 1s ease forwards;
}

/* ===== Gallery Transitions ===== */
.gallery-slide {
  opacity: 0;
  transition: opacity 0.5s ease;
}

.gallery-slide.active {
  opacity: 1;
}

/* ===== Room Gallery Animation ===== */
.room-gallery {
  transition: opacity 0.5s ease;
}

/* ===== Tab Switch Animation ===== */
.tab-panel {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.tab-panel.active {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Mobile Navigation Animation ===== */
@keyframes slideIn {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(100%);
  }
}

/* ===== Hero Text Animation ===== */
.hero-content h2,
.hero-content p {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease forwards 0.5s;
}

.hero-content p {
  animation-delay: 0.8s;
}

.hero-content .btn {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease forwards 1.1s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Testimonial Hover Animation ===== */
.testimonial {
  transition: transform var(--transition-normal);
}

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

/* ===== Policy Link Animation ===== */
.policy-link {
  position: relative;
  overflow: hidden;
}

.policy-link::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 0;
  background-color: var(--matcha-green-light);
  transition: height 0.3s ease;
  z-index: -1;
}

.policy-link:hover::before {
  height: 100%;
}