/* ========== RESPONSIVE DESIGN FIXED VERSION ========== */

/* Tablet Landscape / Medium Devices */
@media screen and (max-width: 1000px) {
  p {
    font-size: 0.9rem;
    line-height: 1.8rem;
  }

  .grid-3 {
    gap: 1rem;
  }

  .skills-right ul li {
    font-size: 0.9rem;
  }
}

/* Tablet Portrait & Mobile */
@media screen and (max-width: 825px) {
  .nav {
    width: 92%;
    top: 12px;
    min-height: 64px;
    padding: 0 1.2rem;
    border-radius: 16px;
  }

  .logo h4 {
    font-size: 1.2rem;
  }

  .burger {
    display: block;
    cursor: pointer;
    z-index: 1001;
    position: fixed;
    top: 29px;
    right: 35px;
  }

  nav {
    position: fixed;
    top: 0;
    right: -100vw;
    width: 75vw;
    max-width: 320px;
    height: 100vh;
    background: var(--bgPrimary);
    box-shadow: -4px 0 15px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 2rem;
    transition: right 0.35s ease-in-out;
    z-index: 1000;
  }

  nav.nav-active {
    right: 0;
  }

  nav ul {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    width: 100%;
  }

  nav ul li a {
    font-size: 1.1rem;
    color: var(--textDark);
  }
}

/* Cegah geser horizontal di semua mode */
html, body {
  overflow-x: hidden;
}
@media screen and (max-width: 1000px) {
  .portofolios .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 650px) {
  .portofolios .grid-3 {
    grid-template-columns: 1fr;
  }
}