/* --- 1. Pengaturan Global & Variabel Warna --- */

/* ===========================================================
   1. PENGATURAN GLOBAL & VARIABEL WARNA
   =========================================================== */
:root {
  --primary-color: #0d47a1; /* Biru tua profesional */
  --secondary-color: #0d6efd; /* Kuning sebagai aksen */
  --dark-color: #212121; /* Hitam pekat untuk teks */
  --light-color: #ffffff;
  --grey-bg: #f5f5f5;
  --text-color: #424242;
  --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* ===========================================================
   2. BASE STYLES (Body & Typography)
   =========================================================== */
body {
  font-family: "Poppins", sans-serif;
  margin: 0;
  line-height: 1.7;
  color: var(--text-color);
  background-color: var(--light-color);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
  width: 100%;
}

.header-container {
  width: 80%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
}

h1,
h2,
h3,
h4 {
  color: var(--dark-color);
  font-weight: 600;
}

h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 1rem;
}

.section-subtitle {
  text-align: center;
  margin-top: 0;
  margin-bottom: 4rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.1rem;
}

/* --- 2. Header & Navigasi --- */

/* ===========================================================
   3. HEADER & NAVIGASI
   =========================================================== */
header {
  padding: 20px 0;
  border-bottom: 1px solid #eee;
  background-color: white;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  color: inherit;
}

.logo-container img {
  width: 120px;
}

.logo-container h1 {
  font-size: 1.8rem;
  margin: 0;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
  margin: 0;
  padding: 0;
}

nav ul li a {
  text-decoration: none;
  color: #555;
  font-weight: 600;
  position: relative;
  padding-bottom: 5px;
  transition: color 0.3s ease;
}

nav ul li a.active {
  color: var(--primary-color);
}

nav ul li a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.3s ease-out;
}

nav ul li a:hover {
  color: var(--dark-color);
}

nav ul li a:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* --- 3. Hero Section --- */

/* ===========================================================
   4. HERO SECTION (Umum & Construction Hero)
   =========================================================== */
.hero-section {
  color: var(--light-color);
  height: 60vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px;
  position: relative;
}

.construction-hero {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("https://images.unsplash.com/photo-1541888946425-d81bb19240f5?auto=format&fit=crop&w=1170&q=80")
      no-repeat center center/cover;
}

.hero {
  padding: 80px 0;
  background-color: var(--light-color);
}

/* ===========================================================
   5. HERO LAYOUT (Gambar & Teks)
   =========================================================== */
.hero-container {
  display: flex;
  align-items: center;
  gap: 4rem; /* Jarak antara gambar dan teks */
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.team-image-col {
  flex: 0 0 40%; /* PERBAIKAN: Tetapkan lebar 40% dan tidak flexible */
  max-width: 500px; /* PERBAIKAN: Batasi lebar maksimum gambar */
  box-sizing: border-box;
}

.team-image-col img {
  width: 100%;
  height: auto;
  max-height: 300px; /* PERBAIKAN: Batasi tinggi maksimum */
  min-height: 200px;
  object-fit: cover; /* PERBAIKAN: Crop gambar dengan proporsional */
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  display: block;
  object-position: center top;
}

/* Kolom Teks - Lebih Luas */
.team-text-col {
  flex: 1; /* PERBAIKAN: Ambil sisa ruang yang tersedia */
  padding-left: 2rem; /* PERBAIKAN: Tambah padding untuk spacing */
  box-sizing: border-box;
}

.team-tagline {
  font-size: 2.5rem; /* PERBAIKAN: Ukuran yang proporsional */
  line-height: 1.2;
  color: var(--primary-color);
  margin-top: 0;
  margin-bottom: 1.5rem;
  text-align: left; /* Align left untuk layout side by side */
}

.team-description {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  color: var(--text-color);
  text-align: left; /* PERBAIKAN: Align left untuk readability */
}

.btn-secondary {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--light-color);
  padding: 12px 24px; /* PERBAIKAN: Padding yang lebih baik */
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(13, 71, 161, 0.3);
}

.btn-secondary:hover {
  background-color: #0b3d82;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13, 71, 161, 0.4);
}

