/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Slide Up Animation */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-up {
    animation: slideUp 0.6s ease-out forwards;
    opacity: 0;
}

/* Float Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.float {
    animation: float 3s ease-in-out infinite;
}

/* Pulse Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* Glow Animation */
@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(212, 168, 106, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(212, 168, 106, 0.6);
    }
}

.glow {
    animation: glow 2s ease-in-out infinite;
}

/* Scale In Animation */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.scale-in {
    animation: scaleIn 0.5s ease-out forwards;
}

/* Slide In from Left */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
}

/* Slide In from Right */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
}

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

.bounce {
    animation: bounce 0.6s ease-in-out;
}

/* Fade In Scale */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.fade-in-scale {
    animation: fadeInScale 0.6s ease-out forwards;
}

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

.shimmer {
    animation: shimmer 2s infinite;
    background: linear-gradient(
        90deg,
        #f5f1ed 0%,
        #ffffff 50%,
        #f5f1ed 100%
    );
    background-size: 1000px 100%;
}

/* Rotate Animation */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.rotate {
    animation: rotate 2s linear infinite;
}

/* Gradient Shift Animation */
@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.gradient-shift {
    background-size: 400% 400%;
    animation: gradientShift 3s ease infinite;
}

/* Wave Animation */
@keyframes wave {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.wave {
    animation: wave 1s ease-in-out infinite;
}

/* Stagger Animation for Lists */
.stagger-children > * {
    opacity: 0;
    animation: slideUp 0.6s ease-out forwards;
}

.stagger-children > *:nth-child(1) { animation-delay: 0s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.3s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.4s; }
.stagger-children > *:nth-child(6) { animation-delay: 0.5s; }

/* Intersection Observer Animations */
.scroll-fade {
    opacity: 0;
    transition: opacity 0.8s ease-out;
}

.scroll-fade.visible {
    opacity: 1;
}

.scroll-slide {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-slide.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Loading Animation */
@keyframes loading {
    0%, 100% {
        background-position: 200% center;
    }
    50% {
        background-position: -200% center;
    }
}

.loading {
    background: linear-gradient(
        90deg,
        #f5f1ed 0%,
        #d4a86a 50%,
        #f5f1ed 100%
    );
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

/* Text Typewriter Animation */
@keyframes typewriter {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

.typewriter {
    overflow: hidden;
    border-right: 3px solid var(--accent-color);
    animation: typewriter 3s steps(40, end) 1s 1 normal both;
    white-space: nowrap;
}

/* Parallax-like effect */
.parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Smooth entrance for modals */
@keyframes modalSlide {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-slide {
    animation: modalSlide 0.3s ease-out;
}

/* Counter animation */
@keyframes countUp {
    from {
        counter-increment: count 0;
    }
    to {
        counter-increment: count var(--count);
    }
}

.count-up {
    counter-reset: count 0;
    animation: countUp 2s ease-out forwards;
}

/* Fade in with delay for staggered effect */
.fade-in-delay {
    animation: fadeIn 0.8s ease-out forwards;
    opacity: 0;
}

.fade-in-delay:nth-child(1) { animation-delay: 0s; }
.fade-in-delay:nth-child(2) { animation-delay: 0.1s; }
.fade-in-delay:nth-child(3) { animation-delay: 0.2s; }
.fade-in-delay:nth-child(4) { animation-delay: 0.3s; }
.fade-in-delay:nth-child(5) { animation-delay: 0.4s; }

/* Enhanced Flip Animation */
@keyframes flip {
    0% {
        opacity: 0;
        transform: rotateY(-90deg);
    }
    100% {
        opacity: 1;
        transform: rotateY(0);
    }
}

.flip {
    animation: flip 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

/* Enhanced Slide Up with Blur */
@keyframes slideUpBlur {
    from {
        opacity: 0;
        transform: translateY(40px) blur(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0) blur(0);
    }
}

.slide-up-blur {
    animation: slideUpBlur 0.7s ease-out forwards;
    opacity: 0;
}

/* Elastic Bounce */
@keyframes elasticBounce {
    0%, 100% {
        transform: translateY(0);
    }
    25% {
        transform: translateY(-8px);
    }
    50% {
        transform: translateY(0);
    }
    75% {
        transform: translateY(-4px);
    }
}

.elastic-bounce {
    animation: elasticBounce 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Hover Lift Animation */
@keyframes hoverLift {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-8px);
    }
}

/* Neon Glow Animation */
@keyframes neonGlow {
    0%, 100% {
        text-shadow: 0 0 10px rgba(212, 168, 106, 0.5);
    }
    50% {
        text-shadow: 0 0 20px rgba(212, 168, 106, 1);
    }
}

.neon-glow {
    animation: neonGlow 2s ease-in-out infinite;
}

/* Slide and Fade Combination */
@keyframes slideAndFade {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.slide-and-fade {
    animation: slideAndFade 0.6s ease-out forwards;
    opacity: 0;
}

/* Hover Scale Pulse */
@keyframes hoverScalePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.hover-scale-pulse:hover {
    animation: hoverScalePulse 0.6s ease-in-out;
}

/* Gradient Pulse Animation */
@keyframes gradientPulse {
    0%, 100% {
        opacity: 0.8;
    }
    50% {
        opacity: 1;
    }
}

.gradient-pulse {
    animation: gradientPulse 2s ease-in-out infinite;
}

/* Smooth Reveal from Bottom */
@keyframes revealUp {
    from {
        opacity: 0;
        transform: translateY(60px) skewY(2deg);
        filter: blur(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0) skewY(0);
        filter: blur(0);
    }
}

.reveal-up {
    animation: revealUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    opacity: 0;
}

/* Carousel Slide Animation */
@keyframes carouselSlide {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.carousel-slide {
    animation: carouselSlide 0.5s ease-out forwards;
}

/* Carousel Slide Out */
@keyframes carouselSlideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-50px);
    }
}

.carousel-slide-out {
    animation: carouselSlideOut 0.5s ease-out forwards;
}

/* Stagger Animation with Increased Delay */
.stagger-lg > *:nth-child(n) {
    animation: slideUp 0.6s ease-out forwards;
    opacity: 0;
}

.stagger-lg > *:nth-child(1) { animation-delay: 0s; }
.stagger-lg > *:nth-child(2) { animation-delay: 0.15s; }
.stagger-lg > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-lg > *:nth-child(4) { animation-delay: 0.45s; }
.stagger-lg > *:nth-child(5) { animation-delay: 0.6s; }

/* Smooth Background Transition */
@keyframes bgTransition {
    from {
        background-position: 0% 50%;
    }
    to {
        background-position: 100% 50%;
    }
}

.bg-transition {
    background-size: 200% 200%;
    animation: bgTransition 3s ease infinite;
}
