/* ======= MOBILE ======= */
@media  (max-width: 767px) {

.footer{
  width: 100%;
  box-sizing: border-box;
}


.nav {
  width: 100%;
  background-color: #fff; /* change if you want transparent or colored nav */
  padding: 5px 0px;
  position: fixed; /* keeps it on top */
  top: 0;
  left: 0;
  z-index: 10;
}

  /* Swap video on mobile */
#bckgimg video {
  width: 100%;
  margin: 15rem 0 5rem 0; /* keep spacing without overflow */
  display: block;
  max-width: 100%;
}
  .video-desktop {
    display: none !important;
  }

  .video-mobile {
    display: block;
  }



  #bckgimg {
    margin-top: 5rem;
    margin-bottom: 5rem;
  }

  /* Projects grid: 1 by 1 */
  .projects-grid {
    grid-template-columns: 1fr;
    align-items: center;
    
  }

  .projects-grid a{
    width: 100%;
    margin-bottom: -50%;
    align-items: center;
  }

  /* Navbar adjustments */
  nav {
    margin-bottom: 5rem;
    justify-content: space-between;
    gap: 0;
    padding: 10px 1rem;
  }

  /* Show and position hamburger more to the left with padding */
  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    cursor: pointer;
    padding: 8px 12px;
    margin-right: -12px;
    z-index: 40;
  }

  .hamburger div {
    width: 25px;
    height: 3px;
    background-color: black;
    border-radius: 2px;
    transition: all 0.3s ease;
  }

  /* Mobile menu panel below hamburger */
  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #fff;
    width: 200px;
    flex-direction: column;
    padding: 0.5rem 1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border-radius: 5px;
  }

  .nav-links.active {
    display: flex;
    
        margin-top: 5rem;
        margin-left: 5rem;
  }

  .nav-links a {
    font-size: 1.2rem;
    padding: 0.5rem 0;
  }

  /* Logo */
  .nav-logo img {
    height: 5rem;
  }

  .contact-container img{
    margin-top: 5rem;
    width: 100%;
    margin-left: 0.1vw;
  }
    .contact-container {
      max-width: 300px; /* iPhone SE width */
      margin: 0 auto;
  }

  .contact-container img {
      width: 100%;
  }

  /* Re-position each link for small screens */
  .contact-item {
      font-size: 0.8rem; /* smaller text so it fits */
  }

  /* NEW mobile coordinates */
  .email {
      top: 182px;
      left: 130px;
  }

  .behance {
      top: 210px;
      left: 173px;
  }

  .linkedin {
      top: 243px;
      left: 175px;
  }

  .cv {
      top: 273px;
      left: 140px;
  }
.projects {
  margin-top: 12rem;
  width: 90%;
  margin-left: 0;
  padding: 0 1rem;
  }


  .project-section {
     width: 100%;
     max-width: 100%;
     aspect-ratio: 16 / 9;
     height: auto;
     background-size: cover;
     background-position: center;
     margin-left: 0;
      /* spacing controlled by .projects gap */
  }

   .project-video {
     display: flex; 
     flex-direction: column; 
     gap: 3rem; 
     align-items: center; 
     margin-left: 0;
    } 

     .project-video video 
     { width: 100%; 
      max-width: 800px; 
      margin-left: 0;
      margin-bottom: 5rem;
      height: auto; display: block; 
      box-shadow: 0 0 0 1px #000; /* thin black frame, like a printed border */ 
    }

    .click-text {
  position: absolute;
  top: 55%; /* vertically center */
  left: 35%; /* horizontally center */
  transform: translate(-50%, -50%); /* perfect centering */
  color: rgb(0, 0, 0); /* or whatever contrasts the image */
  font-size: 17px;
  font-weight: bold;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 5px; /* optional rounded edges */
}

.click{
  margin-bottom: 11rem;
}

.about-me{
  margin-top: 10rem;
}

.footer {
  margin-top: 3rem; /* Reduce from 10rem for mobile—enough space without excess */
  padding: 2rem 4%; /* Match the reduced projects padding for consistency */
}

  }


  /* Footer tweaks */
  .footer {
    padding: 2rem 4%;
    text-align: center;
  }

  .contact-container {
    margin-top: 5rem;
}

/* .project-details{
    margin-top: 5rem;
} */

.top-back-btn{
    margin-top: 3rem;
    /* margin-left: -2rem; */
}
.project-title h1{
    font-size: 4rem ;
    margin-top: 5rem;
}
.project-hero img{
    width: 50%;
}

