/* ═══════════════════════════════════════════════════
   🔥 WOW-FX v3.0 — Ultra-Cinematic Premium Effects
   Ahmed Ashraf × Awalim Group
   ═══════════════════════════════════════════════════ */

/* ── 1. FILM GRAIN NOISE OVERLAY ─────────────────── */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9998;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
    background-size: 128px 128px;
    opacity: 0.025;
    animation: grain 0.5s steps(2) infinite;
    mix-blend-mode: overlay;
}

@keyframes grain {

    0%,
    100% {
        transform: translate(0, 0);
    }

    10% {
        transform: translate(-2%, -3%);
    }

    20% {
        transform: translate(3%, 2%);
    }

    30% {
        transform: translate(-1%, 4%);
    }

    40% {
        transform: translate(2%, -1%);
    }

    50% {
        transform: translate(-3%, 3%);
    }

    60% {
        transform: translate(4%, -2%);
    }

    70% {
        transform: translate(-4%, 1%);
    }

    80% {
        transform: translate(1%, -4%);
    }

    90% {
        transform: translate(-2%, 2%);
    }
}

/* ── 2. ULTRA MAGNETIC CURSOR ────────────────────── */
* {
    cursor: none !important;
}

#wow-cursor-dot {
    position: fixed;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #a3cf2b;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background 0.2s, opacity 0.2s;
    box-shadow: 0 0 16px rgba(163, 207, 43, 0.9);
    will-change: transform;
}

#wow-cursor-ring {
    position: fixed;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid rgba(163, 207, 43, 0.5);
    pointer-events: none;
    z-index: 99998;
    transform: translate(-50%, -50%);
    transition:
        width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        border-color 0.3s,
        opacity 0.3s;
    will-change: transform;
}

body.cursor-hover #wow-cursor-dot {
    width: 14px;
    height: 14px;
    background: #a3cf2b;
    box-shadow: 0 0 24px rgba(163, 207, 43, 1);
}

body.cursor-hover #wow-cursor-ring {
    width: 64px;
    height: 64px;
    border-color: rgba(163, 207, 43, 0.7);
    background: rgba(163, 207, 43, 0.05);
}

body.cursor-click #wow-cursor-dot {
    width: 5px;
    height: 5px;
}

body.cursor-click #wow-cursor-ring {
    width: 28px;
    height: 28px;
    border-color: rgba(163, 207, 43, 1);
}

/* ── 3. HERO — HOLOGRAPHIC CARD ─────────────────── */
.visual-card {
    transform-style: preserve-3d;
    transition: transform 0.1s linear;
    position: relative;
    overflow: visible !important;
}

/* Rainbow holographic border */
.visual-card::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: inherit;
    background: conic-gradient(from var(--holo-angle, 0deg),
            #a3cf2b, #00e0c6, #7c3aed, #ff6b6b, #fbbf24, #a3cf2b);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s;
    animation: holo-rotate 4s linear infinite;
    filter: blur(6px);
    border-radius: 24px;
}

.visual-card:hover::before {
    opacity: 0.9;
}

@keyframes holo-rotate {
    to {
        --holo-angle: 360deg;
    }
}

@property --holo-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

/* Holographic shine sweep */
.visual-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg,
            transparent 0%, rgba(255, 255, 255, 0.04) 40%,
            rgba(255, 255, 255, 0.1) 50%,
            rgba(255, 255, 255, 0.04) 60%, transparent 100%);
    pointer-events: none;
    z-index: 10;
    transform: translateX(-100%);
}

.visual-card:hover::after {
    transform: translateX(100%);
    transition: transform 0.7s ease;
}

/* Float badges */
.float-badge {
    backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(163, 207, 43, 0.3) !important;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 20px rgba(163, 207, 43, 0.1) !important;
    animation: floatBadge 4s ease-in-out infinite !important;
}

.badge-bottom-left {
    animation-delay: -2s !important;
}

@keyframes floatBadge {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-6px);
    }
}

/* ── 4. HERO TITLE GLOW ──────────────────────────── */
.hero-title {
    position: relative;
    font-size: clamp(3rem, 6vw, 5.5rem) !important;
}

.title-accent {
    display: inline-block;
    background: linear-gradient(135deg, #a3cf2b 0%, #00e0c6 50%, #a3cf2b 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-flow 3s ease infinite;
    filter: drop-shadow(0 0 40px rgba(163, 207, 43, 0.5));
}

@keyframes gradient-flow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* ── 5. AMBIENT HERO AURA ────────────────────────── */
.profile-wrapper {
    position: relative;
}

.profile-wrapper::before {
    content: '';
    position: absolute;
    inset: -30px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(163, 207, 43, 0.2) 0%, transparent 70%);
    animation: ambient-pulse 3s ease-in-out infinite;
    z-index: -1;
}

@keyframes ambient-pulse {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

/* ── 6. HERO GRID DEPTH ──────────────────────────── */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(163, 207, 43, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(163, 207, 43, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
    pointer-events: none;
    z-index: 0;
    animation: grid-drift 20s linear infinite;
}

@keyframes grid-drift {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(60px, 60px);
    }
}

/* HERO: cinematic ambient orbs */
.hero-ambient-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(100px);
}

