/* Animations CSS */

/* Fade In Animation */
.animate-fade-in {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

.animate-fade-in-delay {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
    animation-delay: 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Slide From Left Animation */
.animate-from-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 1s ease;
}

.animate-from-left.in-view {
    opacity: 1;
    transform: translateX(0);
}

/* Slide From Right Animation */
.animate-from-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 1s ease;
}

.animate-from-right.in-view {
    opacity: 1;
    transform: translateX(0);
}

/* Pop Up Animation */
.animate-popup {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.5s ease;
}

.animate-popup.in-view {
    opacity: 1;
    transform: scale(1);
}

/* Staggered Animation for Service Cards */
.services-grid .service-card:nth-child(1) {
    transition-delay: 0.1s;
}

.services-grid .service-card:nth-child(2) {
    transition-delay: 0.2s;
}

.services-grid .service-card:nth-child(3) {
    transition-delay: 0.3s;
}

.services-grid .service-card:nth-child(4) {
    transition-delay: 0.4s;
}

/* Counter Animation */
.counter-box {
    text-align: center;
    margin-bottom: 30px;
}

.counter {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.counter-title {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* Parallax Effect */
.parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Pulse Animation for CTA Button */
.pulse {
    animation: pulse 2s infinite;
}



/* Floating Animation for Icons */
.float {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Progress Bar Animation */
.progress-bar {
    height: 5px;
    width: 0;
    background-color: var(--primary-color);
    transition: width 1.5s ease;
}

.progress-bar.in-view {
    width: var(--width);
}

/* Rotate Animation */
.rotate {
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Shine Effect for Cards */
.shine {
    position: relative;
    overflow: hidden;
}

.shine::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.3) 100%);
    transform: skewX(-25deg);
    transition: all 0.75s;
}

.shine:hover::before {
    left: 125%;
}

/* Zoom Effect for Images */
.zoom {
    overflow: hidden;
}

.zoom img {
    transition: transform 0.5s ease;
}

.zoom:hover img {
    transform: scale(1.1);
}

/* Shake Animation */
.shake {
    animation: shake 0.82s cubic-bezier(.36, .07, .19, .97) both;
    transform: translate3d(0, 0, 0);
}

@keyframes shake {

    10%,
    90% {
        transform: translate3d(-1px, 0, 0);
    }

    20%,
    80% {
        transform: translate3d(2px, 0, 0);
    }

    30%,
    50%,
    70% {
        transform: translate3d(-4px, 0, 0);
    }

    40%,
    60% {
        transform: translate3d(4px, 0, 0);
    }
}

/* Typewriter Animation */
.typewriter h1 {
    overflow: hidden;
    border-right: .15em solid var(--primary-color);
    white-space: nowrap;
    margin: 0 auto;
    letter-spacing: .15em;
    animation:
        typing 3.5s steps(40, end),
        blink-caret .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)
    }
}

/* Animations */
.fade-in {
    animation: fadeIn 1s ease-in-out;
}

.slide-up {
    animation: slideUp 0.8s ease-in-out;
}

.pulse {
    animation: pulse 2s infinite;
}

.bounce {
    animation: bounce 2s infinite;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-20px);
    }

    60% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 #12402570;
    }

    70% {
        box-shadow: 0 0 0 10px rgba(104, 70, 15, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(249, 168, 37, 0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}