/* 
* Azira - Healing Springs Tours
* Enhanced Animations Stylesheet
*/

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

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

.slide-in-right {
    animation: slideInRight 0.6s ease-in-out;
}

/* Animation Speed Controls */
.hero-image {
    animation: float 1s ease-in-out infinite; /* Reduced to 1s */
}

.hero-title {
    animation-duration: 0.5s; /* Reduced to 0.5s */
}

.hero-subtitle-en {
    animation-duration: 0.5s; /* Reduced to 0.5s */
    animation-delay: 0.1s; /* Reduced to 0.1s */
}

.btn-primary:hover {
    animation: pulse 0.5s infinite; /* Reduced to 0.5s */
    animation-delay: 0.2s; /* Reduced to 0.2s */
}

.feature-card:hover .feature-icon {
    animation: bounce 0.5s ease infinite; /* Reduced to 0.5s */
}

.logo {
    animation: pulse 1s infinite; /* Reduced to 1s */
}

.hero-subtitle-en {
    animation: pulse 1.5s infinite; /* Reduced from 2s to 1.5s */
}

/* Pulse Animation */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 168, 150, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(0, 168, 150, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 168, 150, 0);
    }
}

/* Shine Animation */
@keyframes shine {
    0% {
        background-position: -100% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Glow Animation */
@keyframes glow {
    0% {
        box-shadow: 0 0 5px rgba(0, 168, 150, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(0, 168, 150, 0.8);
    }
    100% {
        box-shadow: 0 0 5px rgba(0, 168, 150, 0.5);
    }
}

/* Bounce Animation */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-30px);
    }
    60% {
        transform: translateY(-15px);
    }
}

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

/* Shake Animation */
@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-10px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(10px);
    }
}

/* Apply Animations to Elements */

/* Hero Title Animation */
.hero-title {
    position: relative;
    display: inline-block;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color), var(--secondary-color));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 3s linear infinite;
}

/* Hero Image Animation */
.hero-image {
    animation: float 6s ease-in-out infinite;
}

/* Button Animations */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
}

.btn-primary:hover {
    animation: pulse 1.5s infinite;
    transform: translateY(-5px);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
    transition: all 0.5s ease;
}

/* Feature Card Animations */
.feature-card {
    transition: all 0.5s ease;
}

.feature-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 15px 30px var(--shadow-color);
}

.feature-icon {
    transition: all 0.5s ease;
}

.feature-card:hover .feature-icon {
    animation: bounce 1s ease infinite;
    color: var(--secondary-color);
}

/* Destination Card Animations */
.destination-card {
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.destination-card:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 0 20px 40px var(--shadow-color);
}

.destination-card:hover .destination-image img {
    transform: scale(1.15);
}

.destination-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.destination-card:hover .destination-overlay {
    opacity: 1;
    transform: translateY(0);
}

/* Social Links Animation */
.social-links a {
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-links a:hover {
    transform: translateY(-10px) rotate(360deg);
    background-color: var(--secondary-color);
}

/* Back to Top Button Animation */
.back-to-top {
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.back-to-top:hover {
    animation: bounce 1s infinite;
    background-color: var(--secondary-color);
}

/* Navigation Link Animation */
.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
    right: 0;
}

/* Logo Animation */
.logo {
    animation: pulse 2s infinite;
}

/* Section Title Animation */
.section-title h2 {
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    bottom: -10px;
    right: 50%;
    transform: translateX(50%);
    transition: all 0.5s ease;
}

.section-title:hover h2::after {
    width: 100px;
}

/* Testimonial Card Animation */
.testimonial-card {
    transition: all 0.5s ease;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px var(--shadow-color);
}

/* Newsletter Animation */
.newsletter-form .input-group {
    transition: all 0.5s ease;
}

.newsletter-form .input-group:hover {
    animation: glow 2s infinite;
}

/* Cart Icon Animation */
.cart-icon {
    transition: all 0.3s ease;
}

.cart-icon:hover {
    animation: shake 0.5s ease;
}

/* Form Input Animation */
.form-control:focus {
    animation: glow 2s infinite;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 168, 150, 0.5);
}

/* Add to Cart Button Animation */
.add-to-cart {
    transition: all 0.5s ease;
}

.add-to-cart:hover {
    animation: pulse 1.5s infinite;
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* Category Card Animation */
.category-card img {
    transition: all 0.8s ease;
}

.category-card:hover img {
    transform: scale(1.2) rotate(3deg);
}

/* Value Card Animation */
.value-card {
    transition: all 0.5s ease;
}

.value-card:hover {
    transform: translateY(-10px) scale(1.05);
    background-color: var(--primary-color);
}

.value-card:hover h3,
.value-card:hover p {
    color: white;
}

.value-card:hover .value-icon {
    animation: bounce 1s infinite;
    color: white;
}

/* Team Card Animation */
.team-card {
    transition: all 0.5s ease;
}

.team-card:hover {
    transform: translateY(-15px);
}

.team-social {
    transition: all 0.5s ease;
}

.team-card:hover .team-social {
    opacity: 1;
}

/* Partner Item Animation */
.partner-item {
    transition: all 0.5s ease;
    filter: grayscale(100%);
}

.partner-item:hover {
    filter: grayscale(0%);
    transform: scale(1.1);
}

/* Contact Info Card Animation */
.contact-info-card {
    transition: all 0.5s ease;
}

.contact-info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px var(--shadow-color);
}

.contact-info-card:hover .contact-icon {
    animation: bounce 1s infinite;
    color: var(--secondary-color);
}

/* Map Placeholder Animation */
.map-placeholder {
    transition: all 0.5s ease;
}

.map-placeholder:hover {
    animation: pulse 2s infinite;
}

/* FAQ Accordion Animation */
.accordion-button {
    transition: all 0.5s ease;
}

.accordion-button:not(.collapsed) {
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    color: white;
}

/* Checkout Steps Animation */
.step-icon {
    transition: all 0.5s ease;
}

.step.active .step-icon {
    animation: pulse 2s infinite;
}

/* Page Loading Animation */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

/* Preloader Animation */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--light-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: all 0.5s ease;
}

.preloader-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(0, 168, 150, 0.2);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: rotate 1s linear infinite;
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}
