:root {
    --primary-color: #d00000;
    --secondary-color: #370617;
    --accent-color: #ffb703;
    --bg-dark: #0a0a0a;
    --bg-card: #1a1a1a;
    --text-main: #e0e0e0;
    --text-dim: #a0a0a0;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&family=Outfit:wght@400;700;900&display=swap');

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.hero-bg {
    position: relative;
    height: 40vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: radial-gradient(circle at center, #2b0b0b 0%, #0a0a0a 100%);
    overflow: hidden;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/fire-in-the-hole-hero.jpg') center/cover no-repeat;
    opacity: 0.3;
    filter: grayscale(0.5) contrast(1.2);
    z-index: -1;
}

.hero-content {
    z-index: 1;
    max-width: 900px;
    padding: 0 20px;
}

h1 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 900;
    color: #fff;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: -2px;
    line-height: 0.9;
    text-shadow: 0 0 30px rgba(208, 0, 0, 0.8);
}

h1 span {
    display: block;
    color: var(--primary-color);
}

.title-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.hero-graphic {
    width: 150px;
    height: auto;
    filter: drop-shadow(0 0 15px rgba(208, 0, 0, 0.6));
}

.hero-graphic.rocking {
    animation: cheesyRock 2s ease-in-out infinite;
}

.hero-graphic.spinning {
    animation: spin 1.5s linear infinite;
}

@keyframes cheesyRock {

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

    50% {
        transform: rotate(5deg);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.status-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid var(--primary-color);
    padding: 5px 15px;
    border-radius: 50px;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary-color);
}

.status-badge .dot {
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 50%;
    margin-right: 10px;
    box-shadow: 0 0 10px var(--primary-color);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.status-badge.closed {
    border-color: var(--text-dim);
    color: var(--text-dim);
}

.status-badge.closed .dot {
    background: #555;
    box-shadow: none;
    animation: none;
}

.dashboard-container {
    margin-top: -40px;
    padding: 0 20px 20px;
    position: relative;
    z-index: 2;
}

@media (max-width: 480px) {
    .dashboard-container {
        margin-top: -31px;
        /* Nudged down 9px from -40px */
    }
}

#chart-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    max-width: 1200px;
    margin: 0 auto;
}

#chart-container {
    width: 100%;
    height: 320px;
}

.info-section {
    padding: 40px 20px 100px;
    max-width: 1000px;
    margin: 0 auto;
}

.info-header {
    text-align: center;
    margin-bottom: 60px;
}

.info-header h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: #fff;
    margin: 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-card strong {
    display: block;
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-dim);
    margin: 0;
}

.btn {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(208, 0, 0, 0.3);
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(208, 0, 0, 0.5);
    background: #ff0000;
}

.controls {
    text-align: center;
    margin-top: 30px;
}

footer {
    padding: 60px 0;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    color: var(--text-dim);
    font-size: 0.9rem;
}

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

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

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 5px;
}

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

/* ====================================
   MARQUEE STYLES
   ==================================== */

.marquee-container {
    background: var(--secondary-color);
    border-top: 1px solid var(--primary-color);
    border-bottom: 1px solid var(--primary-color);
    padding: 10px 0;
    overflow: hidden;
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee-scroll 60s linear infinite;
}

.marquee-content {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--accent-color);
    letter-spacing: 0.5px;
    white-space: nowrap;
}

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

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