/* Animation Classes */
.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards;
}

.animate-fade-up-delay {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease 0.3s forwards;
}

.animate-fade-up-delay-2 {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease 0.6s forwards;
}

.animate-fade-left {
    opacity: 0;
    transform: translateX(-50px);
    animation: fadeLeft 0.8s ease forwards;
}

.animate-fade-right {
    opacity: 0;
    transform: translateX(50px);
    animation: fadeRight 0.8s ease forwards;
}

.scroll-animate {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.scroll-animate.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation for grid items */
.specialties-grid .scroll-animate:nth-child(1) { transition-delay: 0.1s; }
.specialties-grid .scroll-animate:nth-child(2) { transition-delay: 0.2s; }
.specialties-grid .scroll-animate:nth-child(3) { transition-delay: 0.3s; }

.menu-grid .scroll-animate:nth-child(1) { transition-delay: 0.1s; }
.menu-grid .scroll-animate:nth-child(2) { transition-delay: 0.2s; }
.menu-grid .scroll-animate:nth-child(3) { transition-delay: 0.3s; }
.menu-grid .scroll-animate:nth-child(4) { transition-delay: 0.4s; }
.menu-grid .scroll-animate:nth-child(5) { transition-delay: 0.5s; }
.menu-grid .scroll-animate:nth-child(6) { transition-delay: 0.6s; }

.directions-grid .scroll-animate:nth-child(1) { transition-delay: 0.1s; }
.directions-grid .scroll-animate:nth-child(2) { transition-delay: 0.2s; }
.directions-grid .scroll-animate:nth-child(3) { transition-delay: 0.3s; }
.directions-grid .scroll-animate:nth-child(4) { transition-delay: 0.4s; }

.attractions-grid .scroll-animate:nth-child(1) { transition-delay: 0.1s; }
.attractions-grid .scroll-animate:nth-child(2) { transition-delay: 0.2s; }
.attractions-grid .scroll-animate:nth-child(3) { transition-delay: 0.3s; }

.team-grid .scroll-animate:nth-child(1) { transition-delay: 0.1s; }
.team-grid .scroll-animate:nth-child(2) { transition-delay: 0.2s; }
.team-grid .scroll-animate:nth-child(3) { transition-delay: 0.3s; }

.offers-grid .scroll-animate:nth-child(1) { transition-delay: 0.1s; }
.offers-grid .scroll-animate:nth-child(2) { transition-delay: 0.2s; }
.offers-grid .scroll-animate:nth-child(3) { transition-delay: 0.3s; }

.faq-item:nth-child(1) .scroll-animate { transition-delay: 0.1s; }
.faq-item:nth-child(2) .scroll-animate { transition-delay: 0.2s; }
.faq-item:nth-child(3) .scroll-animate { transition-delay: 0.3s; }
.faq-item:nth-child(4) .scroll-animate { transition-delay: 0.4s; }
.faq-item:nth-child(5) .scroll-animate { transition-delay: 0.5s; }

.info-card:nth-child(1) .scroll-animate { transition-delay: 0.1s; }
.info-card:nth-child(2) .scroll-animate { transition-delay: 0.2s; }
.info-card:nth-child(3) .scroll-animate { transition-delay: 0.3s; }
.info-card:nth-child(4) .scroll-animate { transition-delay: 0.4s; }

.contact-method:nth-child(1) .scroll-animate { transition-delay: 0.1s; }
.contact-method:nth-child(2) .scroll-animate { transition-delay: 0.2s; }
.contact-method:nth-child(3) .scroll-animate { transition-delay: 0.3s; }
.contact-method:nth-child(4) .scroll-animate { transition-delay: 0.4s; }

/* Keyframe Animations */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(10deg);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Shine Effect */
.shine-effect {
    position: relative;
    overflow: hidden;
}

.shine-effect::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(30deg);
    transition: var(--transition);
}

.shine-effect:hover::after {
    animation: shine 1.5s ease;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(30deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(30deg);
    }
}

