/* ============================================================
   OASIS MENTAL CARE — Animations
   Scroll reveals, breathing exercise, floating elements
   ============================================================ */

/* ── Scroll Reveal ──────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--duration-slower) var(--ease-out),
        transform var(--duration-slower) var(--ease-out);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity var(--duration-slower) var(--ease-out),
        transform var(--duration-slower) var(--ease-out);
}

.reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity var(--duration-slower) var(--ease-out),
        transform var(--duration-slower) var(--ease-out);
}

.reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity var(--duration-slower) var(--ease-out),
        transform var(--duration-slower) var(--ease-out);
}

.reveal-scale.revealed {
    opacity: 1;
    transform: scale(1);
}

/* Staggered children */
.stagger-children .reveal:nth-child(1) {
    transition-delay: 0ms;
}

.stagger-children .reveal:nth-child(2) {
    transition-delay: 100ms;
}

.stagger-children .reveal:nth-child(3) {
    transition-delay: 200ms;
}

.stagger-children .reveal:nth-child(4) {
    transition-delay: 300ms;
}

.stagger-children .reveal:nth-child(5) {
    transition-delay: 400ms;
}

.stagger-children .reveal:nth-child(6) {
    transition-delay: 500ms;
}

/* ── Breathing Exercise ─────────────────────────── */
.breathing-widget {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: var(--space-12) auto 0;
}

.breathing-circle {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(245, 225, 164, 0.4);
    animation: breathe 12s ease-in-out infinite;
}

.breathing-circle:nth-child(1) {
    width: 100%;
    height: 100%;
    animation-delay: 0s;
}

.breathing-circle:nth-child(2) {
    width: 80%;
    height: 80%;
    animation-delay: 0.5s;
    border-color: rgba(245, 225, 164, 0.3);
}

.breathing-circle:nth-child(3) {
    width: 60%;
    height: 60%;
    animation-delay: 1s;
    border-color: rgba(245, 225, 164, 0.2);
}

.breathing-text {
    position: relative;
    z-index: 1;
    font-size: var(--text-sm);
    font-weight: var(--fw-medium);
    color: var(--color-gold-light);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    animation: breatheText 12s ease-in-out infinite;
}

@keyframes breathe {

    0%,
    100% {
        transform: scale(0.8);
        opacity: 0.4;
    }

    25% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1);
        opacity: 0.6;
    }

    75% {
        transform: scale(0.85);
        opacity: 0.5;
    }
}

@keyframes breatheText {

    0%,
    100% {
        opacity: 0.6;
    }

    20% {
        opacity: 1;
    }

    45% {
        opacity: 1;
    }

    55% {
        opacity: 0.6;
    }
}

/* ── Floating Particles ─────────────────────────── */
.floating-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    opacity: 0.15;
    animation: float linear infinite;
}

.particle svg {
    fill: var(--color-gold);
}

.particle:nth-child(1) {
    left: 10%;
    top: 20%;
    animation-duration: 18s;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    left: 25%;
    top: 60%;
    animation-duration: 22s;
    animation-delay: -5s;
}

.particle:nth-child(3) {
    left: 50%;
    top: 15%;
    animation-duration: 20s;
    animation-delay: -3s;
}

.particle:nth-child(4) {
    left: 70%;
    top: 45%;
    animation-duration: 24s;
    animation-delay: -8s;
}

.particle:nth-child(5) {
    left: 85%;
    top: 70%;
    animation-duration: 19s;
    animation-delay: -2s;
}

.particle:nth-child(6) {
    left: 40%;
    top: 80%;
    animation-duration: 21s;
    animation-delay: -6s;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg) scale(1);
    }

    33% {
        transform: translateY(-20px) rotate(5deg) scale(1.05);
    }

    66% {
        transform: translateY(10px) rotate(-3deg) scale(0.95);
    }

    100% {
        transform: translateY(0) rotate(0deg) scale(1);
    }
}

/* ── Pulse Glow ─────────────────────────────────── */
.pulse-glow {
    animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(47, 88, 78, 0.1);
    }

    50% {
        box-shadow: 0 0 40px rgba(47, 88, 78, 0.2), 0 0 60px rgba(245, 225, 164, 0.1);
    }
}

/* ── Gradient Shift ─────────────────────────────── */
.gradient-shift {
    background-size: 200% 200%;
    animation: gradientShift 8s ease-in-out infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* ── Wave Animation for dividers ────────────────── */
.wave-animated {
    animation: waveFloat 6s ease-in-out infinite;
}

@keyframes waveFloat {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(-10px);
    }
}

/* ── Counter Animation Helper ───────────────────── */
.counter-value {
    font-size: var(--text-4xl);
    font-weight: var(--fw-bold);
    color: var(--color-primary);
    line-height: 1;
}

/* ── Shimmer Effect ─────────────────────────────── */
.shimmer {
    position: relative;
    overflow: hidden;
}

.shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.15),
            transparent);
    animation: shimmer 4s ease-in-out infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 200%;
    }
}

/* ── Hero Decorative Blobs ──────────────────────── */
.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.15;
    pointer-events: none;
}

.hero-blob-1 {
    width: 400px;
    height: 400px;
    background: var(--color-gold);
    top: -100px;
    right: -100px;
    animation: blobFloat 15s ease-in-out infinite;
}

.hero-blob-2 {
    width: 300px;
    height: 300px;
    background: var(--color-warm);
    bottom: -50px;
    left: -50px;
    animation: blobFloat 18s ease-in-out infinite reverse;
}

@keyframes blobFloat {

    0%,
    100% {
        transform: translate(0, 0);
    }

    25% {
        transform: translate(20px, -20px);
    }

    50% {
        transform: translate(-10px, 15px);
    }

    75% {
        transform: translate(15px, 10px);
    }
}