:root {
  --brown: #b69474;
  --blue: #304c6c;
  --silver: #c0c0c0;
  --grey: #2f2f2f;
  --light-bg: #f8f6f2;
  --dark-bg: #1e1e1e;
}

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: var(--light-bg);
  color: #222;
  line-height: 1.6;
}

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

/* Container */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* NAVBAR */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--grey);
  padding: 1rem 2rem;
  color: white;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.logo {
  font-weight: bold;
  font-size: 1.5rem;
  color: #fff;
}

.logo span {
  color: var(--brown);
}

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

nav a {
  color: white;
  text-decoration: none;
  transition: 0.3s ease;
  font-weight: 500;
}

nav a:hover {
  color: var(--brown);
}

.menu-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  background: none;
  border: none;
  color: white;
}

/* HERO SLIDER */
.hero-slider {
  width: 100%;
  height: 90vh;
  position: relative;
  background-color: white;
  overflow: hidden;
}

.hero-slide {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  padding: 0 5%;
  box-sizing: border-box;
}

.hero-image,
.hero-text {
  flex: 1 1 48%;
  padding: 1rem;
}

.hero-image img {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 10px;
}

.hero-text h1 {
  color: var(--grey);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero-text p {
  font-size: 1.1rem;
  color: #444;
  margin-bottom: 1.5rem;
}

.btn {
  background-color: var(--brown);
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  display: inline-block;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #a67c52;
}

/* Swiper controls */
.swiper-button-next,
.swiper-button-prev {
  color: var(--blue);
}

.swiper-pagination-bullet-active {
  background: var(--brown);
}

/* SECTIONS */
.container.shadow {
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  border-radius: 12px;
  margin-top: 3rem;
  margin-bottom: 3rem;
  background: #fff;
  padding: 2rem;
}

.container.shadow:hover {
  transform: translateY(-5px);
}

.section-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--grey);
  margin-bottom: 2rem;
  text-align: center;
}

/* SERVICES SECTION */
.services {
  text-align: center;
}

.service-boxes {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.service-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  width: 280px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  border: 1px solid #eee;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.service-card img {
  width: 80px;
  height: 80px;
  margin-bottom: 1.5rem;
}

.service-card h3 {
  font-size: 1.25rem;
  color: var(--brown);
  margin-bottom: 0.8rem;
}

.service-card p {
  font-size: 1rem;
  color: #444;
  line-height: 1.6;
}

/* PROJECTS GALLERY */
.projects h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--grey);
}

.gallery-slider .swiper-slide img {
  width: 100%;
  border-radius: 10px;
  transition: transform 0.3s ease;
  cursor: zoom-in;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.gallery-slider .swiper-slide img:hover {
  transform: scale(1.05);
}

/* CONTACT SECTION */
.contact-section {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.contact-left, .contact-right {
  flex: 1 1 48%;
  min-width: 300px;
}

.contact-left h2 {
  font-size: 2rem;
  color: var(--grey);
  margin-bottom: 1rem;
}

.contact-left ul {
  padding: 0;
  list-style: none;
  line-height: 1.8;
}

.contact-right iframe {
  width: 100%;
  height: 300px;
  border: 0;
  border-radius: 8px;
}

/* FAQ + FORM SECTION */
.faq-form-section {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.faq-box, .form-box {
  flex: 1 1 48%;
  min-width: 300px;
}

.faq-box h2, .form-box h2 {
  font-size: 2rem;
  color: var(--grey);
  margin-bottom: 1.5rem;
}

.faq-item {
  margin-bottom: 1.2rem;
}

.faq-item h3 {
  font-size: 1.1rem;
  color: var(--brown);
  margin-bottom: 0.3rem;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.7rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--brown);
  outline: none;
}

/* FOOTER */
.footer {
  background-color: var(--grey);
  color: white;
  text-align: center;
  padding: 1.5rem;
  margin-top: 3rem;
  font-size: 0.9rem;
}

/* RESPONSIVE DESIGN */
@media screen and (max-width: 768px) {
  .navbar {
    padding: 1rem;
  }

  .menu-toggle {
    display: block;
    z-index: 1001; /* Ensure it's above other content */
  }

  nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px; /* Adjust based on navbar height */
    right: 0;
    background-color: var(--grey);
    width: 100%;
    padding: 1rem 0;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  }

  nav ul.active {
    display: flex;
  }

  nav ul li {
    padding: 0.5rem 0;
  }

  .hero-slide {
    flex-direction: column;
    text-align: center;
    height: auto;
    padding: 4rem 2rem;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .service-boxes {
    flex-direction: column;
    align-items: center;
  }

  .gallery-slider .swiper-slide {
    width: 300px; /* Lebar slide di mobile */
    height: 210px; /* Tinggi slide di mobile */
  }
}

/* TENTANG.HTML SPECIFIC STYLES */
.page-tentang .hero-slider {
  height: 70vh;
}

.page-tentang .banner-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  text-align: center;
  background-size: cover;
  background-position: center;
}

.page-tentang .banner-text {
  background-color: rgba(0, 0, 0, 0.5);
  padding: 2rem;
  border-radius: 10px;
  color: white;
  max-width: 60ch;
}

.page-tentang .banner-text h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: white;
}

