/* Root Variables for Palette */
:root {
    --primary-color: #FF6500;
    --secondary-color: #1E3E62;
    --dark-color: #0B192C;
    --black: #000000;
    --white: #FFFFFF;
    --highlight-color: #ffe194;
}

/* Global Styles */
body {
    background-color: var(--dark-color);
    color: var(--white);
    font-family: 'Poppins', sans-serif;
}

/* Navbar Styling */
#mainNav {
    background: linear-gradient(90deg, var(--highlight-color), var(--secondary-color), var(--primary-color));
    color: var(--white);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: background 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

#mainNav:hover {
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: bold;
    letter-spacing: 2px;
    color: var(--white);
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.img-logo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    /* Membuat logo berbentuk lingkaran */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* Animasi transisi */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    /* Bayangan halus */
}

.img-logo:hover {
    transform: scale(1.2);
    /* Zoom-in saat hover */
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
    /* Bayangan lebih intens */
    cursor: pointer;
    /* Tampilkan ikon pointer saat hover */
}

.navbar-brand:hover {
    color: var(--highlight-color);
}

.navbar-nav .nav-item {
    margin: 0 10px;
}

.navbar-nav .nav-link {
    color: var(--white);
    font-weight: 600;
    font-size: 1rem;
    padding: 10px 15px;
    position: relative;
    text-transform: capitalize;
    transition: color 0.3s ease, transform 0.3s ease;
}

.navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--highlight-color);
    bottom: 0;
    left: 50%;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

.navbar-nav .nav-link:hover {
    color: var(--highlight-color);
    transform: scale(1.1);
}

/* Navbar Toggler */
.navbar-toggler {
    border: 2px solid var(--white);
    color: var(--white);
    background: transparent;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.navbar-toggler:hover {
    transform: rotate(90deg);
    border-color: var(--highlight-color);
}

/* Contact Button */
.btn-contact {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    border: 2px solid var(--white);
    transition: all 0.3s ease-in-out;
}

.btn-contact:hover {
    background: var(--highlight-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* Hero Styling */
.carousel-item img {
    filter: brightness(0.6) contrast(1.5);
    transition: transform 0.3s ease-in-out, filter 0.5s ease-in-out;
    object-fit: cover;
    height: 500px;
    width: 100%;
    border-radius: 10px;
}

.carousel-item img:hover {
    border-radius: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    transform: scale(1.05);
    filter: brightness(0.5) contrast(1.5);
}

.carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    padding: 20px;
    /* background-color: rgba(0, 0, 0, 0.5); */
    border-radius: 5px;
    animation: fadeIn is ease-in-out;
}

.carousel-caption h5 {
    font-size: 2rem;
    color: var(--white);
    font-weight: bold;
}

.carousel-caption p {
    color: var(--white);
}


/* Carousel Controls */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    padding: 10px;
    transition: background-color 0.3s ease-in-out;
}

.carousel-control-prev-icon:hover,
.carousel-control-next-icon:hover {
    background-color: var(--highlight-color);
    transform: scale(1.2);
}


@media (max-width: 768px) {
    .carousel-caption h5 {
        font-size: 1.5rem;
        /* Smaller font for mobile */
    }

    .carousel-caption p {
        font-size: 0.9rem;
        text-align: justify;

        /* Smaller paragraph font */
    }
}

@media(max-width: 576px) {
    .carousel-caption h5 {
        font-size: 1.2rem;
    }

    .carousel-caption p {
        text-align: justify;
        font-size: 0.8rem;
    }
}

@keyFrames fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* About Us Section */
#about-us {
    /* background: linear-gradient(135deg, var(--secondary-color), var(--dark-color)); */
    padding: 50px 40px;
    border-radius: 0 0 50px 50px;
    transition: transform 0.3s ease-in-out;
}

#about-us:hover {
    transform: translateY(-10px);
}

.section-title {
    /* font-size: 2.8rem; */
    font-weight: bold;
    color: var(--white);
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-title::after {
    content: "";
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    display: block;
    margin: 10px auto 0;
}

.section-description,
.about-description {
    padding-left: 7rem;
    padding-right: 7rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--white);
    margin-bottom: 20px;
    text-align: justify;
}

.about-description strong {
    color: var(--primary-color);
    font-weight: 600;
}


/* Vision and mission */
/* Centering and Styling */
.vismis {
    background: linear-gradient(135deg, var(--secondary-color), var(--dark-color));
    display: flex;
    align-items: center;
    /* Vertical alignment */
    justify-content: center;
    gap: 20px;
    /* Spacing between columns; */
    /* Horizontal alignment */

}

