/* ══════════════════════════════════════════════
   GLOBAL ANIMATIONS & UTILITIES
══════════════════════════════════════════════ */

/* Scroll-triggered fade-in */
@keyframes wf-fadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes wf-fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes wf-slideRight {
    from { opacity: 0; transform: translateX(-24px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes wf-slideLeft {
    from { opacity: 0; transform: translateX(24px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes wf-scaleIn {
    from { opacity: 0; transform: scale(0.88); }
    to   { opacity: 1; transform: scale(1); }
}
@keyframes wf-shimmer {
    0%   { background-position: -200% center; }
    100% { background-position: 200% center; }
}
@keyframes wf-pulse-border {
    0%,100% { box-shadow: 0 0 0 0 rgba(249,115,22,0); }
    50%      { box-shadow: 0 0 0 4px rgba(249,115,22,0.18); }
}
@keyframes wf-float {
    0%,100% { transform: translateY(0px); }
    50%      { transform: translateY(-6px); }
}
@keyframes wf-glow-pulse {
    0%,100% { filter: drop-shadow(0 0 6px rgba(249,115,22,0.4)); }
    50%      { filter: drop-shadow(0 0 18px rgba(249,115,22,0.9)) drop-shadow(0 0 35px rgba(249,115,22,0.5)); }
}
@keyframes wf-spin-slow {
    to { transform: rotate(360deg); }
}
@keyframes wf-gradient-flow {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes wf-border-flow {
    0%   { border-color: rgba(249,115,22,0.2); }
    50%  { border-color: rgba(249,115,22,0.55); }
    100% { border-color: rgba(249,115,22,0.2); }
}
@keyframes wf-number-pop {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.12); }
    100% { transform: scale(1); }
}

/* ── Scroll-reveal utility ── */
.wf-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.55s cubic-bezier(.4,0,.2,1), transform 0.55s cubic-bezier(.4,0,.2,1);
}
.wf-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.wf-reveal-left {
    opacity: 0;
    transform: translateX(-24px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.wf-reveal-left.visible { opacity: 1; transform: translateX(0); }
.wf-reveal-right {
    opacity: 0;
    transform: translateX(24px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.wf-reveal-right.visible { opacity: 1; transform: translateX(0); }
.wf-reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.45s ease, transform 0.45s ease;
}
.wf-reveal-scale.visible { opacity: 1; transform: scale(1); }

/* ── Stagger delays ── */
.wf-delay-1 { transition-delay: 0.08s !important; }
.wf-delay-2 { transition-delay: 0.16s !important; }
.wf-delay-3 { transition-delay: 0.24s !important; }
.wf-delay-4 { transition-delay: 0.32s !important; }
.wf-delay-5 { transition-delay: 0.40s !important; }
.wf-delay-6 { transition-delay: 0.48s !important; }

/* ── Shimmer text ── */
.wf-shimmer-text {
    background: linear-gradient(90deg, #fff 0%, #fed7aa 25%, #f97316 50%, #fff 75%, #fed7aa 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: wf-shimmer 3s linear infinite;
}

/* ── Orange gradient text ── */
.wf-gradient-text {
    background: linear-gradient(135deg, #fff 0%, #fed7aa 40%, #f97316 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Glass card ── */
.wf-glass {
    background: rgba(10,8,22,0.72);
    border: 1px solid rgba(249,115,22,0.2);
    border-radius: 18px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 24px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.wf-glass:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 40px rgba(249,115,22,0.18), inset 0 1px 0 rgba(255,255,255,0.06);
    border-color: rgba(249,115,22,0.4);
}

/* ── Orange glow button ── */
.wf-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.7rem 1.6rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 16px rgba(249,115,22,0.35);
    position: relative;
    overflow: hidden;
}
.wf-btn::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transition: left 0.5s ease;
}
.wf-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(249,115,22,0.5); color: #fff; }
.wf-btn:hover::after { left: 100%; }

/* ── Section title ── */
.wf-section-title {
    font-size: 1.75rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1.75rem;
    background: linear-gradient(135deg, #fff, #ff8c4a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: block;
    width: 100%;
}
.wf-section-title::after {
    content: '';
    display: block;
    margin: 8px auto 0 auto;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #f97316, #ff8c4a);
    border-radius: 2px;
}

/* ── Divider ── */
.wf-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(249,115,22,0.4), transparent);
    margin: 2.5rem 0;
}

/* ── Page hero icon box ── */
.wf-hero-icon {
    width: 72px; height: 72px;
    border-radius: 20px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.25rem;
    background: rgba(249,115,22,0.12);
    border: 1px solid rgba(249,115,22,0.3);
    box-shadow: 0 0 30px rgba(249,115,22,0.15);
    animation: wf-pulse-border 3s ease-in-out infinite;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: rgba(0,0,0,0.2); }
::-webkit-scrollbar-thumb { background: rgba(249,115,22,0.4); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(249,115,22,0.7); }

/* ── Page transition ── */
.wf-page-enter {
    animation: wf-fadeIn 0.4s ease forwards;
}

/* ══════════════════════════════════════════════
   END OF THEME
══════════════════════════════════════════════ */

/* ── تعطيل الانيميشن على الموبايل ── */
@media (max-width: 768px) {
    .wf-reveal,
    .wf-reveal-left,
    .wf-reveal-right,
    .wf-reveal-scale {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        animation: none !important;
    }
    .wf-hero-icon {
        animation: none !important;
    }
}
