/* =========================================================
   iPhone Pro Series & Pro Max (portrait)
   Konsisten dari lebar 390px s.d. 430px
   ========================================================= */
@media (max-width: 430px) {

  /* Reset & layout dasar */
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }

  html,
  body {
    margin: 0;
    padding: 5px;
    font-size: 16px;
    line-height: 1.55;
    -webkit-text-size-adjust: 100%;
    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;
  }

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

  /* Sidebar rata tengah (profil & menu) */
  .sidebar {
    width: 100%;
    background: none;
    padding: clamp(1rem, 4vw, 1.5rem) 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: none;
    box-shadow: none;
  }

  .sidebar .top-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(0.5rem, 2vw, 0.8rem);
  }

  .sidebar img {
    width: clamp(96px, 25vw, 110px);
    height: clamp(96px, 25vw, 110px);
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0.5rem;
  }

  .sidebar h3 {
    font-size: clamp(1.1rem, 4vw, 1.25rem);
    margin: 0.2rem 0;
  }

  .sidebar p {
    font-size: clamp(0.85rem, 3vw, 0.9rem);
    color: #666;
    margin-bottom: 0.8rem;
  }

  /* Navigasi: chips style tetap proporsional di semua lebar */
  .nav-links {
    display: none;
  }

  .footer-text {
    font-size: clamp(0.75rem, 2.2vw, 0.85rem);
    color: #888;
    margin-top: 1rem;
  }

  /* Hero Section */
  .main-content {
    margin: 0 !important;
    padding: clamp(1rem, 4vw, 1.5rem);
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero-text h1 {
    font-size: clamp(1.9rem, 6vw, 2.2rem);
    line-height: 1.2;
    margin: 0.4rem 0 0.8rem;
  }

  .hero-text p {
    font-size: clamp(0.9rem, 2.8vw, 0.95rem);
    color: #555;
    margin: 0.8rem auto 1.2rem;
    max-width: 26rem;
  }

  .skills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(6px, 2vw, 10px);
    margin: 2rem 2rem;
  }

  .skills .badge {
    padding: 6px 10px;
    color: #111;
    border-radius: 999px;
    border: 1px solid #eee;
    font-size: clamp(0.7rem, 2.4vw, 0.78rem);
    background: #fff;
  }

  .btn,
  .btn-outline-dark {
    display: inline-block;
    padding: 12px 18px;
    border-radius: 999px;
    width: 100%;
    max-width: 340px;
    margin-bottom: 2rem;
  }

  /* Wrapper konten setelah hero */
  .main-content-wrapper {
    padding: 0.8rem 1rem 1.5rem;
  }

  /* ========== 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;
  }
}