/* ============================================================
   MORYA MISAL - Animations CSS
   Premium micro-interactions and advanced effects
   ============================================================ */

/* ============================================================
   PARALLAX HERO
   ============================================================ */
.hero {
  background-attachment: fixed;
}
@media (max-width: 768px) {
  .hero { background-attachment: scroll; }
}

/* ============================================================
   NAV UNDERLINE ANIMATION
   ============================================================ */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 50%;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--saffron), var(--warm-yellow));
  border-radius: 99px;
  transition: width 0.3s ease, left 0.3s ease;
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 80%; left: 10%;
}

/* ============================================================
   FLOATING FOOD ICONS ANIMATION
   ============================================================ */
.floating-icons-wrap {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
}
.float-icon {
  position: absolute;
  font-size: 2.5rem;
  opacity: 0.12;
  animation: floatDrift linear infinite;
  user-select: none;
}
@keyframes floatDrift {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  5% { opacity: 0.12; }
  95% { opacity: 0.12; }
  100% { transform: translateY(-200px) rotate(360deg); opacity: 0; }
}

/* ============================================================
   BUTTON RIPPLE EFFECT
   ============================================================ */
.btn {
  position: relative; overflow: hidden;
}
.btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: scale(0);
  animation: rippleAnim 0.6s linear;
  pointer-events: none;
}
@keyframes rippleAnim {
  to { transform: scale(4); opacity: 0; }
}

/* ============================================================
   CARD SHINE EFFECT
   ============================================================ */
.dish-card, .why-card, .review-card {
  position: relative;
  overflow: hidden;
}
.dish-card::after,
.why-card::after {
  content: '';
  position: absolute;
  top: -50%; left: -60%;
  width: 60%; height: 200%;
  background: linear-gradient(
    to right,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.15) 50%,
    rgba(255,255,255,0) 100%
  );
  transform: skewX(-20deg);
  transition: left 0.7s ease;
  pointer-events: none;
}
.dish-card:hover::after,
.why-card:hover::after {
  left: 130%;
}

/* ============================================================
   STAT COUNTER ANIMATION
   ============================================================ */
.stat-item {
  animation: statPulse 3s ease-in-out infinite;
}
@keyframes statPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

/* ============================================================
   HERO TITLE ANIMATION
   ============================================================ */
