:root {
    --bg-color: #0d0d0d;
    --text-main: #f5f5f5;
    --text-muted: #aaaaaa;
    --accent: #e55325; /* Rust orange/red */
    --accent-hover: #ff6a3b;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Roboto', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, .logo {
    font-family: 'Montserrat', sans-serif;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(13, 13, 13, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-size: 2rem;
    font-weight: 900;
    color: var(--text-main);
    letter-spacing: 2px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-main);
    border-radius: 3px;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: radial-gradient(circle at center, #2a1005 0%, var(--bg-color) 70%);
}

#ember-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.glitch-title {
    font-size: 5rem;
    font-weight: 900;
    text-transform: uppercase;
    position: relative;
    color: var(--text-main);
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    margin-bottom: 1rem;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    letter-spacing: 1px;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    background: var(--accent);
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(229, 83, 37, 0.4);
}

.cta-button:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 83, 37, 0.6);
}

/* Base Sections */
.section-padding {
    padding: 100px 5%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    color: var(--accent);
}

/* Glassmorphism Classes */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(16px);
    border-radius: 16px;
    padding: 2rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

/* About Grid */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.about-grid h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

.about-grid p {
    color: var(--text-muted);
}

/* Rules Section */
.rules-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-left: 0;
    list-style: none;
    counter-reset: custom-counter;
}

.glass-li {
    counter-increment: custom-counter;
    position: relative;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 1.5rem 1.5rem 1.5rem 4rem;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.glass-li::before {
    content: counter(custom-counter);
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent);
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
}

.glass-li:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: scale(1.01);
}

/* Roster Section */
.roster-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.member-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: default;
}

.member-card:hover {
    background: rgba(229, 83, 37, 0.05);
    border-color: var(--accent);
    transform: translateY(-5px);
}

.member-role {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.leader { color: #ffd700; }
.co-leader { color: #c0c0c0; }
.builder { color: #87ceeb; }
.pvp { color: #ff4500; }

.member-name {
    font-size: 1.5rem;
    color: #fff;
}

/* Quote Section */
.quote-section {
    position: relative;
    text-align: center;
}

.rust-quote {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 4rem;
    border-color: var(--accent);
    background: linear-gradient(135deg, rgba(229, 83, 37, 0.1) 0%, rgba(255, 255, 255, 0.02) 100%);
    overflow: hidden;
}

.rust-quote p {
    font-size: 1.8rem;
    font-weight: 700;
    font-style: italic;
    color: #fff;
    line-height: 1.4;
    position: relative;
    z-index: 2;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.quote-mark {
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 15rem;
    color: var(--accent);
    opacity: 0.15;
    font-family: 'Montserrat', sans-serif;
    line-height: 1;
    z-index: 1;
}

.rust-quote cite {
    display: block;
    margin-top: 2rem;
    font-size: 1.1rem;
    font-style: normal;
    font-weight: 500;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    z-index: 2;
}

/* Footer */
footer {
    background: #050505;
    padding: 3rem 5%;
    text-align: center;
    border-top: 1px solid var(--glass-border);
}

.footer-content h2 {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.footer-content p {
    color: #555;
}

/* Animation Utilities for Script */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }

    .glitch-title {
        font-size: 3rem;
    }

    .section-title {
        font-size: 2rem;
    }
}