.hero-content h1 {
  color: var(--light-color);
  font-size: 3rem;
  font-weight: 700;
}

/* --- 4. Services Section --- */

/* ===========================================================
   6. SERVICES SECTION
   =========================================================== */
.services-section {
  padding: 80px 0;
}
.phase {
  margin-bottom: 3rem;
}
.phase h3 {
  font-size: 1.8rem;
  border-bottom: 3px solid var(--primary-color);
  padding-bottom: 1rem;
  margin-bottom: 2rem;
  display: inline-block;
}
.service-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}
.service-item {
  background: var(--light-color);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--box-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
.service-item h4 {
  margin-top: 0;
  font-size: 1.2rem;
  color: var(--primary-color);
}

/* --- 5. Why Choose Us Section --- */

/* ===========================================================
   7. WHY CHOOSE US SECTION
   =========================================================== */
.why-choose-us-section {
  background: var(--grey-bg);
  padding: 80px 0;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.feature-item {
  text-align: center;
  padding: 2rem;
}
.feature-item h4 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

/* --- 6. CTA Section --- */

/* ===========================================================
   8. CTA SECTION
   =========================================================== */
.cta-section {
  background-color: var(--dark-color);
  color: white;
  padding: 80px 0;
  text-align: center;
}

/* ===========================================================
   8. CTA SECTION
   =========================================================== */
.cta-section h2 {
  color: var(--light-color);
}
.cta-button {
  display: inline-block;
  background: var(--secondary-color);
  color: var(--light-color);
  padding: 1rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  margin-top: 1.5rem;
  transition: transform 0.3s ease, background-color 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.cta-button:hover {
  transform: scale(1.05);
  background-color: #ffca28;
}

/* ===========================================================
   9. RESPONSIVE - TABLET
   =========================================================== */
@media (max-width: 1024px) {
  /* ===========================================================
   5. HERO LAYOUT (Gambar & Teks)
   =========================================================== */
  .hero-container {
    gap: 3rem;
  }

  .team-image-col {
    flex: 0 0 45%; /* Sedikit lebih besar di tablet */
    max-width: 450px;
  }

  .team-image-col img {
    max-height: 280px;
    min-height: 180px;
  }

  .team-tagline {
    font-size: 2.2rem;
  }

  .team-text-col {
    padding-left: 1.5rem;
  }
}

/* --- 7. Responsive (Mobile) Styles --- */

/* ===========================================================
   10. RESPONSIVE - MOBILE
   =========================================================== */
@media (max-width: 768px) {
  /* Mengatur header agar logo dan navigasi berada di tengah saat layar kecil */
  .header-container {
    width: 95%; /* Gunakan lebar layar semaksimal mungkin */
    flex-direction: column; /* Susun vertikal: logo+text di atas, menu di bawah */
    gap: 15px;
  }

  nav {
    width: 100%;
    flex-direction: column; /* Susun vertikal */
    align-items: center;
  }

  /* --- PERUBAHAN UTAMA UNTUK MEMPERKECIL ELEMEN --- */

  .logo-container {
    gap: 12px; /* Jarak antara logo dan tulisan */
    justify-content: center;
  }

  .logo-container img {
    width: 50px; /* Ukuran logo yang proporsional */
    height: auto;
  }

  .logo-container h1 {
    font-size: 1rem !important; /* Ukuran tulisan 'INNER CIRCLE ASIA' proporsional dengan logo */
    margin: 0; /* Hapus margin default */
    line-height: 1.2; /* Atur line height agar proporsional */
    font-weight: 700; /* Bold untuk lebih jelas */
  }

  nav ul {
    gap: 12px; /* Jarak antar menu yang cukup */
    justify-content: center;
    flex-wrap: wrap; /* Biarkan menu wrap jika perlu */
  }

  nav ul li a {
    font-size: 0.85rem; /* Font menu navigasi */
  }

  /* Penyesuaian ukuran font untuk mobile */
  h1 {
    font-size: 2.2rem !important;
  }
  h2 {
    font-size: 2rem;
  }
  .hero {
    padding: 60px 0;
  }

  /* PERBAIKAN UTAMA: Layout vertikal di mobile */

  /* ===========================================================
   5. HERO LAYOUT (Gambar & Teks)
   =========================================================== */
  .hero-container {
    flex-direction: column; /* Susun vertikal di mobile */
    text-align: center;
    gap: 2.5rem;
  }

  .team-image-col {
    flex: none; /* Reset flex di mobile */
    max-width: 350px; /* Batasi lebar di mobile */
    width: 100%;
    order: 1; /* Gambar di atas */
  }

  .team-image-col img {
    max-height: 250px; /* PERBAIKAN: Ukuran mobile yang tepat */
    min-height: 200px;
    border-radius: 10px;
  }

  .team-text-col {
    flex: none;
    padding-left: 0; /* Reset padding di mobile */
    order: 2; /* Teks di bawah */
    width: 100%;
  }

  .team-tagline {
    font-size: 2rem;
    text-align: center; /* Center di mobile */
    margin-bottom: 1rem;
  }

  .team-description {
    font-size: 1rem;
    text-align: center; /* Center di mobile */
    margin-bottom: 1.5rem;
  }

  .btn-secondary {
    padding: 10px 20px;
    font-size: 0.95rem;
  }
}

/* EXTRA SMALL MOBILE (480px and below) */

/* ===========================================================
   11. RESPONSIVE - EXTRA SMALL MOBILE
   =========================================================== */
@media (max-width: 480px) {
  .hero {
    padding: 50px 0;
  }

  /* ===========================================================
   5. HERO LAYOUT (Gambar & Teks)
   =========================================================== */
  .hero-container {
    gap: 2rem;
    padding: 0 15px;
  }

  .team-image-col {
    max-width: 300px;
  }

  .team-image-col img {
    max-height: 250px;
    border-radius: 8px;
  }

  .team-tagline {
    font-size: 1.8rem;
    line-height: 1.3;
  }

  .team-description {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .btn-secondary {
    padding: 8px 16px;
    font-size: 0.9rem;
  }
}

/* LANDSCAPE MOBILE - Layout khusus */

/* ===========================================================
   10. RESPONSIVE - MOBILE
   =========================================================== */
@media (max-width: 768px) and (orientation: landscape) {
  .hero {
    padding: 40px 0;
  }

  /* ===========================================================
   5. HERO LAYOUT (Gambar & Teks)
   =========================================================== */
  .hero-container {
    flex-direction: row; /* Kembali ke horizontal di landscape */
    gap: 2rem;
  }

  .team-image-col {
    flex: 0 0 35%;
    max-width: 250px;
  }

  .team-image-col img {
    max-height: 200px;
  }

  .team-tagline {
    font-size: 1.8rem;
    text-align: left;
  }

  .team-description {
    font-size: 0.9rem;
    text-align: left;
  }

  .team-text-col {
    padding-left: 1rem;
  }
}

/* ===========================================================
   13. BACKGROUND IMAGES - DESAIN KONSEP
   =========================================================== */
#desain-konsep {
  /* Ganti dengan URL gambar yang saya berikan sebelumnya */
  background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("/static/dk.png");
  background-size: cover;
  background-position: center;
  color: white; /* Mengubah warna teks menjadi putih agar terbaca */
  border-radius: 8px; /* Pastikan sudutnya tetap sama */
}

/* Mengubah warna heading di dalam kotak agar ikut menjadi putih */

/* ===========================================================
   13. BACKGROUND IMAGES - DESAIN KONSEP
   =========================================================== */
#desain-konsep h4 {
  color: white;
}

/* ===========================================================
   14. BACKGROUND IMAGES - GAMBAR KERJA
   =========================================================== */
#gambar-kerja {
  /* Ganti dengan URL gambar baru yang saya berikan */
  background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("/static/gk.png");
  background-size: cover;
  background-position: center;
  color: white; /* Mengubah warna teks menjadi putih */
}

/* Mengubah warna heading di dalam kotak agar ikut menjadi putih */

/* ===========================================================
   14. BACKGROUND IMAGES - GAMBAR KERJA
   =========================================================== */
#gambar-kerja h4 {
  color: white;
}

