/* ============ FADE & SLIDE ANIMATIONS ============ */

/* ============ HERO GRADIENT ANIMATIONS ============ */

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    25% {
        background-position: 100% 50%;
    }
    50% {
        background-position: 100% 100%;
    }
    75% {
        background-position: 0% 100%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
        opacity: 0.1;
    }
    25% {
        transform: translateY(-20px) translateX(20px);
        opacity: 0.15;
    }
    50% {
        transform: translateY(-40px) translateX(-20px);
        opacity: 0.12;
    }
    75% {
        transform: translateY(-20px) translateX(-30px);
        opacity: 0.14;
    }
}

@keyframes drift {
    0% {
        transform: translateX(0px);
    }
    100% {
        transform: translateX(100px);
    }
}

@keyframes pulseOverlay {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.5;
    }
}

@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 bounceInDown {
    0% {
        opacity: 0;
        transform: translateY(-60px) scaleY(0.9);
    }
    50% {
        opacity: 1;
        transform: translateY(5px) scaleY(1);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scaleY(1);
    }
}

@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 fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ============ BOUNCE & PULSE ANIMATIONS ============ */

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

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.1);
    }
    50% {
        transform: scale(1);
    }
    75% {
        transform: scale(1.05);
    }
}

/* ============ SCALE & GROW ANIMATIONS ============ */

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

@keyframes growWidth {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes expandHeight {
    from {
        max-height: 0;
        opacity: 0;
    }
    to {
        max-height: 1000px;
        opacity: 1;
    }
}

/* ============ ROTATE ANIMATIONS ============ */

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes flip {
    from {
        transform: rotateY(0deg);
    }
    to {
        transform: rotateY(180deg);
    }
}

/* ============ SHIMMER ANIMATIONS ============ */

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(85, 163, 154, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(85, 163, 154, 0.8);
    }
}

@keyframes glassGlow {
    0%, 100% {
        box-shadow: 0 8px 32px rgba(85, 163, 154, 0.1), inset 0 1px 0 rgba(255,255,255,0.6);
    }
    50% {
        box-shadow: 0 15px 50px rgba(85, 163, 154, 0.2), inset 0 1px 0 rgba(255,255,255,0.8);
    }
}

@keyframes luxeShimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

@keyframes floatGlass {
    0%, 100% {
        transform: translateY(0px);
        filter: drop-shadow(0 8px 16px rgba(85, 163, 154, 0.1));
    }
    50% {
        transform: translateY(-8px);
        filter: drop-shadow(0 15px 25px rgba(85, 163, 154, 0.2));
    }
}

/* ============ WAVE ANIMATIONS ============ */

@keyframes wave {
    0%, 100% {
        transform: rotate(0deg);
    }
    10% {
        transform: rotate(14deg);
    }
    20% {
        transform: rotate(-8deg);
    }
    30% {
        transform: rotate(14deg);
    }
    40% {
        transform: rotate(-4deg);
    }
    50% {
        transform: rotate(10deg);
    }
    60% {
        transform: rotate(0deg);
    }
}

/* ============ SLIDE ANIMATIONS ============ */

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes slideOutLeft {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}

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

/* ============ ANIMATION UTILITY CLASSES ============ */

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

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

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

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

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

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

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

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

.animate-spin {
    animation: spin 2s linear infinite;
}

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

.animate-wave {
    animation: wave 0.5s ease-in-out;
    transform-origin: 70% 55%;
    display: inline-block;
}

/* ============ STAGGER ANIMATIONS ============ */

.service-card {
    animation: fadeInUp 0.6s ease-out backwards;
}

.service-card:nth-child(1) { animation-delay: 0s; }
.service-card:nth-child(2) { animation-delay: 0.1s; }
.service-card:nth-child(3) { animation-delay: 0.2s; }
.service-card:nth-child(4) { animation-delay: 0.3s; }
.service-card:nth-child(5) { animation-delay: 0.4s; }
.service-card:nth-child(6) { animation-delay: 0.5s; }
.service-card:nth-child(7) { animation-delay: 0.6s; }
.service-card:nth-child(8) { animation-delay: 0.7s; }
.service-card:nth-child(9) { animation-delay: 0.8s; }
.service-card:nth-child(10) { animation-delay: 0.9s; }
.service-card:nth-child(11) { animation-delay: 1s; }
.service-card:nth-child(12) { animation-delay: 1.1s; }

.testimonial-card {
    animation: fadeInUp 0.6s ease-out backwards;
}

.testimonial-card:nth-child(1) { animation-delay: 0s; }
.testimonial-card:nth-child(2) { animation-delay: 0.15s; }
.testimonial-card:nth-child(3) { animation-delay: 0.3s; }
.testimonial-card:nth-child(4) { animation-delay: 0.45s; }

.stat-card {
    animation: scaleIn 0.6s ease-out backwards;
}

.stat-card:nth-child(1) { animation-delay: 0s; }
.stat-card:nth-child(2) { animation-delay: 0.1s; }
.stat-card:nth-child(3) { animation-delay: 0.2s; }
.stat-card:nth-child(4) { animation-delay: 0.3s; }

.gallery-item {
    animation: fadeInUp 0.6s ease-out backwards;
}

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

.contact-card {
    animation: fadeInUp 0.6s ease-out backwards;
}

.contact-card:nth-child(1) { animation-delay: 0s; }
.contact-card:nth-child(2) { animation-delay: 0.15s; }
.contact-card:nth-child(3) { animation-delay: 0.3s; }
.contact-card:nth-child(4) { animation-delay: 0.45s; }

/* ============ RESPONSE STATES ============ */

@keyframes successPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(85, 163, 154, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(85, 163, 154, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(85, 163, 154, 0);
    }
}

@keyframes errorShake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-10px);
    }
    75% {
        transform: translateX(10px);
    }
}

.success-animation {
    animation: successPulse 1s ease-out;
}

.error-animation {
    animation: errorShake 0.5s ease-out;
}