/* Fonts */
:root {
  --default-font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --heading-font: "Poppins", sans-serif;
  --nav-font: "Poppins", sans-serif;
}

/* Global Colors - The following color variables are used throughout the website. Updating them here will change the color scheme of the entire website */
:root { 
  --background-color: #ffffff; /* Background color for the entire website, including individual sections */
  --default-color: #444444; /* Default color used for the majority of the text content across the entire website */
  --heading-color: #2a2c39; /* Color for headings, subheadings and title throughout the website */
  --accent-color: #5D86E2; /* Accent color that represents your brand on the website. It's used for buttons, links, and other elements that need to stand out */
  --surface-color: #ffffff; /* The surface color is used as a background of boxed elements within sections, such as cards, icon boxes, or other elements that require a visual separation from the global background. */
  --contrast-color: #ffffff; /* Contrast color for text, ensuring readability against backgrounds of accent, heading, or default colors. */
}

/* Nav Menu Colors - The following color variables are used specifically for the navigation menu. They are separate from the global colors to allow for more customization options */
:root {
  --nav-color: #ffffff;  /* The default color of the main navmenu links */
  --nav-hover-color: #5D86E2; /* Applied to main navmenu links when they are hovered over or active */
  --nav-mobile-background-color: #ffffff; /* Used as the background color for mobile navigation menu */
  --nav-dropdown-background-color: #ffffff; /* Used as the background color for dropdown items that appear when hovering over primary navigation items */
  --nav-dropdown-color: #060606; /* Used for navigation links of the dropdown items in the navigation menu. */
  --nav-dropdown-hover-color: #5D86E2; /* Similar to --nav-hover-color, this color is applied to dropdown navigation links when they are hovered over. */
}

/* Color Presets - These classes override global colors when applied to any section or element, providing reuse of the sam color scheme. */

.light-background {
  --background-color: #f9f9f9;
  --surface-color: #ffffff;
}

.dark-background {
  --background-color: #2a2c39;
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --surface-color: #404356;
  --contrast-color: #ffffff;
}

/* Smooth scroll */
:root {
  scroll-behavior: smooth;
}

/*--------------------------------------------------------------
# General Styling & Shared Classes
--------------------------------------------------------------*/
body {
  color: var(--default-color);
  background-color: var(--background-color);
  font-family: var(--default-font);
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  color: color-mix(in srgb, var(--accent-color), transparent 25%);
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--heading-color);
  font-family: var(--heading-font);
}

/*--------------------------------------------------------------
# Global Header
--------------------------------------------------------------*/

.header {
  background-color: #ffffff;
  padding: 20px 0;
  position: relative;
  width: 100%;
  z-index: 10;
}

.header .logo img {
  max-height: 50px;
}

/* Navmenu - Desktop */
@media (min-width: 1200px) {
  .navmenu ul {
    margin: 0;
    padding: 0;
    display: flex;
    list-style: none;
    align-items: center;
  }

  .navmenu li {
    margin-left: 5px;
  }

  .navmenu a {
    color: #150D58;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 400;
    border-radius: 50px;
    transition: 0.3s;
    text-decoration: none;
  }

  .navmenu li:hover > a,
.navmenu a.active {
  background-color: #150D58;
  color: #fff;
}

}

/* Navmenu - Mobile */
@media (max-width: 1199px) {
  .mobile-nav-toggle {
    color: #150D58;
    font-size: 28px;
    cursor: pointer;
    z-index: 1001;
  }

  .navmenu ul {
    display: none;
    list-style: none;
    position: absolute;
    top: 60px;
    left: 15px;
    right: 15px;
    background-color: #fff;
    padding: 25px 0; /* lebih besar biar kepanjang */
    margin: 0;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);

    /* kalau menu panjang, bisa discroll */
    max-height: 80vh;
    overflow-y: auto;
  }

  .navmenu a {
    display: block;
    padding: 16px 20px;
    /*diperbesarbiarlebihlega*/font-size: 17px;
    font-weight: 500;
    color: #150D58;
    text-decoration: none;
    transition: background 0.3s;
    -webkit-transition: background 0.3s;
    -moz-transition: background 0.3s;
    -ms-transition: background 0.3s;
    -o-transition: background 0.3s;
}

  .mobile-nav-active .navmenu > ul {
    display: block;
    animation: fadeDown 0.3s ease;
  }

  @keyframes fadeDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/*--------------------------------------------------------------
# Scroll Top Button
--------------------------------------------------------------*/
.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: -15px;
  z-index: 99999;
  background-color: var(--accent-color);
  width: 44px;
  height: 44px;
  border-radius: 50px;
  transition: all 0.4s;
}

.scroll-top i {
  font-size: 24px;
  color: var(--contrast-color);
  line-height: 0;
}

.scroll-top:hover {
  background-color: color-mix(in srgb, var(--accent-color), transparent 20%);
  color: var(--contrast-color);
}

.scroll-top.active {
  visibility: visible;
  opacity: 1;
  bottom: 15px;
}

/*--------------------------------------------------------------
# Disable aos animation delay on mobile devices
--------------------------------------------------------------*/
@media screen and (max-width: 768px) {
  [data-aos-delay] {
    transition-delay: 0 !important;
  }
}

/*--------------------------------------------------------------
# Global Sections
--------------------------------------------------------------*/

.section-title {
  padding-bottom: 60px;
  position: relative;
}

