/* ========================================
   PT Dinamika Duta Karya - Animasi Modern
   ======================================== */

/* ========================================
   Keyframe Animations
   ======================================== */

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

/* Modern Slide In Animations with Perspective */
@keyframes slideInUpSmooth {
    from {
        opacity: 0;
        transform: translateY(60px) perspective(1000px) rotateX(-10deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) perspective(1000px) rotateX(0deg);
    }
}

@keyframes slideInDownSmooth {
    from {
        opacity: 0;
        transform: translateY(-60px) perspective(1000px) rotateX(10deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) perspective(1000px) rotateX(0deg);
    }
}

@keyframes slideInLeftSmooth {
    from {
        opacity: 0;
        transform: translateX(-80px) perspective(1000px) rotateY(-10deg);
    }
    to {
        opacity: 1;
        transform: translateX(0) perspective(1000px) rotateY(0deg);
    }
}

@keyframes slideInRightSmooth {
    from {
        opacity: 0;
        transform: translateX(80px) perspective(1000px) rotateY(10deg);
    }
    to {
        opacity: 1;
        transform: translateX(0) perspective(1000px) rotateY(0deg);
    }
}

/* Modern Zoom with Rotation */
@keyframes zoomInRotate {
    from {
        opacity: 0;
        transform: scale(0.5) rotate(-180deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

@keyframes zoomInSpring {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.98);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Elastic Animations */
@keyframes elasticIn {
    0% {
        opacity: 0;
        transform: scale3d(0.3, 0.3, 0.3);
    }
    20% {
        transform: scale3d(1.1, 1.1, 1.1);
    }
    40% {
        transform: scale3d(0.9, 0.9, 0.9);
    }
    60% {
        opacity: 1;
        transform: scale3d(1.03, 1.03, 1.03);
    }
    80% {
        transform: scale3d(0.97, 0.97, 0.97);
    }
    100% {
        opacity: 1;
        transform: scale3d(1, 1, 1);
    }
}

/* Flip Animations */
@keyframes flipIn {
    from {
        opacity: 0;
        transform: perspective(1000px) rotateY(90deg);
    }
    to {
        opacity: 1;
        transform: perspective(1000px) rotateY(0deg);
    }
}

@keyframes flipInX {
    from {
        opacity: 0;
        transform: perspective(1000px) rotateX(90deg);
    }
    to {
        opacity: 1;
        transform: perspective(1000px) rotateX(0deg);
    }
}

@keyframes flipInY {
    from {
        opacity: 0;
        transform: perspective(1000px) rotateY(90deg);
    }
    to {
        opacity: 1;
        transform: perspective(1000px) rotateY(0deg);
    }
}

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

/* Tada Animation */
@keyframes tada {
    0% {
        transform: scale3d(1, 1, 1);
    }
    10%, 20% {
        transform: scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg);
    }
    30%, 50%, 70%, 90% {
        transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg);
    }
    40%, 60%, 80% {
        transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg);
    }
    100% {
        transform: scale3d(1, 1, 1);
    }
}

/* Wobble Animation */
@keyframes wobble {
    0% {
        transform: translateX(0%);
    }
    15% {
        transform: translateX(-25%) rotate(-5deg);
    }
    30% {
        transform: translateX(20%) rotate(3deg);
    }
    45% {
        transform: translateX(-15%) rotate(-3deg);
    }
    60% {
        transform: translateX(10%) rotate(2deg);
    }
    75% {
        transform: translateX(-5%) rotate(-1deg);
    }
    100% {
        transform: translateX(0%);
    }
}

/* Jelly Animation */
@keyframes jelly {
    0%, 100% {
        transform: scale3d(1, 1, 1);
    }
    30% {
        transform: scale3d(1.25, 0.75, 1);
    }
    40% {
        transform: scale3d(0.75, 1.25, 1);
    }
    50% {
        transform: scale3d(1.15, 0.85, 1);
    }
    65% {
        transform: scale3d(0.95, 1.05, 1);
    }
    75% {
        transform: scale3d(1.05, 0.95, 1);
    }
}

