/* ==========================================
   EDUHUB OVERSEAS CONSULTANCY
   Simple Animations
   ========================================== */

/* ==========================================
   SIMPLE FADE ANIMATION
   ========================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ==========================================
   SIMPLE SCROLL REVEAL
   ========================================== */
.reveal {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.reveal.active {
    opacity: 1;
}

/* Staggered children */
.reveal-stagger > * {
    opacity: 0;
    transition: opacity 0.4s ease;
}

.reveal-stagger.active > *:nth-child(1) {
    transition-delay: 0.1s;
    opacity: 1;
}

.reveal-stagger.active > *:nth-child(2) {
    transition-delay: 0.2s;
    opacity: 1;
}

.reveal-stagger.active > *:nth-child(3) {
    transition-delay: 0.3s;
    opacity: 1;
}

.reveal-stagger.active > *:nth-child(4) {
    transition-delay: 0.4s;
    opacity: 1;
}

.reveal-stagger.active > *:nth-child(5) {
    transition-delay: 0.5s;
    opacity: 1;
}

.reveal-stagger.active > *:nth-child(6) {
    transition-delay: 0.6s;
    opacity: 1;
}

/* ==========================================
   SIMPLE HOVER EFFECT
   ========================================== */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* ==========================================
   SIMPLE LOADING SPINNER
   ========================================== */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 0.8s linear infinite;
}

/* ==========================================
   RESPECT REDUCED MOTION
   ========================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .reveal {
        opacity: 1;
    }
    
    .reveal-stagger > * {
        opacity: 1;
    }
    
    .hover-lift:hover {
        transform: none;
    }
}