.section-title h2 {
  font-size: 14px;
  font-weight: 500;
  padding: 0;
  line-height: 1px;
  margin: 0;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--default-color), transparent 50%);
  position: relative;
}

.section-title h2::after {
  content: "";
  width: 120px;
  height: 1px;
  display: inline-block;
  background: var(--accent-color);
  margin: 4px 10px;
}

.section-title p {
  color: var(--heading-color);
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  text-transform: uppercase;
  font-family: var(--heading-font);
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/

.carousel-control-prev,
.carousel-control-next {
  opacity: 0 !important;     /* Hilang secara visual */
  visibility: visible !important; 
  pointer-events: auto !important;  /* Tetap bisa diklik */
}

/*--------------------------------------------------------------
# Layanan Section
--------------------------------------------------------------*/

.layanan-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
  }

  .layanan-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  }

/*--------------------------------------------------------------
# Faq Section
--------------------------------------------------------------*/

 .accordion-button {
    background: #fff;
    border-radius: 8px !important;
    transition: all 0.3s ease;
  }
  .accordion-button:hover {
    background: #f3f6ff;
  }
  .accordion-button:focus {
    box-shadow: none;
  }
  .accordion-button:not(.collapsed) {
    color: #150D58;
    font-weight: 600;
    background: #eef3ff;
  }
  .accordion-body {
    transition: all 0.3s ease;
    line-height: 1.6;
  }
  /* Icon rotate */
  .accordion-button .faq-icon {
    transition: transform 0.3s ease;
  }
  .accordion-button:not(.collapsed) .faq-icon {
    transform: rotate(180deg);
  }

  .accordion-button::after {
    display: none !important;
  }

/*--------------------------------------------------------------
# Klien Kami Section
--------------------------------------------------------------*/

/* Wrapper */
.logo-slider {
  overflow: hidden;
  position: relative;
  background: #fff;
  padding: 20px 0;
}

/* Track animasi */
.logo-track {
  display: flex;
  gap: 40px;
  animation: scroll 10s linear infinite;
  width: max-content;
  -webkit-animation: scroll 10s linear infinite;
}

/* Gambar Logo */
.logo-track img {
  height: 80px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.logo-track img:hover {
  transform: scale(1.1);
}

/* Animasi jalan */
@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Responsive */
@media (max-width: 768px) {
  .logo-track img {
    height: 60px;
  }
  .logo-track {
    gap: 20px;
  }
}

/* Detail Layanan */

.thumbnail-img {
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.thumbnail-img:hover {
  transform: scale(1.1);
  border-color: #0d6efd; /* bootstrap primary */
}

/* Paket Section */

.card-paket {
  transform: scale(0.95); /* kecilin 95% dari ukuran asli */
  transform-origin: center top; /* biar mengecilnya tetap rapi */
}

/* Apa Kata Mereka Section */

.card-testimoni {
  transform: scale(0.95);   /* perkecil jadi 95% dari ukuran normal */
  transform-origin: center top; /* biar mengecilnya tetap rapi */
}

/* Floating Section */

 .contact-widget {
    position: fixed;
    bottom: 15px;
    right: 15px;
    z-index: 1000;
  }

  .contact-icon {
    cursor: pointer;
    transition: transform 0.3s ease;
  }

  .contact-icon:hover {
    transform: scale(1.1);
  }

  .contact-icon img {
    width: 120px;
    height: 120px;
  }

  .contact-content {
    display: none;
    position: absolute;
    bottom: 60px;
    right: 0;
    width: 280px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    padding: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
  }

  .contact-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
  }

  .contact-content h4 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: bold;
    color: #150D58;
    text-align: center;
  }

  .contact-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .contact-card {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 10px;
    background-color: #f9f9f9;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  }

  .contact-card:hover {
    background-color: #e3edff;
    transform: translateY(-2px);
  }

  .contact-card .icon {
    font-size: 24px;
    margin-right: 12px;
    color: #FBD010;
  }

  .contact-card .info {
    display: flex;
    flex-direction: column;
  }

  .contact-card .label {
    font-weight: bold;
    font-size: 13px;
    color: #5D86E2;
  }

  .contact-card .value {
    font-size: 11px;
    color: #555;
  }

  .hours {
    margin-top: 15px;
    font-size: 12px;
    color: #777;
    text-align: center;
  }

  @media (max-width: 600px) {
    .contact-content {
      width: 240px;
    }

    .contact-icon img {
      width: 90px;
      height: 90px;
    }
  }

  /* Tombol close */
.close-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: transparent;
  border: none;
  font-size: 20px;
  font-weight: bold;
  color: #888;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}

.close-btn:hover {
  color: #EB2427;
}

/*  */

.section-wrapper {
  background: url('/assets/img/background.webp') center center / cover no-repeat;
  position: relative;
}

.section-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: rgba(255, 255, 255, 0.8); /* overlay putih biar konten jelas */
  z-index: 1;
}

.section-wrapper section {
  position: relative;
  z-index: 2; /* konten di atas overlay */
}

/* Footer */

.footer {
  background: url('/assets/img/footer.webp') no-repeat center bottom / cover;
}

.footer-logo {
  max-width: 150px;
}

.footer-link {
  color: #fff;
  text-decoration: none;
}

.footer-link:hover {
  text-decoration: underline;
}

.social-link {
  color: #fff;
  font-size: 1.25rem;
}

.social-link:hover {
  color: #f0f0f0;
}

