/* ============================================================
   SCROLL ANIMATIONS & EFFECTS
   ============================================================ */

/* Fade In on Scroll */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Scroll Animation Classes */
.scroll-fade-in {
    animation: fadeInUp 0.6s ease-out both;
}

.scroll-fade-in-down {
    animation: fadeInDown 0.6s ease-out both;
}

.scroll-fade-in-left {
    animation: fadeInLeft 0.6s ease-out both;
}

.scroll-fade-in-right {
    animation: fadeInRight 0.6s ease-out both;
}

.scroll-scale-in {
    animation: scaleIn 0.6s ease-out both;
}

.scroll-slide-in-up {
    animation: slideInUp 0.6s ease-out both;
}

/* Initially hidden for scroll trigger */
.scroll-hidden {
    opacity: 0;
    transform: translateY(30px);
}

.scroll-hidden.animate {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Hover float effect */
.float-on-hover {
    transition: transform 0.3s ease;
}

.float-on-hover:hover {
    transform: translateY(-8px);
}

/* Staggered animation delays */
.scroll-stagger-1 { animation-delay: 0.1s; }
.scroll-stagger-2 { animation-delay: 0.2s; }
.scroll-stagger-3 { animation-delay: 0.3s; }
.scroll-stagger-4 { animation-delay: 0.4s; }
.scroll-stagger-5 { animation-delay: 0.5s; }
.scroll-stagger-6 { animation-delay: 0.6s; }

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Counter animation for numbers */
@keyframes countUp {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.counter {
    animation: countUp 0.6s ease-out both;
}

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

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

.animate-gradient {
    background-size: 200% 200%;
    animation: gradientShift 6s ease infinite;
}

/* Text reveal animation */
@keyframes textReveal {
    from {
        opacity: 0;
        clip-path: inset(0 100% 0 0);
    }
    to {
        opacity: 1;
        clip-path: inset(0 0 0 0);
    }
}

.text-reveal {
    animation: textReveal 0.8s ease-out;
}

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

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Card flip on hover */
@keyframes cardFlip {
    from {
        transform: rotateY(0deg);
    }
    to {
        transform: rotateY(10deg);
    }
}

.card-hover-flip:hover {
    animation: cardFlip 0.3s ease-out;
}

/* Line animation */
@keyframes lineExpand {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

.line-expand {
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
    animation: lineExpand 0.6s ease-out;
}
