/* ===== VARIABLES ===== */
:root {
  --primary: #1e40af; /* Biru elegan */
  --primary-dark: #1c3a9b;
  --secondary: #2c3e50;
  --accent: #e74c3c;
  --light: #f8fafc;
  --dark: #1f2937;
  --success: #16a34a;
  --warning: #f59e0b;
  --danger: #dc2626;
  --gray: #9ca3af;
  --light-gray: #f3f4f6;
  --white: #ffffff;
  --shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s ease;
  --border-radius: 14px;
}

/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px; /* Base font size for rem calculations */
}

body {
  font-family: "Inter", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.7;
  color: var(--dark);
  background: linear-gradient(135deg, #ffffff, #f0f5ff);
  overflow-x: hidden;
  min-height: 100vh;
}

.no-scroll {
  overflow: hidden;
}

/* ===== UNDER MAINTENANCE ===== */
.under-maintenance {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 80vh;
  /* padding: 2rem; */
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: bolder;
  color: #1e3a8a;
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
}

/* ===== HEADER ===== */
.header-custom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem clamp(1rem, 3vw, 1.5rem);
  background: linear-gradient(90deg, #191970, #1c1c6d);
  box-shadow: var(--shadow);
  position: relative;
}

.header-custom img {
  width: clamp(70px, 15vw, 90px);
  transition: transform 0.3s ease;
}

.header-custom img:hover {
  transform: scale(1.08) rotate(1deg);
}

/* ===== LAYANAN ===== */
.service-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 30px clamp(1rem, 3vw, 2rem) 0;
  align-items: center;
  width: 100%;
}

.service-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  width: 100%;
  max-width: 1200px;
}

.service-card {
  background-color: rgba(236, 231, 231, 0.927);
  backdrop-filter: blur(5px);
  border-radius: 30px;
  padding: 20px;
  text-align: center;
  width: clamp(140px, 30vw, 160px);
  height: clamp(140px, 30vw, 160px);
  box-shadow: 0 4px 10px rgba(246, 245, 245, 0.881);
  color: rgb(64, 63, 63);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease;
  text-decoration: none;
  flex: 0 0 auto;
}

.service-card:hover {
  transform: scale(1.05);
}

.service-card img {
  width: clamp(60px, 15vw, 80px);
  height: clamp(50px, 12vw, 70px);
  margin-bottom: 10px;
  object-fit: contain;
}

.service-card span {
  font-size: clamp(14px, 3vw, 16px);
  font-weight: bold;
  word-break: break-word;
  text-align: center;
}

.services h2 {
  text-align: center;
  font-size: clamp(1.5rem, 5vw, 2rem);
  margin-bottom: 20px;
  padding: 0 1rem;
}

