/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@700;900&family=Inter:wght@400;700&family=Rajdhani:wght@500;600;700&display=swap');

/* Base Styles */
:root {
    --color-bg: #0a001a;
    --color-text: #ffffff;
    --color-muted: #b8b8b8;
    --color-accent: #ff00ff;
    --color-accent2: #00ffff;
    --color-electric-blue: #0066ff;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #1a0033, #0a001a) fixed;
    overflow-x: hidden;
}

.grid-map {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image:
        radial-gradient(circle, rgba(255, 0, 255, 0.1) 1px, transparent 1px),
        radial-gradient(circle, rgba(0, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: 0 0, 20px 20px;
    opacity: 0.5;
}

h1,
h2,
h3,
h4,
.font-heading {
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 0.02em;
    font-weight: 900;
}

.font-accent {
    font-family: 'Rajdhani', sans-serif;
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

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

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

@keyframes glow {
    0% {
        box-shadow: 0 0 5px rgba(255, 0, 255, 0.2);
    }

    50% {
        box-shadow: 0 0 20px rgba(255, 0, 255, 0.6);
    }

    100% {
        box-shadow: 0 0 5px rgba(255, 0, 255, 0.2);
    }
}

@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);
    }
}

/* Utilities / Custom Classes */
.neon-border {
    border: 2px dashed var(--color-accent);
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.5), inset 0 0 10px rgba(255, 0, 255, 0.2);
}

.cyber-card {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(10, 0, 26, 0.7);
    backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(.4, 0, .2, 1);
    z-index: 1;
}

.cyber-card::before {
    content: '';
    position: absolute;
    inset: 0;
    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");
    opacity: 0.1;
    mix-blend-mode: overlay;
    pointer-events: none;
    z-index: -1;
}

.cyber-card-magenta {
    border-color: rgba(255, 0, 255, 0.2);
}

.cyber-card-magenta:hover {
    border-color: #ff00ff;
    box-shadow: 0 0 30px rgba(255, 0, 255, 0.4), inset 0 0 20px rgba(255, 0, 255, 0.1);
    transform: translateY(-5px) scale(1.02);
}

.cyber-card-cyan {
    border-color: rgba(0, 255, 255, 0.2);
}

.cyber-card-cyan:hover {
    border-color: #00ffff;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.4), inset 0 0 20px rgba(0, 255, 255, 0.1);
    transform: translateY(-5px) scale(1.02);
}

.gradient-text {
    background: linear-gradient(135deg, #ff00ff 0%, #00ffff 50%, #ff00ff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shine 5s linear infinite;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

.intense-gradient {
    background: linear-gradient(90deg, #ff00ff, #00ffff, #ff00ff);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shine 3s linear infinite;
}

/* Ticker Styles */
.ticker-container {
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.animate-marquee {
    display: flex;
    width: max-content;
    animation: marquee 30s linear infinite;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.ticker-item {
    padding: 0 3rem;
    white-space: nowrap;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-muted);
    transition: color 0.3s;
}

.ticker-item:hover {
    color: var(--color-accent);
}

.glitch:hover {
    animation: glitch 0.3s cubic-bezier(.25, .46, .45, .94) both infinite;
}

.glass-panel {
    background: rgba(10, 0, 26, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-link {
    text-transform: uppercase;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    letter-spacing: 0.1em;
    transition: all 0.3s;
}

.nav-link:hover {
    color: var(--color-accent);
    text-shadow: 0 0 8px rgba(255, 0, 255, 0.6);
}

/* Modals */
.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
}

.modal-content {
    background: #0a001a;
    border: 1px dashed var(--color-accent);
    box-shadow: 0 0 30px rgba(255, 0, 255, 0.3);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 0, 255, 0.3);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent);
}