
body {
    padding-top: 80px; /* agar konten di bawah navbar fixed-top */
    background-color: #fafafa;
  }
  

.topbar{
    background-color: #1875d1;
    padding: 5px;
    text-align: center;
}

.topbar a,span,i{
    color: rgb(235, 230, 230);
    text-decoration: none;
    font-size: 13px;
    font-style: normal;
    margin: 0 10px;
}

.topbar a:hover,span:hover,i:hover{
    color: #fff;
    text-decoration: underline;
}

header .navbar{
    background-color: #428fdb !important;
}

header nav .navbar-brand{
    font-size: 18px;
    font-family: poppins;
    font-weight: 700;
}

header nav .nav-link{
    font-size: 17px;
    font-family: poppins;
    font-weight: 500;
    color: #000;
}

.carousel-item img {
    height: 500px;
    object-fit: cover;
    width: 100%;
}

.carousel-caption h5,
.carousel-caption p{
    font-family: poppins;
    font-weight: 700;
    color: #fff;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
}

.carousel-caption {
  top: 50%;
  left: 15%;
  transform: translateY(-50%);
  text-align: left;
  right: auto;
  bottom: auto;
  width: 60%;
  color: #fff;
}


.btn-hero{
    margin-top: 20px;
    background-color: #347fca;
    border: 2px solid #6aa4df;
    color: #fff;
    font-family: poppins;
    font-weight: 500;
    padding: 13px 45px;
    border-radius: 30px;
    text-decoration: none;
}

.btn-hero:hover{
    border: 2px solid #bfdcfa;
    color: #fff;
    text-decoration: none;
    transition: 0.5s ease;
}

.hero-section{
    margin-top: 50px;
}

.title hr{
    width: 50px;
    height: 3px;
    background-color: #4aa4e0;
    border: none;
    margin: 15px auto;
}

h2{
    font-family: poppins;
    font-weight: 700;
}

.about p,
.services p,
.portfolio .title p,
.contact .title p,
.sertif-content p{
    font-family: poppins;
    font-weight: 400;
    color: #000;
    font-style: italic;
}

.hero-section h3{
    font-family: poppins;
    font-weight: 550;
    color: #000;
}

section .about-desk img{
    border-radius: 20px;
}

.about-desk p{
    font-family: poppins;
    font-weight: 350;
    font-size: 15px;
    color: #000;
}

.card{
    margin: 0 50px;
}

.card i{
    font-size: 50px;
    color: #959799;
}

.card:hover i{
    color: #428fdb;
    transition: 0.5s ease;
    text-decoration: none !important;
}

.value-card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.08);
    transition: 0.3s ease-in-out;
}
.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
}

/* Sertif card content */
.sertif-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  height: 100%;
  transition: transform 0.3s ease;
}

.sertif-card:hover {
  transform: translateY(-5px);
}

.sertif-thumb {
  height: 200px;
  position: relative;
  overflow: hidden;
  background-color: #f0f0f0;
}