/* === Warna Kustom per Baris & Kartu === */
/* Baris 1 */
.service-row:nth-of-type(1) .service-card:nth-child(1) { background-color: #6ECEDA; }
.service-row:nth-of-type(1) .service-card:nth-child(2) { background-color: #F9A875; }
.service-row:nth-of-type(1) .service-card:nth-child(3) { background-color: #A5D296; }
.service-row:nth-of-type(1) .service-card:nth-child(4) { background-color: #FFD07B; }
.service-row:nth-of-type(1) .service-card:nth-child(5) { background-color: #ED9ED6; }
.service-row:nth-of-type(1) .service-card:nth-child(6) { background-color: #9AEBA3; }

/* Baris 2 */
.service-row:nth-of-type(2) .service-card:nth-child(6) { background-color: #6ECEDA; }
.service-row:nth-of-type(2) .service-card:nth-child(2) { background-color: #9AEBA3; }
.service-row:nth-of-type(2) .service-card:nth-child(5) { background-color: #F9A875; }
.service-row:nth-of-type(2) .service-card:nth-child(4) { background-color: #A5D296; }
.service-row:nth-of-type(2) .service-card:nth-child(3) { background-color: #ED9ED6; }
.service-row:nth-of-type(2) .service-card:nth-child(1) { background-color: #FFD07B; }

/* Baris 3 */
.service-row:nth-of-type(3) .service-card:nth-child(1) { background-color: #FFADAD; }
.service-row:nth-of-type(3) .service-card:nth-child(2) { background-color: #9AEBA3; }
.service-row:nth-of-type(3) .service-card:nth-child(3) { background-color: #F7DC6F; }
.service-row:nth-of-type(3) .service-card:nth-child(4) { background-color: #85C1E9; }
.service-row:nth-of-type(3) .service-card:nth-child(5) { background-color: #F1948A; }
.service-row:nth-of-type(3) .service-card:nth-child(6) { background-color: #C397D8; }

/* Baris 4 */
.service-row:nth-of-type(4) .service-card:nth-child(1) { background-color: #58D68D; }
.service-row:nth-of-type(4) .service-card:nth-child(2) { background-color: #F5B041; }
.service-row:nth-of-type(4) .service-card:nth-child(3) { background-color: #82E0AA; }
.service-row:nth-of-type(4) .service-card:nth-child(4) { background-color: #A569BD; }
.service-row:nth-of-type(4) .service-card:nth-child(5) { background-color: #F0B27A; }
.service-row:nth-of-type(4) .service-card:nth-child(6) { background-color: #A5D296; } /* hijau pistachio */

/* Baris 5 */
.service-row:nth-of-type(5) .service-card:nth-child(1) { background-color: #8AB6D6; }
.service-row:nth-of-type(5) .service-card:nth-child(2) { background-color: #E27D60; }
.service-row:nth-of-type(5) .service-card:nth-child(3) { background-color: #C397D8; }
.service-row:nth-of-type(5) .service-card:nth-child(4) { background-color: #B8B8FF; }
.service-row:nth-of-type(5) .service-card:nth-child(5) { background-color: #4ca0a3; }
.service-row:nth-of-type(5) .service-card:nth-child(6) { background-color: #e9c76a; } /* biru keunguan */

/* ===== MENU ITEM (KIRI) ===== */
.menu-item {
  font-weight: 500;
  color: #1e3a8a;
  background: var(--light-gray);
  border: 1px solid #dbeafe;
  transition: var(--transition);
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius);
  margin-bottom: 0.5rem;
}

.menu-item:hover {
  background: #dbeafe;
  border-color: var(--primary);
  color: var(--primary-dark);
  transform: translateX(4px);
}

.menu-active {
  background: var(--primary);
  color: var(--dark);
  border-color: var(--primary-dark);
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(30, 64, 175, 0.2);
}

/* ===== RESPONSIVE MENU ===== */
@media (max-width: 768px) {
  .menu-item {
    display: none; /* Menyembunyikan menu item di perangkat kecil */
  }
}

/* ===== CONTENT BOX ===== */
.content-section {
  border: 1px solid #e5e7eb;
  transition: var(--transition);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  background: var(--white);
}

.content-section:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

/* ===== INFO CARD ===== */
.info-card {
  padding: 1rem;
  border-left: 4px solid var(--primary);
  background: var(--light-gray);
  border-radius: var(--border-radius);
  transition: var(--transition);
  margin-bottom: 1rem;
}

.info-card:hover {
  background: #e0f2fe;
  transform: translateX(4px);
}

/* ===== STEP CONTAINER ===== */
.step-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--border-radius);
  background: var(--light-gray);
  border: 1px solid #e5e7eb;
  transition: var(--transition);
}

.step-item:hover {
  background: #eff6ff;
  border-color: var(--primary);
}

.step-number {
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: var(--shadow);
  flex-shrink: 0;
}

/* ===== FOOTER ===== */
.footer {
  background-color: var(--secondary);
  color: var(--white);
  padding: 3rem 2rem 1rem;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
  align-items: start;
}

.contact-box {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.footer-heading {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary);
  color: var(--light);
}

.footer-address {
  font-style: normal;
  flex: 1;
}

.footer-address p {
  margin-bottom: 0.8rem;
  display: flex;
  align-items: flex-start;
  line-height: 1.4;
}

.footer-address i {
  margin-right: 0.8rem;
  color: var(--primary);
  min-width: 16px;
  margin-top: 0.2rem;
}

.footer-address a {
  color: var(--white);
  text-decoration: none;
  transition: var(--transition);
  word-break: break-all;
}

.footer-address a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.contact-btn-container {
  margin-top: 1.5rem;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--primary);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
}

.contact-btn i {
  color: var(--white) !important;
}

.contact-btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.link-container {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  flex: 1;
}

.link-container1 {
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-tautan {
  display: block;
  color: var(--white);
  padding: 0.6rem 0;
  text-decoration: none;
  transition: var(--transition);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: 0.9rem;
  line-height: 1.4;
}

.contact-tautan:hover {
  color: var(--primary);
  padding-left: 0.5rem;
  border-bottom-color: var(--primary);
}

.contact-tautan:last-child {
  border-bottom: none;
}

.social-icons {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background-color: var(--primary);
  color: var(--white);
  border-radius: 50%;
  text-decoration: none;
  transition: var(--transition);
  font-size: 1.1rem;
}

.social-icons a:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.survey-container {
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.survey-container p {
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--light-gray);
}

.survey-container .contact-btn {
  width: 100%;
  justify-content: center;
  text-align: center;
  font-size: 0.85rem;
  padding: 0.6rem 1rem;
}

.visitor-counter-box {
  text-align: center;
  padding: 1.2rem;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin: 2rem auto 1rem;
  max-width: 300px;
  backdrop-filter: blur(10px);
}

.visitor-counter-box i {
  margin-right: 0.5rem;
  color: var(--primary);
  font-size: 1.2rem;
}

.visitor-counter-box span {
  font-weight: bold;
  font-size: 1.3rem;
  color: var(--primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: var(--light-gray);
}


/* ===== MEDIA QUERIES ===== */
@media (max-width: 768px) {
  .service-row {
    gap: 15px;
  }
  
  .service-card {
    width: calc(50% - 15px);
    max-width: 160px;
    height: auto;
    aspect-ratio: 1/1;
  }
  
  .step-item {
    flex-direction: column;
    text-align: center;
  }
  
  .step-number {
    align-self: center;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .social-icons {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .service-card {
    width: calc(50% - 10px);
    padding: 15px;
  }
  
  .service-card img {
    width: 50px;
    height: 45px;
  }
  
  .service-card span {
    font-size: 13px;
  }
  
  .header-custom {
    padding: 0.75rem 1rem;
  }
  
  .footer {
    padding: 2rem 1rem 1rem;
  }
  
  .content-section {
    padding: 1rem;
  }
}