.navbar-scroll {
    background-color: white !important;
    transition: 0.3s;
}

.sticky-top.navbar-dark {
    background: rgba(255, 255, 255, 0.534) !important;
    backdrop-filter: blur(10px);
}


/* background */
.bg-lines {
    background-color: #ffffff;
    opacity: 1;
    background-size: 56px;
    background-image:  repeating-linear-gradient(to right, #f1f1f1, #f1f1f1 0.9000000000000004px, #ffffff 0.9000000000000004px, #ffffff);
}

.bg-img-01 {
    background-image: url('../img/bg/home-01.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.bg-img-01::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 0;
}


@media (min-width: 992px) {
    .sticky-top.navbar-dark {
        height: 130px;
    }
    .navbar-dark {
        height: 120px;
        background: transparent;
    }
}

/* logo */
/* Default: hanya tunjuk logo desktop */
.logo-desktop {
    display: block;
}

.logo-mobile {
    display: none;
}

/* Bila skrin kecil (mobile): tukar ke logo mobile */
@media (max-width: 768px) {
    .logo-desktop {
        display: none;
    }
    
    .logo-mobile {
        display: block;
    }
}

.carousel-item  .display-3 {
    line-height: 55px;
}

@media screen and (max-width: 768px) {
    .carousel-item  .display-3 {
        font-size: 30px;
        font-weight: 600;
        line-height: 30px;
    }
}

@media screen and (max-width: 480px) {
    .carousel-item  .display-3 {
        font-size: 25px;
        font-weight: 600;
        line-height: 25px;
        max-width: 300px;
        margin-bottom: 20px;
    }
}

.service i{
    font-size: 30px;
    color: white;
}
.service-item {
    background-color: white;
    transition: 0.3s;
}
.service-item:hover {
    background-color: var(--dark);
    transition: 0.3s;
}

.bg-paper {
    background-color: #254471;
    opacity: 1;
    background-image:  linear-gradient(#1c3459 2px, transparent 2px), linear-gradient(90deg, #1c3459 2px, transparent 2px), linear-gradient(#1c3459 1px, transparent 1px), linear-gradient(90deg, #1c3459 1px, #254471 1px);
    background-size: 50px 50px, 50px 50px, 10px 10px, 10px 10px;
    background-position: -2px -2px, -2px -2px, -1px -1px, -1px -1px;
}

.client img {
    width: auto;
    transition: all 0.3s ease-in-out;
    border: 1px solid #ddd;
}

@media (max-width: 991.98px) {
    .sticky-top.navbar-dark {
        position: fixed; /* TUKAR dari relative ke fixed */
        top: 0;
        left: 0;
        width: 100%;
        z-index: 999;
        background: rgba(255, 255, 255, 0.534) !important;
        backdrop-filter: blur(10px);
    }
    
    .navbar-expand-lg {
        background:transparent !important;
        backdrop-filter: blur(10px);
        
    }
    
    .navbar-dark .navbar-nav .nav-link,
    .navbar-dark .navbar-nav .nav-link.show,
    .sticky-top.navbar-dark .navbar-nav .nav-link {
        padding: 10px 0;
        color: var(--dark);
    }
    
    .navbar-dark .navbar-brand h1 {
        color: var(--primary);
    }
    
    .navbar-collapse {
        margin-top: 60px; /* atau ikut tinggi navbar anda */
    }
}

.navbar-expand-lg {
    background: rgb(255, 255, 255) !important;
    backdrop-filter: blur(10px);
    padding-right: 6rem !important;
    padding-left: 6rem !important;
}

@media screen and (max-width:560px) {
    .navbar-expand-lg {
        padding-right: 1.6rem !important;
        padding-left: 1.6rem !important;
    }
}

.bg-blueprint img{
    max-width: 100%;
    height: auto;
    position: absolute !important;
    top: -50px !important;
    right: 0px !important;
    vertical-align: middle;
    box-sizing: border-box;
    z-index: -1;
}


.blog-img {
    position: relative;
    overflow: hidden;
}

.blog-img a img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
}

.hover-text {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #1c3459be;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.hover-text h1 {
    font-size: 25px;
    margin-bottom: 10px;
    color: white;
}

.hover-text p {
    font-size: 18px;
    margin-bottom: 0;
}

.hover-from-left  { left: -100%; top: 0; }
.hover-from-right { left: 100%;  top: 0; }
.hover-from-top   { top: -100%; left: 0; }
.hover-from-bottom{ top: 100%;  left: 0; }

.blog-img.hover-active .hover-text {
    left: 0;
    top: 0;
}
.hover-text.hover-exit {
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.1s ease-in;
}

.bg-header {
    background-size: cover !important;
    background-repeat: no-repeat !important;
    object-fit: cover !important;
}

.bc-contact {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(39, 39, 39, 0.7)), url(../img/breadcrumb/bc-contact.jpg);
    background-position: bottom !important;
}

.bc-about {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(39, 39, 39, 0.7)), url(../img/breadcrumb/bc-about.jpg);
    background-position: center !important;
}