.sertif-thumb img, 
.sertif-thumb embed {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sertif-info {
  padding: 1.5rem;
}

.sertif-info h4 {
  color: #343a40;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.sertif-actions {
  margin-top: 1.25rem;
}

/* Swiper */
.swiper{
  width: 100%;
  padding: 30px 10px;
}

.swiper-slide{
  display:flex;
  height: auto;
}

/* Tombol navigasi dan pagination */
.swiper-button-next, 
.swiper-button-prev {
    color: #007bff;
    background-color: rgba(255,255,255,0.8);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

.swiper-button-next:after, 
.swiper-button-prev:after {
    font-size: 18px;
}

.swiper-pagination-bullet-active {
    background-color: #007bff;
}


/* card service */
.service-card {
    background-color: #ffffff;
    border-radius: 20pxpx;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    transition: all 0.3s ease;
    margin: 0 50px;
}

.service-card:hover i{
    color: #428fdb;
    transition: 0.5s ease;
}

.service-icon i{
    color: #5a686c;
    font-size: 40px;
    margin-bottom: 1.5rem;
}

.service-title {
    color: #4a5568;
    font-size: 1.5rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
    display: inline-block; /* Ini penting untuk membuat width menyesuaikan konten */
}

.service-title:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%; /* Membuat garis selebar teks judul */
    height: 5px; /* Ketebalan 3px sesuai permintaan */
    background-color: #5a686c;
}

.service-card:hover .service-title:after {
    background-color: #428fdb;
    transition: 0.5s ease;
}

.service-text {
    color: #4a5568;
    margin-bottom: 1.5rem;
}

.service-card a{
    color: #4a5568;
    text-decoration: none;
    font-weight: 500;
}

.read-more:hover {
    text-decoration: none;
}

/* Filter btn */
.btn-filter {
    background-color:transparent;
    color: #4a5568;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-family: poppins;
    font-weight: 500;
    font-size: 19px;
}

.btn-filter:hover {
    color: #428fdb;
    transition: 0.5s ease;
}

.btn-filter-active {
    color:#428fdb;
}

/* Portfolio Card styles */
.portfolio-item {
    margin-bottom: 30px;
}

.portfolio-img-container {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.portfolio-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-img-container:hover .portfolio-img {
    transform: scale(1.1);
}

.portfolio-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 15px;
    margin-bottom: 5px;
}

.portfolio-description {
    color: #6c757d;
}

/* Modal styles */
.modal-img {
    width: 100%;
}

/* Contact */
.contact .contact-container{
    background-color: #1875d1;
    padding: 20px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}
.atr-contact{
    width: 100%;
    margin-bottom: 20px;
    padding: 20px;
    color: #fff;
    background-color: #428fdb;
}

.atr-contact-1{
    margin-top: 22px;
}

.atr-contact i{
    font-size: 20px;
    color: #fff;
    background-color: #ffffff3a;
    width: 44px;
    height: 44px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50px;
    transition: all 0.3s ease-in-out;
    margin-right: 15px;
}

.atr-contact h3{
    color: #fff;
    font-size: 20px;
    padding: 0;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
    font-family: "Montserrat", sans-serif;
}

.atr-contact p{
    padding: 0;
    margin-bottom: 0;
    font-size: 14px;
}

.atr-contact:hover i{
    background-color: #fff;
    color: #428fdb;
    transition: all 0.3s ease-in-out;
}

/* Form contact */
.form-contact{
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.form-contact h3{
    font-size: 30px;
    font-weight: 700;
    font-family: "Montserrat", sans-serif;
    margin-bottom: 20px;
    color: #1875d1;
}

.btn-form{
    background-color: #1875d1;
    color: #fff;
    font-family: poppins;
    font-weight: 700;
    padding: 13px 45px;
    border-radius: 30px;
    border: none;
    text-decoration: none;
}


/* Footer */
.footer {
    color: #fff;
    background-color: #1875d1;
    font-size: 14px;
    position: relative;
  }
  
  .footer .footer-top {
    padding-top: 50px;
  }
  
  .footer .footer-about .logo {
    line-height: 1;
    margin-bottom: 25px;
  }
  
  .footer .footer-about .logo img {
    max-height: 40px;
    margin-right: 6px;
  }
  
  .footer .footer-about .logo span {
    color: #fff;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: 1px;
    font-family: "Poppins", sans-serif;
  }
  
  .footer .footer-about p {
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
  }
  
  
  .footer h4 {
    font-size: 16px;
    font-weight: bold;
    position: relative;
    padding-bottom: 12px;
  }
  
  .footer .footer-links {
    margin-bottom: 30px;
  }
  
  .footer .footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .footer .footer-links ul i {
    padding-right: 2px;
    font-size: 12px;
    line-height: 0;
  }
  
  .footer .footer-links ul li {
    padding: 10px 0;
    display: flex;
    align-items: center;
  }
  
  .footer .footer-links ul li:first-child {
    padding-top: 0;
  }
  
  .footer .footer-links ul a {
    color: #ffffffa8;
    display: inline-block;
    line-height: 1;
  }
  
  .footer .footer-links ul a:hover {
    color: #fff;
  }
  
  .footer .footer-contact p {
    margin-bottom: 5px;
  }
  
  .footer .copyright {
    padding-top: 30px;
    padding-bottom: 30px;
    border-top: 1px solid #ffffff49;
  }
  
  .footer .copyright p {
    margin-bottom: 0;
  }
  
  .footer .credits {
    margin-top: 4px;
    font-size: 13px;
  }

  .portfolio-loader.loaded .img-item{
    opacity: 1;
    transform: scale(1);
    transition: all 0.5s ease-in-out;
  }

  .img-item {
    width: 100%;
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.6s ease;
  }

  .img-item.visible {
    opacity: 1;
    transform: scale(1);
  }


  /* Scroll top */
  #scrollTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    z-index: 999;
  }

  #scrollTopBtn.show {
    opacity: 1;
    pointer-events: auto;
  }

  .btn-scroll-top i{
    font-size: 20px;

  }

  /* Scroll nav */
  #about,
  #service,
  #contact{
    scroll-margin-top: 145px;
  }

  #portfolio{
    scroll-margin-top: 160px;
  }

  .btn-scroll-top {
    background-color: #428fdb;
    color: #fff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease-in-out;
  }

   /* Preloader styles */
   #preloader {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: #fffefe;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: all 0.8s ease-in-out;
  }

  #preloader.fade-out {
    opacity: 0;
    transform: scale(1.2);
    pointer-events: none;
  }

  /* Orbiting loader */
  .orbit-loader {
    position: relative;
    width: 80px;
    height: 80px;
  }

  .orbit-loader span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    background: #00c6ff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: orbit 1.2s linear infinite;
  }

  .orbit-loader span:nth-child(2) {
    background: #0072ff;
    animation-delay: -0.4s;
  }

  .orbit-loader span:nth-child(3) {
    background: #0050ff;
    animation-delay: -0.8s;
  }

  @keyframes orbit {
    0% {
      transform: translate(-50%, -50%) rotate(0deg) translateX(30px) rotate(0deg);
    }
    100% {
      transform: translate(-50%, -50%) rotate(360deg) translateX(30px) rotate(-360deg);
    }
  }

  /* Main content transition */
  .content-wrapper {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
  }

  .content-wrapper.reveal {
    opacity: 1;
    transform: translateY(0);
  }



  /* Service Fabrication */
  .service-detail{
    background-color: #428fdb;
    padding: 20px 0;
    color: #fff;
    font-family: poppins;
  }

  .navs{
    background-color: #54a2f0;
    color: #fff;
    font-family: poppins;
    font-weight: 500;
    padding: 10px 0;
  }

  .nav a{
    color: #ffffff98;
    text-decoration: none;
    font-family: poppins;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 5px;
  }

  .nav p{
    margin-top: 10px;
  }

  .navs-active{
    color: #fff !important;
  }

  .back-home:hover{
    color: #fff !important;
  }

  .menu-content{
    background-color: #fff;
    padding: 20px;
    border: 1px solid #b1b1b16c;
    height: 100%;
  }

  .menu-service-item{
    padding: 10px 20px;
    margin-bottom: 20px;
    font-family: poppins;
    font-weight: 500;
    color: #000;
    list-style: none;
    border-left: 3px solid #428edb86;
  }

  .menu-service-item:hover{
    border-left: 3px solid #428edb;
    transition: 0.3s ease;
    cursor: pointer;
  }

  .menu-content-active{
    padding: 10px 20px;
    margin-bottom: 20px;
    font-family: poppins;
    font-weight: 500;
    color: #000;
    list-style: none;
    border-left: 3px solid #428edb !important;
  }

  .text-content{
    height: 100%;
  }

  .text-content img{
    width: 100%;
    height: 500px;
    object-fit: cover;
  }

  .cta-content{
    background-color: #e6e5e5;
    padding: 50px;
    border-radius: 20px;
    box-shadow: inset 5px 5px 15px rgba(0,0,0,0.2),
              inset -5px -5px 15px rgba(255,255,255,0.5);
  }

  .cta-btn{
    background-color: #6aa4df;
    color: #fff;
    font-family: poppins;
    font-weight: 500;
    padding: 13px 45px;
    border-radius: 30px;
    text-decoration: none;
  }

  .cta-btn:hover{
    background-color: #ffffff;
    color: #6aa4df;
    text-decoration: none;
    transition: 0.5s ease;
  }

  /* Alert */
  .spinner-border-sm {
    width: 1rem;
    height: 1rem;
  }
  #alert-container {
    position: fixed;
    top: 80px; /* sesuaikan dengan tinggi navbar-mu */
    left: 0;
    right: 0;
    z-index: 1055;
    display: flex;
    justify-content: center;
    pointer-events: none;
    padding: 0 1rem;
  }
  
  .alert-message {
    width: 100%;
    max-width: 500px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    pointer-events: all;
  }
  
  .alert-success {
    background-color: #d1e7dd;
    color: #0f5132;
    border: 1px solid #badbcc;
  }
  
  .alert-danger {
    background-color: #f8d7da;
    color: #842029;
    border: 1px solid #f5c2c7;
  }
  
    










  

