/* --- Global Styles & Reset --- */
:root {
    --primary-color: #007bff; /* Bright Blue - Trust/Innovation */
    --secondary-color: #ff8c00; /* Vibrant Orange - Energy/Enthusiasm */
    --light-bg: #f8f9fa; /* Light Gray */
    --dark-text: #343a40; /* Dark Text */
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--dark-text);
    line-height: 1.6;
    background-color: var(--white);
    scroll-behavior: smooth;
}

h1, h2, h3, h4 {
    font-weight: 700;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

/* Additional image rule for responsiveness */
img {
    max-width: 100%;
    height: auto;
}

/* --- Header & Navigation --- */
header {
    background-color: var(--dark-text);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
}

.logo {
    display: flex;
    align-items: center;
}

.nav-logo {
    height: 35px;
    margin-right: 10px;
}

.logo span {
    color: var(--secondary-color);
    font-weight: 400;
    font-size: 0.8em;
    margin-left: 5px;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    color: var(--white);
    font-weight: 400;
    padding: 5px 10px;
    transition: color 0.3s, background-color 0.3s;
    border-radius: 5px;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

/* NEW: Mobile Menu Toggle Button (Hidden by default) */
.menu-toggle {
    display: none; /* Hide on large screens */
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5em;
    cursor: pointer;
    padding: 5px;
}

/* Special Button Style for Donate (CTA) */
.btn-donate {
    background-color: var(--secondary-color) !important;
    color: var(--dark-text) !important;
    font-weight: 700 !important;
    padding: 8px 15px !important;
    margin-left: 10px;
}

.btn-donate:hover {
    background-color: #ff9933 !important; /* Slightly lighter orange */
    color: var(--white) !important;
}

/* --- Section Global Styles --- */
.content-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 20px;
}

.light-bg {
    background-color: var(--light-bg);
}

.section-title {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 40px;
    color: var(--primary-color);
    border-bottom: 3px solid var(--secondary-color);
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 5px;
}

/* Call to Action Button General Style */
.cta-button {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--dark-text);
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 700;
    transition: background-color 0.3s, transform 0.2s;
    margin-top: 15px;
}

.cta-button:hover {
    background-color: #ff9933;
    transform: translateY(-2px);
}

.secondary-btn {
    background-color: var(--primary-color);
    color: var(--white);
}

.secondary-btn:hover {
    background-color: #0056b3;
}

/* --- Hero Section Styles --- */
.hero-section {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 100px 20px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23006ad8" fill-opacity="1" d="M0,64L60,85.3C120,107,240,149,360,170.7C480,192,600,192,720,170.7C840,149,960,107,1080,90.7C1200,75,1320,85,1380,90.7L1440,96L1440,0L1380,0C1320,0,1200,0,1080,0C960,0,840,0,720,0C600,0,480,0,360,0C240,0,120,0,60,0L0,0Z"></path></svg>');
    background-size: cover;
    background-position: bottom;
}

.hero-logo {
    width: 200px;
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.5));
}

.hero-content h1 {
    font-size: 3.5em;
    margin-bottom: 10px;
    font-weight: 900;
}

.hero-content h2 {
    font-size: 1.5em;
    font-weight: 400;
    margin-bottom: 20px;
}

/* --- Team Info Section Styles --- */
.team-info-container {
    display: flex;
    gap: 30px;
    justify-content: center;
}

.info-card {
    flex: 1;
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    border-top: 5px solid var(--primary-color);
}

.info-card h3 {
    color: var(--secondary-color);
    font-size: 1.6em;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.info-card ul {
    list-style: none;
    padding: 0;
}

.info-card li {
    margin-bottom: 15px;
    line-height: 1.4;
    display: flex;
    align-items: flex-start;
}

.highlight-icon {
    font-size: 1.2em;
    margin-right: 15px;
    color: var(--primary-color);
    line-height: 1;
}

/* --- Mission Section Styles (Core Values) --- */
.mission-statement {
    text-align: center;
    font-size: 1.3em;
    margin-bottom: 50px;
    font-style: italic;
    padding: 10px;
    border-left: 5px solid var(--secondary-color);
    background-color: var(--light-bg);
}

.core-values-container h3 {
    text-align: center;
    font-size: 1.8em;
    color: var(--dark-text);
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 10px;
}

.core-values-container h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.core-values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px;
    text-align: center;
}

