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

body,
html {
  font-family: Poppins, sans-serif;
  scroll-behavior: smooth;
}

/* Navbar */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 30px;
  background-color: #fff;
  border-bottom: 1px solid #ddd;
}

.logo img {
  width: 120px;
}

.navbar nav ul {
  list-style: none;
  display: flex;
}

.navbar nav ul li {
  margin: 0 15px;
}

.navbar nav ul li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

.navbar nav ul li a:hover {
  color: #1d3557;
}

.navbar nav ul li a::after {
  content: "";
  display: block;
  padding-bottom: 0.5rem;
  border-bottom: 0.1rem solid var(--bg-bg);
  transform: scaleX(0);
  transition: 0.2s linear;
}

.navbar nav ul li a:hover::after {
  transform: scaleX(0.5);
}

/* Slider */
.slider {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
}

.slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.slide {
  min-width: 100%;
  height: 500px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.caption {
  position: relative;
  top: 20%;
  left: 5%;
  right: 5%;
  padding-right: 10px;
  color: #1d3557;
  text-align: justify;
}

.caption h2 {
  font-size: 45px;
  font-weight: 800;
}

.caption p {
  font-size: 20px;
  color: #fff;
  margin-top: 10px;
}

/* Slider Buttons
.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  border: none;
  padding: 10px 15px;
  color: #fff;
  cursor: pointer;
  font-size: 24px;
  border-radius: 50%;
}

.prev {
  left: 15px;
}

.next {
  right: 15px;
} */

/* Kontak Bar */
.contact-bar {
  background-color: #1d3557;
  color: #fff;
  text-align: center;
  padding: 20px 10px;
  font-size: 20px;
}
.whatsapp-btn {
  display: inline-block;
  background-color: #25d366;
  color: #fff;
  padding: 10px 20px;
  margin-top: 10px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

.whatsapp-btn:hover {
  background-color: #128c7e;
}

/* Tentang Kami Section */
.about-us {
  padding: 60px 30px;
  background-color: #fafafa;
}

.about-us .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.about-text {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
}

.about-text h4 {
  color: #e5a800;
  font-weight: bold;
  margin-bottom: 10px;
  text-transform: uppercase;
  font-size: 25px;
}

.about-text h2 {
  font-size: 28px;
  color: #1d3557;
  margin-bottom: 20px;
}

.about-text p {
  color: #555;
  line-height: 1.6;
  margin-bottom: 30px;
}

.stats {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.stat-item {
  flex: 1;
  min-width: 200px;
}

.stat-item h3 {
  color: #e5a800;
  font-size: 36px;
}

.stat-item span {
  font-weight: bold;
  color: #1d3557;
  display: block;
  margin-bottom: 10px;
}

.stat-item p {
  color: #444;
  font-size: 14px;
  line-height: 1.5;
}

/* Gambar dengan Masking Bentuk Unik */
.about-image {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.about-image img {
  width: 100%;
  max-width: 450px;
  clip-path: ellipse(60% 60% at 50% 50%);
  object-fit: cover;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Services Section */
.services {
  padding: 60px 30px;
  background-color: #fff;
}

.services-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 40px auto;
}

.services-header h4 {
  color: #e5a800;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 30px;
  margin-bottom: 10px;
}

.services-header h2 {
  font-size: 25px;
  color: #1d3557;
  margin-bottom: 15px;
}

.services-header p {
  color: #666;
  font-size: 16px;
  line-height: 1.6;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.service-item {
  background: #e8e8e8;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  padding: 20px;
  transition: transform 0.3s ease;
}

.service-item:hover {
  transform: translateY(-10px);
}

.service-item img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 15px;
  display: flex;
  justify-content: center;
  /* image-resolution: 1877 x 2269px; */
}

.service-item .icon {
  width: 50px;
  height: 50px;
  /* background: #002e7e; */
  color: #fff;
  border-radius: 40%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin: -2px auto 10px auto;
}

.service-item h3 {
  font-size: 18px;
  color: #1d3557;
  margin-bottom: 10px;
}

.service-item p {
  color: #444;
  font-size: 14px;
  line-height: 1.5;
}

/* Galeri */
/* Projects Section */
.projects {
  padding: 60px 30px;
  background-color: #fff;
}

.projects-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.projects-header h4 {
  color: #e5a800;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 30px;
  margin-bottom: 10px;
}

.projects-header h2 {
  font-size: 28px;
  color: #1d3557;
  margin-bottom: 15px;
}

.projects-header p {
  color: #666;
  font-size: 16px;
  line-height: 1.6;
}

/* Gallery Manual Slider */
.gallery-slider-manual {
  background-color: #f9f9f9;
  padding: 40px 0;
  position: relative;
}

.slider-container {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.slider-wrapper {
  width: 2100px; /*7 x 300px */
  border-radius: 10px;
  overflow: hidden;
}

.slider-track {
  display: flex;
  transition: transform 0.5s ease;
}

.slide {
  width: 300px;
  flex-shrink: 0;
  padding: 10px;
}

.slide img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.5s ease;
}

.slide img:hover {
  transform: scale(1.5);
}

.caption-galeri {
  position: absolute;
  bottom: 0;
  background: rgba(255, 255, 255, 0.6);
  color: #0d1b2a;
  padding: 10px;
  width: 100%;
  text-align: center;
}

.caption-galeri h3 {
  font-size: 20px;
  margin-bottom: 5px;
}

.caption-galeri p {
  font-size: 15px;
}

.video-section h3 {
  color: #1d3557;
  font-size: 24px;
}

.video-section video {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Tombol Navigasi */
/* === BAGIAN 2: TOMBOL NEXT & PREV GALERI BARU === */
.prev-btn,
.next-btn {
  background: #1d3557;
  color: #fff;
  border: none;
  padding: 18px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 22px;
  transition: all 0.4s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.prev-btn:hover,
.next-btn:hover {
  transform: scale(1.15);
  background: #e5a800;
}

/* our partners & client */
.ourpartners {
  padding: 60px 30px;
  background-color: #fff;
  text-align: center;
}

.ourpartners-header {
  text-align: center;
  max-width: 500px;
  margin: 20px auto 40px auto;
}

.ourpartners-header h4 {
  color: #1d3557;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 25px;
  margin-bottom: 10px;
}

.partners-logo {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  justify-items: center;
  align-items: center;
}

.partners-logo img {
  max-width: 150px;
  height: auto;
  filter: grayscale(0%);
  transition: transform 0.3s ease, filter 0.3s ease;
}

.partners-logo img:hover {
  transform: scale(1.1);
  filter: grayscale(0%);
}

/* Footer Section */
.footer {
  background-color: #0d1b2a;
  color: #fff;
  padding: 60px 30px 20px 30px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
}

.footer-about,
.footer-contact,
.footer-posts {
  flex: 1;
  min-width: 250px;
}

.footer-about p,
.footer-contact ul li,
.footer-posts ul li p {
  font-size: 14px;
  line-height: 1.6;
  color: #ccc;
}

.navbar .menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #1d3557;
}

.footer-contact h4,
.footer-posts h4 {
  color: #fff;
  margin-bottom: 15px;
}

.footer-contact ul,
.footer-posts ul {
  list-style: none;
  padding: 0;
}

.footer-contact ul li span {
  margin-right: 10px;
}

.footer-posts ul li {
  margin-bottom: 15px;
}

.footer-posts ul li span {
  font-size: 12px;
  color: #aaa;
}

.footer-bottom {
  border-top: 1px solid #2d3e50;
  margin-top: 30px;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 15px;
}

.social-icons a {
  margin-left: 10px;
}

.social-icons img {
  filter: brightness(0) invert(1);
  transition: transform 0.3s ease;
}

.social-icons img:hover {
  transform: scale(1.2);
}

.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #1d3557;
  color: #fff;
  padding: 15px;
  border: none;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  font-size: 22px;
  transition: all 0.4s ease;
  opacity: 0;
  visibility: hidden;
  z-index: 1000;
}

.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  transform: scale(1.15);
  background: #e5a800;
}

.location-section {
  padding: 60px 30px;
  background-color: #fafafa;
  text-align: center;
}

.map-container {
  position: relative;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  border: 5px solid #1d3557;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  aspect-ratio: 16 / 9;
}

.map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
/* =======================
   RESPONSIVE DESIGN
   ======================= */

/* --------- Tablet Landscape & Medium Screen --------- */
@media (max-width: 1024px) {
  .navbar nav ul li a {
    font-size: 14px;
  }
  .caption h2 {
    font-size: 32px;
  }
  .caption p {
    font-size: 18px;
  }
  .about-us .container {
    flex-direction: column;
    text-align: center;
  }
  .about-image img {
    max-width: 80%;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .projects-header h2 {
    font-size: 24px;
  }
  .gallery-slider-manual .slide {
    width: 100%;
  }
  .partners-logo {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .partners-logo img {
    max-width: 100px;
  }
  .footer-content {
    flex-direction: column;
    gap: 20px;
  }
  .map-container {
    max-width: 95vw;
  }
}

/* --------- Tablet Portrait & Small Tablet --------- */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 15px;
  }
  .navbar nav ul {
    flex-direction: column;
    width: 100%;
    background-color: #fff;
    border-top: 1px solid #ddd;
    margin-top: 10px;
    display: none;
  }
  .navbar nav ul.show {
    display: flex;
  }
  .navbar .menu-toggle {
    display: block;
  }
  .caption {
    left: 3%;
    right: 3%;
    padding-right: 5px;
  }
  .caption h2 {
    font-size: 28px;
  }
  .caption p {
    font-size: 16px;
  }
  .about-us .container {
    flex-direction: column;
    text-align: center;
  }
  .about-image img {
    max-width: 80%;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .projects-header h2 {
    font-size: 20px;
  }
  .gallery-slider-manual .slide {
    width: 100%;
  }
  .partners-logo {
    grid-template-columns: repeat(2, 1fr);
  }
  .partners-logo img {
    max-width: 80px;
  }
  .footer-content {
    flex-direction: column;
    gap: 10px;
  }
  .map-container {
    max-width: 100vw;
  }
}

/* --------- Smartphone & Small Devices --------- */
@media (max-width: 600px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 8px 8px;
  }
  .navbar nav ul {
    flex-direction: column;
    width: 100%;
    background-color: #fff;
    border-top: 1px solid #ddd;
    margin-top: 10px;
    display: none;
  }
  .navbar nav ul.show {
    display: flex;
  }
  .navbar .menu-toggle {
    display: block;
  }
  .slider,
  .slide {
    height: 220px;
  }
  .caption h2 {
    font-size: 18px;
  }
  .caption p {
    font-size: 12px;
  }
  .about-us,
  .services,
  .projects,
  .ourpartners,
  .footer,
  .location-section,
  .gallery-section {
    padding: 30px 10px;
  }
  .about-text h2,
  .services-header h2,
  .projects-header h2,
  .ourpartners-header h4,
  .location-section h2 {
    font-size: 18px;
  }
  .about-text p,
  .services-header p,
  .projects-header p,
  .location-section p {
    font-size: 13px;
  }
  .services-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .gallery-slider-manual .slide {
    width: 100%;
  }
  .partners-logo {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .partners-logo img {
    max-width: 60px;
  }
  .footer-content {
    flex-direction: column;
    gap: 8px;
  }
  .map-container {
    height: 220px;
    min-height: 160px;
  }
  .map-container iframe {
    height: 100%;
  }
  .scroll-to-top {
    padding: 12px 14px;
    font-size: 18px;
    right: 10px;
    bottom: 10px;
  }
}

/* --------- Extra Small Devices --------- */
@media (max-width: 400px) {
  .caption h2,
  .about-text h2,
  .services-header h2,
  .projects-header h2,
  .ourpartners-header h4,
  .location-section h2 {
    font-size: 15px;
  }
  .caption p,
  .about-text p,
  .services-header p,
  .projects-header p,
  .location-section p {
    font-size: 11px;
  }
  .partners-logo img {
    max-width: 40px;
  }
  .footer-content {
    gap: 4px;
  }
}
