@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Variables */
:root {
    --primary-text-color: #fff;
    --secondary-color: #000;
}

html,
body {
    height: 100%;
    width: 100%;
    font-family: 'Poppins', 'Arial';
    color: white;
    background-color: black;
    overflow-x: hidden;
}

/* NavBar-Section */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 1000;
    background: transparent;
    transition: background-color 0.3s ease;
}

.nav-container {
    max-width: 1440px;
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo img {
    margin-left: 20px;
    width: 150px;
    height: auto;
    display: block;
    padding-bottom: 5px;
}

.nav-menu {
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.nav-item {
    color: rgba(240, 240, 250, 0.8);
    text-decoration: none;
    font-size: 13px;
    font-weight: 410;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: .2s ease;
}


.nav-item:hover {
    color: #fff;
}

.nav-item:hover::after {
    width: 100%;
}

.chevron {
    width: 8px;
    transition: transform 0.3s ease;
}

.nav-time {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 60px;
    box-sizing: border-box;
}

/* Dropdown */
.has-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: transparent;
    list-style: none;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.has-dropdown:hover .chevron {
    transform: rotate(180deg);
}

.dropdown-menu li {
    margin-bottom: 12px;
}

.dropdown-menu li:last-child {
    margin-bottom: 0;
}

.dropdown-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    transition: opacity 0.2s;
}

.dropdown-menu a:hover {
    opacity: 0.7;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 30px;
    width: 230px;
    border: 0.2px solid rgb(128, 128, 128);
    border-radius: 6px;
    padding: 4px 1px;
    padding-left: 10px;
}

.countdown {
    font-weight: 900;
    font-size: 12px;
}

.time-bar {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    gap: 20px;
}

.time-bar span {
    display: flex;
    align-items: center;
}

.launch-label {
    font-size: 10px;
    opacity: 0.8;
}

.nav-toggle {
    display: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    font-weight:200;
    transform: scaleX(0.85);
}

/* Mars Hero Section */
.mars-hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.mars-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(70%);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-text {
    position: absolute;
    z-index: 2;
    text-align: center;
}

.hero-text h1 {
    font-size: 4rem;
    letter-spacing: 3px;
    font-weight: 700;
}

.hero-text p {
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-top: 10px;
    color: #ccc;
}

/* responsive */
@media (max-width: 1024px) {
    .hero-text h1 {
        font-size: 3rem;
    }

    .nav-links {
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 10px;
        padding: 10px;
    }

    .hero-text h1 {
        font-size: 2.4rem;
    }

    .nav-links {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.8rem;
    }

    .hero-text p {
        font-size: 0.8rem;
    }
}

/* --- City on Mars Section --- */
.city-on-mars {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.city-on-mars img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.city-text {
    position: absolute;
    right: 8%;
    top: 50%;
    transform: translateY(-50%);
    max-width: 500px;
    color: white;
    z-index: 2;
    text-align: left;
}

.city-text h2 {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.city-text p {
    font-size: 1rem;
    line-height: 1.6;
    color: #d0d0d0;
}

/* responsive */
@media (max-width: 1024px) {
    .city-text {
        right: 5%;
        max-width: 400px;
    }

    .city-text h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .city-on-mars {
        justify-content: center;
    }

    .city-text {
        position: absolute;
        text-align: center;
        max-width: 90%;
        right: 50%;
        transform: translate(50%, -50%);
    }

    .city-text h2 {
        font-size: 1.6rem;
    }

    .city-text p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .city-text h2 {
        font-size: 1.4rem;
    }

    .city-text p {
        font-size: 0.8rem;
    }
}

/*  WHY MARS SECTION */
.why-mars {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 100vh;
    width: 100%;
    background: url("https://www.spacex.com/assets/images/human-spaceflight/mars/mars_whymars_d.jpg") center/cover no-repeat;
    color: white;
    overflow: hidden;
}

/* Dark overlay for text visibility */
.why-mars .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1;
}

.why-text {
    position: relative;
    z-index: 2;
    max-width: 650px;
    padding: 60px 80px;
}

.why-text h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.why-text p {
    color: #d0d0d0;
    line-height: 1.7;
    font-size: 1rem;
    margin-bottom: 40px;
}

.mars-stats {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    padding-top: 8px;
    font-size: 0.95rem;
}

.stat-row span:first-child {
    color: #bcbcbc;
    letter-spacing: 1px;
}

/* responsive  */
@media (max-width: 1024px) {
    .why-text {
        padding: 40px 50px;
    }
}

@media (max-width: 768px) {
    .why-mars {
        justify-content: center;
        text-align: center;
    }

    .why-text {
        padding: 40px 25px;
    }

    .stat-row {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .why-text h2 {
        font-size: 1.6rem;
    }

    .why-text p {
        font-size: 0.85rem;
    }
}


/* Time Section */
.time-to-mars {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 80px;
    background-color: #000;
    color: #fff;
    min-height: 60vh;
    padding: 20px;

}

.time-to-mars>div {
    text-align: center;
}

.time-to-mars h1 {
    font-size: 8.75rem;
    line-height: 1;
    font-weight: 500;
    margin: 0;
    font-family: Arial, Verdana, sans-serif;
}

.time-to-mars p {
    font-size: 1rem;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .time-to-mars {
        flex-direction: column;
        gap: 40px;
    }
}

/*STARSHIP SECTION*/
.starship-section {
    position: relative;
    width: 100%;
    height: 100vh;
    background: url("https://www.spacex.com/assets/images/human-spaceflight/mars/mars_starship_d.jpg") center center / cover no-repeat;
    color: white;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 80px;
    box-sizing: border-box;
}

.starship-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.starship-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.starship-text h1 {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 25px;
    text-align: left;
}

.starship-text p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #d0d0d0;
    margin-bottom: 40px;
    text-align: left;
}

.starship-btn {
    background: none;
    border: 1px solid white;
    color: white;
    padding: 14px 28px;
    cursor: pointer;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: 0.3s ease;
}

.starship-btn:hover {
    background-color: white;
    color: black;
}

/*RESPONSIVE*/
@media (max-width: 1024px) {
    .starship-section {
        padding: 0 40px;
    }

    .starship-text h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .starship-section {
        justify-content: center;
        text-align: center;
        padding: 0 20px;
    }

    .starship-text h1 {
        font-size: 2.2rem;
        text-align: center;
    }

    .starship-text p {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .starship-text h1 {
        font-size: 1.8rem;
    }

    .starship-text p {
        font-size: 0.9rem;
    }
}


/* Orbit-Graph Section */
.orbit-graph {
    height: 100%;
    width: 100%;
    background: url("https://www.spacex.com/assets/images/human-spaceflight/mars/mars_carousel1_card1_d.jpg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Landing on Mars Section */
.landing-mars {
    background: url("https://www.spacex.com/assets/images/human-spaceflight/mars/mars_feature2_d.jpg");
    min-height: 100vh;
    width: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
    padding: 80px 40px;
}

.landing-text {
    max-width: 600px;
    color: white;
}

.landing-text h2 {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 30px;
}

.landing-text p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #ccc;
}

.watch-video {
    color: white;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    margin-top: 20px;
    border: 1px solid #555;
    padding: .5rem;
}

.watch-video:hover {
    color: #ddd;
}

@media (max-width: 768px) {
    .landing-text h2 {
        font-size: 36px;
    }

    .landing-mars {
        padding: 60px 20px;
    }
}

/* Mars 2026 Section */
.mars-2026 {
    height: 100vh;
    width: 100%;
    background: url("https://www.spacex.com/assets/images/human-spaceflight/mars/mars_feature1_d.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 0 40px;
}

.mars-2026-content {
    max-width: 600px;
    color: white;
}

.mars-2026-content h2 {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 30px;
}

.mars-2026-content p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #ccc;
}

.divider {
    height: 1px;
    background-color: #555;
    margin: 30px 0;
    width: 100%;
}

.presentation-link {
    color: white;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    margin-top: 20px;
}

.presentation-link:hover {
    color: #ddd;
}

@media (max-width: 768px) {
    .mars-2026-content h2 {
        font-size: 36px;
    }

    .mars-2026 {
        padding: 0 20px;
    }
}

/* Mars Mission Section */
.mars-mission {
    height: 100vh;
    width: 100%;
    background: url("https://www.spacex.com/assets/images/vehicles/starship/starship_carousel2_card4_d.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 0 40px;
}

.mission-text {
    max-width: 600px;
    color: white;
}

.mission-text h2 {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 30px;
}

.mission-text p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #ccc;
}

.mission-text span {
    color: white;
    font-weight: bold;
}

@media (max-width: 768px) {
    .mission-text h2 {
        font-size: 36px;
    }

    .mars-mission {
        padding: 0 20px;
    }
}

/* First Human On Mars Section */
.first-human-mars {
    height: 100vh;
    width: 100%;
    background: url("https://www.spacex.com/assets/images/human-spaceflight/mars/mars_carousel1_card2_d.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 0 40px;
}

.human-mars-text {
    max-width: 600px;
    color: white;
}

.human-mars-text h2 {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 0;
    line-height: 1.1;
}

.human-mars-text p {
    font-size: 18px;
    line-height: 1.6;
    margin-top: 30px;
    color: #ccc;
}

@media (max-width: 768px) {
    .human-mars-text h2 {
        font-size: 36px;
    }

    .first-human-mars {
        padding: 0 20px;
    }
}

/* Building A City Section */
.building-city {
    height: 100vh;
    width: 100%;
    background: url("https://www.spacex.com/assets/images/human-spaceflight/mars/mars_carousel2_card2_d.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 0 40px;
}

/* Footer Section */
footer {
  background-color: #000;
  padding: 60px 40px 40px;
  border-top: 1px solid #333;
}

.line-tall {
  height: 160px;
  background-color: #fff;
  margin: 0 auto 20px;
  width: 1px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 80px;
  align-items: stretch; /* UPDATED */
}

/* Footer Section */
footer {
  background-color: #000;
  padding: 60px 40px 40px;
  border-top: 1px solid #333;
}

.line-tall {
  height: 160px;
  background-color: #fff;
  margin: 0 auto 20px;
  width: 1px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 60px;
  align-items: center;
}

.footer-text {
  text-align: center;
  color: #aaa;
  font-size: 14px;
  line-height: 1.6;
  max-width: 600px;
}

.footer-email {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-email:hover {
  color: #ddd;
}

.contact-btn {
  background-color: transparent;
  color: #fff;
  border: 1px solid #7e7e7e;
  padding: 14px 22px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 4px;
  text-decoration: none;
}

.contact-btn:hover {
  background-color: #fff;
  color: #000;
}

.footer-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;    
}

.links{
    display: flex;
    align-items: center;
    gap: 2rem;
}

.footer-nav a,
.footer-nav span {
  color: #fff;
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.footer-nav a:hover {
  color: #aaa;
}

.social-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.social-icon:hover {
  background-color: #333;
}

@media (max-width: 768px) {
  footer {
    padding: 40px 20px 30px;
  }

  .footer-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }
}