/* ===========================================================
   15. BACKGROUND IMAGES - PERENCANAAN TEKNIS
   =========================================================== */
#perencanaan-teknis {
  /* Ganti dengan URL gambar baru yang saya berikan */
  background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("/static/pt.png");
  background-size: cover;
  background-position: center;
  color: white; /* Mengubah warna teks menjadi putih */
}

/* Mengubah warna heading di dalam kotak agar ikut menjadi putih */

/* ===========================================================
   15. BACKGROUND IMAGES - PERENCANAAN TEKNIS
   =========================================================== */
#perencanaan-teknis h4 {
  color: white;
}

/* ===========================================================
   16. BACKGROUND IMAGES - PBG
   =========================================================== */
#pbg {
  /* Ganti dengan URL gambar baru yang saya berikan */
  background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("/static/pbg.png");
  background-size: cover;
  background-position: center;
  color: white; /* Mengubah warna teks menjadi putih */
}

/* Mengubah warna heading di dalam kotak agar ikut menjadi putih */

/* ===========================================================
   16. BACKGROUND IMAGES - PBG
   =========================================================== */
#pbg h4 {
  color: white;
}

/* ===========================================================
   17. BACKGROUND IMAGES - PENGOLAHAN LAHAN
   =========================================================== */
#plahan {
  /* Ganti dengan URL gambar baru yang saya berikan */
  background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("/static/plahan.png");
  background-size: cover;
  background-position: center;
  color: white; /* Mengubah warna teks menjadi putih */
}

