@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* Base & Reset */
:root {
    --cursor-x: 50%;
    --cursor-y: 50%;
    --neon-red: #ff003c;
    --neon-blue: #00f0ff;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background-color: #030303;
    color: #ffffff;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

/* Noise Texture Overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #030303;
}

::-webkit-scrollbar-thumb {
    background: #222;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--neon-red);
}

/* Glassmorphism & Cards */
.glass-panel {
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.card-hover-effect {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-hover-effect:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px -10px rgba(255, 0, 60, 0.15);
    border-color: rgba(255, 0, 60, 0.4);
}

/* Neon Glows */
.text-glow {
    text-shadow: 0 0 20px rgba(255, 0, 60, 0.5);
}

.box-glow {
    box-shadow: 0 0 30px rgba(255, 0, 60, 0.15);
}

/* Spotlights */
.spotlight {
    background: radial-gradient(800px circle at var(--cursor-x) var(--cursor-y), rgba(255, 255, 255, 0.06), transparent 40%);
}

/* Animations */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

@keyframes glitch {
    0% {
        transform: translate(0);
    }

    20% {
        transform: translate(-2px, 2px);
    }

    40% {
        transform: translate(-2px, -2px);
    }

    60% {
        transform: translate(2px, 2px);
    }

    80% {
        transform: translate(2px, -2px);
    }

    100% {
        transform: translate(0);
    }
}

.hover-glitch:hover {
    animation: glitch 0.3s cubic-bezier(.25, .46, .45, .94) both infinite;
    color: var(--neon-red);
}

/* Filter Buttons Active State */
.filter-btn {
    position: relative;
    overflow: hidden;
}

.filter-btn.active {
    background: transparent;
    border-color: var(--neon-red);
    color: white;
    box-shadow: 0 0 15px rgba(255, 0, 60, 0.2);
}

.filter-btn.active::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--neon-red);
    opacity: 0.1;
    z-index: -1;
}

/* === NEW HYPER-PREMIUM FEATURES === */

/* Command Center (Search) */
.command-center-input {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.05em;
    transition: all 0.3s ease;
}

.command-center-input:focus {
    outline: none;
    border-color: var(--neon-red);
    box-shadow: 0 10px 30px -10px rgba(255, 0, 60, 0.1);
}

/* HUD Drawer (Cart) */
.hud-panel {
    background: rgba(5, 5, 5, 0.85);
    /* Darker, more solid */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.hud-item {
    position: relative;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.02) 0%, transparent 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.hud-item:hover {
    background: linear-gradient(90deg, rgba(255, 0, 60, 0.05) 0%, transparent 100%);
    border-color: rgba(255, 0, 60, 0.2);
    transform: translateX(-5px);
}

/* Terminal Modal (Support) */
.terminal-modal {
    background: #050505;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
    position: relative;
}

.terminal-modal::before {
    /* Top Left Corner */
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 20px;
    height: 20px;
    border-top: 2px solid var(--neon-red);
    border-left: 2px solid var(--neon-red);
}

.terminal-modal::after {
    /* Bottom Right Corner */
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 20px;
    height: 20px;
    border-bottom: 2px solid var(--neon-red);
    border-right: 2px solid var(--neon-red);
}

.terminal-input {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--neon-blue);
    /* Coding aesthetic */
    font-family: 'Space Grotesk', sans-serif;
}

.terminal-input:focus {
    border-color: var(--neon-blue);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.1);
    outline: none;
}

/* Utilities */
.hidden {
    display: none !important;
}

.pointer-events-none {
    pointer-events: none;
}

.pointer-events-auto {
    pointer-events: auto;
}

/* === NEW HERO ANIMATIONS === */
@keyframes blob {
    0% {
        transform: translate(0px, 0px) scale(1);
    }

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }

    100% {
        transform: translate(0px, 0px) scale(1);
    }
}

.animate-blob {
    animation: blob 7s infinite;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

.clip-path-polygon {
    clip-path: polygon(10% 0, 100% 0, 100% 70%, 90% 100%, 0 100%, 0 30%);
}

.animate-pulse-slow {
    animation: pulse 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Hide Scrollbar Utility */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}