/* 
Animations Stylesheet for domain.com
All animations are implemented with pure CSS as required
*/

/* Fade-in and slide-up animation - modified for immediate visibility */
.fade-in-up {
    opacity: 1; /* Changed from 0 to make content visible by default */
    transform: translateY(0); /* Removed initial transform */
    animation: none; /* Disabled animation to ensure visibility */
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation delays for staggered entries */
.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;
}

/* CSS counter animation for stats */
.stat-number {
    counter-reset: stat var(--stat-value);
    animation: countUp 2s ease-out forwards;
}

.stat-number::after {
    content: counter(stat);
}

@keyframes countUp {
    from {
        counter-increment: stat 0;
    }
    to {
        counter-increment: stat var(--stat-value);
    }
}

/* Removed horizontal sliding animation for testimonials */

/* Pulse animation for buttons */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.btn-pulse {
    animation: pulse 2s infinite;
}

/* Gradient animation for buttons */
.btn-gradient {
    background: linear-gradient(45deg, var(--color-secondary), var(--color-accent));
    background-size: 200% 200%;
    animation: gradient 3s ease infinite;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Reveal animation for sections - modified for immediate visibility */
.reveal {
    position: relative;
    opacity: 1; /* Changed from 0 to make content visible by default */
    transform: translateY(0); /* Removed initial transform */
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Border animation for form inputs */
@keyframes borderGlow {
    0% {
        border-color: var(--color-secondary);
        box-shadow: 0 0 0 0 rgba(255, 127, 80, 0.4);
    }
    50% {
        border-color: var(--color-accent);
        box-shadow: 0 0 0 4px rgba(77, 208, 225, 0.2);
    }
    100% {
        border-color: var(--color-secondary);
        box-shadow: 0 0 0 0 rgba(255, 127, 80, 0.4);
    }
}

.form-control:focus {
    animation: borderGlow 2s infinite;
}

/* Floating placeholder animation */
.form-group {
    position: relative;
}

.form-group label {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    transition: all 0.3s ease;
    pointer-events: none;
    color: #999;
}

.form-control:focus + label,
.form-control:not(:placeholder-shown) + label {
    top: 0;
    left: 10px;
    transform: translateY(-50%);
    background-color: white;
    padding: 0 5px;
    font-size: 0.85rem;
    color: var(--color-secondary);
}

/* Service card hover effect */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(27, 31, 59, 0.7), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover::before {
    opacity: 1;
}

/* Button hover gradient animation */
.btn:hover {
    background-image: linear-gradient(45deg, var(--color-secondary), var(--color-accent));
    background-size: 200% 200%;
    animation: gradient 3s ease infinite;
}

/* FAQ accordion animation */
.faq-question::after {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    transform: translateY(-50%) rotate(45deg);
}

/* Underline animation for navigation links */
nav ul li a::after {
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

nav ul li a:hover::after,
nav ul li a.active::after {
    transform: scaleX(1);
}
