/********** Template CSS **********/
:root {
    --primary: #0C8C8C;   /* Biru Hijau (Teal) khas logo LV */
    --secondary: #EAB308; /* Kuning Emas (Biar senada dengan logo partner PT 1) */
    --tertiary: #6B7280;  /* Abu-abu teks yang lebih modern/soft */
    --light: #E8F6F5;     /* Biru Hijau sangat muda (menggantikan biru langit bawaan) */
    --dark: #0B1121;      /* Navy/Biru Dongker gelap yang sudah kita pakai di paket */
}

/* Timpa warna dasar Bootstrap agar 100% jadi Biru Hijau Lokavira */
.text-primary { color: var(--primary) !important; }
.bg-primary { background-color: var(--primary) !important; }
.btn-primary { 
    background-color: var(--primary); 
    border-color: var(--primary); 
    color: #ffffff;
}
.btn-primary:hover {
    background-color: #096b6b; /* Warna lebih gelap saat tombol disentuh */
    border-color: #096b6b;
}
.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}
.btn-outline-primary:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}

h1,
.h1,
h2,
.h2,
.fw-bold {
    font-weight: 700 !important;
}

h3,
.h3,
h4,
.h4,
.fw-medium {
    font-weight: 600 !important;
}

h5,
.h5,
h6,
.h6,
.fw-semi-bold {
    font-weight: 500 !important;
}


/*** Spinner ***/
#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;
}


/*** Button ***/
.btn {
    transition: .5s;
    font-weight: 500;
}

.btn-primary,
.btn-outline-primary:hover {
    color: var(--light);
}

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

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

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

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}


/*** Navbar ***/
.fixed-top {
    transition: .5s;
}

.top-bar {
    height: 45px;
    border-bottom: 1px solid rgba(53, 94, 252, .07);
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

.navbar .navbar-nav .nav-link {
    padding: 25px 15px;
    color: var(--tertiary);
    font-weight: 500;
    outline: none;
}

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

@media (max-width: 991.98px) {
    .navbar .navbar-nav {
        margin-top: 10px;
        border-top: 1px solid rgba(0, 0, 0, .07);
        background: #FFFFFF;
    }

    .navbar .navbar-nav .nav-link {
        padding: 10px 0;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        visibility: hidden;
        top: 100%;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
        transition: .5s;
        opacity: 0;
    }

    .navbar .nav-item:hover .dropdown-menu {
        transform: rotateX(0deg);
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Header ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: start;
    z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
    width: 3rem;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    background-color: var(--primary);
    border: 10px solid var(--primary);
}

.carousel-control-prev-icon {
    border-radius: 0 3rem 3rem 0;
}

.carousel-control-next-icon {
    border-radius: 3rem 0 0 3rem;
}

@media (max-width: 768px) {
    #header-carousel .carousel-item {
        position: relative;
        min-height: 450px;
    }
    
    #header-carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.page-header {
    padding-top: 12rem;
    padding-bottom: 6rem;
    background: url(../img/header1.png) top left no-repeat;
    background-size: cover;
}

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
    font-weight: 500;
}

.page-header .breadcrumb-item+.breadcrumb-item::before {
    color: var(--tertiary);
}


/*** Service ***/
.service .nav .nav-link {
    transition: .5s;
}

.service .nav .nav-link.active {
    border-color: var(--primary) !important;
    background: var(--primary);
}

.service .nav .nav-link.active h5 {
    color: #FFFFFF !important;
}

.service .nav .nav-link.active h5 i {
    color: #FFFFFF !important;
}


/*** Project ***/
.project-item,
.project-item .project-img {
    position: relative;
}

.project-item .project-img a {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, .5);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    opacity: 0;
    transition: .5s;
}

.project-item:hover .project-img a {
    opacity: 1;
}

.project-item .project-title {
    position: absolute;
    top: 3rem;
    right: 0;
    bottom: 0;
    left: 3rem;
    border: 1px solid var(--light);
    border-radius: 8px;
    display: flex;
    align-items: flex-end;
    padding: 18px;
    z-index: -1;
    transition: .5s;
}

.project-item:hover .project-title {
    background: var(--primary);
    border-color: var(--primary);
}

.project-item .project-title h4 {
    transition: .5s;
}

.project-item:hover .project-title h4 {
    color: #FFFFFF;
}

.project-carousel .owl-nav {
    margin-top: 25px;
    display: flex;
    justify-content: center;
}

.project-carousel .owl-nav .owl-prev,
.project-carousel .owl-nav .owl-next {
    margin: 0 12px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: var(--light);
    border-radius: 45px;
    font-size: 22px;
    transition: .5s;
}

.project-carousel .owl-nav .owl-prev:hover,
.project-carousel .owl-nav .owl-next:hover {
    background: var(--primary);
    color: var(--light);
}


/*** Footer ***/
.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: var(--light);
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--primary);
    letter-spacing: 1px;
    box-shadow: none;
}

.copyright {
    color: var(--light);
    background: #000B1C;
}

.copyright a {
    color: var(--light);
}

.copyright a:hover {
    color: var(--primary);
}

/* =======================================
   BACK TO TOP BUTTON
======================================= */
.back-to-top {
    position: fixed;
    /* display: none; -> biarkan bawaan template yang ngatur hide/show saat di-scroll */
    right: 30px;
    bottom: 110px; /* KUNCI: Dinaikkan lebih tinggi lagi biar aman dari tombol WA */
    z-index: 99;
    width: 45px !important;  /* Ukuran dikunci biar bulat rapi */
    height: 45px !important; 
    border-radius: 50% !important; /* Paksa jadi bulat sempurna */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2); /* Kasih efek bayangan biar elegan */
    transition: all 0.3s ease;
}

