/* Wavy Text Animation */
@keyframes waveText {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.wavy-char {
    display: inline-block;
    animation: waveText 2.5s ease-in-out 1;
    animation-play-state: paused;
    /* Start paused */
    animation-delay: calc(var(--i) * 0.1s);
    /* Stagger based on index */
}

/* Activate when in view */
.animate-wave .wavy-char {
    animation-play-state: running;
}

/* Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {
    .wavy-char {
        animation: none;
        transform: none;
    }
}

/* Optional: Disable on very small mobile screens if desired */
@media (max-width: 480px) {
    .wavy-char {
        animation: none;
        /* remove animation on mobile if it causes layout shifts or distraction */
    }
}

.inner-page-hero-section {
    background: url(./images/service/service-hero-bg.png);
    background-size: cover;
    background-position: center center;
}

.achievement-card {
    transition: transform 0.5s ease-out;
    transform-style: preserve-3d;
    perspective: 1000px;
}

/* Timeline Animation */
.timeline-step .step-number {
    transition: all 0.5s ease;
    display: inline-block;
}

.timeline-step.is-active .step-number {
    /* transform: scale(1.2) skewX(-10deg); */
}

/* Falling Blocks Animation Styles */
.reveal-header-container {
    position: relative;
    display: inline-block;
    overflow: hidden;
    padding: 2px;
}

.falling-block {
    position: absolute;
    top: -2px;
    /* Slight overlap to ensure coverage */
    left: -2px;
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    background-color: #000;
    border-radius: 5px;
    z-index: 10;
    pointer-events: none;
}

.word-wrapper {
    position: relative;
    display: inline-block;
    white-space: pre;
}

.reveal-header {
    visibility: hidden;
}

.reveal-header.is-ready {
    visibility: visible;
}

@media(max-width: 768px) {

    .step-description {
        white-space: wrap;
        text-wrap: auto;
    }
}