body{
    font-family: 'Helvetica Neue';
    width: 100%;
    margin: 0px;
    padding: 0px;
    background-color: #FAFCF7;
}
html, body {
    overflow-x: hidden;
}
body p{
    font-family: "Inter";
}
main{
    display: flex;                  
    flex-direction: column;
    align-items: center;
    margin: 0;
    padding: 0;
    padding-top: 70px;
   /* border: 1px solid black; */
    height: 100%;
    margin-bottom: 20px;
}
hr{
   width: 100%;
   height: 2px;
   border: none;
   background-color: black;
   margin: 0;
   padding: 0;
}
/* Container */
.nav-bar {
    width: 100%;
  }
  
  /* Flex layout for even spacing */
  .nav-list {
    display: flex;
    justify-content: space-between;
    justify-items: center;
    align-items: center;
    list-style: none;
    margin: 10px;
    padding: 0;
  }
  
  /* Links */
  .nav-list a {
    text-decoration: none;
    font-family: 'Helvetica Neue';
    font-size: 16px;
    font-weight: 400;
    color: black;
    text-transform: uppercase;
    letter-spacing: 1px;
  }
  .nav-list a:hover{
    color: #FF71DA;;
  }
  .nav-list a.active{
    font-weight: 700;
    color: black;
    pointer-events: none;
  }
  
.title{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;   
    font-family: 'Helvetica Neue';
    padding: 0px;
    margin: 0px;
    width: 100%;
}
.nav-container{
  background-color: #FAFCF7;
  position: fixed;
  z-index: 2;
  width: 100%;
  padding: 16px;
  margin: 0;
  box-sizing: border-box;
}
.project-content{
  width: 98%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.project-content img{
  max-height: auto;
  width: 100%;
  object-fit: cover;
  object-position: 50% 42%;

}
.project-content h1{
  font-size: 2.5rem;
  margin: 10px;
  padding: 0;
}
.step{
  width: 100%;
  display: flex;
  flex-direction: row;
  gap: 70px;
  margin-top: 90px;
  margin-left: 100px;
}
.step h1{
  font-family: "Montserrat Alternates";
  font-size: 6rem;
  font-weight: 800;
  margin: 10px;
  padding: 0;
  margin: 0;

}
.step-text{
  max-width: 286px;
  display: block;
}
.step-text h2{
  padding-top: 20px;
  line-height: 2px;
}
.step-text p{
  padding: 0;
}
.step img{
  max-width: 650px;
  height: auto;
  object-fit: contain;
  margin-left: 140px;
}
.img01{
    max-width: 90%;
    height: auto;
    object-fit: contain;
    margin-top: -140px;
}
.research-img img{
  max-width: 344px;
  height: auto;
  object-fit: contain;
}
.research-text{
  max-width: 252px;
  display: flex;
  flex-direction: column;
  padding: 0;
  margin: 0;
}
.research-text h2{
  margin: 2px;
}
.research{
  display: flex;
  flex-direction: row;
  gap: 22px;
}
.tile-pictures img{
  max-width: 1220px;
  height: auto;
  object-fit: contain;
}
.pictures{
  padding-top: 160px;
}
#rotated{
  max-width: 100%;
  height: auto;
  object-fit: contain;
  margin-top: -150px;
}
footer{
  width: 100%;
  height: 370px;
  background-color: #232222;
  font-family: "Montserrat";
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}
.footer-column p{
  font-family: "Montserrat";
}
.footer-column{
  display: flex;
  flex-direction: column;
}
footer h3{
  font-size: 1.5rem;
  font-weight: 400;
  margin: 0;
  padding: 20px;
}
footer h4{
  font-size: 1.2rem;
  font-weight: 400;
  margin: 0;
  padding: 0 0 14px 0;
}
footer a{
  color: #D8D6D4;
  font-size: 1rem;
  font-weight: 400;
  padding: 0;
  margin: 0;
  text-decoration: none;
}
.footer-grid {
  width: 90%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom:0;
}

.footer-column a:hover {
  color: #FF71DA;
}
.sub-menu li{
  padding-left: 10px;
}
#next-project-button{
  width: 100px;
  height: 72px;
  background-color: #3B78FF;
  border: none;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
}
.next-project{
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 80px;
  margin-bottom: 40px;
  font-size: 20px;
}
.star{
  max-width: 650px;
  height: auto;
  object-fit: contain;
  margin-left: 140px;
}
.video{
  max-width: 650px;
  height: auto;
  object-fit: contain;
}
/* --- Responsive Styles --- */

/* Tablet (≤1024px) */
@media (max-width: 1024px) {
  .nav-list {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }

  .step {
    flex-direction: column;
    align-items: center;
    margin-left: 0;
    gap: 40px;
  }

  .step img {
    margin-left: 0;
    max-width: 80%;
  }

  .research {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr; /* 2 columns instead of 3 */
  }
}

/* Mobile (≤768px) */
@media (max-width: 768px) {
  main {
    padding-top: 90px; /* more breathing space below nav */
  }

  .title {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .nav-list {
    flex-direction: column;
    gap: 12px;
  }

  .project-content h1 {
    font-size: 1.8rem;
    text-align: center;
  }

  .step h1 {
    font-size: 3rem;
    text-align: center;
  }

  .step-text {
    max-width: 90%;
    text-align: center;
  }

  .img01,
  .tile-pictures img,
  #rotated {
    max-width: 100%;
    margin-top: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr; /* stack in 1 column */
    gap: 20px;
  }

  .next-project {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
}

/* Small phones (≤480px) */
@media (max-width: 480px) {
  .nav-list a {
    font-size: 14px;
  }

  .step h1 {
    font-size: 2rem;
  }

  footer h3 {
    font-size: 1.2rem;
  }

  footer h4 {
    font-size: 1rem;
  }

  footer a {
    font-size: 0.9rem;
  }

  #next-project-button {
    width: 80px;
    height: 56px;
    font-size: 14px;
  }

  .star {
    width: 120px;
  }
}
