* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  height: 80px;
  border-bottom: 1px solid #222;
  color: white;
  background-color: #000000;
  position: relative;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 25px;
}

.explore {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  cursor: pointer;
}

.explore i {
  font-size: 12px;
}

.search-box input {
  background: transparent;
  border: 1px solid #333;
  padding: 6px 10px;
  color: white;
  width: 180px;
  outline: none;
  font-size: 14px;
}

.search-box input::placeholder {
  color: #888;
}

.nav-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-center img {
  width: 45px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 25px;
}

.nav-right a {
  color: white;
  text-decoration: none;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-right a i {
  font-size: 11px;
}

.live-badge {
  border: 1px solid red;
  color: red;
  font-size: 11px;
  padding: 2px 6px;
  margin-left: -15px;
}

.nav-right a:hover,
.explore:hover {
  opacity: 0.7;
}

.hero {
  position: relative;
  height: 100vh;
  background: url("./images/herosection.jfif");
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 70px 80px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0,0,0,0.95) 0%,
    rgba(0,0,0,0.75) 35%,
    rgba(0,0,0,0.3) 65%,
    rgba(0,0,0,0.05) 100%
  );
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 640px;
}

.hero-title {
  color: white;
  font-size: 65px;
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 24px;
}

.hero-text {
  font-size: 18px;
  line-height: 1.6;
  color: #dcdcdc;
  margin-bottom: 28px;
}

.hero-btn {
  display: inline-block;
  background: #e53935;
  padding: 14px 22px;
  font-size: 15px;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
  border-radius: 3px;
  transition: 0.25s;
}

.hero-btn:hover {
  background: #c62828;
}

.hero-bottom-bar {
  margin-top: 150px;
  position: relative;
  width: 100%;
  padding: 30px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
}

.bottom-container {
  display: flex;
  gap: 60px;
  flex: 1;
}

.bottom-item {
  flex: 1;
  position: relative;
}

.top-line {
  height: 1px;
  background: rgba(255,255,255,0.25);
  margin-bottom: 18px;
}

.label {
  display: block;
  font-size: 11px;
  letter-spacing: 3px;
  color: #bdbdbd;
  margin-bottom: 10px;
}

.link {
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: #e53935;
  border-radius: 50%;
  font-size: 14px;
}

.controls {
  display: flex;
  align-items: center;
  gap: 15px;
}

.thumb {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid #fff;
}

.pause-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  backdrop-filter: blur(6px);
}

.bottom-item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 0;
  right: -30px;
  width: 1px;
  height: 100%;
  background: rgba(255,255,255,0.15);
}

.link:hover {
  color: #e53935;
}

.hero::after {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
}


.featured-news {
  background: #ffffff;
  padding: 80px 0;
  margin-top: 200px;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.header h1 {
  font-size: 40px;
  font-weight: bold;
}

.header a {
  text-decoration: none;
  color: black;
  font-weight: bold;
}

.news-grid {
  display: grid;
  grid-template-columns: 2.2fr 1.2fr 0.8fr;
  gap: 20px;
  align-items: stretch;
}

.card {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.card:hover img {
  transform: scale(1.05);
}

.overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  color: white;
  background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
}

.tag {
  font-size: 12px;
  letter-spacing: 2px;
}

.time {
  font-size: 12px;
  margin: 5px 0;
}

.large h2 {
  font-size: 22px;
}

.medium h2 {
  font-size: 18px;
}

.small h3 {
  font-size: 15px;
}

.large {
  height: 400px;
}

.medium {
  height: 400px;
}

.right {
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100%;
}

.small {
  flex: 1;
}

.bottom-featured-news {
  padding: 30px 0;
}

.bottom-news-wrapper {
  max-width: 1200px;
  margin: auto;
  display: flex;
  gap: 30px;
  padding: 20px;
  overflow-x: auto;
}

.bottom-news-card {
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 260px;
}

.bottom-news-card img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
}

.bottom-news-text h3 {
  font-size: 14px;
  margin: 5px 0;
  line-height: 1.4;
}

.bottom-news-time {
  font-size: 10px;
  letter-spacing: 2px;
  color: #555;
}

.bottom-news-type {
  font-size: 11px;
  letter-spacing: 2px;
  color: #888;
}

.image-time {
 width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.image-time img{
  text-align: center;
  margin: 0;
  padding: 0;
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center;
}
.title-time {
  position: absolute;
  top: 2350px;
  left: 130px;
  transform: translateY(-50%);
  z-index: 2;
  max-width: 500px;
  color: white;
}

.title-time h1 {
  font-size: 50px;
  margin-bottom: 20px;
}

.title-time p {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 20px;
  color: #ddd;
}

.title-time a {
  display: inline-block;
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
}

.missions-section {
  padding: 50px 0;
}

.missions-header {
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.missions-header h2 {
  font-size: 36px;
}

.discover-link {
  text-decoration: none;
  color: black;
  font-weight: 600;
}

.missions-grid {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.mission-card {
  position: relative;
  overflow: hidden;
  height: 420px;
  cursor: pointer;
}

.mission-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.mission-card:hover img {
  transform: scale(1.1);
}

.mission-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  color: white;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.8),
    rgba(0,0,0,0.2),
    transparent
  );
}

