/********** Template CSS **********/
:root {
    --primary: #7c53c9;
    --secondary: #0866ff;
    --light: #EEF9FF;
    --dark: #151723;
    scroll-behavior: smooth;
}


/*** Spinner ***/
.spinner {
    width: 40px;
    height: 40px;
    position: relative;
    transform-style: preserve-3d;
    animation: sk-rotateplane 1.2s infinite ease-in-out;
}

.spinner::before,
.spinner::after {
    content: "";
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
}

.spinner::before {
    background: #7c53c9;
}

.spinner::after {
    background: #0866ff;
    transform: rotateY(180deg);
}

@-webkit-keyframes sk-rotateplane {
    0% {
        -webkit-transform: perspective(120px)
    }
    50% {
        -webkit-transform: perspective(120px) rotateY(180deg)
    }
    100% {
        -webkit-transform: perspective(120px) rotateY(180deg) rotateX(180deg)
    }
}

@keyframes sk-rotateplane {
    0% {
        transform: perspective(120px) rotateX(0deg) rotateY(0deg);
        -webkit-transform: perspective(120px) rotateX(0deg) rotateY(0deg)
    }
    50% {
        transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg);
        -webkit-transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg)
    }
    100% {
        transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);
        -webkit-transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);
    }
}

#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Heading ***/
h1,
h2,
.fw-bold {
    font-weight: 800 !important;
}

h3,
h4,
.fw-semi-bold {
    font-weight: 700 !important;
}

h5,
h6,
.fw-medium {
    font-weight: 600 !important;
}


/*** Button ***/
.btn {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    transition: .5s;
}

.btn-primary,
.btn-secondary {
    color: #FFFFFF;
    box-shadow: inset 0 0 0 50px transparent;
}

.btn-primary:hover {
    box-shadow: inset 0 0 0 0 var(--primary);
}

.btn-secondary:hover {
    box-shadow: inset 0 0 0 0 var(--secondary);
}

.btn-square {
    width: 36px;
    height: 36px;
}

.btn-sm-square {
    width: 30px;
    height: 30px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
}


