/* ==========================================================================
   Animations — Mohtaway (Scroll Reveal + Micro-interactions)
   ========================================================================== */

/* ── Scroll Reveal (Premium 3D) ── */
.reveal {
    opacity: 0;
    transform: translateY(40px) translateZ(0) rotateX(-8deg) scale(0.96);
    transform-origin: top center;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0) translateZ(0) rotateX(0) scale(1);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ── Fade In Up ── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.5s ease forwards;
}

/* ── Skeleton Loading ── */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.skeleton {
    background: linear-gradient(90deg, var(--color-bg-alt) 25%, #e8e8e8 50%, var(--color-bg-alt) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease infinite;
    border-radius: var(--radius);
}

/* ── Spinner ── */
.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--color-border);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin: var(--space-xl) auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ── Custom Cursor ── */
@media (pointer: fine) {
    /* Kept empty to maintain structure, or remove completely if not needed. 
       Default cursor is now visible. */
}

.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--color-primary);
    margin-top: -3px;
    margin-left: -3px;
    transition: transform 0.15s ease-out, background-color 0.2s ease;
}

.cursor-outline {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(22, 145, 150, 0.4);
    margin-top: -16px;
    margin-left: -16px;
    transition: width 0.2s ease, height 0.2s ease, margin 0.2s ease, border-color 0.2s ease;
}

.cursor-dot.hover {
    transform: scale(0.5);
    background-color: var(--color-accent);
}

.cursor-outline.hover {
    width: 48px;
    height: 48px;
    margin-top: -24px;
    margin-left: -24px;
    border-color: var(--color-accent);
    background-color: rgba(240, 165, 0, 0.05);
}