/* Image Styling */
.img-vision {
    border-radius: 75px;
    width: 100%;
    /* Ensures responsiveness */
    max-width: 100%;
    /* Limits the size */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.img-vision:hover {
    transform: scale(1.05);
    /* Slight zoom on hover */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    /* Enhanced shadow effect */
}

/* Text Styling */
.vismis-header h2 {
    color: var(--primary-color);
    /* Use a custom color variable for consistency */
    font-size: 1.8rem;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.vismis-header p {
    color: var(--white);
    margin-bottom: 10px;
    font-size: 1.1rem;
    line-height: 1.6;
}


.vismis-header h2:hover {
    color: var(--highlight-color);
    /* Interactive hover color */
}

.vismis-header ul li {
    color: var(--white);
    margin-bottom: 10px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.bi-check-circle-fill {
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 1.2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .vismis {
        flex-direction: column;
        /* Stack elements vertically on smaller screens */
        text-align: center;
    }

    .vismis-header {
        text-align: center;
        /* Center-align text for smaller screens */
    }

    .img-vision {
        max-width: 300px;
        /* Adjust image size on smaller screens */
    }
}

/* Company values */
#company-values {
    background-color: var(--dark-color);
    overflow: hidden;
    /* Ensures elements don't overflow during animations */
}

#company-values h2 {
    font-size: 2rem;
    color: var(--white);
    font-weight: bold;
    animation: fadeIn 1.2s ease-out;
}


#company-values h2:hover {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: bold;
    animation: fadeIn 1.2s ease-out;
}


p {
    color: #7f8c8d;
    animation: fadeIn 1.4s ease-out;
}

/* Card Styling */
.value-card {
    background: var(--primary-color);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    height: 200px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    /* Initially hidden for animation */
    transform: translateY(20px);
    animation: slideUp 1.5s ease-out forwards;
}

@media (min-width: 568px) {
    .value-card {
        height: 250px;
    }
}

.value-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.value-card h4 {
    font-size: 1.2rem;
    margin: 10px 0;
    color: var(--secondary-color);
    transition: color 0.3s ease;
}

.value-card p {
    color: var(--white);
    font-size: 0.95rem;
    line-height: 1.6;
}

.value-card:hover h4 {
    color: var(--highlight-color);
}

