/* ================================================
   REPLAY EVENT — Custom CSS
   ================================================ */

/* Scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: #040e21; }
::-webkit-scrollbar-thumb { background: #5cd8da; border-radius: 2px; }
* { scrollbar-width: thin; scrollbar-color: #5cd8da #040e21; }

/* ---- Glass Components ---- */
.glass-card {
    background: rgba(17, 28, 47, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.glass-panel {
    background: rgba(17, 28, 47, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ---- Neon Effects ---- */
.neon-glow { box-shadow: 0 0 20px rgba(92, 216, 218, 0.3); }
.neon-glow-purple { box-shadow: 0 0 20px rgba(221, 183, 255, 0.3); }
.neon-glow-strong { box-shadow: 0 0 40px rgba(92, 216, 218, 0.5); }
.neon-text { text-shadow: 0 0 40px rgba(92, 216, 218, 0.5); }
.hero-title { text-shadow: 0 0 80px rgba(92, 216, 218, 0.2), 0 20px 60px rgba(0,0,0,0.6); }

/* ---- Scan Line Effect ---- */
.scan-container { position: relative; overflow: hidden; }
.scan-container::after {
    content: '';
    position: absolute;
    top: -2px; left: 0;
    width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, #5cd8da, transparent);
    animation: scanDown 3s linear infinite;
    pointer-events: none;
    z-index: 2;
}
@keyframes scanDown {
    0% { top: -2px; }
    100% { top: 100%; }
}

/* ---- 3D Grid Background ---- */
.grid-bg {
    background-image:
        linear-gradient(rgba(92, 216, 218, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(92, 216, 218, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* ---- Floating Orbs (Hero 3D BG) ---- */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    will-change: transform;
}
.orb-1 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(92, 216, 218, 0.18) 0%, transparent 70%);
    animation: orbFloat1 14s ease-in-out infinite;
}
.orb-2 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(221, 183, 255, 0.14) 0%, transparent 70%);
    animation: orbFloat2 18s ease-in-out infinite;
}
.orb-3 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(0, 164, 166, 0.12) 0%, transparent 70%);
    animation: orbFloat3 11s ease-in-out infinite;
}
@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%  { transform: translate(40px, -50px) scale(1.1); }
    66%  { transform: translate(-30px, 25px) scale(0.95); }
}
@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%  { transform: translate(-50px, -40px) scale(1.15); }
}
@keyframes orbFloat3 {
    0%, 100% { transform: translate(0, 0); }
    50%  { transform: translate(30px, -60px); }
}

/* ---- 3D Card Tilt ---- */
.tilt-card {
    transform-style: preserve-3d;
    will-change: transform;
    transition: transform 0.5s ease, box-shadow 0.3s ease;
}
.tilt-card:hover {
    box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 30px rgba(92, 216, 218, 0.15);
}

/* ---- Scroll Reveal ---- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.revealed {
    opacity: 1 !important;
    transform: translate(0) scale(1) !important;
}

/* ---- Mobile Menu ---- */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 60;
    background: rgba(4, 14, 33, 0.97);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-menu.open { transform: translateX(0); }

/* ---- Underline Hover ---- */
.nav-hover {
    position: relative;
    transition: color 0.2s;
}
.nav-hover::after {
    content: '';
    position: absolute;
    bottom: -3px; left: 0;
    width: 0; height: 1px;
    background: #5cd8da;
    transition: width 0.3s ease;
}
.nav-hover:hover::after { width: 100%; }
.nav-hover:hover { color: #5cd8da; }

/* ---- Pulsating Dot ---- */
@keyframes pulseRing {
    0%   { box-shadow: 0 0 0 0 rgba(92, 216, 218, 0.7); }
    70%  { box-shadow: 0 0 0 10px rgba(92, 216, 218, 0); }
    100% { box-shadow: 0 0 0 0 rgba(92, 216, 218, 0); }
}
.pulse-ring { animation: pulseRing 2s infinite; }

/* ---- Float Animation ---- */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-10px); }
}
.float { animation: float 5s ease-in-out infinite; }

/* ---- Parallax Hero BG ---- */
.hero-bg-img {
    will-change: transform;
    transition: transform 0.05s linear;
}

/* ---- WhatsApp Button ---- */
#whatsapp-btn {
    opacity: 0;
    transform: scale(0.8) translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
#whatsapp-btn.visible {
    opacity: 1;
    transform: scale(1) translateY(0);
}
#whatsapp-btn:hover {
    box-shadow: 0 0 30px rgba(92, 216, 218, 0.5);
    transform: scale(1.1) translateY(0) !important;
}

/* ---- Product Card ---- */
.product-card-img {
    transition: transform 0.6s ease, filter 0.6s ease;
}
.group:hover .product-card-img {
    transform: scale(1.08);
    filter: grayscale(0%) !important;
}

/* ---- Stats Counter ---- */
.stat-val {
    display: inline-block;
    font-variant-numeric: tabular-nums;
}

/* ---- CTA Gradient Section ---- */
.cta-gradient {
    background: linear-gradient(135deg, rgba(92, 216, 218, 0.08) 0%, rgba(221, 183, 255, 0.06) 50%, transparent 100%);
    border: 1px solid rgba(92, 216, 218, 0.15);
}

/* ---- Page Fade ---- */
body {
    animation: pageFadeIn 0.4s ease;
}
@keyframes pageFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ---- Hero Perspective Container ---- */
.hero-3d-container {
    perspective: 1200px;
}
.hero-3d-content {
    transform-style: preserve-3d;
    animation: heroFloat 8s ease-in-out infinite;
}
@keyframes heroFloat {
    0%, 100% { transform: rotateX(0deg) rotateY(0deg) translateZ(0); }
    25%       { transform: rotateX(1deg) rotateY(-0.5deg) translateZ(5px); }
    75%       { transform: rotateX(-1deg) rotateY(0.5deg) translateZ(5px); }
}

/* ---- Horizontal Scroll Ticker ---- */
@keyframes ticker {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.ticker-track {
    display: flex;
    animation: ticker 20s linear infinite;
    width: max-content;
}

/* ---- Focus Glow ---- */
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #5cd8da !important;
    box-shadow: 0 0 0 2px rgba(92, 216, 218, 0.2);
}
