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

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

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

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

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

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

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

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

@keyframes rotating {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Apply Animations */
.fade-in {
    animation: fadeIn 1s ease forwards;
}

.slide-up {
    animation: slideInUp 0.8s ease forwards;
}

.slide-left {
    animation: slideInLeft 0.8s ease forwards;
}

.slide-right {
    animation: slideInRight 0.8s ease forwards;
}

.zoom-in {
    animation: zoomIn 0.8s ease forwards;
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

.float {
    animation: float 3s ease-in-out infinite;
}

.bounce {
    animation: bounce 2s ease infinite;
}

/* Animation Delays */
.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;
}

.delay-700 {
    animation-delay: 0.7s;
}

.delay-1000 {
    animation-delay: 1s;
}

/* Entrance Animations */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
}

.from-bottom {
    transform: translateY(50px);
}

.from-bottom.visible {
    transform: translateY(0);
}

.from-left {
    transform: translateX(-50px);
}

.from-left.visible {
    transform: translateX(0);
}

.from-right {
    transform: translateX(50px);
}

.from-right.visible {
    transform: translateX(0);
}

.scale-up {
    transform: scale(0.9);
}

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

/* Element-specific animations */
.service-icon i {
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon i {
    transform: scale(1.2);
}

.hero-image {
    animation: float 6s ease-in-out infinite;
}

.cta-button {
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
}

.feature-icon i {
    transition: transform 0.3s ease;
}

.feature-item:hover .feature-icon i {
    transform: scale(1.2) rotate(10deg);
}

.team-card .team-image img {
    transition: transform 0.5s ease;
}

.team-card:hover .team-image img {
    transform: scale(1.05);
}

.social-link {
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.social-link:hover {
    transform: translateY(-3px) scale(1.1);
}

/* Stats counter animation */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.counter {
    animation: countUp 1s ease forwards;
}

/* Testimonial slider animation */
@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

.testimonial-slide.entering {
    animation: fadeSlideIn 0.5s ease forwards;
}

.testimonial-slide.exiting {
    animation: fadeSlideOut 0.5s ease forwards;
}

/* FAQ accordion animation */
.faq-question i {
    transition: transform 0.3s ease;
}

.faq-answer {
    transition: max-height 0.5s ease, padding 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* Button hover effects */
.btn-service::after {
    content: '';
    position: absolute;
    width: 0;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(74, 111, 165, 0.1);
    transition: width 0.3s ease;
    z-index: -1;
    border-radius: var(--radius-full);
}

.btn-service:hover::after {
    width: 100%;
}

/* Form input focus effects */
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Calendar day hover */
.calendar-day {
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.calendar-day:hover:not(.disabled) {
    transform: translateY(-2px);
}

/* Back to top button animation */
.back-to-top {
    transition: opacity 0.3s ease, visibility 0.3s ease, background-color 0.3s ease, transform 0.3s ease;
}

.back-to-top:hover i {
    animation: bounce 2s infinite;
}

/* Mobile menu animation */
.menu-toggle span {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-links {
    transition: left 0.4s ease;
}

/* Section transitions */
section {
    transition: background-color 0.5s ease;
}

/* Image hover effects */
.about-image img,
.team-image img,
.hero-image img {
    transition: transform 0.5s ease;
}