/* mediaqueries.css */

@media screen and (min-width: 769px) {
  #hamburger-nav {
    display: flex;
    transform: translateY(-100%);
  }
  #desktop-nav {
    display: flex !important;
    justify-content: center;
  }
  .nav-links {
    color: #003366;
  }
  #projects .project-details-container {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: flex-start;
    gap: 3rem;
  }

  #projects .about-containers {
    width: 30%;
    margin-bottom: 2rem;
  }

  #projects .article-container {
    flex-direction: column;
    gap: 2rem;
  }

  #projects article {
    width: 100%;
    margin-bottom: 0;
  }

  #projects .project-sub-title {
    font-size: 2.5rem;
  }

  #projects .details-container h3 {
    font-size: 1.8rem;
  }
}

/* ==========================================================================
     TABLET STYLES (max-width: 1200px)
     ========================================================================== */

@media screen and (max-width: 1200px) {
  #desktop-nav {
    display: none;
  }

  .hamburger-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 24px;
    width: 30px;
    background-color: transparent;
  }

  #hamburger-nav {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    padding: 1rem 2rem;
    z-index: 99999; /* ensure mobile nav sits above hero/banner */
    justify-content: space-between;
    align-items: center;
    transform: translateY(0);
  }

  nav {
    padding: 1rem;
  }

  .nav-links {
    gap: 1.5rem;
  }

  .logo {
    font-size: 1.75rem;
  }

  /* Adjust section margins for tablet view */
  section {
    margin: 0 3rem 5rem 3rem; /* Left, right, bottom margins */
    padding-top: 3vh; /* Retain padding-top from tablet media query */
  }

  /* Hero Section: Adjust gap between elements */
  #hero {
    gap: 1rem;
    padding: 6rem 2rem; /* Adjust padding for tablet hero */
  }

  .hero__pic-container {
    width: 250px; /* Adjust picture size for tablet */
    height: 250px;
    margin-bottom: 2rem;
  }

  .hero__text h1 {
    font-size: 3rem; /* Adjust font size for tablet hero title */
  }

  .hero__text__p2 {
    font-size: 2rem;
  }

  #about .about-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 3rem;
  }

  .about-pic-container {
    width: 100%; /* Allow picture to take full width */
    max-width: 300px; /* Limit max width */
  }

  .about-pic {
    width: 100%;
    height: auto;
  }

  /* Projects Section: Tablet layout */
  #projects .project-details-container {
    flex-direction: column;
    align-items: center;
    gap: 2rem; /* Slightly reduced gap */
  }

  #projects .about-containers {
    width: 90%;
    margin-bottom: 1.5rem;
  }

  #projects .project-sub-title {
    font-size: 2.2rem;
  }

  #projects .details-container h3 {
    font-size: 1.5rem;
  }

  /*
    REMOVED testimonials and photo gallery rules from here.
    The main style.css now handles their responsiveness correctly.
    */

  .contact-info-upper-container {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .contact-form-container {
    width: 80%;
  }

  section {
    margin: 0 2rem 4rem 2rem;
    padding-top: 3vh;
  }
}

/* ==========================================================================
     MOBILE STYLES (max-width: 600px)
     ========================================================================== */

@media screen and (max-width: 600px) {
  nav {
    padding: 0.5rem;
  }

  .logo {
    font-size: 1.5rem;
  }

  /* Hero Section */
  #hero {
    padding: 3rem 1rem;
    gap: 1.5rem;
  }

  .hero__pic-container {
    width: 150px; /* Smaller picture for mobile */
    height: 150px;
    margin-bottom: 1.5rem;
  }

  .hero__text h1 {
    font-size: 2rem; /* Smaller hero title for mobile */
  }

  .hero__text__p2 {
    font-size: 1.2rem;
  }

  .title {
    font-size: 2.4rem; /* Uniform section title size on mobile */
  }

  .hero-title {
    font-size: 2.6rem; /* Slightly larger hero title on mobile */
  }

  /* About Section */
  #about .about-container {
    gap: 1.5rem;
  }

  .about-pic-container {
    width: 200px; /* Smaller pic for mobile */
    max-width: 200px;
  }

  /* Projects Section: Make project containers full width */
  #projects .about-containers {
    width: 100%;
  }

  /*
    REMOVED testimonials and photo gallery rules from here.
    */

  /* Contact Section */
  .contact-form-container {
    width: 95%;
    padding: 1.5rem;
  }

  section {
    margin: 0 1rem 3rem 1rem;
    padding-top: 2vh;
  }
}

/* ==========================================================================
     MOBILE LANDSCAPE STYLES (max-width: 800px, landscape orientation)
     ========================================================================== */

@media screen and (max-width: 800px) and (orientation: landscape) {
  /* General section adjustments */
  section {
    margin: 0 1rem 3rem 1rem;
    padding: 3rem 0; /* Adjust general section padding */
  }

  /* Hero Section */
  #hero {
    padding-top: 2rem;
    flex-direction: row; /* Allow hero content side-by-side if space */
    text-align: left;
    align-items: center;
    justify-content: center;
    gap: 2rem;
  }

  .hero__pic-container {
    width: 180px; /* Slightly smaller for landscape */
    height: 180px;
    margin-bottom: 0;
  }

  .hero__text {
    margin-top: 0;
    align-items: flex-start;
  }

  .hero__text h1 {
    font-size: 2.8rem; /* Adjust title for landscape */
  }

  .hero__text__p2 {
    font-size: 1.8rem; /* Adjust subtitle for landscape */
  }

  /* About Section: Adjust details container for landscape */
  #about .about-container {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-around;
    gap: 1rem;
  }

  #about .about-pic-container {
    width: 40%;
    max-width: 40%;
  }

  #about .about-details-container {
    flex: 1;
  }

  #about .about-containers {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
  }

  #about .details-container {
    width: 48%;
    margin-bottom: 1rem;
    padding: 1.5rem;
  }

  /* Projects Section: Tablet/Desktop like layout for landscape */
  #projects .project-details-container {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 1.5rem;
  }

  #projects .about-containers {
    width: 48%;
    margin-bottom: 1rem;
  }

  #projects .article-container {
    flex-direction: column;
    gap: 1rem;
  }

  #projects article {
    width: 100%;
    margin-bottom: 0;
  }

  #projects .project-sub-title {
    font-size: 2.2rem;
  }

  #projects .details-container h3 {
    font-size: 1.5rem;
  }

  /*
    REMOVED testimonials and photo gallery rules from here.
    */

  .contact-form-container {
    width: 60%;
    padding: 2rem;
  }
}
