/* Core Variables */
:root {
    --primary-color: #1a4a20; /* Dark Green */
    --secondary-color: #2e8b57; /* Other Shade of Green */
    --accent-blue: #1c5f8f; /* Blue Accent */
    --dark-bg: #050805; /* Black/Dark Background */
    --panel-bg: rgba(10, 15, 10, 0.75); /* Translucent sleek black for panels */
    --text-light: #ffffff; /* White text */
    --text-muted: #d0e0d1;
    --border-color: #16291a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

h2 {
    color: var(--secondary-color);
    font-size: 2.2rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}

p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.center-text {
    text-align: center;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* ==================== Navigation ==================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(5, 8, 5, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 2px solid var(--primary-color);
    z-index: 1000;
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-light);
    text-transform: uppercase;
}

.logo {
    width: 45px;
    height: 45px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-link:hover, .nav-link.active {
    color: var(--secondary-color);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.portal-link {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 0.85rem;
    border: 1px solid var(--secondary-color);
    transition: background 0.3s, box-shadow 0.3s;
}

.portal-link:hover {
    background: var(--secondary-color);
    box-shadow: 0 0 10px rgba(46, 139, 87, 0.5);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-light);
    border-radius: 2px;
}

/* ==================== Hero Sections ==================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.home-hero {
    background-image: url('https://media.discordapp.net/attachments/1497485148885618829/1497485151838535791/image.png?ex=69f2f73a&is=69f1a5ba&hm=10b9cad9233eb52027904c24b51e6eab5b16c064a292ec8a6347afd8ed51ab97&=&format=webp&quality=lossless&width=1421&height=800');
}

.about-hero {
    min-height: 80vh; /* Shorter than home hero */
}

/* Gradient Overlay for Hero */
.hero-overlay {
    position: absolute;
    inset: 0;
    /* Fades from clear in the center to black at the bottom to transition smoothly */
    background: linear-gradient(to bottom, rgba(5, 8, 5, 0.6) 0%, rgba(5, 8, 5, 0.5) 70%, var(--dark-bg) 100%);
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    padding: 20px;
}

.hero-join-now {
    display: inline-block;
    background: rgba(26, 74, 32, 0.7);
    border: 2px solid var(--secondary-color);
    color: var(--text-light);
    padding: 15px 40px;
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px;
    margin-bottom: 2rem;
    backdrop-filter: blur(5px);
    transition: all 0.3s;
}

.hero-join-now:hover {
    background: var(--secondary-color);
    box-shadow: 0 0 20px rgba(46, 139, 87, 0.8);
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-size: 2rem;
    color: var(--accent-blue);
    margin-bottom: 1rem;
}

/* ==================== Background Sections ==================== */
.section {
    padding: 6rem 0;
}

.section-bg {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    color: var(--text-light);
}

/* Base & Index Images */
.bg-img-1 { background-image: url('https://media.discordapp.net/attachments/1366846554731843734/1442166261978107924/11323356494805598208_20251123145332_1.png?ex=69f2c43f&is=69f172bf&hm=71f1731619cb8c6784866dfedb6e82df7906588a77978f4c1e279140aab42b1c&=&format=webp&quality=lossless&width=1423&height=800'); }
.bg-img-2 { background-image: url('https://media.discordapp.net/attachments/1366846554731843734/1442191123585171537/11323356494805598208_20251123163112_1.png?ex=69f2db66&is=69f189e6&hm=57f4585cb7f911e6e56dc7da71a14063e74acaf0e05dfd58d5fe43d0ec7ffcd9&=&format=webp&quality=lossless&width=1423&height=800'); }
.bg-img-3 { background-image: url('https://media.discordapp.net/attachments/1366846554731843734/1488199779610656778/MedalTVStarCitizen20260330154126480.png?ex=69f2cdcc&is=69f17c4c&hm=bd337e0a19a2fde09f9bcd9f59642300ead0974d1df31c737907f631a8885acb&=&format=webp&quality=lossless&width=1421&height=800'); }
.bg-img-4 { background-image: url('https://media.discordapp.net/attachments/1366846554731843734/1465393433836261579/image.png?ex=69f2e43c&is=69f192bc&hm=6f54780b17b869e1c0b2d675207edadec3c2ea72385eda1027762bd6992f62a5&=&format=webp&quality=lossless&width=1423&height=800'); }

/* New Images Added For About Page / Blends */
.bg-img-5 { background-image: url('https://media.discordapp.net/attachments/1366846554731843734/1462933875981418548/Capture_decran_2026-01-19_203449.png?ex=69f28358&is=69f131d8&hm=237667bdea504d08252ae9aa911624c2210baff17c99cd4c43f75ebbc36dcb3a&=&format=webp&quality=lossless&width=1280&height=800'); }
.bg-img-6 { background-image: url('https://media.discordapp.net/attachments/1366846554731843734/1462586962069422325/c258356c-e813-4efe-8c07-f58d450be035-screenshot.jpg?ex=69f291c1&is=69f14041&hm=ef2b2d58a437b3fd4020f267a74eca37e3a906badc5def9e6f3b687724f897ac&=&format=webp&width=1423&height=800'); }
.bg-img-7 { background-image: url('https://media.discordapp.net/attachments/1366846554731843734/1446923367017091253/Star_Citizen_12_6_2025_10_56_03_AM.png?ex=69f2ef25&is=69f19da5&hm=1afddf883fc834f32f24e4a30d4044dc21eca5952af2a67d65169d9728aa17d3&=&format=webp&quality=lossless&width=1423&height=800'); }
.bg-img-8 { background-image: url('https://media.discordapp.net/attachments/1366846554731843734/1443935666567381136/stormlaser.webp?ex=69f29ca1&is=69f14b21&hm=daf53f8ebd286517252602f72bf12890ec1d2242feaefffab15a19e990260430&=&format=webp&width=1421&height=800'); }
.bg-img-9 { background-image: url('https://media.discordapp.net/attachments/1366846554731843734/1443935596086169610/redlevelpatrols.webp?ex=69f29c91&is=69f14b11&hm=854026a2bce035a872618353cbbe5194b7f42b043f4b76a37e4667c646a534dd&=&format=webp&width=1421&height=800'); }

/* Advanced Smooth Transitions: Blends the top and bottom of each section naturally into the dark theme */
.section-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, var(--dark-bg) 0%, rgba(5, 8, 5, 0.45) 15%, rgba(5, 8, 5, 0.45) 85%, var(--dark-bg) 100%);
    z-index: 1;
}

