body {
    background-color: #050510;
    color: #e2e8f0;
    font-family: 'Rajdhani', sans-serif;
    overflow-x: hidden;
}

/* Theme Colors */
:root {
    --neon-orange: #ff6b00;
    --neon-blue: #00f3ff;
    --neon-purple: #bd00ff;
    --dark-bg: #050510;
}

/* Typography map */
.font-game {
    font-family: 'Press Start 2P', cursive;
}

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

/* Text Colors */
.text-neon-blue {
    color: var(--neon-blue) !important;
}

.text-neon-orange {
    color: var(--neon-orange) !important;
}

.text-neon-purple {
    color: var(--neon-purple) !important;
}

.text-gray-400 {
    color: #94a3b8 !important;
}

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

::-webkit-scrollbar-track {
    background: #0f172a;
}

::-webkit-scrollbar-thumb {
    background: var(--neon-orange);
    border-radius: 5px;
}

/* Intro Screen Styles */
#intro-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.8s ease-in-out, opacity 0.8s ease-in-out;
    padding: 20px;
    /* Prevent edge touching */
}

#slogan-typewriter {
    text-align: center;
    width: 100%;
    max-width: 800px;
    white-space: normal;
    /* Allow text to wrap */
    word-wrap: break-word;
}

@media (max-width: 768px) {
    #slogan-typewriter {
        font-size: 0.9rem !important;
        /* Smaller size for mobile */
        line-height: 1.6;
        min-height: 60px;
    }

    h1[data-text="EXPOGAMES.FUN"] {
        font-size: 1.8rem !important;
        /* Specific fix for the glitch title */
    }
}

.intro-content {
    text-align: center;
    padding: 2rem;
}

.start-btn {
    font-family: 'Press Start 2P', cursive;
    background: transparent;
    color: var(--neon-blue);
    border: 4px solid var(--neon-blue);
    padding: 20px 40px;
    font-size: 20px;
    cursor: pointer;
    text-transform: uppercase;
    box-shadow: 0 0 15px var(--neon-blue);
    transition: all 0.3s;
    animation: pulse 1.5s infinite;
    margin-top: 2rem;
}

.start-btn:hover {
    background: var(--neon-blue);
    color: #000;
    box-shadow: 0 0 30px var(--neon-blue), 0 0 60px var(--neon-blue);
    text-decoration: none;
}

/* Navbar Customization */
.navbar {
    background-color: rgba(5, 5, 16, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.navbar-brand {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    color: white !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-link {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    color: #94a3b8 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    margin-left: 1rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--neon-blue) !important;
    text-shadow: 0 0 10px var(--neon-blue);
}

.navbar-toggler {
    border-color: var(--neon-blue);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 243, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Buttons */
.btn-primary-neon {
    background: linear-gradient(90deg, var(--neon-orange), #dc2626);
    color: white;
    border: none;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    transform: skewX(-10deg);
    transition: all 0.3s;
    box-shadow: 0 0 15px rgba(255, 107, 0, 0.5);
    padding: 10px 30px;
    display: inline-block;
    text-decoration: none;
}

.btn-primary-neon:hover {
    transform: skewX(0);
    box-shadow: 0 0 25px rgba(255, 107, 0, 0.8);
    color: white;
}

.btn-primary-neon span {
    display: block;
    transform: skewX(10deg);
}

.btn-primary-neon:hover span {
    transform: skewX(0);
}

.btn-outline-neon {
    background: rgba(0, 243, 255, 0.1);
    border: 1px solid var(--neon-blue);
    color: var(--neon-blue) !important;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.8rem;
    /* Adjusted for better mobile view */
    padding: 1rem 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    margin: 5px;
}

.btn-outline-neon:hover {
    background: var(--neon-blue);
    color: black !important;
    box-shadow: 0 0 20px var(--neon-blue);
}

/* Neon Borders & Cards */
.neon-border {
    position: relative;
    border: 1px solid rgba(0, 243, 255, 0.3);
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(10px);
    transition: transform 0.3s;
    height: 100%;
    /* For grid layouts */
}

.neon-border:hover {
    transform: translateY(-5px);
}

.neon-border::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 10px;
    height: 10px;
    border-top: 2px solid var(--neon-blue);
    border-left: 2px solid var(--neon-blue);
}

.neon-border::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    border-bottom: 2px solid var(--neon-blue);
    border-right: 2px solid var(--neon-blue);
}

.neon-border-orange {
    position: relative;
    border: 1px solid rgba(255, 107, 0, 0.3);
    background: rgba(15, 23, 42, 0.6);
    height: 100%;
}

.neon-border-orange::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 10px;
    height: 10px;
    border-top: 2px solid var(--neon-orange);
    border-left: 2px solid var(--neon-orange);
}

.neon-border-orange::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    border-bottom: 2px solid var(--neon-orange);
    border-right: 2px solid var(--neon-orange);
}

/* Placeholders */
.game-placeholder {
    background-image: repeating-linear-gradient(45deg,
            #1e293b,
            #1e293b 10px,
            #0f172a 10px,
            #0f172a 20px);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #475569;
    color: #94a3b8;
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 250px;
    /* Increased height */
}

.game-placeholder img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

/* Canvas Background */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.4;
    pointer-events: none;
}

/* Animations */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-40px) rotate(2deg);
    }
}