.value-card {
    background-color: var(--white);
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    border-left: 6px solid var(--primary-color); 
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.value-icon {
    font-size: 2.5em;
    margin-bottom: 15px;
    display: block;
}

.value-card h4 {
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-size: 1.4em;
    border-bottom: 2px solid #eee;
    padding-bottom: 5px;
    width: 100%;
}


/* --- Outreach & Media Styles (formerly Outreach/Marketing) --- */
.outreach-grid {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

.outreach-card {
    flex: 1;
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    border-left: 5px solid var(--secondary-color);
}

.outreach-card h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* --- CAD & Programming Styles --- */

/* UPDATED: Image Showcase Styling */
.image-showcase {
    /* Set max width to control the image size */
    max-width: 600px; 
    margin: 40px auto;
    text-align: center;
    padding: 20px;
    background-color: var(--light-bg);
    border-radius: 10px;
}

.showcase-img {
    /* Ensure the image takes up 100% of the *container's* reduced size */
    width: 100%; 
    border: 5px solid var(--primary-color);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.tech-list {
    list-style: none;
    padding: 20px 0;
}

.tech-list li {
    padding: 10px 0;
    border-bottom: 1px dashed #ccc;
}

.programming-focus {
    display: flex;
    gap: 40px;
    text-align: center;
    margin-top: 20px;
}

.programming-focus > div {
    flex: 1;
    padding: 20px;
    border: 1px solid var(--primary-color);
    border-radius: 8px;
}

.programming-focus h3 {
    color: var(--secondary-color);
    margin-bottom: 10px;
}

/* --- Donation Section (Individual Donors) --- */
.donate-section {
    text-align: center;
}

.donate-box {
    background-color: #fff3e0; /* Pale Orange Background */
    border: 2px solid var(--secondary-color);
    padding: 40px;
    border-radius: 10px;
    margin-top: 30px;
    box-shadow: var(--shadow);
}

.donate-box h3 {
    color: var(--primary-color); /* Makes the header bright blue */
    margin-bottom: 20px;
    font-size: 1.5em;
    font-weight: 700;
}

.donation-impact-list {
    list-style: none;
    text-align: left;
    max-width: 600px;
    margin: 0px auto 30px auto; /* Centers the list */
    padding: 0;
}

.donation-impact-list li {
    background-color: var(--white);
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    border-left: 5px solid var(--secondary-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    line-height: 1.4;
}

.donation-impact-list li strong {
    color: var(--dark-text);
}

.donate-btn {
    font-size: 1.1em;
    padding: 15px 35px;
}

.disclaimer {
    font-size: 0.9em;
    color: #6c757d;
    margin-top: 15px;
}

/* --- Sponsor Tier Section Styles --- */
.sponsor-tiers-container {
    text-align: center;
    padding-top: 20px;
}

.sponsor-title {
    font-size: 2em;
    color: var(--dark-text);
    margin-bottom: 10px;
}

.sponsor-intro {
    font-size: 1.1em;
    margin-bottom: 40px;
    color: #6c757d;
}

.tiers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px;
    margin-top: 30px;
}

.tier-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: left;
    min-height: 400px; 
    display: flex;
    flex-direction: column;
}

.tier-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.tier-card h4 {
    font-size: 1.8em;
    margin-bottom: 5px;
}

.tier-price {
    font-weight: 700;
    color: var(--secondary-color);
    font-size: 1.2em;
    margin-bottom: 15px;
}

.tier-card h5 {
    color: var(--primary-color);
    font-size: 1.2em;
    margin-top: 15px;
    margin-bottom: 10px;
}

.tier-card ul {
    padding-left: 20px;
    margin-bottom: 20px;
    flex-grow: 1; 
}

/* Tier Specific Color Accents */
.bronze { border-top: 5px solid #cd7f32; }
.silver { border-top: 5px solid #c0c0c0; }
.gold { border-top: 5px solid #ffd700; }


/* --- Contact Section --- */
.contact-info {
    margin: 20px 0 30px;
    text-align: center;
}

/* NEW: Ensures the contact button has space above it */
#contact .cta-button {
    margin-top: 20px;
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 20px;
    background-color: var(--dark-text);
    color: var(--white);
    font-size: 0.9em;
}

hr {
    border: none;
    border-top: 1px solid #e9ecef;
    margin: 0;
}


/* --- Media Queries for Responsiveness --- */
@media (max-width: 992px) {
    .tiers-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablets */
        justify-content: center;
    }
    .tier-card.gold {
        grid-column: 1 / span 2;
    }
}

@media (max-width: 900px) {
    .outreach-grid {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    /* NEW: Mobile Navigation */
    .menu-toggle {
        display: block; /* Show hamburger icon */
    }

    .nav-links {
        /* Mobile Overlay Styling */
        position: absolute;
        top: 65px; /* Adjust based on header height */
        left: 0;
        right: 0;
        flex-direction: column;
        background-color: var(--dark-text);
        border-top: 1px solid var(--primary-color);
        box-shadow: var(--shadow);
        
        /* Hide by default */
        height: 0; 
        overflow: hidden;
        transition: height 0.4s ease-in-out;
    }

    .nav-links.active {
        /* Calculate height dynamically based on content if possible, or use max-height/fixed height */
        /* Using a generous height here, you may need to adjust based on final content */
        height: 400px; 
        padding: 10px 0;
    }

    .nav-links li {
        margin: 0;
        text-align: center;
    }

    .nav-links a {
        display: block;
        padding: 12px 20px;
        color: var(--white);
        border-radius: 0;
    }

    .nav-links a:hover {
        background-color: var(--primary-color);
        color: var(--white);
    }
    
    .btn-donate {
        margin-left: 0 !important;
        margin-top: 10px;
        width: 80%;
        display: block;
        margin: 10px auto !important;
    }
    /* END Mobile Navigation */
    
    .programming-focus {
        flex-direction: column;
    }
    
    .team-info-container {
        flex-direction: column; 
    }

    .core-values-grid {
        grid-template-columns: repeat(2, 1fr); 
    }
}

@media (max-width: 600px) {
    .tiers-grid {
        grid-template-columns: 1fr; 
    }
    .tier-card.gold {
        grid-column: 1 / span 1; /* Reset gold card span for single column view */
    }
    
    .hero-content h1 {
        font-size: 2.5em; /* Smaller font for small screens */
    }
}

@media (max-width: 576px) {
    .core-values-grid {
        grid-template-columns: 1fr; 
    }
}
/* Add the following new block to your existing style.css */

/* --- What's FTC? Section Styles --- */
.ftc-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px;
    margin-bottom: 50px;
}

.ftc-stat-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    border-bottom: 5px solid var(--secondary-color);
}

.ftc-stat-card h3 {
    color: var(--primary-color);
    font-size: 1.4em;
    margin-bottom: 10px;
}

.stat-number {
    font-size: 3em;
    font-weight: 900;
    color: var(--dark-text);
    margin-bottom: 5px;
}

.stat-description {
    font-size: 0.9em;
    color: #6c757d;
}

.ftc-program-summary {
    text-align: center;
    background-color: #e6f0ff; /* Lightest blue background */
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--primary-color);
}

.ftc-program-summary h4 {
    color: var(--dark-text);
    font-size: 1.6em;
    margin-bottom: 15px;
}

/* --- Media Query Update for FTC Section --- */
@media (max-width: 768px) {
    /* Stack FTC stats on mobile screens */
    .ftc-info-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Our Robot Section Styles --- */
.robot-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.robot-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-top: 4px solid var(--secondary-color);
    transition: transform 0.3s ease;
}

.robot-card:hover {
    transform: translateY(-5px);
}

.robot-card-icon {
    font-size: 2em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.robot-card h4 {
    color: var(--dark-text);
    margin-bottom: 10px;
    font-size: 1.3em;
}

.robot-card p {
    font-size: 0.95em;
    line-height: 1.6;
}

/* Responsive adjustment for Robot Grid */
@media (max-width: 768px) {
    .robot-details-grid {
        grid-template-columns: 1fr;
    }
}

/* --- DECODE Section Styles --- */
.decode-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.decode-item {
    background-color: var(--light-bg);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

.decode-item:hover {
    border-color: var(--primary-color);
    background-color: var(--white);
    transform: scale(1.03);
    box-shadow: var(--shadow);
}

.decode-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.decode-item h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Tablet & Mobile fix for Decode */
@media (max-width: 850px) {
    .decode-features {
        grid-template-columns: 1fr;
    }
}

/* Styling specifically for the DECODE section image */
.decode-main-image {
    max-width: 800px;
    margin: 0 auto 40px auto;
    padding: 10px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 15px;
    line-height: 0; /* Removes bottom gap in some browsers */
}

.decode-main-image img {
    width: 100%;
    border-radius: 10px;
    filter: brightness(0.9);
    transition: filter 0.3s ease;
}

.decode-main-image img:hover {
    filter: brightness(1);
}

/* --- Dropdown Logic --- */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--dark-text);
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-top: 3px solid var(--secondary-color);
    border-radius: 0 0 5px 5px;
}

.dropdown-content a {
    color: var(--white);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.9em;
    transition: background 0.3s;
}

.dropdown-content a:hover {
    background-color: var(--primary-color);
    color: var(--white) !important;
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-content {
    display: block;
}

/* --- Mobile Specific Fix for Dropdowns --- */
@media (max-width: 768px) {
    .dropdown-content {
        position: static;
        display: none; /* Can be toggled with JS if you want click-to-open on mobile */
        background-color: #2a2e33;
        box-shadow: none;
        width: 100%;
    }
    
    .dropdown:hover .dropdown-content {
        display: block;
    }
}

/* --- Engineering Process Grid --- */
.design-process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.process-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border-bottom: 5px solid var(--primary-color);
    position: relative;
    transition: transform 0.3s ease;
}

.process-card:hover {
    transform: translateY(-5px);
}

.step-num {
    background-color: var(--secondary-color);
    color: var(--dark-text);
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 900;
    margin-bottom: 15px;
}

.process-card h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.25em;
}

.process-card p {
    font-size: 0.95em;
    line-height: 1.6;
}

/* Specific styling for Step 5 to span wider if needed on large screens */
@media (min-width: 1000px) {
    .process-card:last-child {
        grid-column: span 1;
    }
}