/* ========================================= */
/* BASE STYLE */
/* ========================================= */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif !important;
}

.btn-blue {
  background-color: #02152A;
  color: #ffffff;
  border: none;
  transition: all 0.3s ease-in-out;
}

.btn-blue:hover,
.btn-blue:focus {
  background-color: #1b5c9e; /* Biru terang kontras */
  color: #ffffff; /* tetap putih */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(27, 92, 158, 0.4);
}

.btn-light {
  background-color: #ffffff;
  color: #02152A;
  border: none;
  transition: all 0.3s ease-in-out;
}

.btn-light:hover,
.btn-light:focus {
  background-color: #f1f1f1; /* sedikit abu agar tidak silau */
  color: #02152A; /* tetap kontras */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 255, 255, 0.3);
}

/* Tambahan efek untuk tombol di footer dan contact agar lebih interaktif */
.button-contact .btn:hover,
.button-expolre .btn:hover {
  background-color: #1b5c9e !important;
  color: #ffffff !important;
  transform: scale(1.05);
}

/* ========================================= */
/* NAVBAR */
/* ========================================= */
.navbar {
    background-color: transparent;
}

.navbar-brand img {
    height: 50px;
}

/* ========================================= */
/* BANNER */
/* ========================================= */
.banner {
    background: linear-gradient(90deg, rgba(2, 21, 42, 1) 0%, rgba(27, 92, 158, 1) 100%);
    min-height: 100vh;
    height: auto;
    margin-top: -30px;
    padding-top: 140px;
    padding-bottom: 50px;
    display: flex;
    align-items: center;
}

.desc-banner h2 {
    font-size: 36px;
}

.desc-banner p {
    font-size: 20px;
}

/* ========================================= */
/* INNOVATION */
/* ========================================= */
.innovation {
    padding-top: 50px;
}

.title-innovation {
    color: #01172E;
}

.title-innovation h2 {
    font-size: 36px;
}

.title-innovation p {
    font-size: 24px;
}

.line {
    width: 90%;
    display: block;
    margin-left: auto;
    margin-right: auto;
    padding-top: 3px;
}

.card-inno {
    background: linear-gradient(180deg, rgba(2, 21, 42, 1) 0%, rgba(27, 92, 158, 1) 100%);
    width: 100%;
}

.card-inno h4 {
    font-size: 28px;
}

.card-inno p {
    font-size: 20px;
}

/* ========================================= */
/* PORTFOLIO */
/* ========================================= */
.portfolio {
    padding-top: 60px;
    padding-bottom: 60px;
}

.title-porto {
    color: #01172E;
    margin-bottom: 30px;
    text-align: center;
}

.card-porto {
    background: linear-gradient(180deg, rgba(2, 21, 42, 1) 0%, rgba(27, 92, 158, 1) 100%);
    border-radius: 16px;
    width: 49%;
    margin-bottom: 20px;
    padding: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-porto:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.card-porto img {
    width: 180px;
    height: 180px;
    margin: 0 auto 20px;
    display: block;
    border-radius: 12px;
    margin-bottom: 0;
}

.desc-card-porto h3 {
    color: white;
    font-size: 16px;
    margin-bottom: 10px;
    text-align: start;
}

.desc-card-porto p {
    color: #e5e5e5;
    font-size: 14px;
    text-align: start;
}

/* ========================================= */
/* SERVICES */
/* ========================================= */
.service {
    padding-top: 50px;
}

/* ====== ANIMASI CARD LAYANAN ====== */
.card-serv {
  background: linear-gradient(180deg, rgba(2, 21, 42, 1) 0%, rgba(27, 92, 158, 1) 100%);
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 15px;
  border-radius: 20px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.card-serv::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(255,255,255,0.25), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* Hover effect utama */
.card-serv:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 12px 25px rgba(27, 92, 158, 0.4);
}

.card-serv:hover::before {
  opacity: 1;
}

/* Animasi ikon di dalam card */
.card-serv img {
  filter: brightness(0) invert(1);
  height: 50%;
  width: auto;
  display: block;
  margin: auto;
  transition: transform 0.5s ease, filter 0.3s ease;
}

.card-serv:hover img {
  transform: scale(1.15) rotate(5deg);
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.4));
}

/* Teks tetap stabil */
.card-serv h4 {
  transition: color 0.3s ease, transform 0.3s ease;
}

