/* =========================================================
   Small Tablet / iPad Kecil
   431px s.d. 768px – 1 kolom, auto center
   ========================================================= */
@media (min-width: 431px) and (max-width: 768px) {

  html,
  body {
    margin: 0;
    padding: 20px;                  /* hilangkan padding biar nggak geser */
    font-size: 17px;
    line-height: 1.6;
    background: #fff;
    color: #111;
    font-family: 'Poppins', system-ui, -apple-system, 'SF Pro Text', 'SF Pro Display',
      'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    overflow-x: hidden;          /* jaga jangan sampai ada scroll horizontal */
    display: flex;               /* ini kunci */
    flex-direction: column;
    align-items: center;         /* center semua anak body */
  }

  /* Semua anak langsung body dibuat 1 kolom dan auto-center */
  body > * {
    width: 100%;
    max-width: 768px;            /* container tengah */
    padding-inline: 16px;        /* padding kiri kanan seragam */
    box-sizing: border-box;
  }

  img {
    max-width: 100%;
    height: auto;
    display: block;
  }

  /* ===== Sidebar: full width, 1 kolom, center ===== */
  .sidebar {
    width: 100%;
    margin: 16px auto 20px;
    background: #fff;
    padding: 1.5rem 1.25rem;
    border-radius: 14px;
    border: 1px solid #eee;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.04);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .sidebar .top-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
  }

  .sidebar img {
    width: 110px;
    height: 110px;
    margin-bottom: 0.75rem;
    border-radius: 50%;
    object-fit: cover;
  }

  .sidebar h3 {
    font-size: 1.2rem;
    margin: 0.25rem 0;
  }

  .sidebar p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.75rem;
  }

  .footer-text {
    font-size: 0.8rem;
    color: #888;
    margin-top: 1.2rem;
  }

  /* Nav chips: 1 kolom ke bawah, center */
  .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 0.6rem;
    padding: 0;
    list-style: none;   /* hilangin bullet hitam */
  }

  .nav-links li {
    margin: 0;
  }

  .nav-links a {
    display: inline-block;
    font-size: 0.8rem;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid #eee;
    text-decoration: none;
    color: #444;
    background: #fafafa;
  }

  /* ===== Main content (hero + section lain) 1 kolom, center ===== */
  .main-content {
    margin: 0 auto 2rem;
    padding: 1.5rem 1.25rem;
    text-align: center;
  }

  .main-content-wrapper {
    padding: 0.5rem 0 2rem;
  }

  .hero-text h1 {
    font-size: clamp(2rem, 3vw, 2.3rem);
    line-height: 1.3;
    margin: 0.8rem 0 1rem;
  }

  .hero-text p {
    font-size: 0.98rem;
    color: #555;
    margin: 0.9rem auto 1.4rem;
    max-width: 32rem;
  }

  .skills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 1.5rem 0 2rem;
  }

  .skills .badge {
    padding: 6px 12px;
    font-size: 0.8rem;
  }

  .btn,
  .btn-outline-dark {
    display: inline-block;
    padding: 12px 20px;
    border-radius: 999px;
    width: 100%;
    max-width: 360px;
    margin: 0 auto 1rem;
  }

  /* Section lain (philosophy, services, projects, about) biarkan 1 kolom */
  .philosophy,
  .service-section,
  .projects-section,
  .about-section {
    padding: 1.5rem 0 2.5rem;
  }

  .philosophy-content,
  .about-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.2rem;
  }

  .stats,
  .service-cards,
  .projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    width: 100%;
  }

  .section {
    height: auto;
    min-height: 70dvh;
    padding: 0;
  }

  /* ========== Philosophy Section ========== */
  .philosophy {
    padding: 0.8rem 0 1.5rem;
  }

  .philosophy-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(10px, 3vw, 14px);
    text-align: center;
  }

  .philosophy-image img {
    width: 100%;
    max-width: 430px;
    border-radius: 12px;
  }

  .philosophy-text h1 {
    font-size: clamp(1.4rem, 5vw, 1.6rem);
    margin: 1.5rem 0;
  }

  .philosophy-text h3 {
    font-size: clamp(1rem, 3.6vw, 1.1rem);
    margin: 1.5rem 0;
  }

  .philosophy-text p {
    color: #555;
    font-size: clamp(0.88rem, 2.7vw, 0.95rem);
    margin: 0 auto 0.6rem;
    max-width: 26rem;
  }

  /* Stats grid (2 kolom) */
  .stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 2rem;
    margin-bottom: 3rem;
  }

  .stat-box {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 12px;
    text-align: center;
  }

  .stat-box h2 {
    margin: 0 0 4px;
    font-size: clamp(1.2rem, 4vw, 1.3rem);
  }

  .stat-box p {
    font-size: clamp(0.8rem, 2.5vw, 0.85rem);
    color: #666;
  }

  /* ========== Services ========== */
  .service-section {
    padding: 1rem 0;
    text-align: center;
  }

  .service-header .service-title {
    font-size: clamp(1.3rem, 4.5vw, 1.4rem);
    margin: 0;
    margin-bottom: 1rem;
  }

  .service-header .service-subtitle {
    font-size: clamp(0.9rem, 3vw, 1rem);
    color: #777;
    margin: 2px 0 10px;
    margin-bottom: 2rem;
  }

  .service-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .service-card {
    border: 1px solid #eee;
    border-radius: 14px;
    padding: 14px;
    background: #fff;
    text-align: center;
  }

  .service-card h2 {
    font-size: clamp(1rem, 3.6vw, 1.1rem);
    margin-bottom: 1.5rem;
  }

  .service-card .divider {
    width: 36px;
    height: 2px;
    background: #F26322;
    margin: 6px 0 8px;
  }

  .service-card p {
    color: #555;
    font-size: clamp(0.88rem, 2.7vw, 0.95rem);
    margin: 0;
  }

  /* ========== Projects ========== */
  .projects-section {
    padding: 1rem 0;
  }

  .section-header h1 {
    font-size: clamp(1.4rem, 5vw, 1.6rem);
    text-align: center;
    margin: 2rem 0;
  }

  .projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .project-card {
    border: 1px solid #eee;
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
  }

  .project-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }

  .project-info {
    padding: 1.5rem;
    text-align: center;
  }

  .project-info .date {
    color: #777;
    font-size: clamp(0.8rem, 2.5vw, 0.85rem);
    margin: 2px 0 6px;
  }

  .project-info .desc {
    color: #555;
    margin: 0;
  }

  .arrow-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 8px;
  }

  .arrow-btn {
    border: 1px solid #ddd;
    border-radius: 999px;
    padding: 10px 18px;
    background: #fff;
    width: 100%;
    max-width: 340px;
    margin-bottom: 2rem;
  }

  /* ========== About Section ========== */
  .about-section {
    padding: 1rem 0;
  }

  .about-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .about-info {
    text-align: center;
  }

  .about-info .subtitle {
    font-size: clamp(1.3rem, 4.5vw, 1.5rem);
    margin: 4px 0 2px;
  }

  .about-info .bio {
    color: #555;
    margin: 0 0 1rem;
    margin-top: 1rem;
  }

  .about-table {
    width: 100%;
    border-collapse: collapse;
    font-size: clamp(0.88rem, 2.7vw, 0.95rem);
  }

  .about-table th,
  .about-table td {
    display: block;
    width: 100%;
    padding: 8px 0;
  }

  .about-table th {
    color: #777;
    font-weight: 500;
    margin-top: 20px;
    margin-bottom: -10px;
  }

  .about-table tr:last-child th,
  .about-table tr:last-child td {
    border-bottom: none;
  }

  .right-card .card {
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    margin-top: 2rem;
  }

  .right-card .card h3 {
    margin: 0 0 8px;
  }

  .right-card .card ul {
    display: inline-block;
    color: #F26322;
    list-style: none;
    padding-left: 0;
    margin: 0;
  }

  .right-card .card ul li a {
    text-decoration: none;
    /* hilangin underline */
    color: inherit;
    /* ambil warna dari parent (misalnya #F26322) */
    font-weight: 500;
    /* biar tetap tegas */
    transition: color 0.2s ease;
    /* biar smooth pas hover */
  }

  /* Kalau mau warna hover beda (optional) */
  .right-card .card ul li a:hover {
    color: #F26322;
    /* atau ubah ke warna aksen kamu */
  }

  /* Section umum */
  .section {
    height: auto;
    min-height: 70dvh;
    padding: 0;
  }
}

