/* --- CSS VARIABLES & FONTS --- */
:root {
    --primary: #00cc33;
    --primary-hover: #00a329;
    --bg-dark: #0a0a0a;
    --bg-panel: #1a1a1a;
    --text-light: #ffffff;
    --text-dim: #cccccc;
}

/* Privacy First: Host your own font instead of using Google Fonts */
@font-face {
    font-family: 'PixelFont';
    src: url('font.woff2') format('woff2'); /* Replace with your local font file */
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'PixelFontVar';
    src: url('font2.woff2') format('woff2'); 
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'PixelFont', 'Courier New', Courier, monospace;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- NAVIGATION --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    /* background: rgba(10, 10, 10, 0.9); */
    /* border-bottom: 2px solid var(--primary); */
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo img {
    height: 50px;
    width: auto;
    image-rendering: pixelated;
}

nav button {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.1rem;
    /* margin-left: 1.5rem; */
    cursor: pointer;
    text-transform: uppercase;
    transition: color 0.2s;
}

nav button:hover, nav button.active {
    color: var(--primary);
}

.primary {
    color: var(--primary);
}

nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2em;
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid #2f2f2f;
    background: rgba(0, 0, 0, 0.65);
    border-radius: 8px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle span {
    width: 18px;
    height: 2px;
    background: var(--text-light);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

header.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

header.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
}

header.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.discord-btn {
    background: #5865F2; /* Discord Color */
    padding: 0.4rem 1rem;
    padding-top: 0.5rem;
    border-radius: 4px;
    text-decoration: none;
    color: white;
    border: 2px solid #5865F2;
}

/* --- PAGE CONTAINERS --- */
.page-section {
    display: none;
    /* padding-top: 80px; /* Offset for sticky nav */
    min-height: 100vh;
}
.page-section.active {
    display: block;
}

/* --- HERO SECTION (HOME) --- */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 0; 
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures correct scaling on desktop & mobile */
    z-index: -1;
    opacity: 1; /* Darken video for readable text */
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 4px 4px 0px #000;
}

.hero-content p, .hero-content h2 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 0px #000;
}

.hero-content h1 span {
    color: var(--primary);
}

.ip-box {
    background: rgba(0, 0, 0, 0.8);
    /* border: 2px solid var(--primary); */
    padding: 1.5rem;
    margin-top: 2rem;
    display: inline-block;
}

.ip-btn {
    background: var(--primary);
    color: var(--text-light);
    border: none;
    padding: 0.8rem 1.5rem;
    font-size: 1.2rem;
    cursor: pointer;
    margin: 0.5rem;
    transition: 0.2s;
    text-shadow: 2px 2px 0px #000;
}

.ip-btn:hover {
    background: var(--primary-hover);
}

/* --- FEATURES & CONTENT --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.section-title {
    text-align: center;
    color: var(--primary);
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-transform: uppercase;
}

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

.feature-card {
    background: var(--bg-panel);
    padding: 2rem;
    border-left: 4px solid var(--primary);
    text-align: center;
}

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

.gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border: 2px solid #333;
    transition: 0.3s;
}

.gallery img:hover {
    border-color: var(--primary);
    transform: scale(1.02);
}

/* --- HOW TO JOIN --- */
.join-instructions {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}
.join-card {
    flex: 1;
    min-width: 300px;
    background: var(--bg-panel);
    padding: 2rem;
    border: 2px solid #333;
}
.join-card h3 { color: var(--primary); margin-bottom: 1rem; }
.join-card ol { margin-left: 1.5rem; line-height: 2; }

/* --- FOOTER --- */
footer {
    background: #050505;
    text-align: center;
    padding: 2rem;
    border-top: 2px solid #333;
}
footer a { color: var(--text-dim); margin: 0 1rem; text-decoration: none; }
footer a:hover { color: var(--primary); }

@media (max-width: 860px) {
    header {
        padding: 0.8rem 1rem;
        /* background: rgba(5, 5, 5, 0.82); */
        /* backdrop-filter: blur(6px); */
    }

    .logo img {
        height: 42px;
    }

    .nav-toggle {
        display: inline-flex;
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        gap: 0;
        background: rgba(10, 10, 10, 0.96);
        border-top: 1px solid #232323;
        border-bottom: 1px solid #232323;
        padding: 0.35rem 0;
    }

    header.nav-open nav {
        display: flex;
    }

    nav button,
    .discord-btn {
        width: 100%;
        margin: 0;
        padding: 0.9rem 1rem;
        text-align: left;
        border-radius: 0;
        border: none;
    }

    .discord-btn {
        border-top: 1px solid #232323;
    }
}

.font-variable li span, .font-variable li strong {
    font-family: 'PixelFontVar', 'Courier New', Courier, monospace !important;
    font-size: 1.5em;
}


li > span {
    display: block;
}

.instructions li {
    font-family: 'PixelFontVar', 'Courier New', Courier, monospace !important;
    font-size: 1.5em;
}

.instructions li strong {
    font-family: 'PixelFontVar', 'Courier New', Courier, monospace !important;
    font-size: 1em;
}

#main-nav a {
    color: var(--text-light) !important;
    text-decoration: none;
}
#main-nav a.active {
    color: var(--primary) !important;
    font-weight: bold;
}