/* 
   israni Group - Professional Animations & Styles
   Custom CSS for animations and utilities
*/

/* Advanced Animations */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes autoSlide {
    0%, 100% {
        opacity: 1;
        transform: translateX(0);
    }
    20% {
        opacity: 1;
        transform: translateX(0);
    }
    25% {
        opacity: 0;
        transform: translateX(100%);
    }
    30%, 70% {
        opacity: 0;
        transform: translateX(-100%);
    }
    75% {
        opacity: 0;
        transform: translateX(100%);
    }
    80% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes carouselSlideLeft {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}

@keyframes carouselSlideRight {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(100%);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes liftCard {
    from {
        transform: translateY(0) scale(1);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
    to {
        transform: translateY(-8px) scale(1.02);
        box-shadow: 0 20px 25px rgba(0, 0, 0, 0.15);
    }
}

@keyframes countUp {
    from {
        opacity: 0.5;
    }
    to {
        opacity: 1;
    }
}

@keyframes subtlePulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(37, 99, 235, 0);
    }
}

@keyframes buttonGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(37, 99, 235, 0.5), inset 0 0 20px rgba(255, 255, 255, 0.1);
    }
    50% {
        box-shadow: 0 0 30px rgba(37, 99, 235, 0.8), inset 0 0 20px rgba(255, 255, 255, 0.2);
    }
}

@keyframes processStepIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse-glow {
    0%, 100% {
        opacity: 0.5;
        box-shadow: 0 0 20px rgba(37, 99, 235, 0.3);
    }
    50% {
        opacity: 1;
        box-shadow: 0 0 40px rgba(37, 99, 235, 0.5);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    75% {
        transform: translateX(5px);
    }
}

@keyframes bounce-in {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
    }
    70% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Animation Classes */
.animate-slide-down {
    animation: slideInDown 0.6s ease-out;
}

.animate-slide-up {
    animation: slideInUp 0.6s ease-out;
}

.animate-slide-left {
    animation: slideInLeft 0.6s ease-out;
}

.animate-slide-right {
    animation: slideInRight 0.6s ease-out;
}

.animate-scale-in {
    animation: scaleIn 0.6s ease-out;
}

.animate-pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-bounce-in {
    animation: bounce-in 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

/* Stagger animations */
.animate-stagger-1 {
    animation: slideInUp 0.6s ease-out 0.1s both;
}

.animate-stagger-2 {
    animation: slideInUp 0.6s ease-out 0.2s both;
}

.animate-stagger-3 {
    animation: slideInUp 0.6s ease-out 0.3s both;
}

.animate-stagger-4 {
    animation: slideInUp 0.6s ease-out 0.4s both;
}

.animate-stagger-5 {
    animation: slideInUp 0.6s ease-out 0.5s both;
}

.animate-stagger-6 {
    animation: slideInUp 0.6s ease-out 0.6s both;
}

/* Auto-Sliding Carousel Animations */
.carousel-item {
    animation: carouselSlideLeft 8s ease-in-out infinite;
}

.carousel-item:nth-child(2) {
    animation-delay: 2s;
}

.carousel-item:nth-child(3) {
    animation-delay: 4s;
}

.carousel-item:nth-child(4) {
    animation-delay: 6s;
}

.auto-slide {
    animation: autoSlide 15s ease-in-out infinite;
}

/* Professional Fade & Slide Animations */
.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.fade-in-down {
    animation: fadeInDown 0.8s ease-out forwards;
    opacity: 0;
}

.fade-in-up-delay-1 {
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

.fade-in-up-delay-2 {
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
    opacity: 0;
}

.fade-in-up-delay-3 {
    animation: fadeInUp 0.8s ease-out 0.6s forwards;
    opacity: 0;
}

/* Service Card Hover Lift */
.card-lift {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card-lift:hover {
    animation: liftCard 0.4s ease-out forwards;
}

/* Count Up Animation */
.count-up {
    animation: countUp 0.6s ease-out forwards;
}

/* CTA Button Animations */
.btn-pulse {
    animation: subtlePulse 2s ease-in-out infinite;
}

.btn-glow {
    animation: buttonGlow 2.5s ease-in-out infinite;
}

.btn-hover:hover {
    animation: none;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4);
}

/* Process Steps */
.process-step {
    animation: processStepIn 0.6s ease-out forwards;
    opacity: 0;
}

.process-step:nth-child(1) { animation-delay: 0s; }
.process-step:nth-child(2) { animation-delay: 0.2s; }
.process-step:nth-child(3) { animation-delay: 0.4s; }
.process-step:nth-child(4) { animation-delay: 0.6s; }
.process-step:nth-child(5) { animation-delay: 0.8s; }

/* Hero CTA Buttons */
.hero-cta {
    position: relative;
    z-index: 10;
    display: inline-block;
    cursor: pointer;
    opacity: 0;
}

.hero-cta:hover {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Button Hover Styles */
.hero-cta.btn-hover:hover {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Scroll Reveal Class */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
