/* ═══════════════════════════════════════════════════════════════
   HELVEN STUDIO - Animations Stylesheet
   All keyframes, scroll animations, hover effects
   ═══════════════════════════════════════════════════════════════ */

/* ─── FLOATING ANIMATION (Hero Photo) ─── */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-12px) rotate(0.5deg);
    }
    50% {
        transform: translateY(-20px) rotate(1.5deg);
    }
    75% {
        transform: translateY(-8px) rotate(0.5deg);
    }
}

.floating {
    animation: float 6s ease-in-out infinite;
    transition: transform 0.3s ease;
}

.floating:hover {
    animation-play-state: paused;
    transform: scale(1.05);
}

/* ─── SCROLL BOUNCE (Hero indicator) ─── */
@keyframes scrollBounce {
    0%, 100% {
        transform: rotate(45deg) translateY(0);
        opacity: 1;
    }
    50% {
        transform: rotate(45deg) translateY(8px);
        opacity: 0.5;
    }
}

/* ─── PAGE LOAD ANIMATIONS ─── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(60px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ─── HERO STAGGERED LOAD ─── */
.hero .animate-fade-in {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.hero .animate-fade-in:nth-child(1) { animation-delay: 0.1s; }
.hero .animate-fade-in:nth-child(2) { animation-delay: 0.2s; }
.hero .animate-fade-in:nth-child(3) { animation-delay: 0.3s; }
.hero .animate-fade-in:nth-child(4) { animation-delay: 0.4s; }
.hero .animate-fade-in:nth-child(5) { animation-delay: 0.5s; }

.hero__image.animate-fade-in {
    animation: fadeInLeft 1s ease forwards;
    animation-delay: 0.1s;
}

/* ─── SCROLL REVEAL ─── */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger for grid children */
.services__grid .reveal:nth-child(1) { transition-delay: 0.0s; }
.services__grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.services__grid .reveal:nth-child(3) { transition-delay: 0.2s; }
.services__grid .reveal:nth-child(4) { transition-delay: 0.3s; }
.services__grid .reveal:nth-child(5) { transition-delay: 0.4s; }
.services__grid .reveal:nth-child(6) { transition-delay: 0.5s; }

.services-extra__grid .reveal:nth-child(1) { transition-delay: 0.0s; }
.services-extra__grid .reveal:nth-child(2) { transition-delay: 0.15s; }
.services-extra__grid .reveal:nth-child(3) { transition-delay: 0.3s; }

.stats-showcase__grid .reveal:nth-child(1) { transition-delay: 0.0s; }
.stats-showcase__grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.stats-showcase__grid .reveal:nth-child(3) { transition-delay: 0.2s; }
.stats-showcase__grid .reveal:nth-child(4) { transition-delay: 0.3s; }

.consulting-results__grid .reveal:nth-child(1) { transition-delay: 0.0s; }
.consulting-results__grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.consulting-results__grid .reveal:nth-child(3) { transition-delay: 0.2s; }
.consulting-results__grid .reveal:nth-child(4) { transition-delay: 0.3s; }

.clients__grid .reveal:nth-child(1) { transition-delay: 0.0s; }
.clients__grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.clients__grid .reveal:nth-child(3) { transition-delay: 0.2s; }
.clients__grid .reveal:nth-child(4) { transition-delay: 0.3s; }

/* ─── PULSE GLOW (CTA Buttons) ─── */
@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(245, 183, 49, 0.4);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(245, 183, 49, 0);
    }
}

.cta-mid .btn--primary {
    animation: pulseGlow 2.5s ease-in-out infinite;
}

/* ─── NUMBER COUNTER ANIMATION ─── */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ─── PARALLAX HELPER ─── */
.parallax-element {
    will-change: transform;
    transition: transform 0.1s linear;
}

/* ─── CARD HOVER ENHANCEMENTS ─── */
.service-card,
.consulting-result,
.services-extra__card,
.stat-card {
    will-change: transform;
}

/* ─── LINK UNDERLINE ANIMATION ─── */
.service-card__link {
    position: relative;
    display: inline-block;
}

.service-card__link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.service-card__link:hover::after {
    width: 100%;
}

/* ─── FORM FOCUS ANIMATIONS ─── */
.form-group input,
.form-group textarea {
    transition: border-color 0.3s ease,
                box-shadow 0.3s ease,
                background-color 0.3s ease,
                transform 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    transform: translateY(-1px);
}

/* ─── HEADER SCROLL TRANSITION ─── */
.header {
    transition: height 0.3s ease,
                box-shadow 0.3s ease,
                background-color 0.3s ease;
}

/* ─── SMOOTH MOBILE MENU ─── */
.header__nav {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                opacity 0.3s ease;
}

/* ─── REDUCED MOTION ─── */
@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;
    }

    .floating {
        animation: none;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