/*** BASE ***/
.navbar-dark {
    width: 100%;
    z-index: 999;
    transition:
        background 0.6s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.6s cubic-bezier(0.4, 0, 0.2, 1),
        backdrop-filter 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== BRAND ===== */
.navbar-dark .navbar-brand h1 {
    margin: 0;
    color: #fff;
    transition: color 0.4s ease;
}

/* ===== NAV LINK ===== */
.navbar-dark .navbar-nav .nav-link {
    font-family: 'Nunito', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin-left: 25px;
    padding: 20px 0;
    position: relative;
    transition: color 0.4s ease;
}

/* ===== TOGGLER ===== */
.navbar-dark .navbar-toggler {
    color: var(--primary);
    border-color: var(--primary);
}

/* ===============================
   MOBILE (≤ 991px)
   =============================== */
@media (max-width: 991.98px) {

    .navbar-dark {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        background: #ffffff;
        box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    }

    .navbar-dark .navbar-brand h1 {
        color: var(--primary);
    }

    .navbar-dark .navbar-nav .nav-link {
        margin-left: 0;
        padding: 12px 0;
        color: var(--dark);
    }
    
    .navbar-dark .navbar-nav .nav-link.active,
    .navbar-dark .navbar-nav .nav-link:hover {
        color: var(--primary);
    }
    
    /* MATIKAN GARIS DI MOBILE */
    .navbar-dark .navbar-nav .nav-link::after {
        display: none;
    }
}

/* ===============================
   DESKTOP (≥ 992px)
   =============================== */
@media (min-width: 992px) {

    .navbar-dark {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 999;

        background: rgba(255, 255, 255, 0);
        backdrop-filter: blur(0);
        box-shadow: none;

        transition:
            background 0.6s cubic-bezier(0.4, 0, 0.2, 1),
            backdrop-filter 0.6s cubic-bezier(0.4, 0, 0.2, 1),
            box-shadow 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }


    .navbar-dark .navbar-nav .nav-link.active {
        color: var(--primary);
    }
    
    .sticky-top.navbar-dark {
        background: rgba(255, 255, 255, 0.92);
        backdrop-filter: blur(8px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    }

    .sticky-top.navbar-dark .navbar-brand h1 {
        color: var(--primary);
    }

    .sticky-top.navbar-dark .navbar-nav .nav-link {
        color: var(--dark);
    }

    /* SAAT STICKY & AKTIF */
    .sticky-top.navbar-dark .navbar-nav .nav-link.active {
        color: var(--primary);
    }
    
    /* GARIS FULL WIDTH */
    .navbar-dark::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        width: 100%;
        height: 2px;
        background: #7c53c9;
        transition: background 0.4s ease;
    }

    /* SAAT STICKY */
    .sticky-top.navbar-dark::after {
        background: var(--primary);
    }
    
    
}



/*** Carousel ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(9, 30, 62, .7);
    z-index: 1;
}

@media (max-width: 576px) {
    .carousel-caption h5 {
        font-size: 14px;
        font-weight: 500 !important;
    }

    .carousel-caption h1 {
        font-size: 30px;
        font-weight: 600 !important;
    }
}

.carousel-control-prev,
.carousel-control-next {
    width: 10%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
}


/*** Section Title ***/
.section-title::before {
    position: absolute;
    content: "";
    width: 150px;
    height: 5px;
    left: 0;
    bottom: 0;
    background: var(--primary);
    border-radius: 2px;
}

.section-title.text-center::before {
    left: 50%;
    margin-left: -75px;
}

.section-title.section-title-sm::before {
    width: 90px;
    height: 3px;
}

.section-title::after {
    position: absolute;
    content: "";
    width: 6px;
    height: 5px;
    bottom: 0px;
    background: #FFFFFF;
    -webkit-animation: section-title-run 5s infinite linear;
    animation: section-title-run 5s infinite linear;
}

.section-title.section-title-sm::after {
    width: 4px;
    height: 3px;
}

.section-title.text-center::after {
    -webkit-animation: section-title-run-center 5s infinite linear;
    animation: section-title-run-center 5s infinite linear;
}

.section-title.section-title-sm::after {
    -webkit-animation: section-title-run-sm 5s infinite linear;
    animation: section-title-run-sm 5s infinite linear;
}

@-webkit-keyframes section-title-run {
    0% {left: 0; } 50% { left : 145px; } 100% { left: 0; }
}

@-webkit-keyframes section-title-run-center {
    0% { left: 50%; margin-left: -75px; } 50% { left : 50%; margin-left: 45px; } 100% { left: 50%; margin-left: -75px; }
}

@-webkit-keyframes section-title-run-sm {
    0% {left: 0; } 50% { left : 85px; } 100% { left: 0; }
}


/*** Service ***/
.service-item {
    position: relative;
    height: 300px;
    padding: 0 30px;
    transition: .5s;
}

.service-item .service-icon {
    margin-bottom: 30px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    border-radius: 2px;
    transform: rotate(-45deg);
}

.service-item .service-icon i {
    transform: rotate(45deg);
}

.service-item a.btn {
    position: absolute;
    width: 60px;
    bottom: -48px;
    left: 50%;
    margin-left: -30px;
    opacity: 0;
}

.service-item:hover a.btn {
    bottom: -24px;
    opacity: 1;
}


/*** Testimonial ***/
.testimonial-carousel .owl-dots {
    margin-top: 15px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    background: #DDDDDD;
    border-radius: 2px;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    width: 30px;
    background: var(--primary);
}

.testimonial-carousel .owl-item.center {
    position: relative;
    z-index: 1;
}

.testimonial-carousel .owl-item .testimonial-item {
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-item {
    background: #FFFFFF !important;
    box-shadow: 0 0 30px #DDDDDD;
}

.testimonial-carousel .owl-stage {
    display: flex;
}

.testimonial-carousel .owl-item {
    display: flex;
}


.testimonial-carousel .testimonial-item {
    width: 100%;
}

.testimonial-item {
    display: flex;
    flex-direction: column;
}

.testimonial-item > div:last-child {
    flex-grow: 1;
}

.testimonial-header {
    height: 140px;                 /* ⬅️ GARIS DI PIXEL YANG SAMA */
    display: flex;
    align-items: flex-start;       /* teks naik ke atas */
    gap: 15px;
}

.testimonial-header img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px !important;
}

.testimonial-header h5 {
    margin-bottom: 4px;
    line-height: 1.3;
}

.testimonial-header small {
    line-height: 1.3;
    display: block;
}

.testimonial-header h5 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/*** Team ***/
.team-item {
    transition: .5s;
}

.team-social {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .5s;
}

.team-social a.btn {
    position: relative;
    margin: 0 3px;
    margin-top: 100px;
    opacity: 0;
}

.team-item:hover {
    box-shadow: 0 0 30px #DDDDDD;
}

.team-item:hover .team-social {
    background: rgba(9, 30, 62, .7);
}

.team-item:hover .team-social a.btn:first-child {
    opacity: 1;
    margin-top: 0;
    transition: .3s 0s;
}

.team-item:hover .team-social a.btn:nth-child(2) {
    opacity: 1;
    margin-top: 0;
    transition: .3s .05s;
}

.team-item:hover .team-social a.btn:nth-child(3) {
    opacity: 1;
    margin-top: 0;
    transition: .3s .1s;
}

.team-item:hover .team-social a.btn:nth-child(4) {
    opacity: 1;
    margin-top: 0;
    transition: .3s .15s;
}

.team-item .team-img img {
    transition: .5s;
}

.team-item:hover .team-img img {
    transform: scale(1.15);
}


/*** Miscellaneous ***/
@media (min-width: 991.98px) {
    .facts {
        position: relative;
        margin-top: -75px;
        z-index: 1;
    }
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}

.bg-header {
    background: linear-gradient(rgba(9, 30, 62, .7), rgba(9, 30, 62, .7)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.link-animated a {
    transition: .5s;
}

.link-animated a:hover {
    padding-left: 10px;
}

@media (min-width: 767.98px) {
    .footer-about {
        margin-bottom: -75px;
    }
}

/* Modal backdrop lebih halus */
.modal-backdrop {
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Modal content default (sebelum tampil) */
#searchModal .modal-dialog {
    transform: scale(0.96);
    opacity: 0;
    transition:
        transform 0.45s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Saat modal tampil */
#searchModal.show .modal-dialog {
    transform: scale(1);
    opacity: 1;
}

#searchModal .modal-content {
    backdrop-filter: blur(8px);
    border-radius: 12px;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(9, 30, 62, .7);
    z-index: 1;
}

.modal-body {
    position: relative;
    z-index: 2;
}

@media (max-width: 991.98px) {
    body {
        padding-top: 65px;
    }
    
    #home {
        scroll-margin-top: 70px;
    }
}

/* default (mobile) */
.img-wrap {
    width: 100%;
}

.about-img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* desktop only */
@media (min-width: 992px) {
    .img-wrap {
        height: 100%;
    }

    .about-img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
    }
}

.list-visi {
    counter-reset: item;
    list-style: none;
    padding-left: 0;
    font-size: 17px;
    text-align: justify;
}

.list-visi li {
    counter-increment: item;
    display: flex;
    align-items: flex-start;
}

.list-visi li::before {
    content: counter(item) ".";
    font-weight: 400;        /* ⬅️ PAKSA normal */
    min-width: 18px;         /* jarak angka–teks rapet */
    display: inline-block;
    flex-shrink: 0;
}

.vendor-carousel .item {
    height: 100px;          /* tinggi mutlak */
    display: flex;
    align-items: center;
    justify-content: center;
}

.vendor-carousel .item img {
    max-height: 100px;      /* ⬅️ bukan height */
    max-width: 100%;
    width: auto;
    object-fit: contain;
    display: block;
}



.vendor-carousel img {
    filter: grayscale(100%);
    opacity: 0.85;
    transition: 0.3s ease;
}
.vendor-carousel img:hover {
    filter: grayscale(0);
    opacity: 1;
}