.back-to-top:hover {
    transform: translateY(-5px); /* Efek terangkat saat disentuh kursor */
}

/* =======================================
   FLOATING WHATSAPP (HOVER EXPAND)
======================================= */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    width: 55px;            /* Ukuran awal bulat */
    height: 55px;
    background-color: #25D366;
    color: white;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: flex-start; 
    overflow: hidden;       
    transition: width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), transform 0.3s ease, box-shadow 0.3s ease; 
}

/* Hover Effect PC */
.whatsapp-float:hover {
    width: 175px;           /* Kotak melebar */
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    color: white;
}

.whatsapp-container {
    display: flex;
    align-items: center;
    width: 175px;
    padding-left: 14px;     /* Menjaga ikon pas di tengah saat masih bulat */
}

.whatsapp-icon {
    font-size: 28px;        
    line-height: 1;
    margin-right: 10px;     /* Jarak ikon dengan teks */
}

.whatsapp-float span {
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;             
    transform: translateX(15px); 
    transition: all 0.3s ease;
}

.whatsapp-float:hover span {
    opacity: 1;             
    transform: translateX(0); 
    transition-delay: 0.1s; 
}

/* =======================================
   MOBILE RESPONSIVE FIX (HP)
======================================= */
@media (max-width: 768px) {
    /* Perbaikan Posisi Back to Top di HP */
    .back-to-top {
        bottom: 95px; 
        right: 25px;
    }

    /* Perbaikan WhatsApp Bulat Sempurna di HP */
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 25px;
        right: 25px;
        justify-content: center; /* KUNCI: Paksa ke tengah */
        padding: 0;
    }
    
    .whatsapp-float:hover {
        width: 55px;  /* Matikan efek melar saat disentuh jari di HP */
        transform: none;
    }

    .whatsapp-container {
        width: auto;
        padding: 0;
        justify-content: center;
    }

    .whatsapp-icon {
        margin-right: 0; /* KUNCI: Hilangkan margin agar tidak miring ke kiri */
        font-size: 32px; /* Ikon dibesarkan sedikit di HP */
    }

    .whatsapp-float span {
        display: none; /* Buang teks sepenuhnya di HP */
    }
}

/* ===== MOBILE RESPONSIVE FIX (UPDATED) ===== */

@media (max-width: 768px) {

    /* ===== CAROUSEL ===== */

    .carousel-caption {
        text-align: center !important;
        padding: 90px 20px 40px;   /* atas lebih besar biar gak mepet header */
    }

    .carousel-caption h1 {
        font-size: 28px !important;
        line-height: 1.3;
    }

    .carousel-caption p {
        font-size: 14px !important;
    }

    /* gambar mockup tidak kepotong */
    #header-carousel .carousel-caption img {
        position: relative !important;
        max-width: 85% !important;
        width: 85% !important;
        margin: 25px auto 0 !important;
        display: block;
        height: auto !important;
    }

    /* row carousel jadi vertikal */
    #header-carousel .row {
        flex-direction: column;
        text-align: center;
    }

    /* text kiri jadi tengah */
    #header-carousel .text-start {
        text-align: center !important;
    }

    /* tombol panah jangan nutup teks */
    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        top: auto;
        bottom: 15px;
        transform: none;
    }


    /* ===== ABOUT ===== */

    .container-xxl .row.g-4.align-items-end img {
        margin-bottom: 20px;
    }


    /* ===== SECTION SPACING ===== */

    .container-xxl {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }


    /* ===== SERVICE ===== */

    .service .nav .nav-link {
        padding: 10px 15px !important;
        margin-bottom: 10px;
    }

    .service img {
        min-height: 250px;
    }


    /* ===== PROJECT ===== */

    .project-item .project-title {
        left: 1rem;
        top: 1rem;
        padding: 12px;
    }


    /* ===== CONTACT ===== */

    .form-floating label {
        font-size: 14px;
    }


    /* ===== BUTTON ===== */

    .btn {
        padding: 12px 20px !important;
        font-size: 14px;
    }
}

/* ===== FIX CAROUSEL MOBILE (TAMBAHAN) ===== */
@media (max-width: 768px){

    /* background jangan absolute supaya tidak kepotong */
    #header-carousel .carousel-item img.w-100{
        position: relative !important;
        height: auto !important;
        min-height: 70vh;      /* tinggi hero tetap enak */
        object-fit: cover;
        object-position: center;
    }

    /* caption jangan terlalu naik */
    .carousel-caption{
        padding: 60px 20px 40px !important;
        align-items: flex-start !important;
    }

    /* biar tidak mentok atas */
    #header-carousel .container{
        margin-top: 20px;
    }

    /* mockup jangan kegedean */
    #header-carousel .carousel-caption img{
        max-width: 80% !important;
    }
}

/* Navbar jadi putih saat menu mobile dibuka */
.navbar.nav-open {
    background: #fff !important;
    box-shadow: 0 5px 20px rgba(0,0,0,.08);
}

/* Biar dropdown mobile juga putih full */
@media (max-width: 991.98px){
    .navbar-collapse{
        background:#fff;
        padding:15px;
        border-radius:10px;
        margin-top:10px;
    }
}