/* Head Shake */
@keyframes headShake {
    0% {
        transform: translateX(0);
    }
    6.5% {
        transform: translateX(-6px) rotateY(-9deg);
    }
    18.5% {
        transform: translateX(5px) rotateY(7deg);
    }
    31.5% {
        transform: translateX(-3px) rotateY(-5deg);
    }
    43.5% {
        transform: translateX(2px) rotateY(3deg);
    }
    50% {
        transform: translateX(0);
    }
}

/* Heartbeat Modern */
@keyframes heartbeatModern {
    0% {
        transform: scale(1);
    }
    14% {
        transform: scale(1.2);
    }
    28% {
        transform: scale(1);
    }
    42% {
        transform: scale(1.2);
    }
    70% {
        transform: scale(1);
    }
}

/* Glow Pulse */
@keyframes glowPulse {
    0% {
        box-shadow: 0 0 5px rgba(255, 107, 0, 0.2);
    }
    50% {
        box-shadow: 0 0 30px rgba(255, 107, 0, 0.6), 0 0 50px rgba(255, 107, 0, 0.4);
    }
    100% {
        box-shadow: 0 0 5px rgba(255, 107, 0, 0.2);
    }
}

/* Neon Glow */
@keyframes neonGlow {
    0%, 100% {
        text-shadow: 
            0 0 7px #fff,
            0 0 10px #fff,
            0 0 21px #fff,
            0 0 42px #ff6b00,
            0 0 82px #ff6b00;
    }
    50% {
        text-shadow: 
            0 0 10px #fff,
            0 0 20px #fff,
            0 0 30px #fff,
            0 0 50px #ff6b00,
            0 0 100px #ff6b00;
    }
}

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

/* Floating Particles */
@keyframes floatParticle {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(50px);
        opacity: 0;
    }
}