.card-serv:hover h4 {
  color: #e0e0e0;
  transform: translateY(-3px);
}

/* ========================================= */
/* CLIENT */
/* ========================================= */
.client {
    padding-top: 50px;
}

.img-client img {
    width: 100%;
    max-width: 150px;
    height: auto;
}

/* ========================================= */
/* TESTIMONIAL */
/* ========================================= */
.testi {
    padding-top: 50px;
}

.card-testc {
    position: relative;
    width: 100%;
}

.img-test-c img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
}

.desc-card-test {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding-top: 30px;
    padding-bottom: 20px;
    background: rgba(255, 255, 255, 0.62);
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    backdrop-filter: blur(7.5px);
    -webkit-backdrop-filter: blur(7.5px);
}

/* ========================================= */
/* CONTACT */
/* ========================================= */
.contact {
    padding-top: 50px;
    padding-bottom: 50px;
}

/* ========================================= */
/* FOOTER */
/* ========================================= */
footer {
    padding-top: 50px;
    padding-bottom: 30px;
    background: linear-gradient(90deg, rgba(2, 21, 42, 1) 0%, rgba(27, 92, 158, 1) 100%);
}

.title-footer img {
    width: 50px;
}

.img-is img {
    width: 40px;
    filter: brightness(0) invert(1);
}

/* ========================================= */
/* STICKY NAVBAR LOGO & ICON */
/* ========================================= */
.navbar-sticky-logo {
    position: fixed;
    top: 20px;
    left: 56px;
    z-index: 10000;
    padding: 6px 10px;
    transition: all 0.3s ease;
}

.navbar-sticky-logo,
.navbar-sticky-icon {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease;
}

body.loaded .navbar-sticky-logo,
body.loaded .navbar-sticky-icon {
    opacity: 1;
    pointer-events: all;
}

.navbar-sticky-logo img {
    height: 65px;
    width: auto;
    transition: all 0.3s ease;
}

.navbar-sticky-icon {
    position: fixed;
    top: -80px;
    right: 20px;
    width: 55px;
    height: 55px;
    background-color: #02152A;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    text-decoration: none;
    z-index: 1040;
    transform: translateY(100px);
    transition: all 0.3s ease-in-out;
}