/* Text Gradient with Golden Shine Effect */
.text-gradient {
    background: linear-gradient(90deg,
        #d4af37 0%,
        #f9e076 25%,
        #fff9e6 50%,
        #f9e076 75%,
        #d4af37 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: goldenShine 3s linear infinite;
    position: relative;
    text-shadow: none;
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.8))
            drop-shadow(0 0 40px rgba(212, 175, 55, 0.5))
            drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
}

/* Golden Shine Animation */
@keyframes goldenShine {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 200% center;
    }
}

/* Additional glow effect for text-gradient */
.text-gradient::before {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    z-index: -1;
    background: linear-gradient(90deg,
        #d4af37 0%,
        #f9e076 25%,
        #fff9e6 50%,
        #f9e076 75%,
        #d4af37 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: blur(20px);
    opacity: 0.7;
}

/* Parallax Effect */
.parallax {
    background-attachment: fixed;
}

/* Loading Animation - uses @keyframes spin from components.css */
.loading-spinner {
    display: inline-block;
    width: 60px;
    height: 60px;
    border: 5px solid rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s ease-in-out infinite;
}

/* Menu Category Animation - uses @keyframes fadeIn from base.css */

/* Form Input Focus Animation */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    animation: inputFocus 0.3s ease;
}

@keyframes inputFocus {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4);
    }
    100% {
        box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
    }
}

/* Slide animations for slideshow */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-100%);
    }
}

/* Bounce animation for call-to-action elements */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.bounce {
    animation: bounce 2s infinite;
}

/* Pulse animation for special elements */
.pulse-animation {
    animation: pulse 2s infinite;
}

/* Floating animation enhancements */
@keyframes float-enhanced {
    0%, 100% {
        transform: translateY(0) rotate(0deg) scale(1);
    }
    33% {
        transform: translateY(-20px) rotate(5deg) scale(1.05);
    }
    66% {
        transform: translateY(-10px) rotate(-5deg) scale(0.95);
    }
}

.floating-element {
    animation: float-enhanced 15s infinite ease-in-out;
}