/* Mengubah warna heading di dalam kotak agar ikut menjadi putih */

/* ===========================================================
   17. BACKGROUND IMAGES - PENGOLAHAN LAHAN
   =========================================================== */
#plahan h4 {
  color: white;
}

/* ===========================================================
   18. BACKGROUND IMAGES - STRUKTUR
   =========================================================== */
#p-struktur {
  /* Ganti dengan URL gambar baru yang saya berikan */
  background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("/static/pstruk.png");
  background-size: cover;
  background-position: center;
  color: white; /* Mengubah warna teks menjadi putih */
}

/* Mengubah warna heading di dalam kotak agar ikut menjadi putih */

/* ===========================================================
   18. BACKGROUND IMAGES - STRUKTUR
   =========================================================== */
#p-struktur h4 {
  color: white;
}

/* ===========================================================
   19. BACKGROUND IMAGES - MEP
   =========================================================== */
#p-MEP {
  /* Ganti dengan URL gambar baru yang saya berikan */
  background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("/static/pmep.png");
  background-size: cover;
  background-position: center;
  color: white; /* Mengubah warna teks menjadi putih */
}

/* Mengubah warna heading di dalam kotak agar ikut menjadi putih */

/* ===========================================================
   19. BACKGROUND IMAGES - MEP
   =========================================================== */
#p-MEP h4 {
  color: white;
}

/* ===========================================================
   20. BACKGROUND IMAGES - FINISHING
   =========================================================== */
#p-fin {
  /* Ganti dengan URL gambar baru yang saya berikan */
  background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("/static/pfin.png");
  background-size: cover;
  background-position: center;
  color: white; /* Mengubah warna teks menjadi putih */
}

/* Mengubah warna heading di dalam kotak agar ikut menjadi putih */

/* ===========================================================
   20. BACKGROUND IMAGES - FINISHING
   =========================================================== */
#p-fin h4 {
  color: white;
}

/* ===========================================================
   21. BACKGROUND IMAGES - PEMELIHARAAN (SERTIM)
   =========================================================== */
#sertim {
  /* Ganti dengan URL gambar baru yang saya berikan */
  background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("/static/pelihara.png");
  background-size: cover;
  background-position: center;
  color: white; /* Mengubah warna teks menjadi putih */
}

/* Mengubah warna heading di dalam kotak agar ikut menjadi putih */

/* ===========================================================
   21. BACKGROUND IMAGES - PEMELIHARAAN (SERTIM)
   =========================================================== */
#sertim h4 {
  color: white;
}
