/* =========================================================
   Big Tablet / iPad Besar
   769px s.d. 1024px
   ========================================================= */
@media (min-width: 769px) and (max-width: 1279px) {

  /* Body sebagai container tengah */
  html,
  body {
    margin: 0;
    padding: 20px;
    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;              /* cegah scroll horizontal */
  }

  body {
    display: flex;
    flex-direction: column;
    align-items: center;             /* center semua anak */
  }

  /* Semua anak langsung body → center & lebar konsisten */
  body > * {
    width: 100%;
    max-width: 1024px;
    padding-inline: 32px;           /* padding kiri kanan */
    box-sizing: border-box;
  }

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

  /* ===== Sidebar tetap 1 kolom di atas, tapi lebih lebar & center ===== */
  .sidebar {
    width: 100%;
    margin: 24px auto 24px;
    background: #fff;
    padding: 1.75rem 1.5rem;
    border-radius: 18px;
    border: 1px solid #eee;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

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

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

  .sidebar h3 {
    font-size: 1.25rem;
    margin: 0.3rem 0;
  }

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

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

  .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 0.6rem;
    padding: 0;
    list-style: none;
  }

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

  /* ===== Main content: 1 kolom, rata tengah ===== */
  .main-content {
    margin: 0 auto 2.5rem;
    padding: 1.75rem 1.5rem;
    text-align: center;
  }

  .main-content-wrapper {
    padding: 0.75rem 0 2.5rem;
  }

  .hero-text h1 {
    font-size: 2.3rem;
    line-height: 1.3;
    margin: 1rem 0 1.2rem;
  }

  .hero-text p {
    font-size: 1rem;
    color: #555;
    margin: 0.9rem auto 1.5rem;
    max-width: 36rem;
  }

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

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

  .btn,
  .btn-outline-dark {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 999px;
    width: auto;
    max-width: none;
    margin: 0 8px 1rem;
  }

  /* ===== Philosophy – 2 kolom (gambar + teks) ===== */
  .philosophy {
    padding: 2rem 0 2.75rem;
  }

  .philosophy-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    text-align: left;
  }

  .philosophy-image {
    flex: 1.1;
  }

  .philosophy-text {
    flex: 1.5;
  }

  .philosophy-text h1 {
    font-size: 1.8rem;
    margin-bottom: 0.9rem;
  }

  .philosophy-text h3 {
    font-size: 1.1rem;
    margin-bottom: 0.7rem;
  }

  .philosophy-text p {
    font-size: 0.98rem;
    margin: 0 0 0.6rem;
    color: #555;
  }

  .stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-top: 2rem;
    margin-bottom: 3rem;

    justify-content: center;   /* center grid secara horizontal */
    align-items: center;       /* center isi tiap cell */
}

.stat-box {
    text-align: center;        /* center text di dalam box */
    margin: 0 auto;            /* center box */
}

 /* ===== Services – 2 kolom, center & boxed ===== */
.service-section {
  padding: 0rem 0 2.75rem;
  text-align: center;                 /* judul & subjudul di tengah */
}

/* Biar isi services nggak terlalu melebar */
.service-section-inner {
  max-width: 900px;                   /* kalau punya wrapper, pakai ini */
  margin: 0 auto;
}

.service-header .service-title {
  font-size: 1.7rem;
  margin-bottom: 0.4rem;
}

.service-header .service-subtitle {
  font-size: 1rem;
  color: #777;
  max-width: 34rem;
  margin: 0.3rem auto 1.8rem;        /* auto -> center */
}

/* Grid 2 kolom, center */
.service-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 900px;                   /* biar grid nggak full-width */
  margin: 0 auto;                     /* center grid */
}

/* BOX untuk setiap card */
.service-card {
  padding: 16px 16px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #eee;
  box-shadow: 0 10px 24px rgba(15,23,42,0.06);
  box-sizing: border-box;

  /* Flex untuk auto center isi box */
  display: flex;
  flex-direction: column;
  align-items: center;       /* center horizontal */
  justify-content: center;   /* center vertical */
  text-align: center;
  line-height: 1.5;          /* auto line-height yang enak dibaca */
}

/* Biar teks di dalam box nggak terlalu melebar */
.service-card p {
  max-width: 18rem;
  margin: 0.25rem 0;
  line-height: 1.5;          /* konsisten */
}

/* Kalau ada heading di dalam card */
.service-card h2,
.service-card h3 {
  margin: 0.2rem 0 0.4rem;
  line-height: 1.3;          /* judul lebih padat */
}

  /* ===== Projects – 2 kolom ===== */
  .projects-section {
    padding: 2rem 0 2.75rem;
  }

  .section-header h1 {
    font-size: 1.8rem;
    text-align: left;
    margin: 0 0 1.6rem;
  }

  .projects-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .project-info {
    padding: 1.2rem 1.4rem 1.5rem;
    text-align: left;
  }

  .arrow-wrapper {
    justify-content: flex-start;
    margin-top: 10px;
  }

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

  /* ===== About – 2 kolom ===== */
  .about-section {
    padding: 2rem 0 2.75rem;
  }

  .about-container {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 26px;
  }

  .about-info {
    flex: 1.5;
    text-align: left;
  }

  .about-info .subtitle {
    font-size: 1.8rem;
    margin: 0.2rem 0 0.7rem;
  }

  .about-info .bio {
    margin-top: 0.8rem;
    margin-bottom: 1rem;
    font-size: 0.98rem;
  }

  .about-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
  }

  .about-table tr {
    border-bottom: 1px solid #eee;
  }

  .about-table th,
  .about-table td {
    display: table-cell;
    padding: 8px 12px 8px 0;
    width: auto;
  }

  .about-table th {
    color: #777;
    font-weight: 500;
    width: 30%;
  }

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

  .right-card {
    flex: 1;
  }

  .right-card .card {
    border-radius: 16px;
    padding: 14px;
    text-align: left;
    margin-top: 0.5rem;
  }

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

  .right-card .card ul li + li {
    margin-top: 4px;
  }

  .right-card .card ul li a {
    text-decoration: none;
    color: inherit;
    font-weight: 500;
  }

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