/* FONT IMPORT */
@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700;900&family=Montserrat:wght@400;500;600&display=swap');

/* BASIC RESET & THEME */
:root {
    --primary-green: #556b2f;
    --dark-green: #2e4034;
    --background-dark: #0a192f; /* Deep ocean blue/black */
    --text-light: #e6f1ff;
    --text-muted: #8892b0;
    --border-color: rgba(255, 255, 255, 0.15);
    --module-bg: rgba(255, 255, 255, 0.05);
    --highlight-blue: #64ffda;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--background-dark);
    color: var(--text-light);
    margin: 0;
    padding-top: 80px; /* Space for fixed header */
}

/* VIDEO BACKGROUND & OVERLAY */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
}
.video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
}
.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 47, 0.85);
    z-index: -1;
}

/* GLOBAL UI SHELL */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(10, 25, 47, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 1000;
    padding: 10px 20px;
    box-sizing: border-box;
}
.header-content {
    max-width: 95%; 
    margin: 0 auto; 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
}
.logo-link img { height: 60px; vertical-align: middle; }
.main-nav { display: flex; align-items: center; gap: 5px; }
.main-nav a.nav-button, .main-nav .dropbtn {
    color: var(--text-light); text-decoration: none; padding: 8px 12px; border-radius: 5px; transition: background-color 0.3s; font-size: 0.9rem; white-space: nowrap;
}
.main-nav a.nav-button:hover, .main-nav .dropdown:hover .dropbtn, .main-nav a.nav-button.active {
    background-color: var(--primary-green);
}

.dropbtn { background-color: inherit; border: none; font-family: inherit; cursor: pointer; }
.dropdown { position: relative; display: inline-block; }
.dropdown-content { display: none; position: absolute; background-color: #3d4c21; min-width: 160px; box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); z-index: 1; border-radius: 5px; }
.dropdown-content a { color: var(--text-light); padding: 12px 16px; text-decoration: none; display: block; font-size: 0.9rem; }
.dropdown-content a:hover {background-color: #4f583d;}
.dropdown:hover .dropdown-content { display: block; }

/* MAIN LAYOUT */
.page-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 20px;
}

.content-module {
    padding: 4rem 0;
    border-bottom: 1px solid var(--border-color);
}
.content-module:last-child {
    border-bottom: none;
}
.module-header {
    text-align: center;
    margin-bottom: 2rem;
}
.module-header h2 {
    font-family: 'Merriweather', serif;
    font-size: 2.5rem;
    margin: 0 0 0.5rem 0;
}

/* A. HERO SECTION */
.hero-section {
    height: 70vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: url('https://images.unsplash.com/photo-1509415753513-3b6d2b1f4577?auto=format&fit=crop&w=1600');
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    padding: 2rem;
}
.hero-section h1 {
    font-family: 'Merriweather', serif;
    font-size: 4rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
    margin: 0;
}
.hero-section p {
    font-size: 1.2rem;
    max-width: 600px;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
    margin: 1rem 0 2rem 0;
}
.hero-actions button {
    background-color: var(--highlight-blue);
    color: var(--background-dark);
    border: none;
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    margin: 0 10px;
    transition: transform 0.2s;
}
.hero-actions button:hover {
    transform: translateY(-3px);
}

/* B. LIVE MISSION TRACKER */
.tracker-layout {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}
.tracker-map {
    flex: 2;
    height: 400px;
    background-color: #000;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tracker-stats {
    flex: 1;
    background-color: var(--module-bg);
    padding: 1.5rem;
    border-radius: 8px;
}
.tracker-stats h3 { margin-top: 0; }
.tracker-stats p { margin: 0.5rem 0 1.5rem 0; }
.tracker-stats .stat-value { font-size: 2rem; font-weight: bold; color: var(--highlight-blue); }
.lifelist-btn { display: block; width: 100%; text-align: center; padding: 12px; background-color: var(--primary-green); color: white; border-radius: 5px; text-decoration: none; font-weight: bold; }

/* C. MEMBER DRAWING */
.drawing-section {
    background: linear-gradient(45deg, var(--primary-green), var(--dark-green));
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
}
.countdown-timer { font-size: 3rem; font-weight: bold; margin: 1rem 0; }

/* D. & E. Mission Logs & Expeditions */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}
.info-card {
    background-color: var(--module-bg);
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text-light);
}
.info-card img { width: 100%; height: 200px; object-fit: cover; }
.info-card-content { padding: 1rem; }
.info-card-content h4 { margin: 0 0 0.5rem 0; }