/********** Template CSS **********/
:root {
    --primary: #f09d0e;
    --secondary: #FDBE33;
    --light: #F4F6F8;
    --dark: #141313;
}

.pt-6 {
    padding-top: 90px;
}

.pb-6 {
    padding-bottom: 90px;
}

.py-6 {
    padding-top: 90px;
    padding-bottom: 90px;
}

.btn {
    position: relative;
    font-weight: 600;
    text-transform: uppercase;
    transition: .5s;
}

.btn::after {
    position: absolute;
    content: "";
    width: 0;
    height: 5px;
    bottom: -1px;
    left: 50%;
    background: var(--primary);
    transition: .5s;
}

.btn.btn-primary::after {
    background: var(--dark);
}

.btn:hover::after,
.btn.active::after {
    width: 50%;
    left: 25%;
}

.btn-primary {
    color: #FFFFFF;
}

.btn-square {
    width: 36px;
    height: 36px;
}

.btn-sm-square {
    width: 28px;
    height: 28px;
}

.btn-lg-square {
    width: 46px;
    height: 46px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
}

.back-to-top {
    position: fixed;
    display: none;
    left: 50%;
    bottom: 0;
    margin-left: -22px;
    border-radius: 0;
    z-index: 99;
}

.bg-dark-radial {
    background-image: -webkit-repeating-radial-gradient(center center, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3) 1px, transparent 1px, transparent 100%);
    background-image: -moz-repeating-radial-gradient(center center, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3) 1px, transparent 1px, transparent 100%);
    background-image: -ms-repeating-radial-gradient(center center, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3) 1px, transparent 1px, transparent 100%);
    background-image: -o-repeating-radial-gradient(center center, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3) 1px, transparent 1px, transparent 100%);
    background-image: repeating-radial-gradient(center center, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3) 1px, transparent 1px, transparent 100%);
    background-size: 15px 15px;
}

.bg-light-radial {
    background-image: -webkit-repeating-radial-gradient(center center, rgba(256, 256, 256, 0.2), rgba(256, 256, 256, 0.2) 1px, transparent 1px, transparent 100%);
    background-image: -moz-repeating-radial-gradient(center center, rgba(256, 256, 256, 0.2), rgba(256, 256, 256, 0.2) 1px, transparent 1px, transparent 100%);
    background-image: -ms-repeating-radial-gradient(center center, rgba(256, 256, 256, 0.2), rgba(256, 256, 256, 0.2) 1px, transparent 1px, transparent 100%);
    background-image: -o-repeating-radial-gradient(center center, rgba(256, 256, 256, 0.2), rgba(256, 256, 256, 0.2) 1px, transparent 1px, transparent 100%);
    background-image: repeating-radial-gradient(center center, rgba(256, 256, 256, 0.2), rgba(256, 256, 256, 0.2) 1px, transparent 1px, transparent 100%);
    background-size: 15px 15px;
}

.navbar-dark .navbar-nav .nav-link {
    position: relative;
    padding: 35px 15px;
    font-size: 18px;
    text-transform: uppercase;
    color: var(--light);
    outline: none;
    transition: .5s;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--primary);
}

@media (max-width: 991.98px) {
    .navbar-dark .navbar-nav .nav-link  {
        margin-left: 0;
        padding: 10px 0;
    }
}

.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(4, 15, 40, .7);
    z-index: 1;
}

@media (max-width: 576px) {
    .carousel-caption h4 {
        font-size: 18px;
        font-weight: 500 !important;
    }

    .carousel-caption h1 {
        font-size: 30px;
        font-weight: 600 !important;
    }
}

/* Kurangi skala carousel di monitor besar (Full HD ke atas) */
@media (min-width: 1600px) {
    /* Kurangi tinggi gambar agar tidak terlalu memenuhi layar */
    #header-carousel .carousel-item img {
        height: 80vh;
        object-fit: cover;
    }

    /* Perkecil area konten tengah */
    #header-carousel .carousel-caption .p-3 {
        max-width: 700px; /* semula 900px */
        transform: scale(0.9);
    }

    /* Sesuaikan ukuran teks dan tombol agar lebih proporsional */
    #header-carousel h1 {
        font-size: 2.2rem;
    }

    #header-carousel i {
        font-size: 3rem; /* ikon juga dikecilkan */
    }

    #header-carousel .btn {
        padding: 0.6rem 1.8rem;
        font-size: 0.95rem;
    }
}

