/* Global Styles */
:root {
    --bg-color: #050505;
    --text-color: #e0e0e0;
    --primary-neon: #39ff14;
    /* Neon Green */
    --secondary-neon: #00f3ff;
    /* Cyber Blue */
    --accent-color: #ff00ff;
    /* Hot Pink */
    --glass-bg: rgba(255, 255, 255, 0.05);

    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.nav-logo {
    font-family: var(--font-heading);
    text-transform: uppercase;
}

/* Splash Screen */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 1s cubic-bezier(0.77, 0, 0.175, 1), visibility 1s;
}

.splash-content {
    text-align: center;
    width: 100%;
    max-width: 600px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Glitch Effect used for Logo */
.glitch {
    font-size: 3.5rem;
    font-weight: 900;
    color: #fff;
    position: relative;
    letter-spacing: 2px;
    text-shadow: 0 0 10px var(--primary-neon);
    margin-bottom: 0.5rem;
    animation: glitch-anim 2s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% {
        text-shadow: 2px 0 var(--accent-color), -2px 0 var(--secondary-neon);
    }

    25% {
        text-shadow: -2px 0 var(--secondary-neon), 2px 0 var(--accent-color);
    }

    50% {
        text-shadow: 2px 0 var(--accent-color), -2px 0 var(--secondary-neon);
    }

    75% {
        text-shadow: -2px 0 var(--secondary-neon), 2px 0 var(--accent-color);
    }

    100% {
        text-shadow: 2px 0 var(--accent-color), -2px 0 var(--secondary-neon);
    }
}

.tagline {
    font-size: 1.1rem;
    color: var(--secondary-neon);
    margin-bottom: 2rem;
    letter-spacing: 1.5px;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.5s forwards;
}

.loading-bar-container {
    width: 100%;
    height: 6px;
    background-color: #222;
    border: 1px solid #333;
    border-radius: 0;
    /* Boxy tech look */
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.1);
}

.loading-bar {
    width: 0%;
    height: 100%;
    background: var(--primary-neon);
    box-shadow: 0 0 20px var(--primary-neon);
    animation: loadProgress 2.5s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.timer-display {
    font-family: 'Courier New', monospace;
    color: #555;
    font-size: 0.8rem;
    margin-top: 5px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes loadProgress {
    0% {
        width: 0%;
    }

    40% {
        width: 30%;
    }

    70% {
        width: 70%;
    }

    100% {
        width: 100%;
    }
}

/* Fade Out Splash */
#splash-screen.fade-out {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.1);
    /* Slight zoom out for effect */
}

/* Main Content Visibility */
#main-content {
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

#main-content.visible {
    opacity: 1;
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 10px var(--primary-neon);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #aaa;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-neon);
    text-shadow: 0 0 5px var(--primary-neon);
}

