@font-face {
    font-family: 'libe';
    src: url('../fonts/LiberationMono-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'bebas';
    src: url('../fonts/Bebas-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: 'libe', Arial, sans-serif;
}

.hero h1 {
    font-size: 3rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

h1, h2, h3, h4{
    font-family: 'libe', sans-serif;
}

a{
    font-family: 'bebas',Arial, Helvetica, sans-serif, 'Arial Narrow Bold';
}

/* === NAVBAR DESKTOP === */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 60px; /* padding kiri & kanan */
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
    height: 90px; /* 70px logo + 10px atas + 10px bawah */
}

.logo img {
    height: 70px;
}

.logo {
    margin-left: 15%; /* atau nilai sesuai keinginan */
}


.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
    margin-right: 15%;
}

.nav-links li a {
    text-decoration: none;
    color: #182464;
    font-size: 19px;
    transition: color 0.3s ease;
}

.nav-links li a:hover {
    color: #6c63ff;
}

/* Divider */
.navbar-divider {
    height: 50px;
    background-color: #e8e4ec;
    width: 100%;
}

/* === NAVBAR MOBILE === */
.menu-toggle {
    display: none;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 28px;
    color: #182464;
    background: none;
    border: none;
    z-index: 1051;
}

/* Logo center di mobile */
.navbar-logo-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.logo-img {
    height: 40px;
}


/* Sidebar Menu (mobile) dari kanan */
.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -250px;
    width: 250px;
    height: 100%;
    background-color: white;
    color: #182464;
    z-index: 1050;
    padding: 20px;
    transition: right 0.3s ease-in-out;
    box-shadow: -2px 0 10px rgba(0,0,0,0.2);
}

.mobile-sidebar.active {
    right: 0;
}

.close-btn {
    background: none;
    border: none;
    color: #182464;
    font-size: 28px;
    position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
}

.mobile-menu-list {
    list-style: none;
    padding: 60px 0 0 0;
}

.mobile-menu-list li {
    margin-bottom: 20px;
}

.mobile-menu-list a {
    color: #182464;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
}

.menu-toggle.hide {
    display: none !important;
}


/* === RESPONSIVE MEDIA QUERY === */
@media (max-width: 768px) {
    .nav-links {
        display: none !important;
    }

    .menu-toggle {
        display: block;
    }

    .navbar {
        justify-content: center;
        padding: 10px 20px;
        height: 90px;
    }

    .logo {
        margin-left: 0;
    }

    .navbar-logo-center {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
}


/* navbar */

/* Slideshow */
.carousel {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background-color: #182464;
}

.carousel img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 0;
    filter: brightness(60%); /* 100% normal, 60% lebih gelap */
}

.carousel img.active {
    opacity: 1;
    z-index: 1;
}

.fade-in {
    opacity: 0;
    animation-fill-mode: forwards;
    animation-duration: 1.5s;
}


@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.arrow-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(232, 228, 236, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.arrow-button:hover {
    background-color: rgb(7, 0, 68);
    transform: translateY(-50%) scale(1.1);
}

.prev-slide {
    left: 20px;
}

.next-slide {
    right: 20px;
}

.arrow-button svg {
    fill: rgb(255, 255, 255);
    width: 24px;
    height: 24px;
}

/* Slideshow */

/* body service */

.services-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.service-box {
    height: 500px;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #cacaca;
    flex: 1 1 100%; /* full width di mobile */
    max-width: 500px;
}

.service-box:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.service-box img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 10px;
}

.service-box h3 {
    margin-top: 10px;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.service-box p {
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    text-align: center;
    font-size: 0.9rem; /* kecilkan untuk mobile */
    color: #000; /* pastikan tetap terbaca */
}

/* body service */

/* body service */

.testimonials {
    background-color: #e8e4ec;
    padding: 60px 20px;
    transition: opacity 1s ease-in-out;
}

.testimonials-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.testimonial-box {
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 25px;
    width: 280px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-box:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.testimonial-box p {
    font-style: italic;
    color: #333;
    margin-bottom: 15px;
}

.testimonial-box h4 {
    text-align: right;
    font-size: 1rem;
    color: #555;
}

/* Link style reset */
.service-link {
    text-decoration: none;
    color: inherit;
}

/* Efek muncul dari bawah */
.fade-up {
    opacity: 0;
    transform: translateY(100px);
    transition: all 1s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-box:hover {
    transform: translateY(-5px);
}

.service-link {
    text-decoration: none;
    color: inherit;
}

.testimonials-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap; /* biar responsif di layar kecil */
    padding: 20px;
}

.service-box {
    width: 500px; /* sesuaikan sesuai ukuran yang diinginkan */
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    margin: 15px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    text-align: center;
}

.service-box img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 15px;
}


/* body testimonial */

/* portofolio page */

.portfolio-header {
    background-color: #e60000;
    width: 100%;
}

.bg-purple {
    background-color: #88335d !important;
}

.portfolio-item .btn i {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.max-h-100 {
    max-height: 90vh;
}

.portfolio-item img {
    height: 300px;
    object-fit: cover;
    width: 100%;
    border-bottom: 0px solid #88335d;
    transition: transform 0.3s ease; /* animasi halus */
    border: none !important;
    box-shadow: none !important;
}

.portfolio-item:hover img {
    transform: scale(1.0); /* sedikit membesar saat hover */
}

.modal-img {
    max-height: 70vh; /* maksimal 70% tinggi viewport */
    width: auto;
    max-width: 90vw;  /* jangan melebihi lebar viewport */
    object-fit: contain;
    border-radius: 10px;
}


.bg-portfolio {
    background: url('/images/bg-kelebihan.jpg') no-repeat center center;
    background-size: cover;
    position: relative;
}

.bg-portfolio::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255,255,255,0.5); /* Putih semi-transparan */
    z-index: 1;
}

