@font-face {
    font-family: 'Fonk';
    src: url(./fonts/a.ttf) format(opentype);
}

:root {
    --gold: #d4af37;
    --dark-gold: #b38f2a;
    --black: #0b0b0f;
    --dark-gray: #141414;
    --medium-gray: #1f1f1f;
    --light-gray: #f0f0f0;
    --text-gray: #b1b1b1;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--light-gray);
    background-color: var(--black);
    line-height: 1.8;
    overflow-x: hidden;
}

header {
    background:rgba(0, 0, 0, 0.3);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

#video {
    position: absolute;
    right: 0;
    bottom: 0;
    min-width: 100%;
    min-height: 100%;
    width: inherit;
    height: inherit;
    z-index: -100;
    object-fit: cover;
}

.header-content {
    animation: fadeIn 1.5s ease-out;
}

header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4.2rem;
    font-weight: 700;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 1.5rem 3rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    letter-spacing: 1px;
}

.header-subtitle {
    font-size: 1.4rem;
    max-width: 850px;
    margin: 0 auto;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 1rem;
    border-radius: 8px;
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--gold);
    font-size: 2rem;
    animation: bounce 2s infinite;
    cursor: pointer;
    text-decoration: none;
}

nav {
    background-color: var(--dark-gray);
    padding: 1.5rem;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

nav a {
    color: var(--light-gray);
    text-decoration: none;
    margin: 0 20px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 5px;
}

nav a:hover {
    color: var(--gold);
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--gold);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

.nav-logo {
    color: var(--gold);
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-right: 20vw;
    margin-left: 0px;
}

section {
    padding: 80px 10%;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    margin-top: 20px;
}

h2 {
    font-family: 'Playfair Display', serif;
    color: var(--gold);
    font-size: 3rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

h2::after {
    content: ''; 
    position: absolute;
    width: 50%;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), transparent);
    bottom: -10px;
    left: 0;
}

p {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

#timeline {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.7)), url(https://images.pexels.com/photos/1169754/pexels-photo-1169754.jpeg?cs=srgb&dl=pexels-philippedonn-1169754.jpg&fm=jpg);
    background-position: center;
    background-size: contain;
}

.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background-color: var(--gold);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1.5px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
    margin-bottom: 30px;
}

.timeline-item:hover {
    transform: scale(1.08);
    transition: all 0.5s ease;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--gold);
    border-radius: 50%;
    top: 15px;
    z-index: 1;
}

.left {
    left: 0;
}

.right {
    left: 50%;
}

.left::after {
    right: -10px;
}

.right::after {
    left: -10px;
}

.timeline-content {
    padding: 20px;
    background-color: var(--medium-gray);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.timeline-content h3 {
    color: var(--gold);
    margin-bottom: 10px;
}

#missions {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.6)), url(https://images.pexels.com/photos/998641/pexels-photo-998641.jpeg?cs=srgb&dl=pexels-francesco-ungaro-998641.jpg&fm=jpg);
    background-position: center;
    background-size: contain;
}

.missions-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.mission-card {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    transition: all 0.5s ease;
    border-left: 7px solid var(--gold);
}

.mission-card:hover {
    transform: scale(1.03);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.4);
}

.mission-card img {
    width: 110%;
    height: 350px;
    object-fit: cover;
    transition: transform 0.8s ease;
    display: block;
}

.mission-card:hover img {
    transform: scale(1.1);
    filter: blur(1px);
}

.mission-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 25px;
    background: rgba(0, 0, 0, 0.5);
    transition: transform 0.5s ease, opacity 0.5s ease;
    transform: translateY(30px);
    opacity: 0;
    border-radius: 16px;
}

.mission-card:hover .mission-overlay {
    transform: translateY(0);
    opacity: 1;
}

.mission-overlay h3 {
    color: var(--gold);
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.mission-overlay p {
    font-size: 1rem;
    color: #ccc;
}

.mission-overlay a {
    text-decoration: none;
    font-weight: 700;
    color: var(--dark-gold);
    position: relative;
}

.mission-overlay a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--gold);
    transition: width 0.3s ease;
}

.mission-overlay a:hover::after {
    width: 100%;
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-item {
    text-align: center;
    padding: 30px;
    background-color: var(--medium-gray);
    border-radius: 10px;
    transition: transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    position: relative;
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

#astronauts {
    background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.6)), url(https://c4.wallpaperflare.com/wallpaper/26/821/124/moon-surface-wallpaper-preview.jpg);
    background-position: center;
    background-size: cover;
}

.astro-img {
    position: absolute;
    width: 100%;
    height: 340px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 2px solid var(--gold);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    left: 0%;
}

.astro-img:hover {
    transform: scale(1.03);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.6);
    opacity: 0;
}

.astro-vid {
    position: absolute;
    width: 100%;
    height: 340px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 2px solid var(--gold);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    left: 0%;
}

.astro-vid:hover {
    opacity: 1;
}

.astro-media {
    position: relative;
    width: 100%;
    height: 340px;
}

.feature-icon {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 20px;
}

footer {
    background-color: var(--dark-gray);
    padding: 30px 10% 30px;
}

.last {
    text-align: center;
    color: var(--text-gray);
    font-size: 1.2rem;
}

.last a{
    color: var(--text-gray);
}

.name {
    text-decoration: none;
    font-family: 'Fonk';
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-20px) translateX(-50%); }
    60% { transform: translateY(-10px) translateX(-50%); }
}

@media (max-width: 768px) {
        header h1 { font-size: 3rem; }
        .timeline-item { width: 100%; left: 0 !important; padding-left: 70px; }
        .timeline::after { left: 31px; }
        .timeline-item::after { left: 21px !important; }
        .left::after, .right::after { right: auto; left: 21px; }
        .nav-logo { left: 5%; font-size: 1.2rem; }
}