/* Animations.css - Yenarinn Casino Hotel */

/* Floating Leaves Animation */
.leaves {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
}

.leaf {
  position: absolute;
  width: 30px;
  height: 30px;
  background-size: cover;
  opacity: 0.5;
  pointer-events: none;
  z-index: 9999;
}

.leaf1 {
  background: radial-gradient(ellipse at center, var(--rainforest-green) 0%, transparent 70%);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  animation: float-leaf1 15s infinite linear;
  top: -30px;
  left: 10%;
}

.leaf2 {
  background: radial-gradient(ellipse at center, var(--bamboo-tan) 0%, transparent 70%);
  clip-path: polygon(50% 0%, 80% 20%, 100% 50%, 80% 80%, 50% 100%, 20% 80%, 0% 50%, 20% 20%);
  animation: float-leaf2 20s infinite linear;
  top: -30px;
  left: 30%;
}

.leaf3 {
  background: radial-gradient(ellipse at center, var(--light-green) 0%, transparent 70%);
  clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
  animation: float-leaf3 25s infinite linear;
  top: -30px;
  left: 50%;
}

.leaf4 {
  background: radial-gradient(ellipse at center, var(--deep-tan) 0%, transparent 70%);
  clip-path: polygon(50% 0%, 90% 20%, 100% 60%, 75% 100%, 25% 100%, 0% 60%, 10% 20%);
  animation: float-leaf4 18s infinite linear;
  top: -30px;
  left: 70%;
}

.leaf5 {
  background: radial-gradient(ellipse at center, var(--rainforest-green) 0%, transparent 70%);
  clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
  animation: float-leaf5 22s infinite linear;
  top: -30px;
  left: 90%;
}

@keyframes float-leaf1 {
  0% {
    transform: translateY(-30px) rotate(0deg);
  }
  100% {
    transform: translateY(calc(100vh + 30px)) rotate(720deg);
  }
}

@keyframes float-leaf2 {
  0% {
    transform: translateY(-30px) rotate(0deg);
  }
  100% {
    transform: translateY(calc(100vh + 30px)) rotate(-540deg);
  }
}

@keyframes float-leaf3 {
  0% {
    transform: translateY(-30px) rotate(0deg);
  }
  100% {
    transform: translateY(calc(100vh + 30px)) rotate(360deg);
  }
}

@keyframes float-leaf4 {
  0% {
    transform: translateY(-30px) rotate(0deg);
  }
  100% {
    transform: translateY(calc(100vh + 30px)) rotate(-360deg);
  }
}

@keyframes float-leaf5 {
  0% {
    transform: translateY(-30px) rotate(0deg);
  }
  100% {
    transform: translateY(calc(100vh + 30px)) rotate(540deg);
  }
}

/* Parallax Effect */
.parallax-image {
  transition: transform 0.5s ease-out;
  transform: scale(1.05);
  overflow: hidden;
}

/* Button Hover Animation */
.btn-primary, .btn-secondary, .btn-tertiary, .btn-book {
  position: relative;
  overflow: hidden;
}

.btn-primary::before,
.btn-secondary::before,
.btn-tertiary::before,
.btn-book::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.btn-primary:hover::before,
.btn-secondary:hover::before,
.btn-tertiary:hover::before,
.btn-book:hover::before {
  transform: translateX(0);
}

/* Navigation Link Hover Animation */
.main-nav a:hover {
  color: var(--bamboo-tan);
}

/* Scroll Animation Classes */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.appear {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-100px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-left.appear {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(100px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-right.appear {
  opacity: 1;
  transform: translateX(0);
}

/* Card Hover Effects */
.service-card::before,
.adventure-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(44, 95, 45, 0.05), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
  pointer-events: none;
}

.service-card:hover::before,
.adventure-card:hover::before {
  opacity: 1;
}

/* Logo Animation */
.logo a {
  display: inline-block;
  transition: transform 0.3s ease;
}

.logo a:hover {
  transform: scale(1.05);
}

/* Section Transition */
section {
  transition: background-color 0.5s ease;
}

/* Button Press Effect */
.btn-primary:active,
.btn-secondary:active,
.btn-tertiary:active,
.btn-book:active {
  transform: scale(0.98);
}

/* Navigation Underline Animation */
.main-nav a::after {
  transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}