.page-header {
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(4, 15, 40, .7), rgba(4, 15, 40, .7)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.service-item .service-icon {
    margin-top: -50px;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 100px;
}

.service-item .service-icon i {
    transition: .2s;
}

.service-item:hover .service-icon i {
    font-size: 60px;
}

.portfolio-item {
    margin-bottom: 60px;
}

.portfolio-title {
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 120px;
    padding: 0 30px;
    right: 30px;
    left: 30px;
    bottom: -60px;
    background: #FFFFFF;
    z-index: 3;
}

.portfolio-btn {
    position: absolute;
    display: inline-block;
    top: 50%;
    left: 50%;
    margin-top: -60px;
    margin-left: -60px;
    font-size: 120px;
    line-height: 0;
    transition: .1s;
    transition-delay: .3s;
    z-index: 2;
    opacity: 0;
}

.portfolio-item:hover .portfolio-btn {
    opacity: 1;
}

.portfolio-box::before,
.portfolio-box::after {
    position: absolute;
    content: "";
    width: 0;
    height: 100%;
    top: 0;
    transition: .5s;
    z-index: 1;
    background: rgba(4, 15, 40, .7);
}

.portfolio-box::before {
    left: 0;
}

.portfolio-box::after {
    right: 0;
}

.portfolio-item:hover .portfolio-box::before {
    left: 0;
    width: 50%;
}

.portfolio-item:hover .portfolio-box::after {
    right: 0;
    width: 50%;
}

@media (min-width: 992px) {
    .testimonial,
    .contact-form {
        margin-left: -90px;
    }
}

@media (min-width: 992px) {
    .footer::after {
        position: absolute;
        content: "";
        width: 1px;
        height: 100%;
        top: 0;
        left: 50%;
        background: var(--primary)
    }
}

/* RESPONSIVE FIX UNTUK MOBILE VIEW */
@media (max-width: 768px) {
    .portfolio-title {
        height: auto;
        bottom: -40px;
        padding: 10px 15px;
    }

    .portfolio-title p {
        font-size: 1rem; /* ukuran sedang untuk tablet */
        line-height: 1.3;
        word-wrap: break-word;
    }
}

@media (max-width: 576px) {
    .portfolio-title {
        height: auto;
        bottom: -30px;
        padding: 8px 12px;
    }

    .portfolio-title p {
        font-size: 0.9rem !important; /* kecilkan agar tetap muat di kotak */
        line-height: 1.2;
        word-wrap: break-word;
    }

    .portfolio-title span {
        font-size: 0.8rem;
    }
}

.footer-shape::before {
    position: absolute;
    content: "";
    width: 80px;
    height: 100%;
    top: 0;
    left: -40px;
    background: var(--primary);
    transform: skew(40deg);
}

.whatsapp-float {
    position: fixed;
    width: 70px;      /* sebelumnya 60px */
    height: 70px;     /* sebelumnya 60px */
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 36px;  /* sebelumnya 32px */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: pulse 1.8s infinite;
}

    .whatsapp-float:hover {
        background-color: #20b954;
        transform: scale(1.1) rotate(8deg);
        box-shadow: 0 6px 18px rgba(37, 211, 102, 0.5);
    }

    .whatsapp-float i {
        line-height: 1;
    }

    @keyframes pulse {
        0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
        70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
        100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
    }

    /* Responsif */
    @media (max-width: 768px) {
        .whatsapp-float {
            width: 60px;
            height: 60px;
            font-size: 30px;
            bottom: 15px;
            right: 15px;
        }
    }

.service-item {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.service-item:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.portfolio-box img {
  transition: transform 0.5s ease;
}
.portfolio-box:hover img {
  transform: scale(1.1);
}

.portfolio-btn {
  opacity: 0;
  transition: opacity 0.3s ease;
}
.portfolio-box:hover .portfolio-btn {
  opacity: 1;
}

.feature-box {
    transition: all 0.3s ease;
}
.feature-box:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}
.feature-box i {
    transition: transform 0.3s ease, color 0.3s ease;
}
.feature-box:hover i {
    transform: scale(1.2);
    color: #0d6efd;
}

.counter-card {
    transition: all 0.3s ease;
}

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

.service-description table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.service-description table th,
.service-description table td {
  border: 1px solid #dee2e6;
  padding: 8px 12px;
  text-align: left;
  vertical-align: middle;
}

.service-description table th {
  background-color: #f8f9fa;
  font-weight: 600;
}

.service-description table tr:nth-child(even) {
  background-color: #fdfdfd;
}

.service-description p {
  line-height: 1.8;
  font-size: 1.05rem;
  color: #444;
}

/* Tambahan agar tabel bisa di-scroll di layar kecil */
@media (max-width: 768px) {
  .service-description table {
    display: block;
    overflow-x: auto;
  }
}