@keyframes float-slow {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-50px) rotate(-2deg);
    }
}

@keyframes float-reverse {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(40px) rotate(1deg);
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

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

.animate-pulse {
    animation: pulse 2s infinite;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-float-slow {
    animation: float-slow 4s ease-in-out infinite;
}

.animate-float-reverse {
    animation: float-reverse 5s ease-in-out infinite;
}

.animate-shimmer {
    animation: shimmer 2s infinite;
}

/* Glitch Effect Text */
.glitch-text {
    position: relative;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #050510;
}

.glitch-text::before {
    left: 2px;
    text-shadow: -1px 0 #ff00c1;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch-text::after {
    left: -2px;
    text-shadow: -1px 0 #00fff9;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% {
        clip: rect(14px, 9999px, 89px, 0);
    }

    20% {
        clip: rect(66px, 9999px, 11px, 0);
    }

    40% {
        clip: rect(98px, 9999px, 4px, 0);
    }

    60% {
        clip: rect(33px, 9999px, 66px, 0);
    }

    80% {
        clip: rect(7px, 9999px, 22px, 0);
    }

    100% {
        clip: rect(59px, 9999px, 91px, 0);
    }
}

@keyframes glitch-anim2 {
    0% {
        clip: rect(81px, 9999px, 23px, 0);
    }

    20% {
        clip: rect(5px, 9999px, 64px, 0);
    }

    40% {
        clip: rect(38px, 9999px, 49px, 0);
    }

    60% {
        clip: rect(2px, 9999px, 86px, 0);
    }

    80% {
        clip: rect(74px, 9999px, 3px, 0);
    }

    100% {
        clip: rect(51px, 9999px, 18px, 0);
    }
}

/* Bootstrap Overrides/Utilities for Spacing/Layout */
.section-padding {
    padding: 6rem 0;
}

.bg-black-50 {
    background-color: rgba(0, 0, 0, 0.5);
}

.border-top-white-10 {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-text-gradient {
    background: linear-gradient(to right, var(--neon-orange), #ffcd00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 10px rgba(255, 107, 0, 0.5);
}

/* Custom form styles */
.form-control {
    background-color: #111827;
    border: 1px solid #374151;
    color: white;
    padding: 0.75rem;
}

.form-control:focus {
    background-color: #111827;
    border-color: var(--neon-orange);
    color: white;
    box-shadow: 0 0 0 0.25rem rgba(255, 107, 0, 0.25);
}

/* Mobile Stats Cards */
.mobile-stat-card {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    height: 100%;
    transition: transform 0.2s;
}

.mobile-stat-card:active {
    transform: scale(0.98);
}

.mobile-stat-card.stat-orange {
    border-color: rgba(255, 107, 0, 0.5);
}

.mobile-stat-card.stat-blue {
    border-color: rgba(0, 243, 255, 0.5);
}

.mobile-stat-card.stat-purple {
    border-color: rgba(189, 0, 255, 0.5);
}

.mobile-stat-card .label {
    font-size: 0.7rem;
    font-family: 'Press Start 2P', cursive;
    margin-bottom: 0.5rem;
    display: block;
}

.mobile-stat-card .value {
    font-size: 1.5rem;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    color: white;
    line-height: 1;
}

/* Animation Delays for Desktop Floaters */
.delay-1 {
    animation-delay: 0.5s;
}

.delay-2 {
    animation-delay: 1.2s;
}

.delay-3 {
    animation-delay: 2.5s;
}