/* Soft Tech Animations - Apple Style */

/* Keyframes */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes fadeInSoft {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
        filter: blur(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes pulseSoft {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

/* Auto Scroll Animation for seamless looping */
@keyframes autoScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Utilities */
.animate-float {
    animation: float 8s ease-in-out infinite;
}

/* Apply auto scroll animation to scroll containers */
.auto-scroll {
    animation: autoScroll 20s linear infinite;
}

/* Pause animation on hover */
.auto-scroll:hover {
    animation-play-state: paused;
}

.reveal {
    opacity: 0;
    animation: fadeInSoft 1s var(--transition-smooth) forwards;
    animation-play-state: paused;
    text-align: center;
}

.reveal.active {
    animation-play-state: running;
}

/* Page Loader - Minimal */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease-out, visibility 0.8s;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}