/********** Template CSS **********/
body {
    font-family: "Montserrat", serif;
    font-optical-sizing: auto;
    font-style: normal;
}

:root {
    --primary: #004eeb;
    --secondary: #51cfed;
    --light: #f8f2f0;
    --dark: #040e24;
}

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

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

/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-out, visibility 0s linear 0.5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity 0.5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

/*** Button ***/
.btn {
    font-weight: 600;
    transition: 0.5s;
}

.btn.btn-primary,
.btn.btn-secondary {
    color: #ffffff;
}

.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;
}

a:hover {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

/*** Navbar ***/
#navbar {
    align-items: center; /* Center items vertically */
    position: fixed;
    height: 60px; /* Pastikan tinggi navbar */
    width: 100%;
    transition: background-color 0.3s ease;
    z-index: 9999;
    padding: 0px !important;
}

#navbar a:hover {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.nav-active {
    border-radius: 0.5rem; /* Smooth rounded corners */
    box-shadow: 3 5 7px rgba(81, 207, 237, 0.8); /* Glowing effect */
    transition: all 0.3s ease-in-out; /* Smooth transition */
    font-weight: bold;
}

#brand {
    min-height: 60px;
    display: flex;
    align-items: center;
}

#brand.scrolled-brand {
    background-color: #191d88; /* New background color when scrolled */
    min-height: 60px;
}

a.nav-link {
    color: white;
}

#navbar.scrolled {
    background-color: #ffffff; /* Example scrolled color */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

#navbar.scrolled a {
    color: #191d88;
}

.navbar-brand {
    display: flex; /* Agar konten di dalamnya rata */
    align-items: center; /* Vertikal rata tengah */
    justify-content: center; /* Horizontal rata tengah (opsional) */
}

/* CSS for Max-Width 992px */
@media (max-width: 992px) {
    #navbar.scrolled a {
        color: #ffffff;
    }
    /* Navbar background for smaller screens */
    #navbar {
        background-color: rgba(9, 10, 54, 10); /* Semi-transparent navy */
        position: fixed; /* Stays on top */
        width: 100%; /* Full width */
        z-index: 9999;
    }

    /* Brand (Logo) styling */
    #brand {
        padding-left: 16px;
        display: flex;
        align-items: center;
    }

    /* Navigation menu becomes vertical */
    .navbar-nav {
        flex-direction: column; /* Menu turns vertical */
        align-items: center; /* Center the menu items */
        background-color: rgba(9, 10, 54, 10); /* Semi-transparent navy */
        padding: 2rem !important;
        margin: 0 !important;
    }

    /* Styling for navigation links */
    .nav-item a {
        color: white; /* Text color */
        padding: 15px 0; /* Space between links */
        width: 100%; /* Full width for better clicking area */
        text-align: center; /* Center the text */
        text-transform: uppercase; /* Capitalize text */
        display: block; /* Block for full-width centering */
    }

    /* Dropdown menu */
    .dropdown-menu {
        background-color: rgba(9, 10, 54, 10); /* Semi-transparent background */
        border: none; /* Remove border */
        width: 100%; /* Full width dropdown */
        text-align: center;
    }

    /* Hamburger menu styling */
    #hamburger {
        border: none; /* Remove border */
        background-color: #ffffff;
    }

    #hamburger:focus {
        outline: none; /* Remove focus outline */
        box-shadow: none; /* Remove shadow */
    }

    #hamburger svg {
        fill: rgba(9, 10, 54, 10); /* White icon for visibility */
        width: 40px; /* Larger icon size */
        height: 40px;
    }
}

/*** Header ***/
#header {
    position: relative;
}

@media (max-width: 992px) {
    #header {
        top: 3rem;
    }
}

.header-carousel .owl-carousel-item video {
    width: 100%; /* Full width of the container */
    height: 100%; /* Full height of the container */
    object-fit: cover; /* Ensures the video fills the container without stretching */
    top: 0;
    left: 0;
}

