/* ============================================================
   Shared Animation Utilities & Section Typography
   ============================================================ */

/* ── Scroll Reveal ────────────────────────────────────────── */
[data-reveal] {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-reveal="fade-left"]  { transform: translateX(-40px); }
[data-reveal="fade-right"] { transform: translateX(40px);  }
[data-reveal="zoom"]       { transform: scale(0.92);        }
[data-reveal="fade-down"]  { transform: translateY(-28px);  }

[data-reveal].is-visible   { opacity: 1; transform: none; }

[data-delay="0"]   { transition-delay: 0s;    }
[data-delay="100"] { transition-delay: 0.1s;  }
[data-delay="150"] { transition-delay: 0.15s; }
[data-delay="200"] { transition-delay: 0.2s;  }
[data-delay="300"] { transition-delay: 0.3s;  }
[data-delay="400"] { transition-delay: 0.4s;  }
[data-delay="500"] { transition-delay: 0.5s;  }
[data-delay="600"] { transition-delay: 0.6s;  }

/* ── Shared Section Label ─────────────────────────────────── */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    color: var(--color-primary);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: var(--space-4);
}
.section-label--light { color: rgba(255,255,255,0.75); }

.section-label__line {
    display: block;
    width: 28px;
    height: 2px;
    background: currentColor;
    border-radius: var(--radius-full);
    opacity: 0.5;
}

/* ── Shared Section Heading ───────────────────────────────── */
.section-heading {
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 800;
    color: var(--color-dark);
    line-height: 1.2;
    margin-bottom: var(--space-4);
}
.section-heading--light { color: #fff; }

.section-subtitle {
    font-size: 1.0625rem;
    color: var(--color-text-muted);
    max-width: 560px;
    margin-inline: auto;
    line-height: 1.7;
}
.section-subtitle--light { color: rgba(255,255,255,0.7); }

/* ── Centred header block ─────────────────────────────────── */
.section-header {
    text-align: center;
    margin-bottom: var(--space-12);
}
.section-header .section-subtitle { max-width: 580px; }

/* ── Gradient text helper ─────────────────────────────────── */
.gradient-text {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Keyframes ────────────────────────────────────────────── */
@keyframes floatY {
    0%, 100% { transform: translateY(0);    }
    50%       { transform: translateY(-10px); }
}

@keyframes pulseRing {
    0%   { transform: scale(1);    opacity: 0.6; }
    100% { transform: scale(1.6);  opacity: 0;   }
}

@keyframes gradientShift {
    0%   { background-position: 0% 50%;   }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%;   }
}

@keyframes spinSlow {
    from { transform: rotate(0deg);   }
    to   { transform: rotate(360deg); }
}

@keyframes blobMorph {
    0%,100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    25%     { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
    50%     { border-radius: 50% 40% 60% 30% / 40% 70% 30% 60%; }
    75%     { border-radius: 40% 60% 30% 70% / 60% 40% 70% 30%; }
}

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

@keyframes spinnerRotate {
    from { transform: rotate(0deg);   }
    to   { transform: rotate(360deg); }
}

/* ── Reduce Motion ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
    * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