.nav-cta {
    padding: 0.5rem 1.2rem;
    border: 1px solid var(--primary-neon);
    color: var(--primary-neon) !important;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-cta:hover {
    background: var(--primary-neon);
    color: #000 !important;
    box-shadow: 0 0 15px var(--primary-neon);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding-top: 60px;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
        url('background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}

.hero h2 {
    font-size: 4rem;
    /* Adjusted for desktop */
    line-height: 1.1;
    margin-bottom: 1rem;
    color: #fff;
    color: #bbb;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.cta-btn {
    padding: 1rem 2rem;
    font-family: var(--font-heading);
    font-weight: 700;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.cta-btn.primary {
    background: var(--primary-neon);
    color: #000;
}

.cta-btn.primary.glow-effect {
    box-shadow: 0 0 20px rgba(50, 255, 20, 0.4);
}

.cta-btn.primary:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(50, 255, 20, 0.6);
}

.cta-btn.secondary {
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
}

.cta-btn.secondary:hover {
    background: #fff;
    color: #000;
}

/* About Section */
.about-section {
    padding: 6rem 10%;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: radial-gradient(circle at center, rgba(188, 19, 254, 0.05) 0%, transparent 70%);
}

.about-section .container {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.about-section h3 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 15px var(--secondary-neon);
    position: relative;
    display: inline-block;
}

.about-section h3::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--secondary-neon);
    margin: 10px auto 0;
    box-shadow: 0 0 10px var(--secondary-neon);
}

.about-section p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #ddd;
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.about-section strong {
    color: var(--primary-neon);
    font-weight: 600;
    text-shadow: 0 0 10px rgba(57, 255, 20, 0.3);
}

.about-section p:last-child {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: #fff;
    margin-top: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}


.grid-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.stat-card {
    background: #111;
    border: 1px solid #222;
    padding: 2rem;
    text-align: center;
    border-radius: 8px;
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.stat-card h4 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.stat-card p {
    color: #888;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* Footer */
footer {
    padding: 2rem;
    text-align: center;
    color: #555;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .glitch {
        font-size: 2rem;
    }

    .hero h2 {
        font-size: 2.5rem;
        padding: 0 1rem;
    }

    .cta-group {
        flex-direction: column;
    }
}

/* Social Icon */
.social-icon {
    color: #fff;
    transition: transform 0.3s, color 0.3s;
    display: flex;
    align-items: center;
}

.social-icon:hover {
    color: var(--primary-neon);
    transform: scale(1.1);
    filter: drop-shadow(0 0 5px var(--primary-neon));
}

/* Runners Section */
.runners-section {
    padding: 5rem 10%;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: linear-gradient(180deg, #050505 0%, #0a0a0a 100%);
}

.runners-section h3 {
    font-size: 2rem;
    margin-bottom: 2.5rem;
    color: #fff;
    text-align: center;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
    letter-spacing: 2px;
}

.runners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.runner-card {
    background: #0f0f0f;
    border: 1px solid #222;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 320px;
}

/* Active Card Styles */
.runner-card.active {
    border-color: var(--primary-neon);
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.1);
    background: radial-gradient(circle at top right, rgba(57, 255, 20, 0.05), #0f0f0f);
}

.runner-card.active:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 0 30px rgba(57, 255, 20, 0.2);
}

.card-status {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    background: var(--primary-neon);
    color: #000;
    box-shadow: 0 0 10px var(--primary-neon);
}

/* Coin Style - Strict Badge Spec 88px */
.coin-icon {
    width: 88px;
    height: 88px;
    margin: 1.5rem auto 1.5rem;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    /* Dark Surface + Subtle Depth + Thin Border */
    background: linear-gradient(135deg, #1a1a1a, #050505);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow:
        inset 0 0 10px rgba(0, 0, 0, 0.8),
        0 4px 10px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    overflow: hidden;
    /* Ensure image clipping */
}

/* SVG & Symbol Sizing */
.coin-svg {
    width: 40px;
    height: 40px;
    color: #fff;
    z-index: 2;
}

/* Active Coin - Neon Glow + Meme Texture */
.active-coin {
    border: 1px solid var(--primary-neon);
    /* Meme Image Fill with Dark Overlay */
    background:
        linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),
        url('background.jpg');
    background-size: cover;
    /* Fill perfectly */
    background-position: center;
    background-repeat: no-repeat;

    box-shadow:
        inset 0 0 15px rgba(57, 255, 20, 0.1),
        0 0 15px rgba(57, 255, 20, 0.3);
}

.active-coin .coin-svg {
    display: none;
    /* Hide icon as requested */
}

.runner-card.active:hover .active-coin {
    transform: scale(1.05);
    /* Gentle scale only */
    background-size: cover;
    /* Maintain cover on hover */
    box-shadow:
        inset 0 0 20px rgba(57, 255, 20, 0.2),
        0 0 25px rgba(57, 255, 20, 0.5);
}

.locked-coin .coin-symbol {
    color: #555;
    filter: blur(0.5px);
}

.runner-card.locked:hover .locked-coin {
    opacity: 0.8;
    background: #151515;
    border-color: rgba(255, 255, 255, 0.2);
}

.runner-card h4 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.card-subtitle {
    font-size: 0.9rem;
    color: #aaa;
}

/* Locked Card Styles */
.runner-card.locked {
    opacity: 0.8;
    border: 1px dashed #333;
}

.runner-card.locked:hover {
    opacity: 1;
    background: #151515;
    transform: translateY(-5px);
}

.locked-status {
    background: #333;
    color: #888;
    box-shadow: none;
}

.runner-card.locked h4 {
    filter: blur(2px);
    color: #888;
}

.card-year {
    display: block;
    margin-top: 1rem;
    font-family: 'Courier New', monospace;
    color: #555;
    font-size: 0.8rem;
    letter-spacing: 2px;
}