/* Global Styles */
:root {
    --bg-dark: #0f0f15;
    --bg-card: #1a1a24;
    --text-white: #ffffff;
    --text-gray: #b0b0b0;
    --neon-red: #ff2a2a;
    --neon-green: #00ff00;
    /* Adjusted to a brighter neon green */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

/* Utilities */
.text-red {
    color: var(--neon-red);
    text-shadow: 0 0 10px rgba(255, 42, 42, 0.5);
}

.text-green {
    color: var(--neon-green);
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.text-white {
    color: var(--text-white);
}

.bg-darker {
    background-color: #08080b;
}

.section {
    padding: 80px 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.underline {
    height: 3px;
    width: 100px;
    background: var(--neon-red);
    margin: 0 auto;
    box-shadow: 0 0 10px var(--neon-red);
}

.underline.green {
    background: var(--neon-green);
    box-shadow: 0 0 10px var(--neon-green);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
    /* Slight rounding but mostly sharp */
}

.btn-primary {
    background-color: var(--neon-red);
    color: white;
    box-shadow: 0 0 15px rgba(255, 42, 42, 0.4);
}

.btn-primary:hover {
    background-color: transparent;
    border-color: var(--neon-red);
    box-shadow: 0 0 25px rgba(255, 42, 42, 0.7);
}

.btn-outline {
    border-color: var(--neon-green);
    color: var(--neon-green);
}

.btn-outline:hover {
    background-color: var(--neon-green);
    color: black;
    box-shadow: 0 0 20px var(--neon-green);
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background-color: rgba(15, 15, 21, 0.95);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    font-family: var(--font-heading);
    letter-spacing: -1px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--neon-red);
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: url('https://images.unsplash.com/photo-1534438327276-14e5300c3a48?q=80&w=2070&auto=format&fit=crop') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-attachment: fixed;
    /* Parallax effect */
    position: relative;
    padding-top: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 15, 21, 0.9) 0%, rgba(15, 15, 21, 0.7) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 20px;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    color: white;
}

.text-outline {
    color: transparent;
    -webkit-text-stroke: 2px var(--neon-green);
    text-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--text-gray);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-gray);
    font-size: 1.1rem;
}

.dartboard-graphic {
    width: 300px;
    height: 300px;
    margin: 0 auto;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ring {
    position: absolute;
    border-radius: 50%;
    border-style: solid;
}

.red-ring {
    width: 100%;
    height: 100%;
    border-width: 10px;
    border-color: var(--neon-red);
    box-shadow: 0 0 20px var(--neon-red);
    animation: spin-slow 10s linear infinite;
}

.green-ring {
    width: 70%;
    height: 70%;
    border-width: 8px;
    border-color: var(--neon-green);
    box-shadow: 0 0 20px var(--neon-green);
    animation: spin-reverse 8s linear infinite;
}

.white-ring {
    width: 40%;
    height: 40%;
    border-width: 5px;
    border-color: var(--text-white);
    opacity: 0.5;
}

.center-icon {
    font-size: 3rem;
    color: var(--neon-red);
}

/* Highlights / Cards */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--neon-green);
    box-shadow: 0 10px 30px rgba(0, 255, 0, 0.1);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--neon-red);
    margin-bottom: 20px;
}

.card h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.card p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

.card-actions {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-link {
    font-size: 1.5rem;
    color: var(--text-white);
}

.social-link:hover {
    color: var(--neon-red);
}

/* Stats Section */
.stats-section {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('https://images.unsplash.com/photo-1626245052981-2292723c051a?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-attachment: fixed;
    padding: 80px 0;
    text-align: center;
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 40px;
}

.stat-item h2 {
    font-size: 4rem;
    color: var(--neon-green);
    margin-bottom: 10px;
    text-shadow: 0 0 15px rgba(0, 255, 0, 0.4);
}

.stat-item p {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 2px;
}

/* Footer */
footer {
    background-color: #050507;
    padding: 50px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--neon-white);
}

.copyright {
    color: #555;
    font-size: 0.8rem;
    margin-top: 20px;
}

/* Animations */
@keyframes spin-slow {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes spin-reverse {
    100% {
        transform: rotate(-360deg);
    }
}

.animate-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
    }

    /* Mobile menu implementation usually requires JS toggle, kept simple here */
    .hamburger {
        display: block;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .footer-links {
        flex-direction: column;
        text-align: center;
    }
}

/* Twitch Stream Section */
.stream-container-wrapper {
    max-width: 960px;
    margin: 0 auto;
    text-align: center;
}

.stream-border {
    position: relative;
    padding: 5px;
    background: linear-gradient(45deg, var(--neon-red), var(--bg-dark), var(--neon-green));
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
}

#twitch-embed {
    width: 100%;
    aspect-ratio: 16 / 9;
    /* Modern aspect ratio maintenance */
    background-color: black;
    border-radius: 4px;
    /* Inner radius slightly smaller */
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

#twitch-embed.loaded {
    opacity: 1;
}

.stream-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-card);
    padding: 15px 30px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.live-indicator {
    font-weight: 900;
    color: var(--text-gray);
    /* Default off-air */
    display: flex;
    gap: 10px;
    align-items: center;
}

.live-indicator i {
    font-size: 0.8rem;
}

/* Optional: If we had live API connection, we could toggle this class */
.live-indicator.is-live {
    color: var(--neon-red);
    text-shadow: 0 0 10px red;
}

.error-msg {
    color: var(--text-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

@media (max-width: 768px) {
    .stream-status {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}