.bg-portfolio > * {
    position: relative;
    z-index: 2;
}

.portfolio-item {
    height: 100%;
    min-height: 320px; /* Sesuaikan dengan kebutuhan */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.portfolio-item:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    z-index: 2;
}

/* Tombol Navigasi Kiri/Kanan */
.btn-nav-circle {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(232, 228, 236, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-nav-circle:hover {
    background-color: rgb(7, 0, 68);
    transform: translateY(-50%) scale(1.1);
}

/* Tombol Close (Hitam Transparan, Hover Abu dan Membesar) */
.btn-close-custom {
    /* position: absolute; */
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(232, 228, 236, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-close-custom:hover {
    background-color: rgb(7, 0, 68);
    transform: translateY(-50%) scale(1.1);
}


.prev-slide {
    left: 20px;
}

.next-slide {
    right: 20px;
}

.arrow-button svg {
    fill: rgb(255, 255, 255);
    width: 24px;
    height: 24px;
}

/* portofolio page */

/* about page */
.hero-about {
    background: url('/images/about/IMG-20250611-WA0065.jpg') no-repeat center center;
    background-size: cover;
    height: 30vh;
    position: relative;
}

.hero-about::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-about .container {
    position: relative;
    z-index: 2;
}

.visi-misi-box {
    background-color: #ffffff;
    /* border-left: 5px solid #88335d; */
    transition: transform 0.3s ease;
}

.visi-misi-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.visi-misi-box h3 {
    font-family: 'Arial', sans-serif;
    color: #333;
}

.visi-misi-box li {
    margin-bottom: 8px;
}

.bg-dark-blue {
    background-color:  rgb(7, 0, 68);
}

.icon-circle {
    width: 60px;
    height: 60px;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bg-peach {
    background-color: #fde7da;
}

.bg-blue {
    background-color: #d1f2ff;
}

.bg-green {
    background-color: #dff3dd;
}

.bg-yellow {
    background-color: #fff8c9;
}

/* about page */

/* contact page */

.bg-contact {
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('/images/IMG-20250611-WA0043.jpg') no-repeat center center;
    background-size: cover;
}

form label.form-label {
    color: white;
}

/* contact page */

/* bubble wa*/
#contactBubble {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: end;
}

#mainBubble {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#bubbleOptions {
    margin-bottom: 10px;
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
#wa-bubble {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: end;
}

#wa-popup {
  width: 90vw;
  max-width: 95vw;
  font-size: 14px;
  padding: 10px;
  z-index: 99999; /* pastikan di atas semua elemen lain */
  position: fixed;
  bottom: 80px; /* agar tidak terlalu mepet bawah */
  right: 15px;
  background: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

#wa-toggle {
  width: 60px;
  height: 60px;
  font-size: 24px;
  z-index: 99999;
}

#wa-bubble {
  right: 20px;
  bottom: 20px;
}

/* Styling tambahan khusus tampilan mobile untuk WA popup */
@media (max-width: 768px) {
  #wa-popup {
    width: 90vw !important;
    max-width: 95vw !important;
    font-size: 14px;
    padding: 10px;
    right: 10px;
    bottom: 80px;
    position: fixed;
    z-index: 99999;
    border-radius: 10px;
  }

  #wa-toggle {
    width: 60px;
    height: 60px;
    font-size: 24px;
    z-index: 99999;
    position: fixed;
    bottom: 20px;
    right: 20px;
  }

  #wa-bubble {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99999;
  }

  #wa-popup .card-header,
  #wa-popup .card-body {
    padding: 10px;
  }

  #wa-popup .list-group-item {
    font-size: 14px;
    padding: 10px;
  }
}