/* Icon Styling */
.icon-container {
    background: linear-gradient(135deg, #3498db, #8e44ad);
    border-radius: 50%;
    padding: 20px;
    display: inline-block;
    color: var(--white);
    transition: background 0.3s ease, transform 0.3s ease;
}

.value-card:hover .icon-container {
    background: linear-gradient(135deg, #8e44ad, #3498db);
    transform: rotate(360deg);
}

.icon-container i {
    animation: bounce 2s infinite;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .value-card {
        animation: fadeIn 1.5s ease-out forwards;
    }
}





/* Service Section
#services {
    padding: 30px 0;
    background: var(--secondary-color);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidd;
} */


/* Styling for Services Section */
#services {
    padding: 50px 0;
    background: linear-gradient(135deg, var(--dark-color), var(--secondary-color));
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.service-card {
    background: linear-gradient(135deg, var(--dark-color), var(--secondary-color));
    padding: 20px;
    height: 300px;
    line-height: 2rem;
    text-align: left;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.service-card i {
    color: var(--highlight-color);
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.service-card:hover i {
    color: var(--primary-color);
}

.service-card h4 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.service-card h4:hover {
    color: var(--highlight-color);
}

.service-card p {
    color: var(--white);
    line-height: 3;
    font-size: 1rem;
}

/* Header Styling */
#services h2 {
    color: var(--white);
    /* font-size: 2.5rem; */
    margin-bottom: 30px;
    /* text-transform: uppercase;
    letter-spacing: 2px; */
}


/* Modal Styling */
.modal-content {
    background-color: var(--dark-color);
    color: var(--white);
    border-radius: 10px;
    padding: 20px;
    height: 80vh;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.modal-header {
    border-bottom: none;
}

.modal-header .btn-close {
    color: var(--white);
}

.modal-body {
    overflow-y: auto;
    /* Memberikan scroll vertikal jika konten melebihi batas */
    flex-grow: 1;
    /* Memastikan modal body mengisi sisa ruang yang tersedia */
    max-height: calc(80vh - 60px);
    /* Mengurangi tinggi modal header dan footer */
    padding-right: 10px;
    /* Memberikan ruang untuk scrollbar */
    overflow-x: hidden;
    box-sizing: border-box;
    padding-top: 3rem;
    padding-left: 5rem;
    padding-right: 5rem;
}

/* Styling untuk scrollbar di browser berbasis Webkit (Chrome, Safari, Edge) */
.modal-body::-webkit-scrollbar {
    width: 8px;
    /* Lebar scrollbar */
}

.modal-body::-webkit-scrollbar-track {
    background-color: var(--dark-color);
    /* Warna track scrollbar */
    border-radius: 10px;
    /* Membuat track scrollbar lebih halus */
}

.modal-body::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    /* Warna handle scrollbar */
    border-radius: 10px;
    /* Membuat handle scrollbar lebih halus */
    border: 2px solid var(--dark-color);
    /* Memberikan border pada handle */
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background-color: var(--highlight-color);
    /* Warna handle ketika hover */
}


.modal-body h6 {
    color: var(--primary-color);
}

.modal-body ul {
    list-style: none;
    padding-left: 0;
}

.modal-body ul li {
    color: var(--white);
    text-align: justify;
    font-size: 1.1rem;
    line-height: 1.6;
}

.modal-footer {
    border-top: none;
    justify-content: space-between;
}

.modal-footer .btn-secondary {
    background-color: var(--dark-color);
    color: var(--white);
    border: 2px solid var(--white);
    transition: background-color 0.3s ease;
}

.modal-footer .btn-secondary:hover {
    background-color: var(--primary-color);
}

.modal-footer .btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
    transition: background-color 0.3s ease;
}

.modal-footer .btn-primary:hover {
    background-color: var(--highlight-color);
    border: 2px solid var(--highlight-color);
}

.modal-control-prev,
.modal-control-next {
    position: absolute;
    width: auto;
    /* Jangan terlalu lebar */
    top: 50%;
    /* Pastikan tetap berada di tengah */
    transform: translateY(-50%);
    /* Untuk memastikan posisi vertikal di tengah */
    z-index: 10;
}

.modal-control-prev {
    left: 10px;
    /* Geser ke kiri dari modal body */
}

.modal-control-next {
    right: 10px;
}

.modal-carousel {
    margin-bottom: 50px;
}


.accordion-body {
    background: var(--dark-color);
}

.accordion-item {
    background: var(--dark-color);
}

.accordion-button {
    color: var(--white);
    background: linear-gradient(90deg, var(--primary-color), var(--white));
}

.accordion-collapse {
    background: var(--dark-color);
}


/* RESPONSIVE MODAL */

@media (max-width: 768px) {
    .modal-content {
        max-width: 100%;
        /* Full width on smaller screens */
        padding: 15px;
        /* Reduce padding */
    }

    .modal-body {
        padding-left: 2rem;
        padding-right: 2rem;
        padding-top: 1.5rem;
        /* Adjust padding for smaller devices */
    }

    .modal-footer {
        flex-direction: column;
        align-items: center;
        /* Stack the buttons */
    }

    .modal-footer .btn-secondary,
    .modal-footer .btn-primary {
        width: 100%;
        /* Make buttons full width on smaller screens */
        margin-bottom: 10px;
        /* Space between buttons */
    }

    .modal-control-prev,
    .modal-control-next {
        top: 50%;
        transform: translateY(-50%);
        font-size: 1.5rem;
        /* Adjust size for smaller screens */
    }
}

@media (max-width: 480px) {
    .modal-content {
        padding: 10px;
        /* Further reduce padding for very small screens */
    }

    .modal-body {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .modal-footer .btn-secondary,
    .modal-footer .btn-primary {
        width: 100%;
        margin-bottom: 8px;
    }
}


/* Client  */


.client-logo {
    width: 80%;
    height: 80px;
    border-radius: 20px;
    padding: 1rem;
    background-color: var(--white);
    /* filter: grayscale(100%); */
    transition: filter 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.client-logo:hover {
    filter: grayscale(0%);
    transform: scale(1.1);
}

.contact {
    background: linear-gradient(135deg, var(--secondary-color), var(--dark-color));
    color: var(--white);
}

.contact h2 {
    font-size: 2.5rem;
    font-weight: bold;
    position: relative;
    animation: fadeInDown 1s;
}

.contact h2:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    margin: 10px auto;
    border-radius: 2px;
}

.contact h5 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    animation: fadeIn 1.2s;
}

.contact address {
    font-style: normal;
    line-height: 1.6;
    animation: fadeIn 1.5s;
}

.contact ul li {
    margin-bottom: 10px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: fadeIn 1.8s;
}

.contact a {
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact a:hover {
    color: var(--highlight-color);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}



footer {
    background: linear-gradient(90deg, var(--primary-color), var(--highlight-color));
    color: var(--white);
}

/* WA BUTTON */
#whatsapp-button {
    position: fixed;
    bottom: 20px;
    /* Jarak dari bawah */
    right: 20px;
    /* Jarak dari kanan */
    z-index: 1000;
    /* Pastikan berada di atas elemen lain */
}

#whatsapp-button a {
    display: block;
    width: 60px;
    /* Ukuran ikon */
    height: 60px;
    border-radius: 50%;
    /* Membuat bentuk bulat */
    background-color: #25D366;
    /* Warna hijau khas WhatsApp */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    line-height: 60px;
    /* Vertikal rata tengah */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#whatsapp-button a:hover {
    transform: scale(1.1);
    /* Membesar sedikit saat hover */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

#whatsapp-button img {
    width: 30px;
    /* Ukuran ikon WhatsApp di dalam lingkaran */
    height: auto;
    vertical-align: middle;
}