/* =========================================
   1. KEYFRAME DEFINITIONS
   ========================================= */

/* Floating Animation for Abstract Shapes */
@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

/* Shine Effect for Golden Text Gradients */
@keyframes shine {
    to {
        background-position: 200% center;
    }
}

/* Soft Gold Pulse for Call-to-Actions */
@keyframes pulse-gold {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(212, 175, 55, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
    }
}

/* Subtle Rotation for Background Elements */
@keyframes rotate-slow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Nav Link Entrance Animation (Used by Mobile Menu) */
@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Loading Skeleton Shimmer */
@keyframes skeleton-loading {
    0% {
        background-color: rgba(255, 255, 255, 0.05);
    }
    50% {
        background-color: rgba(255, 255, 255, 0.1);
    }
    100% {
        background-color: rgba(255, 255, 255, 0.05);
    }
}

/* =========================================
   2. ANIMATION UTILITY CLASSES
   ========================================= */

/* Apply this class to elements you want to pulse continuously */
.animate-pulse {
    animation: pulse-gold 2s infinite;
}

/* Apply to background icons for subtle movement */
.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* Rotator for decorative seals or geometric patterns */
.animate-rotate {
    animation: rotate-slow 20s linear infinite;
}

/* Hover Reveal Effect for Cards (Alternative to standard hover) */
.hover-reveal {
    position: relative;
    overflow: hidden;
}

.hover-reveal::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transition: 0.5s;
}

.hover-reveal:hover::before {
    left: 100%;
}

/* =========================================
   3. SPECIFIC COMPONENT ANIMATIONS
   ========================================= */

/* Hero Title Entrance Stagger */
.hero-title span {
    display: inline-block;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.hero-title span:nth-child(1) { animation-delay: 0.2s; }
.hero-title span:nth-child(2) { animation-delay: 0.4s; }

/* Scroll Down Indicator Animation */
.scroll-down-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.7;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Card Hover Zoom Effect for Images */
.card-image-wrapper img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.destination-card:hover .card-image-wrapper img {
    transform: scale(1.1);
}

/* Smooth Fade In Up (Custom, separate from AOS) */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}