/* ── 7. NEON STAT COUNTERS ───────────────────────── */
.stat-num {
    font-family: 'Outfit', sans-serif;
    font-variant-numeric: tabular-nums;
    transition: color 0.3s, text-shadow 0.3s;
}

.stat-item:hover .stat-num {
    color: #a3cf2b;
    text-shadow: 0 0 30px rgba(163, 207, 43, 0.7);
}

/* ── 8. MAGNETIC BUTTON LIGHT TRAIL ─────────────── */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
}

.btn-primary:hover::before {
    transform: translateX(100%);
    transition: transform 0.5s ease;
}

/* ── 9. SECTION REVEAL ───────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.reveal[data-delay="0"] {
    transition-delay: 0s;
}

.reveal[data-delay="1"] {
    transition-delay: 0.1s;
}

.reveal[data-delay="2"] {
    transition-delay: 0.2s;
}

.reveal[data-delay="3"] {
    transition-delay: 0.3s;
}

.reveal[data-delay="4"] {
    transition-delay: 0.4s;
}

.reveal[data-delay="5"] {
    transition-delay: 0.5s;
}

.reveal[data-delay="6"] {
    transition-delay: 0.6s;
}

/* ── 10. MARQUEE FADE EDGES ──────────────────────── */
.marquee-section {
    position: relative;
    overflow: hidden;
}

.marquee-section::before,
.marquee-section::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 120px;
    z-index: 2;
    pointer-events: none;
}

.marquee-section::before {
    right: 0;
    background: linear-gradient(to left, var(--bg, #050a0d), transparent);
}

.marquee-section::after {
    left: 0;
    background: linear-gradient(to right, var(--bg, #050a0d), transparent);
}

/* ── 11. TECH PILLS — PREMIUM ────────────────────── */
.tech-pill {
    backdrop-filter: blur(16px) saturate(1.5);
    border: 1px solid rgba(163, 207, 43, 0.25);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
    animation: pillFloat 3s ease-in-out infinite !important;
}

.tech-pill:nth-child(1) {
    animation-delay: 0s !important;
}

.tech-pill:nth-child(2) {
    animation-delay: -1s !important;
}

.tech-pill:nth-child(3) {
    animation-delay: -2s !important;
}

@keyframes pillFloat {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-5px);
    }
}

.tech-pill:hover {
    border-color: rgba(163, 207, 43, 0.6) !important;
    box-shadow: 0 8px 30px rgba(163, 207, 43, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    transform: translateY(-6px) scale(1.05) !important;
    color: #a3cf2b !important;
}

/* ── 12. SERVICE & GLASS CARD — LASER BORDER ─────── */
.service-card,
.glass-card {
    position: relative;
    overflow: hidden;
}

.service-card::before,
.glass-card.feature-tool::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #a3cf2b, transparent);
    transition: left 0.6s ease;
    z-index: 2;
}

.service-card:hover::before,
.glass-card.feature-tool:hover::before {
    left: 150%;
}

/* ── 13. GLASS CARDS – INTERACTIVE GLOW ─────────── */
.glass-card {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease, border-color 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(163, 207, 43, 0.1);
    border-color: rgba(163, 207, 43, 0.25) !important;
}

/* ── 14. SCROLL-TRIGGERED WORD GLOW ─────────────── */
.section-header-worldclass h2,
.section-title {
    position: relative;
}

/* ── 15. GLOBAL SCROLL PROGRESS BAR ─────────────── */
.scroll-progress-wrap {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    z-index: 9999;
    background: transparent;
}

.scroll-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #a3cf2b, #00e5c8, #7c3aed);
    transition: width 0.1s linear;
    box-shadow: 0 0 12px rgba(163, 207, 43, 0.7);
}

/* ── 16. HERO BADGE — PREMIUM ────────────────────── */
.hero-badge {
    animation: heroBadgePop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) both !important;
}

@keyframes heroBadgePop {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ── 17. SECTION DIVIDERS — CINEMATIC ────────────── */
.vibe-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(163, 207, 43, 0.3), rgba(0, 229, 200, 0.2), transparent);
    margin: 60px 0;
    position: relative;
}

.vibe-divider::after {
    content: '✦';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #a3cf2b;
    font-size: 0.6rem;
    background: #021014;
    padding: 0 12px;
    animation: spinStar 8s linear infinite;
}

@keyframes spinStar {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* ── 18. FOOTER — NEBULA GLOW ────────────────────── */
footer,
.site-footer {
    position: relative;
    overflow: hidden;
}

footer::before,
.site-footer::before {
    content: '';
    position: absolute;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 300px;
    background: radial-gradient(ellipse, rgba(163, 207, 43, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

/* ── 19. ACTIVE NAV LINKS ────────────────────────── */
.nav-links a.active,
.nav-links a:hover {
    color: #a3cf2b !important;
    text-shadow: 0 0 20px rgba(163, 207, 43, 0.4);
}

/* ── 20. INPUT FOCUS GLOW ────────────────────────── */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: rgba(163, 207, 43, 0.5) !important;
    box-shadow: 0 0 0 3px rgba(163, 207, 43, 0.1) !important;
}

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 768px) {

    #wow-cursor-dot,
    #wow-cursor-ring {
        display: none;
    }

    * {
        cursor: auto !important;
    }

    .tech-pill {
        animation: none !important;
    }

    .float-badge {
        animation: none !important;
    }
}