/* Animations CSS */

@keyframes slideIn {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

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

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

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

@keyframes scrollWheel {
    0%, 100% {
        transform: translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateY(12px);
        opacity: 0;
    }
}

@keyframes arrowMove {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(5px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.6;
    }
}

@keyframes pulseRing {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.2);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 0.5;
    }
}

@keyframes gradientShift {
    0%, 100% {
        background: linear-gradient(135deg, #F5821F 0%, #ff6b35 100%);
    }
    50% {
        background: linear-gradient(135deg, #ff6b35 0%, #F5821F 100%);
    }
}

@keyframes meshMove {
    0%, 100% {
        background: radial-gradient(circle at 20% 50%, rgba(245, 130, 31, 0.15) 0%, transparent 50%);
    }
    50% {
        background: radial-gradient(circle at 80% 50%, rgba(245, 130, 31, 0.15) 0%, transparent 50%);
    }
}

/* Particles Animation */
.particles::before,
.particles::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: particleFloat 3s ease-in-out infinite;
}

.particles::before {
    left: 10%;
    top: 20%;
    animation-delay: 0s;
}

.particles::after {
    right: 20%;
    bottom: 30%;
    animation-delay: 1.5s;
}

@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(20px);
        opacity: 0;
    }
}

/* Floating Shapes Animation */
.floating-shapes::before,
.floating-shapes::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
}

.floating-shapes::before {
    width: 18rem;
    height: 18rem;
    background: linear-gradient(to bottom right, rgba(245, 130, 31, 0.2), rgba(255, 154, 51, 0.2));
    top: 10%;
    left: 10%;
    animation: shapeMove1 20s ease-in-out infinite;
}

.floating-shapes::after {
    width: 24rem;
    height: 24rem;
    background: linear-gradient(to bottom right, rgba(59, 130, 246, 0.1), rgba(147, 51, 234, 0.1));
    bottom: 20%;
    right: 10%;
    animation: shapeMove2 25s ease-in-out infinite;
}

@keyframes shapeMove1 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(100px, -100px) scale(1.2);
    }
    66% {
        transform: translate(0, -100px) scale(1.1);
    }
}

@keyframes shapeMove2 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(-80px, 80px) scale(1.1);
    }
    66% {
        transform: translate(-80px, 0) scale(1.2);
    }
}

/* Floating Planes Animation */
.floating-planes::before,
.floating-planes::after {
    content: '✈';
    position: absolute;
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.1);
    animation: planeFloat 6s ease-in-out infinite;
}

.floating-planes::before {
    left: 10%;
    top: 20%;
    animation-delay: 0s;
}

.floating-planes::after {
    right: 15%;
    bottom: 25%;
    animation-delay: 3s;
}

@keyframes planeFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    50% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-100px) rotate(10deg);
        opacity: 0;
    }
}

/* Floating Particles for Megamax Section */
.floating-particles::before,
.floating-particles::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(245, 130, 31, 0.3);
    border-radius: 50%;
    animation: floatParticles 5s ease-in-out infinite;
}

.floating-particles::before {
    left: 20%;
    top: 30%;
}

.floating-particles::after {
    right: 25%;
    bottom: 35%;
    animation-delay: 2.5s;
}

@keyframes floatParticles {
    0%, 100% {
        transform: translateY(0);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px);
        opacity: 0;
    }
}

/* Fade In Animations */
.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

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

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

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

.fade-in-left {
    animation: fadeInLeft 0.8s ease-out forwards;
}

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

.fade-in-right {
    animation: fadeInRight 0.8s ease-out forwards;
}

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

/* Scale In Animation */
.scale-in {
    animation: scaleIn 0.5s ease-out forwards;
}

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

/* Glow Pulse Animation */
.glow-pulse {
    animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(245, 130, 31, 0.5);
    }
    50% {
        box-shadow: 0 0 40px rgba(245, 130, 31, 0.8);
    }
}

/* Shimmer Effect */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.shimmer {
    background: linear-gradient(to right, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* Slide In Animations */
@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

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

/* Zoom In Animation */
@keyframes zoomIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Rotate In Animation */
@keyframes rotateIn {
    from {
        transform: rotate(-200deg) scale(0);
        opacity: 0;
    }
    to {
        transform: rotate(0) scale(1);
        opacity: 1;
    }
}

/* Bounce In Animation */
@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Elastic Animation */
@keyframes elastic {
    0% {
        transform: scale(1);
    }
    20% {
        transform: scale(1.2, 0.8);
    }
    40% {
        transform: scale(0.8, 1.2);
    }
    60% {
        transform: scale(1.1, 0.9);
    }
    80% {
        transform: scale(0.9, 1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Swing Animation */
@keyframes swing {
    20% {
        transform: rotate(15deg);
    }
    40% {
        transform: rotate(-10deg);
    }
    60% {
        transform: rotate(5deg);
    }
    80% {
        transform: rotate(-5deg);
    }
    100% {
        transform: rotate(0deg);
    }
}

/* Heartbeat Animation */
@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    10%, 30% {
        transform: scale(1.1);
    }
    20%, 40% {
        transform: scale(1);
    }
}

/* Loading Spinner */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Ripple Effect */
@keyframes ripple {
    0% {
        box-shadow: 0 0 0 0 rgba(245, 130, 31, 0.7),
                    0 0 0 10px rgba(245, 130, 31, 0.7),
                    0 0 0 20px rgba(245, 130, 31, 0.7);
    }
    100% {
        box-shadow: 0 0 0 10px rgba(245, 130, 31, 0.7),
                    0 0 0 20px rgba(245, 130, 31, 0.7),
                    0 0 0 40px rgba(245, 130, 31, 0);
    }
}

/* Text Glow Animation */
@keyframes textGlow {
    0%, 100% {
        text-shadow: 0 0 10px rgba(245, 130, 31, 0.5);
    }
    50% {
        text-shadow: 0 0 20px rgba(245, 130, 31, 0.8),
                     0 0 30px rgba(245, 130, 31, 0.6);
    }
}

/* Border Animation */
@keyframes borderAnimate {
    0% {
        border-color: #F5821F;
    }
    50% {
        border-color: #ff9a47;
    }
    100% {
        border-color: #F5821F;
    }
}

/* Wave Animation */
@keyframes wave {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Typing Animation */
@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}

/* Gradient Background Animation */
@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Glitch Effect */
@keyframes glitch {
    0%, 100% {
        transform: translate(0);
    }
    20% {
        transform: translate(-2px, 2px);
    }
    40% {
        transform: translate(-2px, -2px);
    }
    60% {
        transform: translate(2px, 2px);
    }
    80% {
        transform: translate(2px, -2px);
    }
}
