/* ============================================================
   MOBILE (≤768px)
   Grid utama: 2 kolom rapi di tablet (481–768px),
   1 kolom di ponsel kecil (≤480px, diatur oleh style.css).
   ============================================================ */

.container > p {
  font-size: 14px;
}

/* --- Grid 2 kolom di tablet --- */
@media (min-width: 481px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    width: 100%;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px;
  }
}

.portfolio-item {
  margin: 0;
}

/* --- Certificates: kartu mengikuti lebar kolom grid --- */
.certificate-item > img {
  width: 100%;
  height: 110px;
}

.certificate-item > p {
  font-size: small;
}

/* --- Education --- */
.edu-summary {
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.edu-stat {
  padding: 16px 10px;
}
.edu-stat .num {
  font-size: 1.5rem;
}
.edu-grid {
  grid-template-columns: 1fr;
  gap: 12px;
}

/* --- Umum --- */
.container{width: calc(100% - 32px); padding: 24px 0;}
.hero{padding: 40px 0 20px; min-height: auto;}
.section{padding: 32px 0;}
.hero-left .name{font-size:1.8rem; white-space: normal; word-wrap: break-word;}
.hero-left .desc{max-width:100%}
.profile-photo img{width:250px;height:250px}
.round-photo{width:140px;height:140px}
.section-grid .side{
  flex: 0 0 140px;
  width: 80%;
}
.stats{flex-direction:column; gap:12px;}
.stat{min-width: auto; width:100%;}
.contact-form{padding:20px;}
.contact-info p{font-size:1rem;}
.portfolio-item img{height:120px;}

/* --- Portfolio project card (carousel) --- */
.project-card .project-body { padding: 12px 14px 16px; }
.project-card .project-title { font-size: 1.02rem; }
.project-card .project-desc { font-size: 0.84rem; }
.project-card .project-link { margin-top: 12px; padding: 7px 16px; font-size: 0.78rem; }
.slide-arrow { width: 30px; height: 30px; font-size: 0.95rem; }
.slide-arrow.prev { left: 8px; }
.slide-arrow.next { right: 8px; }
.slide-dots { bottom: 8px; gap: 5px; }
.slide-dot { width: 7px; height: 7px; }
.slide-dot.active { width: 18px; }
.close-lightbox {
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  font-size: 1.4rem;
}

/* --- Footer --- */
.site-footer { padding: 40px 0 30px; }
.footer-content { grid-template-columns: 1fr; gap: 30px; }
.footer-brand { text-align: center; }
.footer-links, .footer-social { text-align: center; }
.footer-links h4::after, .footer-social h4::after {
  left: 50%;
  transform: translateX(-50%);
}
.footer-links a:hover { transform: none; }
.social-link:hover { transform: none; }
.footer-bottom {
  flex-direction: column;
  gap: 20px;
  text-align: center;
  padding-top: 20px;
}