@media (max-width: 768px) {
    .header-carousel .owl-carousel-item {
        position: relative;
        min-height: 500px;
    }

    .header-carousel .owl-carousel-item video {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .header-carousel .owl-carousel-item h5,
    .header-carousel .owl-carousel-item p {
        font-size: 14px !important;
        font-weight: 400 !important;
    }

    .header-carousel .owl-carousel-item h1 {
        font-size: 30px;
        font-weight: 600;
    }
}

.header-carousel .owl-nav {
    position: absolute;
    top: 50%;
    right: 8%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    margin: 7px 0;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: transparent;
    border: 1px solid #ffffff;
    border-radius: 45px;
    font-size: 22px;
    transition: 0.5s;
}

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

.about-image {
    background: linear-gradient(rgba(25, 29, 136, 0.8), rgba(25, 29, 136, 0.8)),
        url(../img/about_us.jpg) center center no-repeat;
}

.service-image {
    background: linear-gradient(rgba(25, 29, 136, 0.8), rgba(25, 29, 136, 0.8)),
        url(../img/container-ship.jpg) center center no-repeat;
}

.testimonial-image {
    background: linear-gradient(rgba(25, 29, 136, 0.8), rgba(25, 29, 136, 0.8)),
        url(../img/container-header.png) center center no-repeat;
}

.contact-image {
    background: linear-gradient(rgba(25, 29, 136, 0.8), rgba(25, 29, 136, 0.8)),
        url(../img/testimonial-header.png) center center no-repeat;
}

.page-header {
    background-size: cover;
    margin-bottom: 6rem;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

@media (max-width: 992px) {
    .page-header {
        position: relative;
        top: 5rem;
    }
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--light);
}

.contact-us {
    border-radius: 5px;
    background-color: #191d88;
    color: white;
    padding: 20px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    -o-border-radius: 5px;
}

/*** Highlight ***/
.highlight {
    background: linear-gradient(rgba(25, 29, 136, 0.5), rgba(25, 29, 136, 0.5)),
        url(../img/highlight.jpg) center center / cover no-repeat;

    background-size: cover;
    color: white;
}

.input:focus {
    border-color: #191d88;
    box-shadow: 0 0 5px rgba(25, 29, 136, 0.7);
}

.text-colorcompany {
    color: #191d88;
}

.text-2lines {
    display: -webkit-box;
    overflow: hidden;
    text-overflow: ellipsis; /* Tambahkan "..." jika teks terlalu panjang */
}

.service-item h2 {
    color: white; /* Explicitly set h2 text color to white */
    font-size: 2rem; /* Optional: Adjust font size */
    margin: 0; /* Optional: Adjust spacing */
}

/*** Testimonial ***/
.testimonial-carousel .owl-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    right: 0;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    position: absolute;
    width: 45px;
    height: 45px;
    background: #ffffff;
    border: 1px solid #cccccc;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.5s;
}

.testimonial-carousel .owl-nav .owl-prev {
    left: -90px;
}

.testimonial-carousel .owl-nav .owl-next {
    right: -90px;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    background: var(--primary);
    color: #ffffff;
}

.testimonial-carousel .owl-dots {
    margin-top: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    border: 1px solid #cccccc;
    border-radius: 15px;
    transition: 0.5s;
}

.testimonial-carousel .owl-dot.active {
    background: var(--primary);
    border-color: var(--primary);
}
/*** Testimonial End ***/

/*** Footer ***/
.footer {
    background: url("../img/footer.png") center center no-repeat;
    background-size: cover;
    color: white;
}

.footer a {
    color: rgba(255, 255, 255, 0.8); /* Slightly faded white for links */
    text-decoration: none; /* Remove underline */
    font-size: 14px; /* Standard size for links */
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.footer a:hover {
    color: #1d9bf0; /* Highlight on hover (e.g., Twitter blue) */
    text-shadow: 0 0 5px rgba(29, 155, 240, 0.5); /* Glow effect */
}

.footer .nav-item {
    margin-right: 15px; /* Spacing between navigation links */
    font-weight: 500; /* Slightly bolder font for navigation */
}

.footer .social-icons a {
    color: rgba(255, 255, 255, 0.8); /* Faded white for social icons */
    font-size: 18px; /* Icon size */
    margin-right: 15px; /* Space between icons */
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer .social-icons a:hover {
    color: #1d9bf0; /* Same blue as hover effect for links */
    transform: scale(1.2); /* Slight zoom on hover */
}

.footer .bottom-links a {
    margin-right: 20px; /* Space between policy links */
    font-size: 13px; /* Slightly smaller font for policy links */
}

.footer .bottom-links a:hover {
    color: #1d9bf0; /* Hover effect for policy links */
}

.footer p {
    color: rgba(255, 255, 255, 0.8); /* Subtle text color for copyright */
    font-size: 12px; /* Smaller font for copyright text */
}
/*** Footer End ***/