.ginga-description p{
    font-size: 1rem ;

}
.project-description p{
    font-size: 1rem ;

}
.de-muze-description p{
    font-size: 1rem ;

}

.project-gallery{
    display: flex;
    flex-direction: column;
}

.project-gallery img{
    width: 100%;
}

.project-gallery-mockups{
    display: flex;
    flex-direction: column;
}

.project-gallery-mockups img{
    width: 100%;
    margin-left: 0rem;
}

/* ------- MOBILE CONTACT PAGE FIX ------- */
  /* Projects listing layout - center and responsive sizing */



  /* MOBILE HAMBURGER */
@media (max-width: 600px) {
  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    cursor: pointer;
    margin-right: 1rem;
  }

  .hamburger div {
    height: 3px;
    background-color: black;
    border-radius: 2px;
    transition: all 0.3s ease;
  }

  .nav-links {
    position: absolute;
    top: 60px; /* just below navbar */
    right: 1rem;
    display: none;
    flex-direction: column;
    background: #fff;
    padding: 1rem;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  }

  .nav-links.active {
    display: flex;
  }
}

/* ======= TABLET ======= */
@media (min-width: 601px) and (max-width: 1024px) {

#bckgimg video {
   width: 90%;
   margin: 15rem 5rem 5rem 3rem; /* pushes down nicely */
   display: block;
}
  .video-desktop {
    display: block !important;
  }

  .video-mobile {
    display: none !important;
  }

  /* Projects grid: 2 by 2 */
  .projects-grid {
    grid-template-columns: repeat(1, 1fr);
    margin-top: 5rem;
    /* padding: 3rem 6%; */
    /* gap: 2rem; */
  }

  .projects-grid a {
    margin-bottom: 0;
   width: 100%;
  }

     .projects{
        grid-template-columns: repeat(1, 1fr);
        align-items: center;
  }

  .projects a{
    align-items: center;
    width: 100%;
  margin-left: 0;
  }
.projects {
    margin-top: 6rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem 1rem;
  }


  .project-section {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    background-size: cover;
    background-position: center;
    margin: 0; /* spacing controlled by .projects gap */
  }



  /* Logo resize */
  .nav-logo img {
    height: 6rem;
    margin-left: 0;
  }

  /* Navbar tweaks */
  /* Center and enlarge navbar for tablet */
  nav {
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center; /* center content */
    align-items: center;
    gap: 2.4rem;
    padding: 1rem 1rem;
  }

  .nav-links {
    display: flex;
    gap: 2rem; /* increase spacing between links on tablet */
    font-size: 1.5rem; /* larger links on tablet */
    align-items: center;
  }

  .nav-logo { order: 0; margin-right: 0; }
  .nav-logo img { height: 7rem; }

      .click-text {
  position: absolute;
  top: 55%; /* vertically center */
  left: 34%; /* horizontally center */
  transform: translate(-50%, -50%); /* perfect centering */
  color: rgb(0, 0, 0); /* or whatever contrasts the image */
  font-size: 35px;
  font-weight: bold;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 5px; /* optional rounded edges */
}


}

  .contact-container img{
    /* margin-top: 5rem; */
    width: 80%;
    margin-left: 0.1vw;
  }


  .top-back-btn{
    margin-top: 3rem;
}
.project-title h1{
    font-size: 4rem ;
    margin-top: 5rem;
}
.project-hero img{
    width: 50%;
}

.ginga-description p{
    font-size: 1rem ;

}

.project-gallery{
    display: flex;
    flex-direction: column;
}

.project-gallery img{
    width: 100%;
}

.project-gallery-mockups{
    display: flex;
    flex-direction: column;
}

.project-gallery-mockups img{
    width: 100%;
}

   .project-video {
         display: flex; 
         flex-direction: column; 
         gap: 3rem; 
         align-items: center; 
         margin-left: 0;
        } 

     .project-video video 
     { width: 100%; 
        max-width: 800px; 
        margin-left: 0;
        margin-bottom: 5rem;
        height: auto; display: block; 
        box-shadow: 0 0 0 1px #000; /* thin black frame, like a printed border */ 
    } 
  

/* ======= HAMBURGER MENU ACTIVE STATE ======= */
.hamburger.active div:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active div:nth-child(2) {
  opacity: 0;
}

.hamburger.active div:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.nav-links.active {
  display: flex;
  flex-direction: column;
}