/* Gradient background animation */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.animated-gradient {
    background: linear-gradient(-45deg, #d4af37, #c41e3a, #2e8b57, #1a1a1a);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

/* Typewriter effect */
@keyframes typewriter {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink {
    from, to {
        border-color: transparent;
    }
    50% {
        border-color: var(--primary);
    }
}

.typewriter {
    overflow: hidden;
    border-right: 3px solid var(--primary);
    white-space: nowrap;
    margin: 0 auto;
    animation: typewriter 3.5s steps(40, end), blink 1s step-end infinite;
}

/* Fade in up with scale */
@keyframes fadeUpScale {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.fade-up-scale {
    animation: fadeUpScale 0.8s ease forwards;
}

/* Rotate animation */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.rotate {
    animation: rotate 10s linear infinite;
}

/* Hover lift effect */
.hover-lift {
    transition: var(--transition);
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

/* Staggered children animation */
.stagger-children > * {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards;
}

.stagger-children > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.5s; }
.stagger-children > *:nth-child(6) { animation-delay: 0.6s; }


/* Main page text cursor typing animation style */
#cursor {
  display: inline-block;
  margin-left: 2px;
  animation: cursorBlink 0.3s infinite;
}

@keyframes cursorBlink {
  50% { opacity: 0; }
}

/* Glitch Effect Animation */
#text {
  opacity: 1 !important;
  color: white;
  display: inline-block;
  min-height: 50px;
  animation: none !important;
  transform: none !important;
}

.glitch {
  position: relative;
  display: inline-block;
  color: white;
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.8;
}

.glitch::before {
  left: 2px;
  text-shadow: -2px 0 #c41e3a;
  clip-path: inset(0 0 50% 0);
  animation: glitch-anim 3s infinite linear alternate-reverse;
}

.glitch::after {
  left: -2px;
  text-shadow: -2px 0 #d4af37, 2px 2px #2e8b57;
  clip-path: inset(50% 0 0 0);
  animation: glitch-anim2 2s infinite linear alternate-reverse;
}

/* Disable glitch effect on mobile */
@media (max-width: 768px) {
  .glitch::before,
  .glitch::after {
    display: none;
    content: none;
  }
}

@keyframes glitch-anim {
  0% {
    clip: rect(10px, 9999px, 31px, 0);
    transform: skew(0.3deg);
  }
  5% {
    clip: rect(70px, 9999px, 71px, 0);
    transform: skew(0.8deg);
  }
  10% {
    clip: rect(33px, 9999px, 90px, 0);
    transform: skew(0.2deg);
  }
  15% {
    clip: rect(25px, 9999px, 99px, 0);
    transform: skew(0.4deg);
  }
  20% {
    clip: rect(95px, 9999px, 15px, 0);
    transform: skew(1deg);
  }
  25% {
    clip: rect(60px, 9999px, 55px, 0);
    transform: skew(0.5deg);
  }
  30% {
    clip: rect(40px, 9999px, 80px, 0);
    transform: skew(0.7deg);
  }
  35% {
    clip: rect(15px, 9999px, 45px, 0);
    transform: skew(0.3deg);
  }
  40% {
    clip: rect(85px, 9999px, 25px, 0);
    transform: skew(0.9deg);
  }
  45% {
    clip: rect(50px, 9999px, 65px, 0);
    transform: skew(0.4deg);
  }
  50% {
    clip: rect(20px, 9999px, 90px, 0);
    transform: skew(0.6deg);
  }
  55% {
    clip: rect(75px, 9999px, 35px, 0);
    transform: skew(0.8deg);
  }
  60% {
    clip: rect(45px, 9999px, 70px, 0);
    transform: skew(0.2deg);
  }
  65% {
    clip: rect(30px, 9999px, 85px, 0);
    transform: skew(0.5deg);
  }
  70% {
    clip: rect(65px, 9999px, 20px, 0);
    transform: skew(0.7deg);
  }
  75% {
    clip: rect(55px, 9999px, 50px, 0);
    transform: skew(0.3deg);
  }
  80% {
    clip: rect(10px, 9999px, 95px, 0);
    transform: skew(0.9deg);
  }
  85% {
    clip: rect(80px, 9999px, 30px, 0);
    transform: skew(0.4deg);
  }
  90% {
    clip: rect(35px, 9999px, 75px, 0);
    transform: skew(0.6deg);
  }
  95% {
    clip: rect(90px, 9999px, 10px, 0);
    transform: skew(0.8deg);
  }
  100% {
    clip: rect(5px, 9999px, 100px, 0);
    transform: skew(0.2deg);
  }
}

@keyframes glitch-anim2 {
  0% {
    clip: rect(65px, 9999px, 100px, 0);
    transform: skew(0.5deg);
  }
  5% {
    clip: rect(20px, 9999px, 50px, 0);
    transform: skew(0.9deg);
  }
  10% {
    clip: rect(85px, 9999px, 30px, 0);
    transform: skew(0.3deg);
  }
  15% {
    clip: rect(45px, 9999px, 75px, 0);
    transform: skew(0.7deg);
  }
  20% {
    clip: rect(10px, 9999px, 95px, 0);
    transform: skew(0.4deg);
  }
  25% {
    clip: rect(70px, 9999px, 25px, 0);
    transform: skew(0.8deg);
  }
  30% {
    clip: rect(35px, 9999px, 60px, 0);
    transform: skew(0.2deg);
  }
  35% {
    clip: rect(90px, 9999px, 15px, 0);
    transform: skew(0.6deg);
  }
  40% {
    clip: rect(50px, 9999px, 80px, 0);
    transform: skew(0.5deg);
  }
  45% {
    clip: rect(15px, 9999px, 70px, 0);
    transform: skew(0.9deg);
  }
  50% {
    clip: rect(75px, 9999px, 40px, 0);
    transform: skew(0.3deg);
  }
  55% {
    clip: rect(30px, 9999px, 85px, 0);
    transform: skew(0.7deg);
  }
  60% {
    clip: rect(95px, 9999px, 20px, 0);
    transform: skew(0.4deg);
  }
  65% {
    clip: rect(55px, 9999px, 65px, 0);
    transform: skew(0.8deg);
  }
  70% {
    clip: rect(25px, 9999px, 90px, 0);
    transform: skew(0.2deg);
  }
  75% {
    clip: rect(80px, 9999px, 35px, 0);
    transform: skew(0.6deg);
  }
  80% {
    clip: rect(40px, 9999px, 55px, 0);
    transform: skew(0.5deg);
  }
  85% {
    clip: rect(5px, 9999px, 100px, 0);
    transform: skew(0.9deg);
  }
  90% {
    clip: rect(60px, 9999px, 45px, 0);
    transform: skew(0.3deg);
  }
  95% {
    clip: rect(100px, 9999px, 5px, 0);
    transform: skew(0.7deg);
  }
  100% {
    clip: rect(20px, 9999px, 80px, 0);
    transform: skew(0.4deg);
  }
}

@keyframes glitch-skew {
  0% {
    transform: skew(0deg);
  }
  10% {
    transform: skew(-2deg);
  }
  20% {
    transform: skew(1deg);
  }
  30% {
    transform: skew(-1deg);
  }
  40% {
    transform: skew(2deg);
  }
  50% {
    transform: skew(0deg);
  }
  60% {
    transform: skew(-1deg);
  }
  70% {
    transform: skew(1deg);
  }
  80% {
    transform: skew(0deg);
  }
  90% {
    transform: skew(-2deg);
  }
  100% {
    transform: skew(0deg);
  }
}

/* ============================================
   PERFORMANCE - LAZY LOADING ANIMATIONS
   ============================================ */

/* Lazy-loaded slideshow images */
.lazy-slide {
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.lazy-slide.loaded {
    opacity: 1;
}

/* Image placeholder style */
.slide img[data-src]:not(.loaded) {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
}

/* ============================================
   MENU PAGE - PROFESSIONAL ANIMATIONS
   Premium restaurant experience
   ============================================ */

/* Menu Section Entrance Animation */
.menu-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.menu-section.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Menu Category Heading Animation */
.menu-category {
    position: relative;
    display: inline-block;
}

.menu-category::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), #f9e076, var(--primary));
    transition: width 0.8s ease;
}

.menu-section.animated .menu-category::after {
    width: 60px;
}

/* Staggered Menu Items Animation */
.menu-items .menu-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.menu-section.animated .menu-items .menu-item {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays for menu items */
.menu-section.animated .menu-items .menu-item:nth-child(1) { transition-delay: 0.1s; }
.menu-section.animated .menu-items .menu-item:nth-child(2) { transition-delay: 0.15s; }
.menu-section.animated .menu-items .menu-item:nth-child(3) { transition-delay: 0.2s; }
.menu-section.animated .menu-items .menu-item:nth-child(4) { transition-delay: 0.25s; }
.menu-section.animated .menu-items .menu-item:nth-child(5) { transition-delay: 0.3s; }
.menu-section.animated .menu-items .menu-item:nth-child(6) { transition-delay: 0.35s; }
.menu-section.animated .menu-items .menu-item:nth-child(7) { transition-delay: 0.4s; }
.menu-section.animated .menu-items .menu-item:nth-child(8) { transition-delay: 0.45s; }
.menu-section.animated .menu-items .menu-item:nth-child(9) { transition-delay: 0.5s; }
.menu-section.animated .menu-items .menu-item:nth-child(10) { transition-delay: 0.55s; }
.menu-section.animated .menu-items .menu-item:nth-child(n+11) { transition-delay: 0.6s; }

/* Featured Item Glow Effect */
.menu-item.featured {
    position: relative;
}

.menu-item.featured::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.3), transparent, rgba(212, 175, 55, 0.2));
    border-radius: 18px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.menu-item.featured:hover::after {
    opacity: 1;
}

/* Badge Subtle Animation */
.item-header .item-badge {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.menu-item:hover .item-header .item-badge {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

/* Tag Hover Effect */
.item-tag {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.menu-item:hover .item-tag {
    transform: translateX(3px);
}

/* Menu Intro Animation */
.menu-intro {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.menu-intro.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Menu Note Icon Animation */
.menu-note i {
    transition: transform 0.3s ease;
}

.menu-intro:hover .menu-note i {
    transform: scale(1.1);
}