/* Breakpoint */
@media (min-width: 992px) {
    .header a,span,i{
        font-size: 15px;
    }

    .card{
        margin: 0;
        transition: 0.5s ease;
    }

    .service-card{
        margin: 0;
        transition: 0.5s ease;
    }

    .topbar a,span,i{
        font-size: 16px;
    }

    header nav .navbar-brand{
        font-size: 27px;
    }

    .carousel-item img{
      height: 800px;
    }

    .custom-caption {
      top: auto;
      bottom: 20px;
      left: 10px;
      right: 10px;
      transform: none;
      text-align: center;
      width: auto;
      font-size: 14px;
      background-color: rgba(0, 0, 0, 0.5);
      padding: 10px;
      border-radius: 8px;
    }  

    #about,
    #service,
    #contact{
      scroll-margin-top: 161px;
    }
  
    #portfolio{
      scroll-margin-top: 180px;
    }
}


@media (max-width: 768px) {
  .carousel-caption {
      left: 10%;
      right: 10%;
      width: auto;
      font-size: 14px;
      text-align: center;
      transform: translateY(-40%);
  }
}

@media (max-width: 357px) {
  .topbar{
    padding: 5px 40px;
  }
  .topbar a,span,i{
      font-size: 13px !important;
  }

  .navbar-brand{
      font-size: 15px !important;
  }
}

@media (max-width: 361px) {
  .topbar{
    padding: 5px 40px;
  }
  .topbar a,span,i{
      font-size: 13px !important;
  }

  .navbar-brand{
      font-size: 15px !important;
  }
}

@media (min-width: 367px) and (max-width: 397px) {
  .topbar {
    padding: 5px 60px;
  }
}


@media (max-width: 399px) {
  .topbar{
    padding: 5px 65px;
  }
}


@media (max-width: 400px) {
  .topbar{
    padding: 5px 70px;
  }
}


@media (max-width: 343px) {
  .topbar{
    padding: 5px 30px;
  }
  .topbar a,span,i{
      font-size: 13px !important;
  }

  .navbar-brand{
      font-size: 15px !important;
  }
}