/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a5490;
    --secondary-color: #2c7fb8;
    --accent-color: #f39c12;
    --dark-bg: #1a1a2e;
    --light-bg: #f5f5f5;
    --text-dark: #333;
    --text-light: #666;
    --white: #ffffff;
    --storm-blue: #0d47a1;
    --storm-gray: #424242;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: linear-gradient(135deg, var(--storm-blue) 0%, var(--primary-color) 100%);
    color: var(--white);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    margin-bottom: 0.2rem;
}

.tagline {
    font-size: 0.85rem;
    opacity: 0.9;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

.nav-menu a:hover {
    opacity: 0.8;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--white);
    font-size: 1.2rem;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.theme-icon {
    transition: transform 0.3s;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--white);
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--white);
    text-align: center;
    padding: 8rem 2rem;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-top: 1rem;
}

/* Sections */
.section {
    padding: 5rem 0;
}

.alt-bg {
    background-color: var(--light-bg);
}

.section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--storm-blue);
    text-align: center;
}

.section > .container > p {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Chasers Grid */
.chasers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.chaser-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.chaser-photo {
    width: 150px;
    height: 150px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--storm-blue);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.chaser-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chaser-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.chaser-card.featured {
    border: 2px solid var(--accent-color);
    background: linear-gradient(135deg, #fff9e6 0%, var(--white) 100%);
}

.chaser-card.featured h3 {
    color: var(--accent-color);
}

.coming-soon-badge {
    display: inline-block;
    background: var(--accent-color);
    color: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0.5rem 0;
}

.chaser-card h3 {
    font-size: 1.8rem;
    color: var(--storm-blue);
    margin-bottom: 1rem;
}

.youtube-channel {
    margin: 1rem 0;
}

.youtube-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #ff0000;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.youtube-link:hover {
    color: #cc0000;
}

.youtube-icon {
    font-size: 1.2rem;
}

.chaser-card p {
    color: var(--text-light);
    margin-top: 1rem;
    line-height: 1.8;
}

.work-in-progress {
    text-align: center;
    font-style: italic;
    color: var(--text-light);
    margin-top: 2rem;
}

/* Photo Gallery */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    aspect-ratio: 4 / 3;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Missions Grid */
.missions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.mission-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.mission-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.mission-thumbnail {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.mission-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.mission-card:hover .mission-thumbnail img {
    transform: scale(1.05);
}

.mission-date {
    color: var(--text-light);
    font-size: 0.9rem;
    font-style: italic;
    margin-bottom: 0.5rem;
}

.view-all-missions {
    text-align: center;
    margin-top: 3rem;
}

/* Full Mission Page Styles */
.mission-full {
    background: var(--white);
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 1000px;
    margin: 0 auto;
}

.mission-header {
    border-bottom: 2px solid var(--light-bg);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

.mission-header h2 {
    color: var(--storm-blue);
    font-size: 2.5rem;
    margin-top: 1rem;
}

.mission-meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.mission-meta span {
    color: var(--text-light);
    font-size: 0.9rem;
}

.mission-content {
    display: grid;
    gap: 2rem;
}

.mission-media {
    display: grid;
    gap: 1.5rem;
}

.mission-image {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.mission-image img {
    width: 100%;
    height: auto;
    display: block;
}

.mission-video {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mission-details h3 {
    color: var(--storm-blue);
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.mission-details h3:first-child {
    margin-top: 0;
}

.mission-data {
    list-style: none;
    padding: 0;
}

.mission-data li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--light-bg);
}

.mission-data li:last-child {
    border-bottom: none;
}

.mission-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.mission-card h3 {
    color: var(--storm-blue);
    margin-bottom: 1rem;
}

.mission-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.youtube-channels {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #ff0000;
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background 0.3s;
}

.btn:hover {
    background: #cc0000;
}

.btn-primary {
    background: var(--accent-color);
    font-weight: 700;
}

.btn-primary:hover {
    background: #e68900;
}

/* Foundation Card */
.foundation-card {
    background: var(--white);
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.foundation-content h3 {
    color: var(--storm-blue);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.foundation-content > p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 2rem;
    text-align: left;
}

.foundation-status {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
    border-left: 4px solid var(--accent-color);
}

.foundation-status p {
    color: var(--text-dark);
    margin: 0.5rem 0;
    text-align: left;
}

.foundation-mission {
    margin-top: 2rem;
}

.foundation-mission h4 {
    color: var(--storm-blue);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.foundation-mission ul {
    list-style: none;
    padding-left: 0;
}

.foundation-mission li {
    color: var(--text-light);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.8;
}

.foundation-mission li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Weather Grid */
.weather-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.weather-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.weather-card h3 {
    color: var(--storm-blue);
    margin-bottom: 1rem;
}

.weather-card p {
    color: var(--text-light);
}

/* Coming Soon */
.coming-soon {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Merch Styles */
.merch-coming-soon {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

.merch-coming-soon h2 {
    color: var(--storm-blue);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.merch-features {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    text-align: left;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.merch-features li {
    padding: 0.75rem 0;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.merch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.merch-item {
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.merch-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.merch-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: var(--light-bg);
}

.merch-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.merch-item:hover .merch-image img {
    transform: scale(1.05);
}

.merch-info {
    padding: 1.5rem;
}

.merch-info h3 {
    color: var(--storm-blue);
    margin-bottom: 0.5rem;
}

.merch-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.merch-description {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.coming-soon p {
    font-size: 1.2rem;
    color: var(--text-light);
    font-style: italic;
}

/* Footer */
footer {
    background: var(--dark-bg);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.social-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--storm-blue);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    body.dark-mode .nav-menu {
        background: #0d1b2a;
    }

    .nav-menu.active {
        left: 0;
    }

    .theme-toggle {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .hamburger {
        display: flex;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .section h2 {
        font-size: 2rem;
    }

    .chasers-grid,
    .missions-grid,
    .weather-grid {
        grid-template-columns: 1fr;
    }

    .photo-gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }

    .chaser-photo {
        width: 120px;
        height: 120px;
    }

    .mission-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .mission-full {
        padding: 2rem 1.5rem;
    }

    .mission-header h2 {
        font-size: 2rem;
    }

    .merch-grid {
        grid-template-columns: 1fr;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Dark Mode Styles */
body.dark-mode {
    --text-dark: #e0e0e0;
    --text-light: #b0b0b0;
    --white: #1a1a2e;
    --light-bg: #16213e;
    --storm-blue: #4a90e2;
    background-color: var(--white);
    color: var(--text-dark);
}

body.dark-mode .navbar {
    background: linear-gradient(135deg, #0d1b2a 0%, #1a1a2e 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    color: #ffffff;
}

body.dark-mode .logo h1,
body.dark-mode .tagline {
    color: #ffffff;
}

body.dark-mode .nav-menu a {
    color: #ffffff;
}

body.dark-mode .nav-menu a:hover {
    opacity: 0.8;
    color: var(--accent-color);
}

body.dark-mode .hero {
    /* Background image will be set inline, this ensures dark overlay works */
    color: #ffffff;
}

body.dark-mode .chaser-photo {
    border-color: var(--storm-blue);
}

body.dark-mode .gallery-item {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

body.dark-mode .gallery-item:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
}

body.dark-mode .mission-card,
body.dark-mode .mission-full,
body.dark-mode .merch-coming-soon,
body.dark-mode .merch-item {
    background: var(--light-bg);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

body.dark-mode .mission-header {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .mission-data li {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .mission-video {
    background: rgba(26, 33, 62, 0.5);
}

body.dark-mode .hero-content h2,
body.dark-mode .hero-content p,
body.dark-mode .hero-subtitle {
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

body.dark-mode .alt-bg {
    background-color: var(--light-bg);
}

body.dark-mode .section h2 {
    color: var(--storm-blue);
}

body.dark-mode .section > .container > p {
    color: var(--text-light);
}

body.dark-mode .chaser-card,
body.dark-mode .mission-card,
body.dark-mode .weather-card,
body.dark-mode .coming-soon {
    background: var(--light-bg);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

body.dark-mode .chaser-card:hover,
body.dark-mode .mission-card:hover,
body.dark-mode .weather-card:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);
}

body.dark-mode .chaser-card.featured {
    background: linear-gradient(135deg, #2a2419 0%, var(--light-bg) 100%);
    border-color: var(--accent-color);
}

body.dark-mode .chaser-card h3,
body.dark-mode .mission-card h3,
body.dark-mode .weather-card h3 {
    color: var(--storm-blue);
}

body.dark-mode .chaser-card p,
body.dark-mode .mission-card p,
body.dark-mode .weather-card p,
body.dark-mode .coming-soon p {
    color: var(--text-light);
}

body.dark-mode .work-in-progress {
    color: var(--text-light);
}

body.dark-mode .youtube-link {
    color: #ff6b6b;
}

body.dark-mode .youtube-link:hover {
    color: #ff5252;
}

body.dark-mode .foundation-card {
    background: var(--light-bg);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

body.dark-mode .foundation-content h3,
body.dark-mode .foundation-mission h4 {
    color: var(--storm-blue);
}

body.dark-mode .foundation-content > p,
body.dark-mode .foundation-mission li {
    color: var(--text-light);
}

body.dark-mode .foundation-status {
    background: rgba(26, 33, 62, 0.5);
    border-left-color: var(--accent-color);
}

body.dark-mode .foundation-status p {
    color: var(--text-dark);
}

body.dark-mode footer {
    background: #0d1b2a;
}

body.dark-mode .theme-toggle {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

body.dark-mode .theme-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* First Up Foundation Page Dark Mode Styles */
body.dark-mode .foundation-hero {
    color: #ffffff;
}

body.dark-mode .service-card,
body.dark-mode .help-step,
body.dark-mode .stat-card,
body.dark-mode .contact-form-section {
    background: var(--light-bg);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

body.dark-mode .service-card:hover,
body.dark-mode .help-step:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
}

body.dark-mode .service-card h3,
body.dark-mode .help-step h4,
body.dark-mode .contact-form-section h3 {
    color: var(--storm-blue);
}

body.dark-mode .service-card p,
body.dark-mode .help-step p {
    color: var(--text-light);
}

body.dark-mode .donate-section {
    background: linear-gradient(135deg, #0d1b2a 0%, #1a1a2e 100%);
}

body.dark-mode .donate-option {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .form-group input,
body.dark-mode .form-group textarea,
body.dark-mode .form-group select {
    background: var(--light-bg);
    color: var(--text-dark);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .form-group input:focus,
body.dark-mode .form-group textarea:focus,
body.dark-mode .form-group select:focus {
    border-color: var(--storm-blue);
}

body.dark-mode .form-group label {
    color: var(--text-dark);
}

body.dark-mode .stat-number {
    color: var(--accent-color);
}

body.dark-mode .stat-label {
    color: var(--text-light);
}

/* Foundation Banner Dark Mode */
body.dark-mode .foundation-banner {
    background: linear-gradient(135deg, #d68910 0%, #b9770e 100%);
    box-shadow: 0 4px 12px rgba(214, 137, 16, 0.4);
}

/* Tornado Visualization Styles */
.tornado-viz-container {
    margin: 3rem 0;
}

#tornado-visualization {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.tornado-controls {
    z-index: 10;
}

#tornado-info {
    z-index: 10;
}

@media (max-width: 768px) {
    #tornado-visualization {
        height: 400px !important;
    }
    
    .tornado-controls {
        flex-direction: column;
        padding: 1rem !important;
        bottom: 10px !important;
        left: 10px !important;
        right: 10px !important;
        transform: none !important;
        width: calc(100% - 20px);
    }
    
    #tornado-info {
        top: 10px !important;
        right: 10px !important;
        left: 10px !important;
        max-width: none !important;
        font-size: 0.85rem;
    }
    
    #tornado-info h4 {
        font-size: 1rem !important;
    }
    
    #tornado-info p {
        font-size: 0.8rem !important;
    }
    
    .tornado-viz-header h3 {
        font-size: 1.5rem !important;
    }
}

