/**
 * ============================================================
 * SCOTT-TECH STUDIOS
 * ANIMATION ENGINE
 * V20 CLEAN EDITION
 * ============================================================
 *
 * Purpose:
 *  - Smooth component reveals
 *  - Cinematic Hero sequence
 *  - No page loading blackout
 *  - Respect reduced motion settings
 *
 */


/* ============================================================
   REMOVE FULL PAGE FADE
   ============================================================ */

/*
   Intentionally empty.

   Do NOT animate body/page opacity.
   Browser navigation already handles page loading.
   Animating the entire document creates a black flash.
*/


/* ============================================================
   HERO REVEAL SEQUENCE (NEW)
   ============================================================ */

/* Title drops down mid-screen */
.hero-content h1 {
    opacity: 0;
    transform: translateY(-80px);
    animation: dropDownTitle 1s var(--ease-out-expo) forwards;
    animation-delay: 0.2s;
}

/* Subtext fades in shortly after */
.hero-content p {
    opacity: 0;
    animation: fadeInHero 1s ease forwards;
    animation-delay: 0.8s;
}

/* Buttons fade in last */
.hero-buttons {
    opacity: 0;
    animation: fadeInHero 1s ease forwards;
    animation-delay: 1.1s;
}

@keyframes dropDownTitle {
    0% {
        opacity: 0;
        transform: translateY(-80px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInHero {
    to { 
        opacity: 1; 
    }
}


/* ============================================================
   SCROLL REVEAL SYSTEM
   ============================================================ */

.fade-in-hidden {
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity 0.7s var(--ease-out-expo),
        transform 0.7s var(--ease-out-expo);
}

.fade-in-visible {
    opacity: 1;
    transform: translateY(0);
}


/* ============================================================
   OPTIONAL DELAY HELPERS
   ============================================================ */

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}


/* ============================================================
   HOVER MOTION UTILITIES
   ============================================================ */

.hover-lift {
    transition:
        transform var(--transition-smooth),
        box-shadow var(--transition-smooth);
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}


/* ============================================================
   REDUCED MOTION ACCESSIBILITY
   ============================================================ */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .fade-in-hidden {
        opacity: 1;
        transform: none;
    }

    /* Disables the Hero animation for accessibility */
    .hero-content h1,
    .hero-content p,
    .hero-buttons {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}