/* ============================================================
   AHGCC Huruma — Animations
   All keyframe animations and motion utilities
   ============================================================ */

/* ---------- Fade Up — Section reveals ---------- */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(32px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- Fade In ---------- */
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ---------- Fade Down ---------- */
@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- Scale In ---------- */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.85);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ---------- Gold Glow Pulse — CTAs, accents ---------- */
@keyframes goldPulse {
    0%, 100% {
        box-shadow: 0 0 12px rgba(201,146,42,0.3);
    }
    50% {
        box-shadow: 0 0 28px rgba(201,146,42,0.6);
    }
}

/* ---------- Flame Float — Hero particle effect ---------- */
@keyframes flameFloat {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    50% {
        transform: translateY(-60px) scale(1.15);
        opacity: 1;
    }
    100% {
        transform: translateY(-120px) scale(0.7);
        opacity: 0;
    }
}

/* ---------- Underline Slide — Nav hover ---------- */
@keyframes underlineSlide {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}

/* ---------- Bounce scroll indicator ---------- */
@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(10px); }
}

/* ---------- Slide In Right ---------- */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ---------- Slide In Left ---------- */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ---------- Rotate In ---------- */
@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-5deg) scale(0.95);
    }
    to {
        opacity: 1;
        transform: rotate(0) scale(1);
    }
}

/* ---------- Width Expand — Gold border accent ---------- */
@keyframes widthExpand {
    from { width: 0; }
    to   { width: 100%; }
}

/* ---------- Shimmer — Loading effect ---------- */
@keyframes shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ---------- Float — Gentle floating ---------- */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}

/* ---------- Heart Beat ---------- */
@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    14%      { transform: scale(1.3); }
    28%      { transform: scale(1); }
    42%      { transform: scale(1.3); }
    70%      { transform: scale(1); }
}

/* ---------- Flame Particles (Hero) ---------- */
.flame-particles {
    position: absolute;
    bottom: 0;
    left: 5%;
    width: 200px;
    height: 200px;
    pointer-events: none;
    z-index: 2;
}

.flame-particle {
    position: absolute;
    bottom: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232,184,75,0.8) 0%, rgba(201,146,42,0.3) 50%, transparent 70%);
    animation: flameFloat linear infinite;
}

.flame-particle:nth-child(1) {
    width: 8px; height: 8px;
    left: 20%;
    animation-duration: 3.5s;
    animation-delay: 0s;
}

.flame-particle:nth-child(2) {
    width: 6px; height: 6px;
    left: 50%;
    animation-duration: 4s;
    animation-delay: 0.8s;
}

.flame-particle:nth-child(3) {
    width: 10px; height: 10px;
    left: 35%;
    animation-duration: 3s;
    animation-delay: 1.5s;
}

.flame-particle:nth-child(4) {
    width: 5px; height: 5px;
    left: 70%;
    animation-duration: 4.5s;
    animation-delay: 0.3s;
}

.flame-particle:nth-child(5) {
    width: 7px; height: 7px;
    left: 85%;
    animation-duration: 3.8s;
    animation-delay: 2s;
}

.flame-particle:nth-child(6) {
    width: 4px; height: 4px;
    left: 10%;
    animation-duration: 5s;
    animation-delay: 1s;
}

/* ---------- Scroll indicator ---------- */
.scroll-indicator {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    animation: scrollBounce 2s ease infinite;
    transition: opacity var(--transition-base);
}

.scroll-indicator svg {
    width: 32px;
    height: 32px;
    color: rgba(255,255,255,0.5);
}

.scroll-indicator.fade-out {
    opacity: 0;
}

/* ---------- Footer Heart Beat ---------- */
.heart {
    display: inline-block;
    color: var(--color-gold);
    animation: heartBeat 1.5s ease infinite;
}

/* ---------- Prefers 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;
        transform: none;
    }

    .reveal-stagger > * {
        opacity: 1;
        transform: none;
    }
}
