/* animations.css */

/* Fade In Up */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Scale In */
.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Hero background animation */
@keyframes hero-bg-pan {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero {
    background-size: 200% 200%;
    animation: hero-bg-pan 20s ease infinite;
}

/* Button hover effects */
.btn {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    z-index: -1;
}

.btn:hover::before {
    left: 0;
}

/* Service item icon pulse */
.service-item i {
    animation: pulse 2s infinite;
}

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

/* Team member image border animation */
.team-member img {
    transition: border-color 0.3s ease;
}

.team-member:hover img {
    border-color: var(--cta-color);
}

/* Stat item number counter (handled by JS) */
.stat-item .number {
    font-variant-numeric: tabular-nums; /* Ensures numbers align during counting */
}

/* Methodology step slide in */
.methodology-step {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.methodology-step.visible {
    opacity: 1;
    transform: translateX(0);
}

.methodology-step:nth-child(even).visible {
    transform: translateX(0);
}

/* Contact item bounce */
.contact-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}