.navbar-sticky-icon.show {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.navbar-sticky-icon:hover {
    color: #ffffff;
    background-color: #1b5c9e;
}

/* ========================================= */
/* OFFCANVAS NAVBAR */
/* ========================================= */
.offcanvas-top {
    min-height: 75vh;
    background: linear-gradient(90deg, rgba(2, 21, 42, 1) 0%, rgba(27, 92, 158, 1) 100%);
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.offcanvas-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.offcanvas-title {
    color: white;
}

.btn-close {
    filter: brightness(0) invert(1);
}

.offcanvas-body .nav-item {
    padding: 5px 0;
}

.offcanvas-body .nav-link {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.offcanvas-body .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

body.offcanvas-open .navbar-sticky-logo {
  opacity: 0 !important;
  pointer-events: none;
  transform: translateY(-10px);
  transition: all 0.3s ease-in-out;
}
/* ========================================= */
/* FADE-IN ANIMATION */
/* ========================================= */
.fade-element {
    opacity: 0;
    transform: translateY(40px) scale(0.98);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-element.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.fade-delay-1 { transition-delay: 0.2s; }
.fade-delay-2 { transition-delay: 0.4s; }
.fade-delay-3 { transition-delay: 0.6s; }
.fade-delay-4 { transition-delay: 0.8s; }

/* ========================================= */
/* CLIENT SLIDER */
/* ========================================= */
.client-slider {
    overflow: hidden;
    position: relative;
    width: 100%;
    padding: 40px 0;
}

.client-track {
  display: flex;
  width: max-content;
  animation: scrollLeft 30s linear infinite;
}

.client-slider-left .client-track {
  animation: scrollLeft 30s linear infinite;
}

.client-slider-right .client-track {
  animation: scrollRight 30s linear infinite;
}

.img-client {
    flex: 0 0 auto;
    align-self: center;
    margin: 0 40px;
}

.img-client img {
    width: 150px;
    height: auto;
    transition: transform 0.5s ease;
}

.img-client img:hover {
    transform: scale(1.1);
}

@keyframes scrollLeft {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes scrollRight {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0);
  }
}

.product {
    background: linear-gradient(135deg, #02152A 0%, #1b5c9e 100%);
    padding-top: 80px;
    padding-bottom: 80px;
    color: #ffffff;
}

.title-product h2 {
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
}

.title-product p {
    font-size: 18px;
    color: #e0e0e0;
    margin-top: 10px;
}

.card-product {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 25px;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
}

.col-6.col-md-3 > a {
    text-decoration: none !important;
}

.card-product img {
    width: 80%;
    max-width: 160px;
    border-radius: 12px;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.card-product h5 {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
}

.card-product p {
    font-size: 14px;
    color: #d9d9d9;
    margin-top: 8px;
}

.card-product:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.15);
    text-decoration: none !important;
}

.card-product:hover img {
    transform: scale(1.05);
}

.wa-sticky {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: #ffffff !important;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    cursor: pointer;
    z-index: 20000;
    box-shadow: 0 8px 16px rgba(0,0,0,0.25);
    transition: all 0.3s ease-in-out;
}

.wa-sticky:hover {
    transform: scale(1.1) translateY(-3px);
    background-color: #1ebe5b;
    box-shadow: 0 12px 24px rgba(0,0,0,0.35);
}

/* ========================================= */
/* RESPONSIVE DESIGN */
/* ========================================= */
@media (max-width: 992px) {
    .navbar {
        background: linear-gradient(90deg, rgba(2, 21, 42, 1) 0%, rgba(27, 92, 158, 1) 100%);
    }

    .banner {
        min-height: 40vh;
        height: auto;
    }

    .desc-banner h2 { font-size: 30px; }
    .desc-banner p { font-size: 18px; }

    .title-innovation h2 { font-size: 30px; }
    .title-innovation p { font-size: 20px; }

    .card-inno h4 { font-size: 24px; }
    .card-inno p { font-size: 18px; }

    .card-serv h4 { font-size: 1rem; }

    .card-porto { width: 48% !important; }
    .desc-card-porto h3 { font-size: 18px; }
    .desc-card-porto p { font-size: 15px; }

    .title-product h2 { font-size: 30px; }
    .title-product p { font-size: 16px; }
    .card-product h5 { font-size: 16px; }
    .card-product p { font-size: 13px; }
}

@media (max-width: 768px) {
    .banner {
        padding-top: 180px;
        padding-bottom: 40px;
    }

    .desc-banner h2 { font-size: 26px; }
    .desc-banner p { font-size: 16px; }

    .title-innovation h2 { font-size: 26px; }
    .title-innovation p { font-size: 16px; }

    .card-inno h4 { font-size: 22px; }
    .card-inno p { font-size: 15px; }

    .title-service h2,
    .title-client h2,
    .title-testi h2,
    .title-contact h2 {
        font-size: 26px;
    }

    .desc-footer p { font-size: 14px; }

    .card-porto {
        width: 100% !important;
    }

    .card-porto img {
        width: 100px;
        height: 100px;
        margin: 0 auto 20px;
        display: block;
        border-radius: 12px;
    }

    .product {
        padding-top: 60px;
        padding-bottom: 60px;
    }
    .card-product {
        min-height: auto;
        padding: 20px;
    }
    .card-product img {
        width: 70%;
    }
}

/* ======== PRELOADER STYLE ======== */
      #preloader {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, #021428, #012a4a, #014f86);
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        overflow: hidden;
        font-family: 'Poppins', sans-serif;
        z-index: 9999;
        transition: opacity 0.8s ease, visibility 0.8s ease;
      }

      #preloader.hide {
        opacity: 0;
        visibility: hidden;
      }

      #preloader .logo {
        opacity: 0;
        transform: scale(0.8);
        animation: fadeIn 2s ease forwards;
      }

      @keyframes fadeIn {
        to {
          opacity: 1;
          transform: scale(1);
        }
      }

      #preloader .text {
        color: #fff;
        font-size: 1.5rem;
        letter-spacing: 2px;
        margin-top: 20px;
        opacity: 0;
        animation: fadeUp 2s 1s ease forwards;
      }

      @keyframes fadeUp {
        to {
          opacity: 1;
          transform: translateY(-10px);
        }
      }

      #preloader .loading-bar {
        width: 0;
        height: 4px;
        background-color: #00b4d8;
        border-radius: 2px;
        margin-top: 30px;
        animation: loadBar 3s ease-in-out forwards;
      }

      @keyframes loadBar {
        to {
          width: 200px;
        }
      }