/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

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

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

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

@keyframes rotateIn {
    from {
        transform: rotate(-90deg);
        opacity: 0;
    }
    to {
        transform: rotate(0);
        opacity: 1;
    }
}

/* Apply Animations */
.hero-content {
    animation: fadeIn 1.5s ease forwards;
}

.hero-content h1 {
    animation: slideInFromBottom 1.2s ease 0.3s both;
}

.hero-content p {
    animation: slideInFromBottom 1.2s ease 0.6s both;
}

.hero-buttons {
    animation: slideInFromBottom 1.2s ease 0.9s both;
}

.about-content, .story-content, .loyalty-content {
    animation: fadeIn 1.2s ease both;
}

.about-image, .story-image, .loyalty-image {
    animation: slideInFromRight 1.2s ease both;
}

.about-text, .story-text, .loyalty-text {
    animation: slideInFromLeft 1.2s ease both;
}

.service-card, .reward-card, .value-card, .team-member {
    animation: fadeIn 0.8s ease both;
}

.feature:nth-child(1), .service-card:nth-child(1), .reward-card:nth-child(1), .value-card:nth-child(1), .tier:nth-child(1), .team-member:nth-child(1) {
    animation-delay: 0.1s;
}

.feature:nth-child(2), .service-card:nth-child(2), .reward-card:nth-child(2), .value-card:nth-child(2), .tier:nth-child(2), .team-member:nth-child(2) {
    animation-delay: 0.3s;
}

.feature:nth-child(3), .service-card:nth-child(3), .reward-card:nth-child(3), .value-card:nth-child(3), .tier:nth-child(3), .team-member:nth-child(3) {
    animation-delay: 0.5s;
}

.service-card:nth-child(4), .reward-card:nth-child(4), .value-card:nth-child(4), .tier:nth-child(4), .team-member:nth-child(4) {
    animation-delay: 0.7s;
}

.reward-card:nth-child(5), .value-card:nth-child(5) {
    animation-delay: 0.9s;
}

.reward-card:nth-child(6), .value-card:nth-child(6) {
    animation-delay: 1.1s;
}

.step:nth-child(1) {
    animation: slideInFromLeft 1s ease 0.2s both;
}

.step:nth-child(2) {
    animation: slideInFromLeft 1s ease 0.4s both;
}

.step:nth-child(3) {
    animation: slideInFromLeft 1s ease 0.6s both;
}

.cta-content {
    animation: pulse 2s infinite;
}

.info-item:nth-child(1) {
    animation: slideInFromLeft 0.8s ease 0.1s both;
}

.info-item:nth-child(2) {
    animation: slideInFromLeft 0.8s ease 0.3s both;
}

.info-item:nth-child(3) {
    animation: slideInFromLeft 0.8s ease 0.5s both;
}

.info-item:nth-child(4) {
    animation: slideInFromLeft 0.8s ease 0.7s both;
}

.info-item:nth-child(5) {
    animation: slideInFromLeft 0.8s ease 0.9s both;
}

.testimonial {
    animation: fadeIn 1s ease both;
}

.page-hero-content h1 {
    animation: slideInFromBottom 1.2s ease 0.3s both;
}

.page-hero-content p {
    animation: slideInFromBottom 1.2s ease 0.6s both;
}

.section-header h2 {
    animation: slideInFromBottom 0.8s ease both;
}

.separator {
    animation: slideInFromBottom 0.8s ease 0.2s both;
}

/* Hover Animations */
.btn:hover {
    animation: pulse 1s infinite;
}

.logo img:hover {
    animation: pulse 1s ease;
}

.social-links a:hover {
    animation: rotateIn 0.5s ease;
}

.mobile-menu-btn:hover span:nth-child(1) {
    animation: slideInFromLeft 0.3s ease forwards;
}

.mobile-menu-btn:hover span:nth-child(3) {
    animation: slideInFromRight 0.3s ease forwards;
}

/* Add scroll animations for sections */
.about-section, .services-section, .testimonials-section, .loyalty-info, 
.rewards-section, .tiers-section, .terms-content, .privacy-content, 
.contact-section, .map-section, .story-section, .mission-section, 
.team-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
}

.about-section.visible, .services-section.visible, .testimonials-section.visible, 
.loyalty-info.visible, .rewards-section.visible, .tiers-section.visible, 
.terms-content.visible, .privacy-content.visible, .contact-section.visible, 
.map-section.visible, .story-section.visible, .mission-section.visible, 
.team-section.visible {
    opacity: 1;
    transform: translateY(0);
}