* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #222222;
    color: #ffffff;
    font-family: 'Oswald', sans-serif;
    line-height: 1.5;
}

body.menu-open {
    overflow: hidden; /* Prevent scrolling when menu is open */
}

/* Header Navigation */
.site-header {
    background-color: #222222;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 80px;
    z-index: 10;
}

.logo {
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-family: sans-serif;
}

.hamburger-menu {
    position: absolute;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 11;
}

.hamburger-menu span {
    display: block;
    width: 25px;
    height: 1px;
    background-color: #ffffff;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: calc(100vh - 80px);
    background-image: url('https://images.unsplash.com/photo-1446776811953-b23d57bd21aa?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.hero-text {
    font-size: 5rem;
    font-weight: 500;
    letter-spacing: 1px;
    margin: 0;
    text-transform: uppercase;
}

.italic-number {
    font-style: italic;
}

/* Call to Action */
.view-btn {
    display: inline-block;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.6);
    border: 1px solid #fff;
    padding: 0.8rem 2.5rem;
    font-size: 1.2rem;
    font-weight: 500;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: background-color 0.3s, color 0.3s, transform 0.3s;
    font-family: sans-serif;
    cursor: pointer;
    animation: btn-pulse 2s infinite;
}

@keyframes btn-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.5);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(255, 255, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.view-btn:hover {
    background-color: #fff;
    color: #000;
    transform: scale(1.05);
    animation: none;
}

/* --- Overlay Menu --- */
.overlay-menu {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: #1a1a1a; /* Very dark grayish black */
    z-index: 9999;
    display: flex;
    flex-direction: column;
    transform: translateY(-100%); /* Hidden by default */
    transition: transform 0.4s ease-in-out;
    font-family: 'Poppins', sans-serif;
}

.overlay-menu.active {
    transform: translateY(0);
}

.overlay-header {
    height: 80px;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.close-btn {
    position: absolute;
    right: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.close-btn:hover {
    opacity: 1;
}

.overlay-links {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    padding-right: 15%;
    gap: 2rem;
}

.overlay-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 4px;
    transition: color 0.3s;
}

.overlay-links a:hover {
    color: #aaaaaa;
}

.overlay-footer {
    padding: 2rem;
    display: flex;
    justify-content: flex-end;
    padding-right: 15%;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    transition: background-color 0.3s;
}

.social-icon:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-text {
        font-size: 3rem;
    }
    .overlay-links a {
        font-size: 2rem;
    }
    .overlay-links {
        padding-right: 10%;
    }
    .overlay-footer {
        padding-right: 10%;
    }
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2rem;
    }
}

/* --- Astronauts Grid --- */
.astronauts-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.mission-title {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 2rem;
    font-weight: 500;
    margin-top: 4rem;
    margin-bottom: 2rem;
    letter-spacing: 2px;
}

/* We style the grid wrapper from JS. Let's ensure it handles columns */
#astronaut-grid {
    display: none; /* Default hidden */
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    justify-content: center;
}

.astro-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.astro-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px; /* Slight rounding for a nice look, or 0 if stark square is preferred */
    margin-bottom: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.astro-name {
    font-family: 'Oswald', sans-serif;
    font-weight: 400;
    font-size: 1.5rem;
    letter-spacing: 1px;
    margin: 0;
}

/* --- Footer --- */
.site-footer {
    max-width: 800px;
    margin: 6rem auto 0 auto;
    padding: 2rem;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    color: #ffffff;
    font-size: 1.1rem;
    line-height: 1.6;
}

.stats-text {
    margin-bottom: 3rem;
}

.bold-stat {
    font-weight: 700;
    text-decoration: underline;
}

.badge {
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 0.3rem 0.8rem;
    font-size: 0.9rem;
    margin-left: 0.5rem;
    background-color: rgba(255, 255, 255, 0.05);
}

.project-info, .project-goal {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    font-weight: 500;
    font-size: 1.3rem;
    letter-spacing: 1px;
    margin-bottom: 3rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 5rem;
    text-align: left;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

.copyright-info {
    line-height: 1.4;
}

.social-links {
    display: flex;
    align-items: center;
}

.twitter-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s;
}

.twitter-icon:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.astro-fee {
    font-size: 0.9rem;
    color: #ffcc00;
    margin-top: 0.5rem;
    padding: 0.2rem 0.8rem;
    border: 1px solid rgba(255, 204, 0, 0.3);
    border-radius: 4px;
    display: inline-block;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    animation: pulse-fee 2s infinite;
}

@keyframes pulse-fee {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 204, 0, 0.4);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(255, 204, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 204, 0, 0);
    }
}
