/* ============================================
   Kino Sifatli — Animations (GPU-Optimized)
   ============================================ */

/* ============ SCROLL REVEAL ============ */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s var(--ease-spring), transform 0.6s var(--ease-spring);
    will-change: opacity, transform;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.reveal-stagger>.reveal:nth-child(1) {
    transition-delay: 0.04s;
}

.reveal-stagger>.reveal:nth-child(2) {
    transition-delay: 0.08s;
}

.reveal-stagger>.reveal:nth-child(3) {
    transition-delay: 0.12s;
}

.reveal-stagger>.reveal:nth-child(4) {
    transition-delay: 0.16s;
}

.reveal-stagger>.reveal:nth-child(5) {
    transition-delay: 0.2s;
}

.reveal-stagger>.reveal:nth-child(6) {
    transition-delay: 0.24s;
}

/* ============ ICON ANIMS ============ */
.anim-float {
    animation: iconFloat 3s ease-in-out infinite;
    will-change: transform;
}

.anim-pulse {
    animation: iconPulse 2.2s ease-in-out infinite;
    will-change: transform, opacity;
}

@keyframes iconFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

@keyframes iconPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.12);
        opacity: 0.85;
    }
}

/* ============ PAGE TRANSITIONS ============ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.94);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ============ GRADIENT TEXT SHIMMER ============ */
@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* ============ ACTIVE SECTION ============ */
.active-section {
    animation: fadeInUp 0.55s var(--ease-spring) forwards;
}

/* ============ LOADING SPINNER ============ */
.loading-spinner {
    width: 32px;
    height: 32px;
    border: 2px solid var(--glass-border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin: 40px auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============ SYNC PULSE ============ */
@keyframes syncPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 var(--success);
    }

    50% {
        box-shadow: 0 0 0 6px transparent;
    }
}

/* ============ TOAST ============ */
.toast {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    padding: 14px 28px;
    background: hsla(240, 10%, 8%, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-pill);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 9999;
    transition: transform 0.5s var(--ease-spring);
    pointer-events: none;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}