/* =========================================================
      DESKTOP ≥ 1280px — FINAL CLEAN & FLEX VERSION
   ========================================================= */
@media (min-width: 1280px) {

  :root {
    --sidebar-w: 280px;
    --content-pad: 60px;
    /* fleksibel: max 1400px, tapi juga mengikuti lebar layar */
    --content-max: min(
      1400px,
      calc(100vw - var(--sidebar-w) - (2 * var(--content-pad)))
    );
  }

  body {
    font-family: 'Poppins', sans-serif;
    background: #fff;
    color: #111;
    overflow-x: hidden;
    margin: 0;
  }

  /* ===== SIDEBAR ===== */
  .sidebar {
    background-color: #f7f8fc;
    min-height: 100vh;
    width: var(--sidebar-w);
    position: fixed;
    top: 0;
    left: 0;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    box-sizing: border-box;
  }

  .sidebar .top-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
  }

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

  .sidebar h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
  }

  .sidebar p {
    font-size: 0.9rem;
    color: #555;
    letter-spacing: 0.5px;
  }

  .nav-links {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    font-size: 0.75rem;
  }

  .nav-links li { margin: 10px 0; }

  .nav-links a {
    text-decoration: none;
    color: #111;
    transition: .25s;
  }

  .nav-links a:hover,
  .nav-links a.active {
    color: #F26322;
  }

  /* ========================================================
      GLOBAL RULES UNTUK SEMUA KONTEN KANAN
     ======================================================== */

  /* Semua section utama kanan: nempel sidebar + max-width */
  .main-content,
  .section,
  .philosophy,
  .service-section,
  .projects-section,
  .about-section {
    margin-left: var(--sidebar-w);  /* anchor kiri */
    margin-right: auto;             /* sisa space di kanan */
    padding: var(--content-pad);
    box-sizing: border-box;

    width: 100%;
    max-width: var(--content-max);
    text-align: left;
  }

  /* Wrapper internal: jangan auto-center */
  .section-inner,
  .philosophy-content,
  .service-header,
  .projects-inner,
  .about-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-align: left;
  }

  /* ========================================================
      HERO SECTION
     ======================================================== */
  .main-content {
    display: flex;
    gap: 50px;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
  }

  .hero-text {
    flex: 1.3;
  }

  .hero-text h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
  }

  .hero-text p {
    margin-bottom: 1.5rem;
    color: #555;
    max-width: 28rem;
  }

  .hero-img {
    flex: 1;
    display: flex;
    justify-content: flex-start;
  }

  .hero-img img {
    max-width: 420px;
    border-radius: 10px;
    display: block;
  }

  /* ========================================================
      PHILOSOPHY
     ======================================================== */
  .philosophy {
    /* kalau mau kasih warna khusus section ini, aktifkan ini */
    /* background: #f8f9fa; */
  }

  .philosophy-content {
    display: flex;
    gap: 50px;
    align-items: flex-start;
  }

  .philosophy-image img {
    width: 420px;
    max-width: 100%;
    border-radius: 12px;
    transform: rotate(3deg);
    margin: 0;
    display: block;
  }

  .philosophy-text p {
    color: #555;
    max-width: 600px;
  }

  /* ========================================================
      STATS
     ======================================================== */
  .stats {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
  }

  .stat-box {
    background: #f0eefb;
    border-radius: 8px;
    padding: 15px 28px;
    min-width: 160px;
    text-align: center;
  }

  /* ========================================================
      SERVICES
     ======================================================== */
  .service-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(260px, 1fr));
    gap: 24px;
    width: 100%;
    margin-top: 40px;
  }

  .service-card {
    background: #f5f4fa;
    border-radius: 12px;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: .3s;
  }

  .service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
  }

  /* ========================================================
      PROJECTS
     ======================================================== */
  .projects-grid {
    display: grid;
    margin-top: 40px;
    grid-template-columns: repeat(3, minmax(260px, 1fr));
    gap: 24px;
    width: 100%;
  }

  .project-card {
    background: #fff;
    padding: 20px;
    color: #000;
    display: inline-block;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: .3s;
  }

  .project-card img {
    height: 220px;
    object-fit: cover;
    width: 100%;
    display: block;
    border-radius: 8px;
  }

  .project-info {
    padding: 1rem 0;
    text-align: left;
    flex: 1;
  }

  .project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.07);
  }

  .arrow-wrapper {
    display: flex;
    justify-content: flex-start;
    margin-top: 1.5rem;
  }

  .arrow-btn {
    background: transparent;
    border: 2px solid #e0e0e0;
    padding: 5px 16px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.25s ease;
    box-shadow: 0 3px 6px rgba(255, 255, 255, 0.3);
  }

  .arrow-btn:hover {
    background-color: #F26322;
    border-color: #F26322;
    color: #fff;
  }

  /* ========================================================
      ABOUT
     ======================================================== */
  .about-section {
    background-color: #fff;
  }

  .about-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    width: 100%;
    max-width: 100%;   /* biar ikut content-max dari parent */
    margin: 0;         /* jangan auto-center */
  }

  .about-info {
    flex: 1 1 40%;
    min-width: 320px;
  }

  .about-info .subtitle {
    font-weight: 600;
    margin-bottom: 0.5rem;
  }

  .about-info .bio {
    margin-top: 0.75rem;
    margin-bottom: 2rem;
    color: #666;
  }

  .about-table {
    width: 100%;
    border-collapse: collapse;
    background-color: transparent;
  }

  .about-table th,
  .about-table td {
    text-align: left;
    padding: 6px 10px;
    border: none;
    background: transparent;
  }

  .about-table th {
    width: 150px;
    color: rgba(0, 0, 0, 0.65);
    position: relative;
    padding-left: 12px;
  }

  .about-table th::before {
    content: "";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 40%;
    left: 2px;
    border-left: 3px solid #d98d69;
  }

  .about-table td {
    color: rgba(0, 0, 0, 0.65);
  }

  .right-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 1rem;
    min-width: 260px;
  }

  .card {
    background: #fff;
    border-radius: 1rem;
    border: 1px solid #eee;
    padding: 1.25rem 1.5rem;
  }

  .card h3 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: #333;
  }

  .card ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .card ul li {
    margin: 0.5rem 0 0 0;
  }

  .card ul li a {
    text-decoration: none;
    color: #F26322;
    font-weight: 500;
    transition: opacity 0.3s;
  }

  .card ul li a:hover {
    opacity: 0.8;
  }
}