/* ===========================================
   HOPE X GLOBAL - ANIMATION STYLES
   Clean, modern animations that enhance UX
============================================= */

/* ===== FADE IN ANIMATIONS ===== */
@keyframes fadeInUp {
    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 fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===== FLOATING ANIMATIONS ===== */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes floatSlow {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* ===== PULSE ANIMATIONS ===== */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

@keyframes pulseSoft {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

/* ===== SLIDE IN ANIMATIONS ===== */
@keyframes slideInFromLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ===== ROTATE & SPIN ANIMATIONS ===== */
@keyframes rotateSlow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes rotateReverse {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(-360deg);
    }
}

/* ===== GLOW EFFECTS ===== */
@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(255, 187, 0, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 187, 0, 0.6);
    }
}

@keyframes textGlow {
    0%, 100% {
        text-shadow: 0 0 5px rgba(255, 187, 0, 0.3);
    }
    50% {
        text-shadow: 0 0 15px rgba(255, 187, 0, 0.6);
    }
}

/* ===== BOUNCE ANIMATIONS (UPDATED) ===== */
@keyframes bounce-animate {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

@keyframes bounce-animate2 {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes bounce-animate3 {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes bounce-animate4 {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
}

@keyframes bounce-animate5 {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-7px);
    }
}

/* ===== REVEAL ANIMATIONS ===== */
@keyframes revealFromTop {
    from {
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    }
    to {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
}

@keyframes revealFromLeft {
    from {
        clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
    }
    to {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
}

/* ===== STAGGERED ANIMATION CLASSES ===== */

/* Fade In Elements */
.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in-left {
    animation: fadeInLeft 0.8s ease-out forwards;
}

.fade-in-right {
    animation: fadeInRight 0.8s ease-out forwards;
}

.fade-in-scale {
    animation: fadeInScale 0.6s ease-out forwards;
}

/* Floating Elements */
.float-element {
    animation: float 4s ease-in-out infinite;
}

.float-slow {
    animation: floatSlow 6s ease-in-out infinite;
}

/* Pulse Elements */
.pulse-element {
    animation: pulse 3s ease-in-out infinite;
}

.pulse-soft {
    animation: pulseSoft 4s ease-in-out infinite;
}

/* Rotating Elements */
.rotate-slow {
    animation: rotateSlow 20s linear infinite;
}

.rotate-reverse {
    animation: rotateReverse 25s linear infinite;
}

/* Glow Effects */
.glow-on-hover:hover {
    animation: glow 2s ease-in-out infinite;
}

.text-glow {
    animation: textGlow 3s ease-in-out infinite;
}

/* Reveal Animations */
.reveal-top {
    animation: revealFromTop 1.2s ease-out forwards;
}

.reveal-left {
    animation: revealFromLeft 1.2s ease-out forwards;
}

/* ===== ANIMATION UTILITY CLASSES ===== */

/* Delay Classes */
.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-400 {
    animation-delay: 0.4s;
}

.delay-500 {
    animation-delay: 0.5s;
}

.delay-600 {
    animation-delay: 0.6s;
}

.delay-700 {
    animation-delay: 0.7s;
}

.delay-800 {
    animation-delay: 0.8s;
}

/* Duration Classes */
.duration-fast {
    animation-duration: 0.4s;
}

.duration-normal {
    animation-duration: 0.8s;
}

.duration-slow {
    animation-duration: 1.2s;
}

.duration-slower {
    animation-duration: 2s;
}

/* ===== SCROLL-BASED ANIMATIONS ===== */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.scroll-animate.animated {
    opacity: 1;
    transform: translateY(0);
}

.scroll-animate-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s ease-out;
}

.scroll-animate-left.animated {
    opacity: 1;
    transform: translateX(0);
}

.scroll-animate-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.8s ease-out;
}

.scroll-animate-right.animated {
    opacity: 1;
    transform: translateX(0);
}

/* ===== HOVER EFFECTS ===== */

/* Button Hover Effects */
.btn-hover-lift {
    transition: all 0.3s ease;
}

.btn-hover-lift:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Card Hover Effects */
.card-hover {
    transition: all 0.4s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* Icon Hover Effects */
.icon-hover {
    transition: all 0.3s ease;
}

.icon-hover:hover {
    transform: scale(1.1);
    color: #ffbb00;
}

/* ===== SPECIFIC ELEMENT ANIMATIONS ===== */

/* Hero Section Animations */
.hero-title h1,
.hero-title h3 {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

.hero-title h1:nth-child(2) {
    animation-delay: 0.4s;
}

.hero-title h3 {
    animation-delay: 0.6s;
}

.hero-text p {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.8s forwards;
}

.hero-button a {
    opacity: 0;
    animation: fadeInScale 0.6s ease-out 1s forwards;
}

/* Feature Box Animations */
.feature-single-box {
    transition: all 0.4s ease;
}

.feature-single-box:hover {
    transform: translateY(-8px);
}

.feature-single-box:hover .feature-icon1 {
    transform: scale(1.1);
    color: #ffbb00;
}

.feature-icon1 {
    transition: all 0.3s ease;
}

/* Service Box Animations */
.service-single-box {
    transition: all 0.4s ease;
}

.service-single-box:hover {
    transform: translateY(-5px);
}

/* FAQ Accordion Animations */
.accordion li p {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
}

.accordion li.active p {
    max-height: 200px;
    padding-top: 10px;
}

.accordion li a {
    transition: all 0.3s ease;
}

.accordion li.active a {
    color: #ffbb00;
}

/* ===== RESPONSIVE ANIMATION ADJUSTMENTS ===== */
@media (max-width: 768px) {
    /* Reduce animation intensity on mobile */
    .float-element,
    .float-slow {
        animation-duration: 6s;
    }
    
    .pulse-element,
    .pulse-soft {
        animation-duration: 5s;
    }
    
    /* Disable some animations on very small screens */
    @media (max-width: 480px) {
        .rotate-slow,
        .rotate-reverse {
            animation: none;
        }
    }
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Hardware acceleration for smoother animations */
.animate-hardware {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}