/* ===== HOME PAGE EXTRA ANIMATIONS ===== */

/* 1. Scroll progress bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 2000;
    pointer-events: none;
    transform: scaleX(0);
    transform-origin: 0 50%;
    background: linear-gradient(90deg, #0fb5b5, #1a8cff, #6fd8ff);
    box-shadow: 0 0 12px rgba(26, 140, 255, 0.7);
}

/* 2. Hero: floating light particles + moving shimmer on "Reality" + parallax */
.hero-particles {
    position: absolute;
    inset: 0 0 40% 0;
    overflow: hidden;
    pointer-events: none;
}
.hero-particles .particle {
    width: 3px;
    height: 3px;
    background: #bfe6ff;
    box-shadow: 0 0 8px 2px rgba(120, 200, 255, 0.7);
}
.hero-bg,
.hero-content { will-change: transform; }

.hero-accent {
    background-image: linear-gradient(100deg, #1aa8ff 0%, #0a78ff 30%, #8be3ff 50%, #0a78ff 70%, #1aa8ff 100%);
    background-size: 220% 100%;
    animation: accent-shimmer 4.5s linear infinite;
}
@keyframes accent-shimmer {
    from { background-position: 120% 0; }
    to   { background-position: -100% 0; }
}

/* 3. Shine sweep on main buttons */
.hero .hero-cta { position: relative; overflow: hidden; }
.hero .hero-cta::after {
    content: "";
    position: absolute;
    top: 0;
    left: -60%;
    width: 40%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
    transform: skewX(-20deg);
    animation: cta-shine 3.8s ease-in-out 2s infinite;
    pointer-events: none;
}
@keyframes cta-shine {
    0%   { left: -60%; }
    35%, 100% { left: 140%; }
}
.hero-play { animation: play-pulse 2.6s ease-out infinite; }
@keyframes play-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(60, 150, 255, 0.55); }
    70%  { box-shadow: 0 0 0 16px rgba(60, 150, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(60, 150, 255, 0); }
}

/* 4. Cards: 3D tilt + glare (services) and cursor spotlight (why us) */
.grad-border-inner.is-tilting { transition: transform 0.12s ease-out; will-change: transform; }
.grad-border-card:hover .grad-border-inner.is-tilting { transform: none; }
.grad-border-inner::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(260px circle at var(--gx, 50%) var(--gy, 50%), rgba(26, 140, 255, 0.14), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.grad-border-card:hover .grad-border-inner::after { opacity: 1; }

.why-card { position: relative; overflow: hidden; }
.why-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(44, 197, 197, 0.18), transparent 65%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.why-card:hover::after { opacity: 1; }

.icon-box { transition: transform 0.4s cubic-bezier(.34, 1.56, .64, 1); }
.grad-border-card:hover .icon-box,
.why-card:hover .icon-box { transform: translateY(-3px) rotate(-8deg) scale(1.1); }

/* 5. CTA banner: light sweep on hover */
.cta-banner-link { position: relative; }
.cta-banner-link::after {
    content: "";
    position: absolute;
    top: 0;
    left: -50%;
    width: 35%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.28), transparent);
    transform: skewX(-20deg);
    pointer-events: none;
}
.cta-banner-link:hover::after { animation: cta-shine 1.1s ease-out 1; }

@media (prefers-reduced-motion: reduce) {
    .hero-accent, .hero .hero-cta::after, .hero-play { animation: none !important; }
    .scroll-progress { display: none; }
}