.mission-overlay h3 {
  font-size: 22px;
  line-height: 1.3;
}


.image-of-day{
  display: flex;
  margin-top: 100px;
  font-family: Arial;
}

.day-image img{
  height: 550px;
  margin-right: 100px;
  border-radius: 15px;
}

.image-day{
  padding: 40px;
  margin-top: 60px;
}
.image-day h5{
  font-weight: 400;
  font-size: 18px;
  margin-bottom: 7px;
}
.image-day h1{
  font-size: 47px;
  margin-bottom: 70px;
}
.image-day h4{
  font-size: 25px;
  margin-bottom: 30px;
}
.image-day p{
  font-size: 20px;
  padding-bottom: 20px;
}
.image-day a{
  text-decoration: none;
  color: black;
  transition: 0.3s;
}
.image-day a:hover{
  color: grey;
}
.view-div{
  position: absolute;
  top: 4000px;
  right: 70px;
  text-decoration: none;
  color: black;
  font-weight: 800;
  font-size: 18px;
}


.more-nasa {
    padding: 50px 70px;
    margin-top: 150px;
}

.more-nasa h2 {
    font-size: 36px;
    margin-bottom: 30px;
}

.cards {
    display: flex;
    gap: 25px;
}

.card-nasa {
    width: 33.33%;
}

.grid {
    display: grid;
    gap: 6px;
    height: 230px;
}

.grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.grid {
    overflow: hidden;
}

.grid img:hover {
    transform: scale(1.08);
}

.grid-one {
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
}

.grid-one img:nth-child(1) {
    grid-row: span 2;
}

.grid-two {
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
}

.grid-two img:nth-child(1) {
    grid-row: span 2;
}

.grid-three {
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
}

.grid-three img:nth-child(1) {
    grid-row: span 2;
}

.card-nasa h3 {
    font-size: 18px;
    margin-top: 12px;
    font-weight: 600;
}

.card-nasa p {
    font-size: 11px;
    letter-spacing: 2px;
    color: #666;
    margin-top: 6px;
}


.Explore-image{
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  margin-top: 180px;
}

.Explore-image img{
  text-align: center;
  margin: 0;
  padding: 0;
  display: block;
  width: 100%;
  height: 600px;
  object-fit: cover;
  object-position: center;
}

.Explore-title{
  position: absolute;
  top: 5000px;
  left: 130px;
  transform: translateY(-50%);
  z-index: 2;
  max-width: 500px;
  color: white;
}
.Explore-title h1{
  font-size: 50px;
  margin-bottom: 20px;
}
.Explore-title p{
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 20px;
  color: #ddd;
}
.Explore-title a{
  display: inline-block;
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
}


.freedom-container{
  display: flex;
  margin-top: 100px;
  gap: 50px;
  align-items: center;
}
.freedom-text{
  margin-top: 30px;
}
.freedom-text h4{
  margin-bottom: 30px;
  font-size: 20px;
}
.freedom-text h1{
  margin-bottom: 20px;
  font-size: 48px;
  font-weight: bold;
}
.freedom-text h5{
  margin-bottom: 20px;
  font-size: 20px;
}
.freedom-text p{
  margin-bottom: 20px;
  font-weight: 500;
  padding-top: 15px;
}
.freedom-text a{
  text-decoration: none;
  color: black;
  font-size: 25px;
  font-weight: 700;
  transition: 0.4s;
}
.freedom-text a:hover{
  color: grey;
}

.freedom-image img{
  border-radius: 15px;
  width: auto;
  height: auto;
}
.freedom-image p{
  margin-top: 20px;
  font-size: 14px;
  font-weight: 500;
}


.nasa-footer {
    background: #000;
    color: #fff;
    padding: 60px 70px;
    font-family: Arial, sans-serif;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.footer-left {
    max-width: 320px;
}

.logo {
    width: 60px;
    margin-bottom: 20px;
}

.footer-left h2 {
    font-size: 22px;
    margin-bottom: 15px;
}

.footer-left p {
    font-size: 14px;
    color: #bbb;
    line-height: 1.6;
    margin-bottom: 15px;
}

.mission-link {
    display: block;
    margin-bottom: 15px;
    color: #fff;
    text-decoration: none;
}

.join {
    display: flex;
    align-items: center;
    gap: 8px;
}

.join a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

.join span {
    background: red;
    border-radius: 50%;
    padding: 4px 8px;
    font-size: 12px;
}

.footer-links {
    display: flex;
    gap: 60px;
}

.footer-links div {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: #ddd;
    text-decoration: none;
    font-size: 14px;
}

.footer-links a:hover {
    color: #fff;
}

.live {
    background: red;
    font-size: 10px;
    padding: 2px 5px;
    margin-left: 5px;
}

.footer-right h4 {
    margin-bottom: 15px;
}

.socials {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.socials span {
    width: 35px;
    height: 35px;
    background: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
}

.footer-right a {
    display: block;
    color: #ccc;
    text-decoration: none;
    margin-top: 10px;
    font-size: 14px;
}

hr {
    margin: 40px 0;
    border: 0.5px solid #333;
}

.footer-bottom-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 13px;
    margin-bottom: 20px;
}

.footer-bottom-links a {
    color: #bbb;
    text-decoration: none;
}


.footer-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    font-size: 13px;
    color: #aaa;
}
