/* ==========================================================================
   Animations
   ========================================================================== */

/* Fade In Up Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Scale In Animation */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Slide In Left */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Slide In Right */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Intersection Observer Animation Classes */
.animate-ready {
    opacity: 0;
}

.animate-in {
    animation-duration: 0.8s;
    animation-fill-mode: both;
    animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Hero Section Animations */
.hero__title.animate-ready {
    opacity: 0;
    transform: translateY(30px);
}

.hero__title.animate-in {
    animation-name: fadeInUp;
    animation-delay: 0.2s;
}

.hero__subtitle.animate-ready {
    opacity: 0;
    transform: translateY(30px);
}

.hero__subtitle.animate-in {
    animation-name: fadeInUp;
    animation-delay: 0.4s;
}

.hero__actions.animate-ready {
    opacity: 0;
    transform: translateY(30px);
}

.hero__actions.animate-in {
    animation-name: fadeInUp;
    animation-delay: 0.6s;
}

/* VIP Status Section Animations */
.vip-status__title.animate-ready {
    opacity: 0;
    transform: translateY(30px);
}

.vip-status__title.animate-in {
    animation-name: fadeInUp;
}

.vip-status__subtitle.animate-ready {
    opacity: 0;
    transform: translateY(30px);
}

.vip-status__subtitle.animate-in {
    animation-name: fadeInUp;
    animation-delay: 0.2s;
}

/* VIP Cards Animations */
.vip-card.animate-ready {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
}

.vip-card.animate-in {
    animation-name: scaleIn;
    animation-duration: 0.8s;
}

.vip-card:nth-child(1).animate-in {
    animation-delay: 0.1s;
}

.vip-card:nth-child(2).animate-in {
    animation-delay: 0.2s;
}

.vip-card:nth-child(3).animate-in {
    animation-delay: 0.3s;
}

.vip-card:nth-child(4).animate-in {
    animation-delay: 0.4s;
}

/* Manager Section Animations */
.manager__title.animate-ready {
    opacity: 0;
    transform: translateY(30px);
}

.manager__title.animate-in {
    animation-name: fadeInUp;
}

.manager__subtitle.animate-ready {
    opacity: 0;
    transform: translateY(30px);
}

.manager__subtitle.animate-in {
    animation-name: fadeInUp;
    animation-delay: 0.2s;
}

.carousel-swiper.animate-ready {
    opacity: 0;
    transform: scale(0.95);
}

.carousel-swiper.animate-in {
    animation-name: scaleIn;
    animation-delay: 0.4s;
}

/* Benefits Section Animations */
.benefits__title.animate-ready {
    opacity: 0;
    transform: translateY(30px);
}

.benefits__title.animate-in {
    animation-name: fadeInUp;
}

.benefit-card.animate-ready {
    opacity: 0;
    transform: translateX(-40px);
}

.benefit-card.animate-in {
    animation-name: slideInLeft;
    animation-duration: 0.7s;
}

.benefits__column:nth-child(1) .benefit-card.animate-in {
    animation-delay: 0.1s;
}

.benefits__column:nth-child(2) .benefit-card:nth-child(1).animate-in {
    animation-delay: 0.2s;
}

.benefits__column:nth-child(2) .benefit-card:nth-child(2).animate-in {
    animation-delay: 0.3s;
}

.benefits__column:nth-child(3) .benefit-card:nth-child(1).animate-in {
    animation-delay: 0.4s;
}

.benefits__column:nth-child(3) .benefit-card:nth-child(2).animate-in {
    animation-delay: 0.5s;
}

.benefits__row .benefit-card:nth-child(1).animate-in {
    animation-delay: 0.6s;
}

.benefits__row .benefit-card:nth-child(2).animate-in {
    animation-delay: 0.7s;
}

/* Exchange Section Animations */
.exchange__title.animate-ready {
    opacity: 0;
    transform: translateY(30px);
}

.exchange__title.animate-in {
    animation-name: fadeInUp;
}

.exchange__subtitle.animate-ready {
    opacity: 0;
    transform: translateY(30px);
}

.exchange__subtitle.animate-in {
    animation-name: fadeInUp;
    animation-delay: 0.2s;
}

.exchange__cta-text.animate-ready {
    opacity: 0;
    transform: translateY(30px);
}

.exchange__cta-text.animate-in {
    animation-name: fadeInUp;
    animation-delay: 0.3s;
}

.exchange__actions.animate-ready {
    opacity: 0;
    transform: translateY(30px);
}

.exchange__actions.animate-in {
    animation-name: fadeInUp;
    animation-delay: 0.4s;
}

/* FAQ Section Animations */
.faq__title.animate-ready {
    opacity: 0;
    transform: translateY(30px);
}

.faq__title.animate-in {
    animation-name: fadeInUp;
}

.faq__item.animate-ready {
    opacity: 0;
    transform: translateX(-30px);
}

.faq__item.animate-in {
    animation-name: slideInLeft;
    animation-duration: 0.6s;
}

.faq__item:nth-child(1).animate-in {
    animation-delay: 0.1s;
}

.faq__item:nth-child(2).animate-in {
    animation-delay: 0.2s;
}

.faq__item:nth-child(3).animate-in {
    animation-delay: 0.3s;
}

.faq__item:nth-child(4).animate-in {
    animation-delay: 0.4s;
}

.faq__item:nth-child(5).animate-in {
    animation-delay: 0.5s;
}

.faq__item:nth-child(6).animate-in {
    animation-delay: 0.6s;
}

/* CTA Section Animations */
.cta__title.animate-ready {
    opacity: 0;
    transform: translateY(30px);
}

.cta__title.animate-in {
    animation-name: fadeInUp;
}

.cta__text.animate-ready {
    opacity: 0;
    transform: translateY(30px);
}

.cta__text.animate-in {
    animation-name: fadeInUp;
    animation-delay: 0.2s;
}

.cta__tagline.animate-ready {
    opacity: 0;
    transform: translateY(30px);
}

.cta__tagline.animate-in {
    animation-name: fadeInUp;
    animation-delay: 0.4s;
}

/* Button Hover Animations */
.btn,
.hero__btn,
.vip__btn,
.exchange__btn,
.header__btn {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.btn::before,
.hero__btn::before,
.vip__btn::before,
.exchange__btn::before,
.header__btn--primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before,
.hero__btn:hover::before,
.vip__btn:hover::before,
.exchange__btn:hover::before,
.header__btn--primary:hover::before {
    width: 300px;
    height: 300px;
}

/* Card Hover Effects */
.vip-card {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.vip-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.benefit-card {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* Header Animation on Scroll */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

.header {
    animation: slideDown 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Ticker Pause on Hover */
.ticker__content {
    transition: animation-play-state 0.3s ease;
}

/* Link Hover Effects */
.header__nav-link,
.footer__link,
.vip-status__terms-link {
    position: relative;
    transition: color 0.3s ease;
}

.header__nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-text-primary);
    transition: width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.header__nav-link:hover::after {
    width: 100%;
}

/* Pagination Bullets Animation */
.swiper-pagination-bullet {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.swiper-pagination-bullet:hover {
    transform: scale(1.3);
}

/* Smooth Scroll Indicator */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Loading Animation for Images */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

img {
    animation: fadeIn 0.5s ease-in;
}

/* Stagger Animation for Lists */
.vip-card__privilege {
    opacity: 0;
    animation: fadeInUp 0.5s ease-out forwards;
}

.vip-card__privilege:nth-child(1) {
    animation-delay: 0.1s;
}

.vip-card__privilege:nth-child(2) {
    animation-delay: 0.2s;
}

.vip-card__privilege:nth-child(3) {
    animation-delay: 0.3s;
}

.vip-card__privilege:nth-child(4) {
    animation-delay: 0.4s;
}

/* Ticker Logo Animation */
.ticker__logo {
    transition: transform 0.3s ease, filter 0.3s ease;
}

.ticker__logo:hover {
    transform: scale(1.1);
    filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .ticker__content {
        animation: none;
    }

    .animate-ready,
    .animate-in {
        opacity: 1;
        transform: none;
    }
}

/* Floating Animation for VIP Cards */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* .vip-card:hover {
    animation: float 3s ease-in-out infinite;
} */

/* Glow Effect on Active Elements */
@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
    }

    50% {
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
    }
}

/* .header__nav-item--active .header__nav-link {
    animation: glow 2s ease-in-out infinite;
} */

/* Page Load Animations */
.hero {
    animation: fadeIn 1s ease-out;
}

/* Scroll Progress Indicator */
@keyframes progressBar {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}