/* Animation Keyframes */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 50px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translate3d(-50px, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translate3d(50px, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale3d(0.7, 0.7, 0.7);
    }
    to {
        opacity: 1;
        transform: scale3d(1, 1, 1);
    }
}

/* Scroll Animation Class */
.scroll-animation {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-animation.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Remove all existing animation classes */
.animate-fade-in,
.animate-fade-up,
.animate-fade-left,
.animate-fade-right,
.animate-zoom-in,
.delay-100,
.delay-200,
.delay-300,
.delay-400,
.delay-500,
.delay-600,
.delay-700,
.delay-800,
.delay-900,
.delay-1000 {
    animation: none;
    opacity: 1;
}

/* For better mobile performance */
@media (prefers-reduced-motion) {
    .scroll-animation {
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Preloader Styles */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader-spinner {
    width: 120px;
    height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.preloader-logo {
    width: 80px;
    height: auto;
    margin-bottom: 15px;
    animation: pulse 1.5s infinite ease-in-out;
}

.spinner {
    border: 4px solid rgba(233, 78, 27, 0.1);
    border-radius: 50%;
    border-top: 4px solid #e94e1b;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0% { transform: scale(0.95); }
    50% { transform: scale(1.05); }
    100% { transform: scale(0.95); }
} 