/* =========================================================
   SOURCE HUB VC JOINER — ULTRA-FUTURISTIC CYBER ANIMATIONS
   Next-Gen Audio Visualizer, 3D Tilt, Particle Canvas & HUD
   ========================================================= */

/* --- Cyber Matrix Canvas --- */
#cyberMatrixCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    opacity: 0.65;
}

/* --- Ambient Cyber Aura Lights --- */
.cyber-aura-1 {
    position: fixed;
    top: -100px;
    left: 15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(231, 76, 60, 0.16) 0%, rgba(139, 0, 0, 0.05) 50%, transparent 70%);
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    z-index: 0;
    animation: auraFloat 10s ease-in-out infinite alternate;
}

.cyber-aura-2 {
    position: fixed;
    bottom: -150px;
    right: 10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(192, 57, 43, 0.14) 0%, rgba(56, 189, 248, 0.04) 50%, transparent 70%);
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    z-index: 0;
    animation: auraFloat 14s ease-in-out infinite alternate-reverse;
}

@keyframes auraFloat {
    0% { transform: translateY(0) scale(1) rotate(0deg); }
    100% { transform: translateY(60px) scale(1.15) rotate(15deg); }
}

/* --- Top Cyber HUD Telemetry Strip --- */
.cyber-hud-bar {
    width: 100%;
    max-width: 860px;
    margin: 0 auto 16px auto;
    background: rgba(12, 4, 4, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(231, 76, 60, 0.25);
    border-radius: 14px;
    padding: 10px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Fira Code', monospace;
    font-size: 0.74rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 15px rgba(231, 76, 60, 0.08);
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.cyber-hud-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(231, 76, 60, 0.15), transparent);
    animation: hudScan 4s linear infinite;
    pointer-events: none;
}

@keyframes hudScan {
    0% { left: -100%; }
    100% { left: 200%; }
}

.hud-left, .hud-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hud-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #cbd5e1;
}

.hud-item strong {
    color: #e2e8f0;
}

.hud-pulse-radar {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 rgba(34, 197, 94, 0.7);
    animation: radarPulse 1.8s infinite;
}

@keyframes radarPulse {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.8); }
    70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.hud-sfx-toggle {
    background: rgba(231, 76, 60, 0.12);
    border: 1px solid rgba(231, 76, 60, 0.35);
    color: #fca5a5;
    padding: 3px 9px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.72rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.hud-sfx-toggle:hover {
    background: rgba(231, 76, 60, 0.25);
    color: #fff;
    box-shadow: 0 0 10px rgba(231, 76, 60, 0.4);
    transform: translateY(-1px);
}

/* --- Audio Waveform Visualizer --- */
.audio-visualizer-container {
    width: 100%;
    padding: 12px 16px;
    margin: 12px 0 20px 0;
    background: rgba(6, 2, 2, 0.65);
    border: 1px solid rgba(231, 76, 60, 0.2);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.visualizer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: #94a3b8;
    font-family: 'Fira Code', monospace;
}

.visualizer-tag {
    color: #e74c3c;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.visualizer-wave-wrap {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 38px;
    gap: 3px;
    padding: 2px 0;
}

.eq-bar {
    flex: 1;
    min-width: 3px;
    height: 15%;
    background: linear-gradient(to top, #8b0000, #c0392b, #ff6b6b);
    border-radius: 4px;
    transition: height 0.08s ease;
    box-shadow: 0 0 6px rgba(231, 76, 60, 0.3);
}

.eq-bar.active {
    background: linear-gradient(to top, #c0392b, #ff4757, #00f2fe);
    box-shadow: 0 0 10px rgba(255, 71, 87, 0.6);
}

/* --- 3D Tilt Card & Dynamic Spotlight --- */
.card {
    transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s ease, border-color 0.3s ease !important;
    position: relative;
}

.spotlight-overlay {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: radial-gradient(400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(239, 68, 68, 0.15), transparent 80%);
    z-index: 1;
}

.card:hover .spotlight-overlay {
    opacity: 1;
}

/* --- Holographic Shimmer Button --- */
.btn-primary {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #b91c1c 0%, #ef4444 50%, #dc2626 100%) !important;
    box-shadow: 0 6px 25px rgba(239, 68, 68, 0.45) !important;
    border: 1px solid rgba(254, 202, 202, 0.3) !important;
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 40%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: rotate(25deg);
    transition: left 0.75s ease;
    pointer-events: none;
}

.btn-primary:hover::before {
    left: 140%;
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 30px rgba(231, 76, 60, 0.65) !important;
}

/* --- Click Ripple Effect --- */
.cyber-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: rippleAnim 0.5s linear;
    pointer-events: none;
}

@keyframes rippleAnim {
    to {
        transform: scale(3.5);
        opacity: 0;
    }
}

/* --- Glowing Title Shimmer --- */
.logo-main {
    background: linear-gradient(135deg, #ffffff 0%, #ff8585 45%, #e74c3c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 25px rgba(231, 76, 60, 0.45);
    letter-spacing: 3px;
    animation: titleGlow 4s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0% { filter: drop-shadow(0 0 10px rgba(231, 76, 60, 0.3)); }
    100% { filter: drop-shadow(0 0 25px rgba(231, 76, 60, 0.7)); }
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .cyber-hud-bar {
        font-size: 0.68rem;
        padding: 8px 12px;
    }
    .hud-right {
        gap: 8px;
    }
}