.relative-z {
    position: relative;
    z-index: 2;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

/* Scroll Animation Utilities */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Glassmorphism Panels */
.info-block, .content-box, .division-card, .social-btn, .section-title-card {
    background: var(--panel-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.info-block {
    padding: 2.5rem;
    border-left: 4px solid var(--accent-blue);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.content-box {
    padding: 3.5rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.section-intro {
    max-width: 800px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
}

.goals-list {
    list-style: none;
    max-width: 800px;
    margin: 0 auto;
}

.goals-list li {
    background: rgba(10, 15, 10, 0.5);
    border-left: 3px solid var(--secondary-color);
    margin-bottom: 1rem;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    border-radius: 0 4px 4px 0;
}

.org-quote {
    font-style: italic;
    color: var(--secondary-color);
    font-size: 1.2rem;
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
    margin-top: 2rem;
    background: rgba(26, 74, 32, 0.2);
    padding: 1rem;
    border-radius: 0 4px 4px 0;
}

/* ==================== Divisions ==================== */
.section-title-card {
    display: inline-block;
    padding: 1rem 3rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.divisions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.division-card {
    border: 1px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    padding: 2rem;
    text-align: center;
    border-radius: 8px;
    transition: transform 0.3s, border-color 0.3s;
}

.division-card:hover {
    transform: translateY(-5px);
    border-top-color: var(--accent-blue);
}

.div-logo {
    display: block;
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    object-fit: contain;
}

.div-details {
    margin-top: 1.5rem;
    text-align: left;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1rem;
}

.div-details h4 {
    color: var(--secondary-color);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.div-details p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* ==================== Footer ==================== */
.footer {
    background: var(--dark-bg);
    padding: 3rem 0 1rem;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--border-color);
    color: var(--text-light);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s;
    font-weight: 600;
}

.social-btn:hover {
    background: var(--primary-color);
    border-color: var(--secondary-color);
}

.footer-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* Remove White Backgrounds Functionally */
.sc-market-logo, .rsi-logo {
    filter: grayscale(1) invert(1) brightness(2);
    mix-blend-mode: screen;
}

.copyright {
    margin-top: 2rem;
    font-size: 0.85rem;
    color: #666;
}

/* ==================== Mobile Responsiveness ==================== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(5, 8, 5, 0.98);
        flex-direction: column;
        padding: 1rem 0;
        text-align: center;
        border-bottom: 2px solid var(--primary-color);
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }
}