/* Animations */

/* Fade In */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Slide In Animations */
.slide-in-top {
    opacity: 0;
    transform: translateY(-50px);
    animation: slideInTop 0.5s ease forwards;
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    animation: slideInRight 0.5s ease forwards;
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    animation: slideInLeft 0.5s ease forwards;
}

.slide-in-bottom {
    opacity: 0;
    transform: translateY(50px);
    animation: slideInBottom 0.5s ease forwards;
}

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

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

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

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

/* Typing Animation */
.typing-animation {
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid #1e90ff;
    width: 100%;
    animation: 
        typing 3s 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: #1e90ff }
}

/* Bounce Animation */
.bounce {
    animation: bounce 2s infinite;
}

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

/* Floating Icons Animation */
.float {
    animation: float 3s ease-in-out infinite;
}

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

/* Flame Animation */
.flame-animation {
    color: #ff4d4d;
    animation: flame 1.5s ease-in-out infinite alternate;
}

@keyframes flame {
    from {
        filter: brightness(100%) hue-rotate(0deg);
        transform: scale(1);
    }
    to {
        filter: brightness(150%) hue-rotate(30deg);
        transform: scale(1.1);
    }
}

/* Card Flip Animation */
.service-card {
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.service-card:hover {
    transform: rotateY(180deg);
}

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

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Shake Animation */
.shake {
    animation: shake 0.5s ease-in-out infinite;
}

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

/* Input Animation */
.input-animation {
    transform-origin: left;
    animation: inputScale 0.3s ease forwards;
}

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

/* Scroll Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Floating Icons Positioning */
.floating-icons {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-icons i {
    position: absolute;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.3);
}

.floating-icons i:nth-child(1) {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.floating-icons i:nth-child(2) {
    top: 60%;
    right: 20%;
    animation-delay: 0.5s;
}

.floating-icons i:nth-child(3) {
    bottom: 20%;
    left: 50%;
    animation-delay: 1s;
}