.title-line1, .title-line2 {
  display: block;
}
.title-line1 {
  animation: titleSlideRight 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.5s both;
}
.title-line2 {
  animation: titleSlideLeft 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.7s both;
}
@keyframes titleSlideRight {
  from { opacity: 0; transform: translateX(-60px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes titleSlideLeft {
  from { opacity: 0; transform: translateX(60px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ============================================================
   SECTION ENTRANCE DECORATIONS
   ============================================================ */
.section-badge {
  position: relative;
  display: inline-block;
}
.section-badge::before,
.section-badge::after {
  content: '—';
  margin: 0 0.4rem;
  opacity: 0.7;
}

/* ============================================================
   IMAGE ZOOM ON SCROLL
   ============================================================ */
.dish-img-wrap,
.about-img-main,
.gallery-item {
  overflow: hidden;
}

/* ============================================================
   WHY CARD ICON BOUNCE
   ============================================================ */
.why-card:hover .why-icon {
  animation: iconBounce 0.5s ease;
}
@keyframes iconBounce {
  0%, 100% { transform: scale(1) rotate(0deg); }
  25% { transform: scale(1.25) rotate(-8deg); }
  75% { transform: scale(1.15) rotate(8deg); }
}

/* ============================================================
   REVIEW CARD APPEAR
   ============================================================ */
.swiper-slide-active .review-card {
  box-shadow: 0 12px 40px rgba(255,107,0,0.2);
}

/* ============================================================
   STICKY NAVBAR GLOW
   ============================================================ */
.navbar.scrolled {
  box-shadow: 0 2px 30px rgba(0,0,0,0.1), 0 0 0 1px rgba(255,107,0,0.05);
}

/* ============================================================
   INFO CARD HOVER BORDER
   ============================================================ */
.info-card {
  border-left: 3px solid transparent;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.info-card:hover {
  border-left-color: var(--saffron);
}

/* ============================================================
   FOOTER LINK ARROW ANIMATION
   ============================================================ */
.footer-links ul li a {
  position: relative;
}
.footer-links ul li a::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0;
  width: 0; height: 1px;
  background: var(--saffron);
  transition: width 0.3s ease;
}
.footer-links ul li a:hover::after { width: 100%; }

/* ============================================================
   MOBILE BAR CENTER BUTTON PULSE
   ============================================================ */
.mobile-bar-center {
  position: relative;
}
.mobile-bar-center::before {
  content: '';
  position: absolute;
  top: -8px; left: 50%; transform: translateX(-50%);
  width: 48px; height: 48px;
  background: rgba(255,107,0,0.2);
  border-radius: 50%;
  animation: mobileMenuPulse 2s ease-in-out infinite;
}
@keyframes mobileMenuPulse {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.5; }
  50% { transform: translateX(-50%) scale(1.3); opacity: 0; }
}

/* ============================================================
   LOADING SKELETON (for images)
   ============================================================ */
.img-loading {
  background: linear-gradient(90deg, #f0f0f0 25%, #f8f8f8 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton 1.5s ease-in-out infinite;
}
@keyframes skeleton {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}

/* ============================================================
   FEATURE ITEM HOVER SHIMMER
   ============================================================ */
.feature-item {
  position: relative; overflow: hidden;
}
.feature-item::after {
  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.5s ease;
}
.feature-item:hover::after { left: 100%; }

/* ============================================================
   BACK TO TOP SPIN ANIMATION
   ============================================================ */
.back-to-top:hover i {
  animation: arrowBounce 0.4s ease;
}
@keyframes arrowBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* ============================================================
   HERO BADGE GLOW
   ============================================================ */
.hero-badge {
  animation: badgeGlow 3s ease-in-out infinite;
}
@keyframes badgeGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0.1); }
  50% { box-shadow: 0 0 20px 4px rgba(255,255,255,0.15); }
}

/* ============================================================
   DISH CARD HOVER TILT (JS handles this, CSS fallback)
   ============================================================ */
.dish-card {
  transform-style: preserve-3d;
  will-change: transform;
}

/* ============================================================
   SECTION DIVIDERS
   ============================================================ */
.section-pad::before {
  content: '';
  display: block;
}

/* ============================================================
   GRADIENT TEXT ANIMATION
   ============================================================ */
.highlight {
  background-size: 200% auto;
  animation: gradientShift 3s linear infinite alternate;
}
@keyframes gradientShift {
  from { background-position: 0% center; }
  to   { background-position: 100% center; }
}

/* ============================================================
   SCROLL PROGRESS BAR
   ============================================================ */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--saffron), var(--warm-yellow), var(--deep-red));
  transform-origin: left;
  transform: scaleX(0);
  z-index: 9998;
  transition: transform 0.1s linear;
}

/* ============================================================
   ABOUT SECTION DECORATIVE ELEMENT
   ============================================================ */
.about::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255,107,0,0.05) 0%, transparent 70%);
  pointer-events: none;
}
.about { position: relative; }

/* ============================================================
   HERO GRADIENT ANIMATION
   ============================================================ */
.hero-bg-overlay {
  background: radial-gradient(
    ellipse at 50% 100%,
    rgba(255,107,0,0.35) 0%,
    rgba(192,57,43,0.2) 40%,
    transparent 70%
  );
  animation: heroOverlayPulse 5s ease-in-out infinite alternate;
}
@keyframes heroOverlayPulse {
  from { opacity: 0.6; transform: scale(1); }
  to   { opacity: 1; transform: scale(1.05); }
}
