.nav-links {
  display: flex;
  gap: 25px;
  list-style: none;
}

@media only screen and (max-width: 1140px) {
  .nav-links {
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: rgba(10, 10, 10, 0.98);
    max-height: 0;
    overflow: hidden;
    align-items: center;        /* ✅ center horizontally */
    text-align: center;         /* ✅ center text */
    transition: max-height 0.3s ease-in-out;
    z-index: 999;               /* make sure it's above hero section */
  }

  .nav-links.active {
    max-height: 500px;
    padding: 20px 0;
  }

 .nav-links li {
  margin: 10px 0;
}

  .burger {
    display: block;
    cursor: pointer;
  }

  .burger div {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 5px;
    transition: all 0.3s ease;
  }

  .burger.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
  }

  .burger.toggle .line2 {
    opacity: 0;
  }

  .burger.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
  }

  .hero {
    flex-direction: column-reverse;
    text-align: center;
  }

  .hero img {
    margin-top: 20px;
  }

  .section-content {
    flex-direction: column !important;
    text-align: center;
  }

  .project-block,
  .project-block.reverse {
    flex-direction: column !important;
    align-items: center;
    text-align: center;
  }

  .project-block img {
    width: 100%;
    max-width: 300px;
  }

  .social-icons {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .timeline-item {
    text-align: left;
  }
}