.page-tentang .banner-text p {
  font-size: 1.1rem;
  color: white;
}

/* Override the generic hero-slide display property for tentang.html */
.page-tentang .hero-slide {
    display: block;
}

/* TENTANG GRID */
.tentang-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.tentang-grid .item {
  text-align: center;
  padding: 1.5rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tentang-grid .item img {
  max-width: 80px;
  margin-bottom: 1rem;
}

.tentang-grid .item h2 {
  font-size: 1.4rem;
  color: var(--brown);
  margin-bottom: 0.5rem;
}

.tentang-grid .item p,
.tentang-grid .item ul {
  font-size: 0.95rem;
  color: #555;
  text-align: left;
}

.tentang-grid .item ul {
  list-style-position: inside;
  padding-left: 0;
}

@media screen and (max-width: 768px) {
  .tentang-grid {
    grid-template-columns: 1fr;
  }
}

/* LAYANAN.HTML SPECIFIC STYLES */
.layanan-hero {
    background-color: var(--light-bg);
    padding: 4rem 0;
    overflow: hidden;
}

.layanan-hero .hero-inner {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.layanan-hero .hero-left {
    flex: 1 1 55%;
    padding-right: 2rem;
    z-index: 5;
}

.layanan-hero .hero-right {
    flex: 1 1 45%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-visual {
    position: relative;
    width: 100%;
    padding-top: 100%; /* Create a square aspect ratio */
    max-width: 450px;
}

.hero-visual img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 66.67%; /* 300px / 450px */
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    z-index: 2;
}

.hero-badges, .hero-rings {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-rings { z-index: 1; }
.hero-badges { z-index: 3; }

.hero-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -40px;
    width: 80px;
    height: 80px;
}

.hero-badge .badge-inner {
    width: 100%;
    height: 100%;
    background-color: #fff;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: bounce 3s infinite ease-in-out;
}

/* Distribute badges around the circle */
.badge-1 { transform: rotate(0deg) translate(225px) rotate(0deg); animation-delay: 0s; }
.badge-2 { transform: rotate(60deg) translate(225px) rotate(-60deg); animation-delay: 0.2s; }
.badge-3 { transform: rotate(120deg) translate(225px) rotate(-120deg); animation-delay: 0.4s; }
.badge-4 { transform: rotate(180deg) translate(225px) rotate(-180deg); animation-delay: 0.6s; }
.badge-5 { transform: rotate(240deg) translate(225px) rotate(-240deg); animation-delay: 0.8s; }
.badge-6 { transform: rotate(300deg) translate(225px) rotate(-300deg); animation-delay: 1s; }

.hero-badge svg { width: 28px; height: 28px; color: var(--brown); }
.hero-badge .badge-label { font-size: 0.75rem; font-weight: 600; color: var(--grey); }

.hero-rings .ring {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    animation: rotate 40s linear infinite;
}

.hero-rings .ring-2 {
    animation-duration: 50s;
    animation-direction: reverse;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@media screen and (max-width: 992px) {
    .layanan-hero .hero-inner {
        flex-direction: column;
        text-align: center;
    }
    .layanan-hero .hero-left {
        padding-right: 0;
        margin-bottom: 3rem;
    }
    .hero-visual {
        max-width: 320px; /* Perkecil ukuran visual di mobile */
    }
    .hero-badge {
        margin: -35px; /* Sesuaikan margin badge */
        width: 70px; height: 70px;
    }
    .badge-1, .badge-2, .badge-3, .badge-4, .badge-5, .badge-6 { transform: rotate(calc(var(--angle))) translate(160px) rotate(calc(var(--angle) * -1)); }
}

/* WHY US SECTION */
.why-us {
  padding: 4rem 0;
  background-color: #fff;
}

.why-top {
  text-align: center;
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.why-kicker {
  font-weight: 600;
  color: var(--brown);
  margin-bottom: 0.5rem;
}

.why-title {
  font-size: 2.5rem;
  color: var(--grey);
  margin-bottom: 1rem;
}

.why-sub {
  font-size: 1.1rem;
  color: #555;
}

/* --- WHY US SLIDER --- */
.why-us-slider {
  width: 100%;
  padding-top: 50px;
  padding-bottom: 50px;
}

.why-us-slider .swiper-slide {
  background-position: center;
  background-size: cover;
  width: 320px; /* Lebar kartu */
  height: auto;
}

.why-us-slider .swiper-slide-shadow-left,
.why-us-slider .swiper-slide-shadow-right {
  background-image: linear-gradient(to right, rgba(0,0,0,0.2), rgba(0,0,0,0));
}

.why-us-slider .swiper-button-next,
.why-us-slider .swiper-button-prev {
  color: var(--brown);
}

.glass-card {
  background: rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  border: 1px solid rgba(225, 225, 225, 0.4);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  backdrop-filter: blur(10px);
  padding: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* Agar semua kartu sama tinggi */
}

.glass-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.glass-inner {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.glass-icon {
  color: var(--brown);
}

.glass-desc {
  font-size: 0.95rem;
  color: #444;
  margin: 0.5rem 0;
}

.glass-meta {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}

.why-cta {
  text-align: center;
  margin-top: 3rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}