/* Garden Indian Restaurant - Animations and Effects
   Author: [Your Name]
   Student ID: [Your ID]
*/

/* ======= Animation Keyframes ======= */

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

/* Slide In Animation */
@keyframes slideIn {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Bounce Animation */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* Pulse Animation */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

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

/* ======= Animation Classes ======= */

.fade-in {
  opacity: 0;
  animation: fadeIn 1s ease forwards;
}

.slide-in {
  opacity: 0;
  transform: translateY(50px);
  animation: slideIn 1s ease forwards;
}

.bounce {
  animation: bounce 2s infinite;
}

.pulse {
  animation: pulse 2s infinite;
}

/* Animation delays for staggered effects */
.hero-content h2 {
  animation-delay: 0.2s;
}

.hero-subtitle {
  animation-delay: 0.4s;
}

.hero-badge {
  animation-delay: 0.6s;
}

.hero-buttons {
  animation-delay: 0.8s;
}

/* Staggered feature animations */
.features-grid .feature:nth-child(1) {
  animation-delay: 0.2s;
}

.features-grid .feature:nth-child(2) {
  animation-delay: 0.4s;
}

.features-grid .feature:nth-child(3) {
  animation-delay: 0.6s;
}

/* Staggered dish card animations */
.dishes-grid .dish-card:nth-child(1) {
  animation-delay: 0.2s;
}

.dishes-grid .dish-card:nth-child(2) {
  animation-delay: 0.4s;
}

.dishes-grid .dish-card:nth-child(3) {
  animation-delay: 0.6s;
}

/* Staggered testimonial animations */
.testimonial-slider .testimonial-card:nth-child(1) {
  animation-delay: 0.2s;
}

.testimonial-slider .testimonial-card:nth-child(2) {
  animation-delay: 0.4s;
}

.testimonial-slider .testimonial-card:nth-child(3) {
  animation-delay: 0.6s;
}

/* ======= Scroll-triggered Animations ======= */
/* These will be activated by JavaScript when the element comes into view */

/* Add .visible class to elements to trigger animations */
.fade-in.visible {
  animation: fadeIn 1s ease forwards;
}

.slide-in.visible {
  animation: slideIn 1s ease forwards;
}

/* Scroll down indicator */
.scroll-down {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 2rem;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.scroll-down:hover {
  opacity: 1;
}

/* Parallax Effect */
.parallax-section {
  position: relative;
  overflow: hidden;
}

.parallax-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../images/TheGarden3.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  opacity: 0.2;
  z-index: -1;
}

/* Hover Effects */

/* Image frame effect */
.image-frame {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-frame:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.3);
}

/* Dish card overlay effect */
.dish-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 8px 8px 0 0;
}

.dish-card:hover .dish-overlay {
  opacity: 1;
}

.dish-overlay-content {
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.dish-card:hover .dish-overlay-content {
  transform: translateY(0);
}

/* Badge style */
.hero-badge {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.badge {
  display: inline-block;
  padding: 5px 12px;
  background-color: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  color: white;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

/* Star rating glow effect */
.rating .fas, .rating .far {
  color: #FFD700;
  margin-right: 2px;
}

.rating:hover .fas {
  animation: pulse 1s infinite;
}

/* Card style */
.card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Testimonial card styles */
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.testimonial-card {
  flex: 1;
  min-width: 280px;
  background-color: white;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.testimonial-card::before {
  content: """;
  position: absolute;
  top: 10px;
  left: 20px;
  font-size: 5rem;
  line-height: 1;
  font-family: Georgia, serif;
  color: rgba(0, 0, 0, 0.05);
}

.testimonial-content {
  position: relative;
  z-index: 1;
}

.testimonial-author {
  margin-top: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.author-name {
  font-weight: 600;
}

/* Social links */
.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
  background-color: var(--primary);
  transform: translateY(-3px);
} 