/* Shimmer Loading */
@keyframes shimmerLoading {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Wave Animation */
@keyframes wave {
    0% {
        transform: rotate(0deg);
    }
    20% {
        transform: rotate(14deg);
    }
    40% {
        transform: rotate(-8deg);
    }
    60% {
        transform: rotate(14deg);
    }
    80% {
        transform: rotate(-4deg);
    }
    100% {
        transform: rotate(0deg);
    }
}

/* Rubber Band */
@keyframes rubberBand {
    0% {
        transform: scale3d(1, 1, 1);
    }
    30% {
        transform: scale3d(1.25, 0.75, 1);
    }
    40% {
        transform: scale3d(0.75, 1.25, 1);
    }
    50% {
        transform: scale3d(1.15, 0.85, 1);
    }
    65% {
        transform: scale3d(0.95, 1.05, 1);
    }
    75% {
        transform: scale3d(1.05, 0.95, 1);
    }
    100% {
        transform: scale3d(1, 1, 1);
    }
}

/* Light Speed */
@keyframes lightSpeedInRight {
    from {
        transform: translate3d(100%, 0, 0) skewX(-30deg);
        opacity: 0;
    }
    60% {
        transform: skewX(20deg);
        opacity: 1;
    }
    80% {
        transform: skewX(-5deg);
    }
    100% {
        transform: translate3d(0, 0, 0);
    }
}

@keyframes lightSpeedInLeft {
    from {
        transform: translate3d(-100%, 0, 0) skewX(-30deg);
        opacity: 0;
    }
    60% {
        transform: skewX(20deg);
        opacity: 1;
    }
    80% {
        transform: skewX(-5deg);
    }
    100% {
        transform: translate3d(0, 0, 0);
    }
}

/* Back In Animations */
@keyframes backInUp {
    0% {
        transform: translateY(700px);
        opacity: 0;
    }
    70% {
        transform: translateY(-30px);
        opacity: 1;
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes backInDown {
    0% {
        transform: translateY(-700px);
        opacity: 0;
    }
    70% {
        transform: translateY(30px);
        opacity: 1;
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes backInLeft {
    0% {
        transform: translateX(-700px);
        opacity: 0;
    }
    70% {
        transform: translateX(30px);
        opacity: 1;
    }
    100% {
        transform: translateX(0);
    }
}

@keyframes backInRight {
    0% {
        transform: translateX(700px);
        opacity: 0;
    }
    70% {
        transform: translateX(-30px);
        opacity: 1;
    }
    100% {
        transform: translateX(0);
    }
}

/* Bounce In Directions */
@keyframes bounceInUp {
    0% {
        opacity: 0;
        transform: translateY(2000px);
    }
    60% {
        opacity: 1;
        transform: translateY(-30px);
    }
    80% {
        transform: translateY(10px);
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes bounceInDown {
    0% {
        opacity: 0;
        transform: translateY(-2000px);
    }
    60% {
        opacity: 1;
        transform: translateY(30px);
    }
    80% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes bounceInLeft {
    0% {
        opacity: 0;
        transform: translateX(2000px);
    }
    60% {
        opacity: 1;
        transform: translateX(-30px);
    }
    80% {
        transform: translateX(10px);
    }
    100% {
        transform: translateX(0);
    }
}

@keyframes bounceInRight {
    0% {
        opacity: 0;
        transform: translateX(-2000px);
    }
    60% {
        opacity: 1;
        transform: translateX(30px);
    }
    80% {
        transform: translateX(-10px);
    }
    100% {
        transform: translateX(0);
    }
}

/* Rotate In */
@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate3d(0, 0, 1, -200deg);
        transform-origin: center;
    }
    to {
        opacity: 1;
        transform: rotate3d(0, 0, 1, 0);
        transform-origin: center;
    }
}

@keyframes rotateInDownLeft {
    from {
        opacity: 0;
        transform: rotate3d(0, 0, 1, -45deg);
        transform-origin: left bottom;
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
        transform-origin: left bottom;
    }
}

@keyframes rotateInDownRight {
    from {
        opacity: 0;
        transform: rotate3d(0, 0, 1, 45deg);
        transform-origin: right bottom;
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
        transform-origin: right bottom;
    }
}

@keyframes rotateInUpLeft {
    from {
        opacity: 0;
        transform: rotate3d(0, 0, 1, 45deg);
        transform-origin: left bottom;
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
        transform-origin: left bottom;
    }
}

@keyframes rotateInUpRight {
    from {
        opacity: 0;
        transform: rotate3d(0, 0, 1, -90deg);
        transform-origin: right bottom;
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
        transform-origin: right bottom;
    }
}

/* Special Gradient Animations */
@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes borderGlow {
    0%, 100% {
        box-shadow: 
            0 0 5px rgba(255, 107, 0, 0.5),
            inset 0 0 5px rgba(255, 107, 0, 0.5);
    }
    50% {
        box-shadow: 
            0 0 20px rgba(255, 107, 0, 0.8),
            inset 0 0 20px rgba(255, 107, 0, 0.8);
    }
}

/* Holographic Effect */
@keyframes holographic {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 200% 200%;
    }
}

/* Blur In */
@keyframes blurIn {
    from {
        opacity: 0;
        filter: blur(10px);
    }
    to {
        opacity: 1;
        filter: blur(0);
    }
}

/* Blur In Up */
@keyframes blurInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
        filter: blur(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

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

/* Typewriter */
@keyframes typewriter {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blinkCursor {
    from, to {
        border-color: transparent;
    }
    50% {
        border-color: rgba(255, 107, 0, 0.8);
    }
}

/* Particle Float */
@keyframes particleFloat {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(10px, -20px) rotate(90deg);
    }
    50% {
        transform: translate(-10px, -40px) rotate(180deg);
    }
    75% {
        transform: translate(10px, -60px) rotate(270deg);
    }
}

/* Morphing Shape */
@keyframes morph {
    0%, 100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }
}

/* Liquid Wave */
@keyframes liquidWave {
    0% {
        transform: translateX(0) translateY(0);
    }
    50% {
        transform: translateX(-25%) translateY(10%);
    }
    100% {
        transform: translateX(-50%) translateY(0);
    }
}

/* Sparkle */
@keyframes sparkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Firefly */
@keyframes firefly {
    0%, 100% {
        opacity: 0;
        transform: translate(0, 0);
    }
    25% {
        opacity: 1;
        transform: translate(50px, -100px);
    }
    50% {
        opacity: 0.5;
        transform: translate(100px, -200px);
    }
    75% {
        opacity: 0.8;
        transform: translate(150px, -300px);
    }
}

/* Thunder */
@keyframes thunder {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
    55% {
        opacity: 1;
    }
    60% {
        opacity: 0.3;
    }
}

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

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

/* Roll In */
@keyframes rollIn {
    from {
        opacity: 0;
        transform: translate3d(-100%, 0, 0) rotate3d(0, 0, 1, -120deg);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* Jack In The Box */
@keyframes jackInTheBox {
    from {
        opacity: 0;
        transform: scale(0.1) rotate(30deg);
        transform-origin: center bottom;
    }
    50% {
        transform: rotate(-10deg);
    }
    70% {
        transform: rotate(3deg);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

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

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

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

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

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

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

@keyframes zoomOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(1.5);
    }
}

/* Slide Animations */
@keyframes slideInUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes slideInDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

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

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

/* Bounce & Elastic Animations */
@keyframes bounceIn {
    0%, 20%, 40%, 60%, 80%, 100% {
        animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
    }
    0% {
        opacity: 0;
        transform: scale3d(0.3, 0.3, 0.3);
    }
    20% {
        transform: scale3d(1.1, 1.1, 1.1);
    }
    40% {
        transform: scale3d(0.9, 0.9, 0.9);
    }
    60% {
        opacity: 1;
        transform: scale3d(1.03, 1.03, 1.03);
    }
    80% {
        transform: scale3d(0.97, 0.97, 0.97);
    }
    100% {
        opacity: 1;
        transform: scale3d(1, 1, 1);
    }
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
        transform: translate3d(0, 0, 0);
    }
    40%, 43% {
        animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
        transform: translate3d(0, -30px, 0);
    }
    70% {
        animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
        transform: translate3d(0, -15px, 0);
    }
    90% {
        transform: translate3d(0, -4px, 0);
    }
}

/* Pulse & Glow Animations */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 107, 0, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(255, 107, 0, 0.6), 0 0 60px rgba(255, 107, 0, 0.4);
    }
}

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

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

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

/* Wiggle Animation */
@keyframes wiggle {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-5deg);
    }
    75% {
        transform: rotate(5deg);
    }
}

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

/* Heartbeat */
@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    14% {
        transform: scale(1.15);
    }
    28% {
        transform: scale(1);
    }
    42% {
        transform: scale(1.15);
    }
    70% {
        transform: scale(1);
    }
}

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

/* Ripple Effect */
@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

/* ========================================
   Animation Utility Classes
   ======================================== */

/* Animation Base Classes */
.animate {
    opacity: 0;
    animation-fill-mode: forwards;
    animation-duration: 0.8s;
    animation-timing-function: ease-out;
}

/* Direction Classes */
.animate-fade-in {
    animation-name: fadeIn;
}

.animate-fade-in-up {
    animation-name: fadeInUp;
}

.animate-fade-in-down {
    animation-name: fadeInDown;
}

.animate-fade-in-left {
    animation-name: fadeInLeft;
}

.animate-fade-in-right {
    animation-name: fadeInRight;
}

.animate-fade-in-scale {
    animation-name: fadeInScale;
}

.animate-zoom-in {
    animation-name: zoomIn;
}

.animate-slide-in-up {
    animation-name: slideInUp;
}

.animate-slide-in-down {
    animation-name: slideInDown;
}

.animate-slide-in-left {
    animation-name: slideInLeft;
}

.animate-slide-in-right {
    animation-name: slideInRight;
}

.animate-bounce-in {
    animation-name: bounceIn;
}

/* Modern Animation Classes */
.animate-slide-in-up-smooth {
    animation-name: slideInUpSmooth;
}

.animate-slide-in-down-smooth {
    animation-name: slideInDownSmooth;
}

.animate-slide-in-left-smooth {
    animation-name: slideInLeftSmooth;
}

.animate-slide-in-right-smooth {
    animation-name: slideInRightSmooth;
}

.animate-zoom-in-rotate {
    animation-name: zoomInRotate;
}

.animate-zoom-in-spring {
    animation-name: zoomInSpring;
}

.animate-flip-in {
    animation-name: flipIn;
}

.animate-flip-in-x {
    animation-name: flipInX;
}

.animate-flip-in-y {
    animation-name: flipInY;
}

.animate-swing {
    animation-name: swing;
}

.animate-tada {
    animation-name: tada;
}

.animate-wobble {
    animation-name: wobble;
}

.animate-jelly {
    animation-name: jelly;
}

.animate-head-shake {
    animation-name: headShake;
}

.animate-light-speed-in-right {
    animation-name: lightSpeedInRight;
}

.animate-light-speed-in-left {
    animation-name: lightSpeedInLeft;
}

.animate-back-in-up {
    animation-name: backInUp;
}

.animate-back-in-down {
    animation-name: backInDown;
}

.animate-back-in-left {
    animation-name: backInLeft;
}

.animate-back-in-right {
    animation-name: backInRight;
}

.animate-bounce-in-up {
    animation-name: bounceInUp;
}

.animate-bounce-in-down {
    animation-name: bounceInDown;
}

.animate-bounce-in-left {
    animation-name: bounceInLeft;
}

.animate-bounce-in-right {
    animation-name: bounceInRight;
}

.animate-rotate-in {
    animation-name: rotateIn;
}

.animate-rotate-in-down-left {
    animation-name: rotateInDownLeft;
}

.animate-rotate-in-down-right {
    animation-name: rotateInDownRight;
}

.animate-rotate-in-up-left {
    animation-name: rotateInUpLeft;
}

.animate-rotate-in-up-right {
    animation-name: rotateInUpRight;
}

.animate-blur-in {
    animation-name: blurIn;
}

.animate-blur-in-up {
    animation-name: blurInUp;
}

.animate-roll-in {
    animation-name: rollIn;
}

.animate-jack-in-the-box {
    animation-name: jackInTheBox;
}

.animate-elastic-in {
    animation-name: elasticIn;
}

/* Animation 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;
}

.delay-900 {
    animation-delay: 0.9s;
}

.delay-1000 {
    animation-delay: 1s;
}

/* Animation 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;
}

/* Infinite Animations */
.animate-infinite {
    animation-iteration-count: infinite;
}

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

.animate-float {
    animation: float 3s ease-in-out infinite;
}

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

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

.animate-heartbeat {
    animation: heartbeat 1.5s ease-in-out infinite;
}

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

/* Modern Infinite Animations */
.animate-floating {
    animation: floating 3s ease-in-out infinite;
}

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

.animate-heartbeat-modern {
    animation: heartbeatModern 1.5s ease-in-out infinite;
}

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

.animate-neon-glow {
    animation: neonGlow 1.5s ease-in-out infinite;
}

.animate-wave {
    animation: wave 1.5s ease-in-out infinite;
}

.animate-particle-float {
    animation: particleFloat 5s ease-in-out infinite;
}

.animate-morph {
    animation: morph 3s ease-in-out infinite;
}

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

.animate-firefly {
    animation: firefly 4s ease-in-out infinite;
}

.animate-shake-x {
    animation: shakeX 1s ease-in-out infinite;
}

.animate-shake-y {
    animation: shakeY 1s ease-in-out infinite;
}

.animate-gradient-flow {
    background: linear-gradient(-45deg, #ff6b00, #e65c00, #ff8533, #ff9966);
    background-size: 400% 400%;
    animation: gradientFlow 15s ease infinite;
}

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

.animate-holographic {
    background: linear-gradient(
        45deg,
        rgba(255, 107, 0, 0.3),
        rgba(255, 133, 51, 0.3),
        rgba(230, 92, 0, 0.3),
        rgba(255, 107, 0, 0.3)
    );
    background-size: 200% 200%;
    animation: holographic 5s ease infinite;
}

/* ========================================
   Scroll-Triggered Animation Classes
   ======================================== */

.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-animate-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-animate-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.scroll-animate-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-animate-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scroll-animate-up {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-animate-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-animate-down {
    opacity: 0;
    transform: translateY(-50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-animate-down.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-animate-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-animate-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* Stagger Animation for Grid Items */
.stagger-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.stagger-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }

/* ========================================
   Hover Effect Classes
   ======================================== */

/* Hover Lift Effect */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Hover Scale Effect */
.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* Hover Glow Effect */
.hover-glow {
    transition: box-shadow 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 30px rgba(255, 107, 0, 0.5);
}

/* Hover Shine Effect */
.hover-shine {
    position: relative;
    overflow: hidden;
}

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

.hover-shine:hover::before {
    left: 100%;
}

/* Hover Ripple Button */
.hover-ripple {
    position: relative;
    overflow: hidden;
}

.hover-ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.hover-ripple:hover::after {
    width: 300px;
    height: 300px;
}

/* Hover Border Animation */
.hover-border-animate {
    position: relative;
}

.hover-border-animate::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.hover-border-animate::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.hover-border-animate:hover::before,
.hover-border-animate:hover::after {
    width: 100%;
}

/* Hover Image Zoom */
.hover-image-zoom {
    overflow: hidden;
}

.hover-image-zoom img {
    transition: transform 0.5s ease;
}

.hover-image-zoom:hover img {
    transform: scale(1.1);
}

/* Hover Rotate */
.hover-rotate {
    transition: transform 0.3s ease;
}

.hover-rotate:hover {
    transform: rotate(5deg) scale(1.05);
}

/* Pulse Infinite Animation for Hero Title */
@keyframes pulseScale {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.02);
        opacity: 0.95;
    }
}

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

/* Hover Flip */
.hover-flip {
    perspective: 1000px;
}

.hover-flip-inner {
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.hover-flip:hover .hover-flip-inner {
    transform: rotateY(180deg);
}

/* Modern Hover Effects */
.hover-skew {
    transition: transform 0.3s ease;
}

.hover-skew:hover {
    transform: skewX(-10deg);
}

.hover-bounce-in {
    transition: transform 0.3s ease;
}

.hover-bounce-in:hover {
    animation: bounceIn 0.5s ease;
}

.hover-tada {
    transition: transform 0.3s ease;
}

.hover-tada:hover {
    animation: tada 0.5s ease;
}

.hover-wobble {
    transition: transform 0.3s ease;
}

.hover-wobble:hover {
    animation: wobble 0.5s ease;
}

.hover-jelly {
    transition: transform 0.3s ease;
}

.hover-jelly:hover {
    animation: jelly 0.5s ease;
}

.hover-neon {
    transition: all 0.3s ease;
}

.hover-neon:hover {
    box-shadow: 
        0 0 10px rgba(255, 107, 0, 0.8),
        0 0 20px rgba(255, 107, 0, 0.6),
        0 0 30px rgba(255, 107, 0, 0.4),
        0 0 40px rgba(255, 107, 0, 0.2);
}

.hover-gradient-shift {
    background: linear-gradient(-45deg, #ff6b00, #e65c00, #ff8533, #ff9966);
    background-size: 400% 400%;
    transition: all 0.3s ease;
}

.hover-gradient-shift:hover {
    animation: gradientFlow 3s ease infinite;
}

.hover-glitch {
    transition: all 0.3s ease;
}

.hover-glitch:hover {
    animation: glitch 0.3s ease;
}

.hover-liquid {
    transition: all 0.4s ease;
}

.hover-liquid:hover {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
}

.hover-spread {
    transition: all 0.3s ease;
}

.hover-spread:hover {
    box-shadow: 
        0 0 0 0 rgba(255, 107, 0, 0.4),
        0 0 0 10px rgba(255, 107, 0, 0.3),
        0 0 0 20px rgba(255, 107, 0, 0.2),
        0 0 0 30px rgba(255, 107, 0, 0.1);
}

.hover-pulse-grow {
    transition: all 0.3s ease;
}

.hover-pulse-grow:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(255, 107, 0, 0.4);
}

.hover-shadow-glow {
    transition: all 0.3s ease;
}

.hover-shadow-glow:hover {
    box-shadow: 
        0 0 20px rgba(255, 107, 0, 0.6),
        0 0 40px rgba(255, 107, 0, 0.4),
        0 0 60px rgba(255, 107, 0, 0.2);
}

.hover-3d-lift {
    transition: all 0.4s ease;
}

.hover-3d-lift:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(-5deg);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.2),
        0 30px 60px rgba(0, 0, 0, 0.15);
}

.hover-swing {
    transform-origin: top center;
    transition: transform 0.3s ease;
}

.hover-swing:hover {
    animation: swing 0.5s ease;
}

.hover-rubber-band {
    transition: transform 0.3s ease;
}

.hover-rubber-band:hover {
    animation: rubberBand 0.5s ease;
}

.hover-head-shake {
    transition: transform 0.3s ease;
}

.hover-head-shake:hover {
    animation: headShake 0.5s ease;
}

.hover-rotate-full {
    transition: transform 0.6s ease;
}

.hover-rotate-full:hover {
    transform: rotate(360deg);
}

/* ========================================
   Special Effect Classes
   ======================================== */

/* Parallax Effect */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Glassmorphism Effect */
.glassmorphism {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

.glassmorphism-dark {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.glassmorphism-light {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.2);
}

/* Gradient Background Animation */
.animated-gradient {
    background: linear-gradient(-45deg, #ff6b00, #e65c00, #ff8533, #ff6b00);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

/* Neon Text Effect */
.neon-text {
    color: #fff;
    text-shadow: 
        0 0 7px #fff,
        0 0 10px #fff,
        0 0 21px #fff,
        0 0 42px #ff6b00,
        0 0 82px #ff6b00;
}

/* Floating Particles Container */
.particles-container {
    position: relative;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: rgba(255, 107, 0, 0.3);
    border-radius: 50%;
    animation: floatParticle 15s infinite;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { left: 20%; animation-delay: 2s; }
.particle:nth-child(3) { left: 30%; animation-delay: 4s; }
.particle:nth-child(4) { left: 40%; animation-delay: 1s; }
.particle:nth-child(5) { left: 50%; animation-delay: 3s; }
.particle:nth-child(6) { left: 60%; animation-delay: 5s; }
.particle:nth-child(7) { left: 70%; animation-delay: 2.5s; }
.particle:nth-child(8) { left: 80%; animation-delay: 4.5s; }

/* Typing Effect */
.typing-effect {
    overflow: hidden;
    border-right: 3px solid var(--primary-color);
    white-space: nowrap;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

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

@keyframes blink-caret {
    from, to {
        border-color: transparent;
    }
    50% {
        border-color: var(--primary-color);
    }
}

/* Number Counter Animation */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.counter-animate {
    animation: countUp 1s ease-out;
}

/* Progress Bar Animation */
@keyframes progressFill {
    from {
        width: 0;
    }
}

.progress-animate {
    animation: progressFill 2s ease-out forwards;
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(
        90deg,
        #f0f0f0 25%,
        #e0e0e0 50%,
        #f0f0f0 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* ========================================
   Page Load Animations
   ======================================== */

/* Page Fade In */
.page-loaded {
    animation: fadeIn 0.5s ease-out;
}

/* Hero Content Stagger */
.hero-loaded .hero-tagline {
    animation: fadeInDown 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

.hero-loaded .hero-title {
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
    opacity: 0;
}

.hero-loaded .hero-subtitle {
    animation: fadeInUp 0.8s ease-out 0.6s forwards;
    opacity: 0;
}

.hero-loaded .hero-buttons {
    animation: fadeInUp 0.8s ease-out 0.8s forwards;
    opacity: 0;
}

/* ========================================
   Icon Animations
   ======================================== */

/* Icon Pulse */
.icon-pulse {
    display: inline-block;
}

.icon-pulse::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(255, 107, 0, 0.3);
    z-index: -1;
    animation: pulse 2s infinite;
}

/* Icon Bounce */
.icon-bounce {
    display: inline-block;
    animation: bounce 2s infinite;
}

/* Icon Rotate on Hover */
.icon-rotate-hover {
    transition: transform 0.3s ease;
}

.icon-rotate-hover:hover {
    transform: rotate(360deg);
}

/* Icon Scale on Hover */
.icon-scale-hover {
    transition: transform 0.3s ease;
}

.icon-scale-hover:hover {
    transform: scale(1.2);
}

/* ========================================
   Text Animations
   ======================================== */

/* Text Gradient */
.text-gradient {
    background: linear-gradient(90deg, #ff6b00, #ff8533, #ff6b00);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s linear infinite;
}

/* Text Slide In */
.text-slide-in {
    display: inline-block;
    overflow: hidden;
}

.text-slide-in span {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
}

/* Letter Spacing Animation */
.letter-spacing-animate {
    transition: letter-spacing 0.3s ease;
}

.letter-spacing-animate:hover {
    letter-spacing: 2px;
}

/* ========================================
   Responsive Animation Adjustments
   ======================================== */

@media (max-width: 768px) {
    /* Reduce animations on mobile for better performance */
    .animate {
        animation-duration: 0.5s;
    }

    .animate-infinite {
        animation-iteration-count: 1;
    }

    /* Disable parallax on mobile */
    .parallax {
        background-attachment: scroll;
    }
}

/* Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