.bc-project {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(39, 39, 39, 0.7)), url(../img/breadcrumb/bc-project.jpg);
    background-position: bottom !important;
}

.link-animated a {
    transition: .5s;
}

.link-animated a:hover {
    padding-left: 10px;
}

@media (min-width: 767.98px) {
    .footer-about {
        margin-bottom: -75px;
    }
    .footer-about img {
        max-width: 280px;
    }
    
    .footer-about .navbar-brand {
        margin-right: 0;
    }
}

.image-container {
    overflow: visible; /* Imej boleh bergerak keluar container */
}

.hover-move {
    transition: transform 0.2s ease-out; /* Smooth effect */
    will-change: transform; /* Optimize rendering */
}

.carousel-caption h1 {
    background: rgba(0, 0, 0, 0.616);
    padding: 10px;
    color: #fff !important;
    display: block;
    border-radius: 5px;
}
.carousel-caption h5 {
    background: rgba(0, 0, 0, 0.616);
    padding: 10px;
    color: var(--primary) !important;
    display: inline-block;
    border-radius: 5px;
}

.k-slider {
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-inner {
    width: 90%;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.carousel-control-prev {
    left: 25px;
}

.carousel-control-next {
    right: 25px;
}

/* animation slider */
.carousel-item img {
    animation: kenburns 10s ease-in-out infinite alternate;
}

@keyframes kenburns {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.1) translate(10px, 10px); }
}

.parallax-img {
    transition: transform 0.2s ease-out;
}

.stagger-text span {
    opacity: 0;
    transform: translateY(30px);
    display: inline-block;
    text-transform: uppercase;
    font-size: 3.5rem;
    line-height: 50px;
    animation: wordSlideUp 0.8s ease forwards;
}

/* responsive font size */
@media screen and (max-width: 768px) {
    .stagger-text span {
        font-size: 2rem;
        line-height: 30px;
    }
    .carousel-item {
        height: 500px;
    }
    .carousel-item img {
        object-fit: cover;
        object-position: center;
        height: 100%;
        width: 100%;
    }
}

@media screen and (max-width: 480px) {
    .stagger-text span {
        font-size: 1.5rem;
        line-height: 5px;
    }
    .carousel-item img {
        object-fit: cover;
        object-position: center;
        height: 100%;
        width: 100%;
    }
}
 
.stagger-text span:nth-child(1) { animation-delay: 0s; }
.stagger-text span:nth-child(2) { animation-delay: 0.2s; }
.stagger-text span:nth-child(3) { animation-delay: 0.4s; }
.stagger-text span:nth-child(4) { animation-delay: 0.6s; }
.stagger-text span:nth-child(5) { animation-delay: 0.8s; }
.stagger-text span:nth-child(6) { animation-delay: 1s; }
.stagger-text span:nth-child(7) { animation-delay: 1.2s; }

@keyframes wordSlideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.title-secondary {
    color: white;
    background-color: rgb(199, 199, 199);
    padding: 0px 10px;
    line-height: 20px;
}

/* about us */
.service-list {
    list-style: none;
    padding-left: 0;
}

.service-list li {
    display: flex;
    align-items: center;
    font-size: 15px;
}

.owl-next, .owl-prev {
    display: none;
}

.kgap-scroll {
    scroll-margin-top: 280px;
}