/* Custom animations */
.fade-in {
    opacity: 0;
    transition: opacity 0.6s ease-out;
}

.fade-in.animate {
    opacity: 1;
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.slide-in-left.animate {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.slide-in-right.animate {
    opacity: 1;
    transform: translateX(0);
}

/* Testimonial slider */
.testimonial-slider {
  display: flex;
  transition: transform 0.5s ease-in-out;
}




/* Mobile menu animation */
#mobile-menu {
    transition: all 0.3s ease;
}

/* Form input focus styles */
input:focus, textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3);
}

/* Button hover effects */
.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* Service card hover effect */
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}


  .hero-slide {
            background-size: cover;
            background-position: center;
            transition: opacity 1s ease-in-out;
        }
        .typewriter {
            overflow: hidden;
            border-right: .15em solid #818cf8; /* indigo-400 */
            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: #818cf8; }
        }
        .text-overlay {
            background: rgba(0, 0, 0, 0.5);
            padding: 2rem;
            border-radius: 0.5rem;
        }

        .typewriter-text::after {
      content: '|';
      animation: blink 1s infinite;
    }
    @keyframes blink {
      0%, 50%, 100% { opacity: 1; }
      25%, 75% { opacity: 0; }
    }