@import url('https://fonts.googleapis.com/css2?family=Albert+Sans:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Tilt+Warp&family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --primary-color: #1e3d8c;
    --secondary-color: #00a099;
}
#navbar-logo {
    transition: all 0.3s ease;
}

.bg-products {
    background: url('../img/bg/products.jpg') center center no-repeat;
    background-size: cover;
    background-attachment: fixed;
}

/* Slider */
.carousel-item {
    opacity: 0;
    transition: opacity 1s ease-in-out !important;
    transform: none !important;
    backface-visibility: hidden;
}

.carousel-item.active {
    opacity: 1;
}

.carousel-item img {
    transform: scale(1);
    transition: transform 6s ease;
    will-change: transform;
}

.carousel-item.active img {
    transform: scale(1.1);
}

.carousel-caption {
    opacity: 0;
    transform: translate3d(0, 40px, 0);
    transition: all 1s ease;
    will-change: opacity, transform;
}

.carousel-item.active .carousel-caption {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.carousel-caption * {
    transition: all 0.8s ease;
}

.carousel-caption h4 { transition-delay: 0.3s; }
.carousel-caption h1 { transition-delay: 0.6s;font-weight: 900; }
.carousel-caption p  { transition-delay: 0.9s; }
.carousel-caption a  { transition-delay: 1.2s; }

.carousel-item.active:first-child img {
    animation: zoomFirst 6s ease forwards;
}

@keyframes zoomFirst {
    from { transform: scale(1); }
    to   { transform: scale(1.1); }
}

/* about */
h1 {
    font-weight: 900;
}

.section-title2 {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    color: var(--bs-secondary);
}

.section-title2::before {
    content: "";
    width: 50px;
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    margin-right: -50px;
    border: 1px solid var(--bs-secondary) !important;
}

.section-title2::after {
    content: "";
    width: 50px;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    margin-left: -50px;
    border: 1px solid var(--bs-secondary) !important;
}

/* kcard */
.k-card{
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 6px 10px rgba(0,0,0,.08), 0 0 6px rgba(0,0,0,.05);
    transition: .3s transform cubic-bezier(.155,1.105,.295,1.12),.3s box-shadow,.3s -webkit-transform cubic-bezier(.155,1.105,.295,1.12);
    padding: 14px 80px 18px 36px;
    cursor: pointer;
    background-repeat: no-repeat;
    background-position: right;
    background-size: 80px;
}

.k-card:hover{
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,.12), 0 4px 8px rgba(0,0,0,.06);
}

.k-card h3{
    font-weight: 600;
}

.k-card img{
    position: absolute;
    top: 20px;
    right: 15px;
    max-height: 120px;
}

.k-card-1{
    background-image: url(../img/homepage/service-01.jpg);
}

.k-card-2{
    background-image: url(../img/homepage/service-02.jpg);
}

.k-card-3{
    background-image: url(../img/homepage/service-04.jpg);
}
.k-card-4{
    background-image: url(../img/homepage/service-03.jpg);
}
.k-card-5{
    background-image: url(../img/homepage/service-05.jpg);
}
.k-card-6{
    background-image: url(../img/homepage/service-06.jpg);
}

.service h4 {
    line-height: 1;
    font-weight: 700;
    color: var(--primary-color);
}

.products-content a {
    width: fit-content;
}

.swiper-slide {
    height: auto;
    display: flex;
}

@media(max-width: 990px){
    .k-card{
        margin: 20px;
    }
} 

.service-content-inner:hover{
    transform: translateY(-10px);
    box-shadow: rgba(0, 0, 0, 0.25) 0px 14px 28px, rgba(0, 0, 0, 0.22) 0px 10px 10px;
}

.service-content h3 {
    font-weight: 700;
    color: var(--primary-color);
}

.service-content-inner:hover h3{
    color: white;
}
.service-content-inner .service-icon {
    color: var(--primary-color);
}
.service-content-inner:hover .service-icon {
    color: white;
}

.k-card2 {
    position: relative;
    width: 300px;
    height: 200px;
    background-color: #f2f2f2;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    perspective: 1000px;
    box-shadow: 0 0 0 5px #ffffff80;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.k-card2 svg {
    width: 48px;
    fill: #333;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.k-card2:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(255, 255, 255, 0.2);
}

.k-card2__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 20px;
    box-sizing: border-box;
    background-color: #f2f2f2;
    transform: rotateX(-90deg);
    transform-origin: bottom;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.k-card2:hover .k-card2__content {
    transform: rotateX(0deg);
}

.k-card2__title {
    margin: 0;
    font-size: 20px;
    color: #333;
    font-weight: 700;
}

.k-card2:hover svg {
    scale: 0;
}

.k-card2__description {
    margin: 10px 0 0;
    font-size: 14px;
    color: #777;
    line-height: 1.4;
}

.k-card2 img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.k-card2 .title-k-card2 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 255, 255, 0.8);
    padding: 5px 10px;
    border-radius: 5px;
}

.k-card2 .title-k-card2 h5 {
    font-weight: 700;
}

/* products card */
.productsitem {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    margin-bottom: 20px;
    width: 100%;
    overflow: hidden; /* pastikan image tidak keluar card */
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.productsimg-inner {
    overflow: hidden;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.productsitem img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.4s ease;
}

.productsitem:hover img {
    transform: scale(1.05);
    filter: brightness(1.05);
}

.productscontent {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    /* justify-content: space-between; */
}

.productscontent .h5 {
    font-weight: 700;
    color: var(--primary-color); 
    margin-bottom: 12px;
    font-size: 1.1rem;
    line-height: 1.3;
    text-decoration: none;
    text-transform: capitalize !important;
}

.productscontent p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0;
}

.productsitem:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.category-card {
    border: 1px solid #0c234e;
    background: var(--bs-primary);
}
.category-item {
    transition: all 0.3s ease;
    color: white;
}
.category-item {
    border-bottom: 1px solid #0c234e;
}
.category-item:hover {
    transform: translateX(5px);
    color: var(--primary-color);
    background-color: #0c234e;
}
.category-item.active {
    transform: translateX(5px);
    color: var(--primary-color);
    background-color: #0c234e;
}
.sticky {
    position: sticky;
    top: 10%;
}
.category-card h5 {
    font-weight: 700;
    color: white;
}
.category-card h5::after {
    content: "";
    width: 80px;
    height: 1px;
    background-color: white;
    display: block;
    margin-top: 20px;
}

/* social media icons */
.fab-icon {
    position: absolute;
    top: 18%;
    right: 24%;
}

.floating {
    position: fixed;
    width: 45px;
    height: 45px;
    color: white;
    border-radius: 50px;
    /* box-shadow: 2px 2px 3px rgba(0, 0, 0, .5); */
    filter: drop-shadow(2px 2px 3px rgba(0, 0, 0, .5));
    z-index: 100;
    transition: ease .3s;
    text-decoration: none;
}

.floating:hover {
    text-decoration: none;
    color: white;
    transform: scale(1.1);
}
.i-wa {
    background-color: #0cc143;
    bottom: 122px;
    right: 30px;
    font-size: 25px;
}