@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

#wa-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}

/* bubble wa*/

/* bubble translate */
/* === Bubble Translate Default (Desktop) === */
.translate-bubble {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.bubble-btn {
    background-color: #ffffff;
    border: 1px solid #ccc;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Dropdown muncul ke bawah kiri tombol (DESKTOP) */
.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    transform: translateX(-100%);
    background-color: white;
    border: 1px solid #ddd;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    border-radius: 6px;
    padding: 8px 0;
    min-width: 130px;
    z-index: 10000;
    transform: none;
}

.lang-dropdown button {
    background: none;
    border: none;
    padding: 8px 20px;
    width: 100%;
    text-align: left;
    font-size: 14px;
    cursor: pointer;
    box-sizing: border-box;
}

.lang-dropdown button:hover {
    background-color: #f0f0f0;
}


/* === Bubble Translate for Mobile (<=768px) === */
@media (max-width: 768px) {
    .translate-bubble {
        top: 20px !important;
        left: 20px !important;
        right: auto !important;
        bottom: auto !important;
    }

    .lang-dropdown {
        top: 100% !important;
        left: 0 !important;
        right: auto !important;
        transform: translateX(0%) !important;
    }

    .bubble-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}


/* bubble translate */

/* ========================= */
/* Versi Mobile Responsive  */
/* ========================= */

@media screen and (max-width: 768px) {

  /* Navbar */
  .navbar {
    flex-direction: column;
    padding: 10px;
    align-items: center;
  }

  .menu-list {
    display: none !important;
  }

  .logo {
    margin-left: 0;
    align-items: center;
  }

  .nav-links {
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-right: 0;
    margin-top: 10px;
  }

  /* Hero Text */
  .hero h1 {
    font-size: 2rem;
    text-align: center;
    /* Consider adjusting line-height or padding for better vertical spacing on small screens */
  }

  /* Slideshow */
  .carousel img {
    object-fit: cover;
    height: 100vh;
    /* Using 100vh may cause issues on mobile due to browser UI overlays; consider using 100dvh for modern support */
  }

  .arrow-button {
    width: 40px;
    height: 40px;
  }

  .arrow-button svg {
    width: 20px;
    height: 20px;
  }

  /* Service Box */
  .services-container {
    flex-direction: column;
    align-items: center;
  }

  .service-box {
    flex: 1 1 45%; /* dua kolom di tablet ke atas */
  }

  /* Testimonials */
  .testimonial-box {
    width: 90%;
  }

  /* Portfolio */
  .portfolio-item img {
    height: 200px;
  }

  .modal-img {
    max-height: 60vh;
    max-width: 90vw;
  }

  /* Contact Form */
  form label.form-label {
    font-size: 14px;
  }

  .form-control {
    font-size: 14px;
    /* May need increased padding or margin for better touch targets on mobile */
  }

  button[type="submit"] {
    font-size: 16px;
  }

  /* Bubble WA & Translate */
  #contactBubble,
  #wa-bubble,
  /* .translate-bubble {
    bottom: 15px;
    right: 15px;
    top: auto; */
    /* Consider adding `left: auto;` to avoid layout issues on RTL or flipped layouts */
  /* } */

  #mainBubble,
  #wa-toggle,
  .bubble-btn {
    width: 50px;
    height: 50px;
    font-size: 18px;
  }

  .lang-dropdown {
    right: 0;
    left: auto;
    top: 55px;
    width: 140px;
  }

  .lang-dropdown button {
    font-size: 13px;
  }
}

/* Tambahan untuk layar super kecil (HP jadul, ~360px) */
@media screen and (max-width: 400px) {
  .tagline {
    font-size: 20px;
    text-align: center;
    /* Review the readability of the tagline on very small screens; 20px may still be tight */
  }

  .carousel img {
    height: 80vh;
  }

  .portfolio-item img {
    height: 150px;
  }

  .testimonial-box,
  .service-box {
    flex: 1 1 45%; /* dua kolom di tablet ke atas */
  }
}

@media (max-width: 576px) {
    .service-box h4 {
        font-size: 1.1rem;
    }
    .service-box p {
        font-size: 0.85rem;
    }
}

.card-text {
    font-size: 1rem;
    word-wrap: break-word;
    white-space: normal;
}

@media (max-width: 576px) {
    .card-text {
        font-size: 0.875rem;
    }
    .card-title {
        font-size: 1.1rem;
    }
}

/* Menyembunyikan menu sidebar saat layar besar */
@media (min-width: 769px) {
  .mobile-sidebar {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none !important;
  }
}
