/********** Template CSS **********/
:root {
    --primary: #1e60aa;
    --secondary: #ff4917;
    --light: #edf1fc;
    --dark: #17224d;
}

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

/*** Navbar ***/
.top-bar {
    height: 75px;
    padding: 0 4rem;
}

.nav-bar {
    position: relative;
    padding: 0 4.75rem;
    transition: 0.5s;
    z-index: 9999;
}

.nav-bar.sticky-top {
    position: sticky;
    padding: 0;
    z-index: 9999;
}

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

.navbar-light .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 25px 0;
    color: var(--dark);
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    outline: none;
}

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

@media (max-width: 991.98px) {
    .nav-bar {
        padding: 0;
    }

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

    .navbar-light .navbar-nav {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid #eeeeee;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: 0.5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: 0.5s;
        opacity: 1;
    }
}

/*** Header ***/
.header-carousel .container,
.page-header .container {
    position: relative;
    padding: 45px 0 45px 35px;
    border-left: 15px solid #ffffff;
}

.header-carousel .container::before,
.header-carousel .container::after,
.page-header .container::before,
.page-header .container::after {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    width: 100px;
    height: 15px;
    background: #ffffff;
}

.header-carousel .container::after,
.page-header .container::after {
    top: 100%;
    margin-top: -15px;
}

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

    .header-carousel .owl-carousel-item img {
        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);
}

.page-header {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
        url(../img/bg.jpg) center center no-repeat;
    background-size: cover;
}

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

/*** project ***/
.project-item-top img {
    transition: 0.5s;
}

.project-item-top:hover img {
    transform: scale(1.1);
}

.project-carousel .owl-dots {
    margin-top: 24px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.project-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    background: var(--primary);
    border: 5px solid var(--light);
    transition: 0.5s;
}

.project-carousel .owl-dot.active {
    background: var(--light);
    border-color: var(--primary);
}

/*** Profiles ***/
/* Styling untuk gambar profil */
img.profile-image {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
}

/* Menambahkan margin dan padding pada form */
.form-control {
    padding: 10px;
    font-size: 1rem;
}

/* Styling tabel */
.table th,
.table td {
    vertical-align: middle;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: #f8f9fa;
}

.table-bordered {
    border: 1px solid #dee2e6;
}

/***profiles***/
/* Styling untuk dropdown */
.dropdown-menu {
    display: none;
    /* Menyembunyikan dropdown secara default */
    position: absolute;
    top: 100%;
    /* Posisikan di bawah elemen yang mengaktifkan dropdown */
    left: 0;
    right: 0;
    z-index: 9999;
    /* Pastikan berada di atas elemen lainnya */
}

.dropdown-user {
    width: 250px;
    /* Sesuaikan dengan lebar dropdown */
}

.user-box {
    display: flex;
    padding: 10px;
    align-items: center;
}

.avatar-lg {
    width: 50px;
    height: 50px;
    margin-right: 10px;
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.u-text h4 {
    font-size: 16px;
    margin: 0;
}

.u-text p {
    font-size: 14px;
    color: #999;
}

.dropdown-item {
    font-size: 14px;
    color: #333;
}

.dropdown-divider {
    margin: 10px 0;
}

/* Styling untuk dropdown */
.dropdown-menu {
    right: 0;
    /* Agar dropdown muncul di sebelah kanan */
    left: auto;
}

.d-flex {
    display: flex;
    align-items: center;
}

/* Jika ingin menu dropdown tampil sejajar dengan user avatar */
.nav-item {
    position: relative;
    /* Agar dropdown bisa diatur posisinya */
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    display: none;
    /* Hide dropdown by default */
    z-index: 1000;
}

.nav-item:hover .dropdown-menu {
    display: block;
    /* Menampilkan dropdown saat hover */
}

/*** card ***/
.card-3d-gradient-border {
    position: relative;
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    padding: 15px;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transform-style: preserve-3d;
}

.card-3d-gradient-border::before {
    content: "";
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    z-index: -1;
    background: linear-gradient(45deg, #e0eaff, #e6e6ff, #f6eaff);
    background-size: 200% 200%;
    opacity: 0;
    border-radius: 15px;
    transition: opacity 0.3s ease, transform 0.3s ease-in-out;
}

.card-3d-gradient-border:hover {
    transform: rotateX(5deg) rotateY(-5deg) translateZ(5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.card-3d-gradient-border:hover::before {
    opacity: 0.8;
    transform: scale(1.03);
    animation: gradient-animation 6s infinite linear;
}

/* Gradient Animation */
@keyframes gradient-animation {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.btn-outline-primary {
    position: relative;
    overflow: hidden;
    transition: color 0.3s ease-in-out;
}

.btn-outline-primary::after {
    content: "";
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0d6efd;
    z-index: -1;
    transition: transform 0.3s ease-in-out;
}

.btn-outline-primary:hover {
    color: #fff;
}

.btn-outline-primary:hover::after {
    transform: translateY(100%);
}

/*** kontak proyek ***/
.contact-list {
    display: flex;
    flex-direction: column;
    /* Susun elemen secara vertikal */
    gap: 10px;
    /* Beri jarak antar elemen */
}

.contact-item {
    display: flex;
    align-items: center;
    /* Sejajarkan ikon dan teks secara vertikal */
    text-decoration: none;
    /* Hapus garis bawah dari tautan */
    /* Warna teks dan ikon */
    font-size: 16px;
    /* Ukuran teks */
    gap: 10px;
    /* Jarak antara ikon dan teks */
}

.contact-item i {
    font-size: 20px;
    /* Ukuran ikon */
    width: 24px;
    /* Lebar konsisten untuk ikon */
    text-align: center;
    /* Pastikan ikon berada di tengah */
}

.contact-item span {
    flex: 1;
    /* Pastikan teks menyesuaikan ruang */
    line-height: 1.5;
    /* Jarak vertikal untuk teks */
}

.contact-item:hover {
    color: #101010;
    /* Ubah warna saat di-hover */
}

/*** Team ***/
.team-item img {
    transition: 0.5s;
}

.team-item:hover img {
    transform: scale(1.1);
}

.team-item .team-text {
    height: 90px;
    overflow: hidden;
}

.team-item .team-text .bg-light,
.team-item .team-text .bg-primary {
    position: relative;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: 0.5s;
}

.team-item .team-text .bg-primary {
    flex-direction: row;
}

.team-item:hover .team-text .bg-light {
    margin-top: -90px;
}

.team-item .team-text .bg-primary .btn {
    color: var(--primary);
    background: #ffffff;
}

.team-item .team-text .bg-primary .btn:hover {
    color: #ffffff;
    background: var(--secondary);
}

/*** Testimonial ***/
.testimonial-carousel .owl-item .testimonial-text,
.testimonial-carousel .owl-item.center .testimonial-text * {
    position: relative;
    transition: 0.5s;
}

.testimonial-carousel .owl-item.center .testimonial-text {
    background: var(--primary) !important;
}

.testimonial-carousel .owl-item.center .testimonial-text * {
    color: #ffffff !important;
}

.testimonial-carousel .owl-item .testimonial-text::after {
    position: absolute;
    content: "";
    width: 0;
    height: 0;
    left: 50%;
    bottom: -30px;
    transform: translateX(-50%);
    border: 15px solid;
    border-color: var(--light) transparent transparent transparent;
    transition: 0.5s;
}

.testimonial-carousel .owl-item.center .testimonial-text::after {
    border-color: var(--primary) transparent transparent transparent;
}

.testimonial-carousel .owl-nav {
    position: absolute;
    width: 350px;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
    opacity: 0;
    transition: 0.5s;
    z-index: 1;
}

.testimonial-carousel:hover .owl-nav {
    width: 300px;
    opacity: 1;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    font-size: 30px;
    color: var(--primary);
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: var(--dark);
}

/*** Footer ***/
.footer .btn.btn-social {
    margin-right: 5px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    border: 1px solid #ffffff;
    border-radius: 35px;
    transition: 0.3s;
}

.footer .btn.btn-social:hover {
    color: var(--primary);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #ffffff;
    font-size: 15px;
    font-weight: normal;
    text-transform: capitalize;
    transition: 0.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 {
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, 0.1);
}

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

.project-img {
    height: 250px;
    /* Set a fixed height for the image */
    object-fit: cover;
    /* Ensure the image covers the area while maintaining aspect ratio */
}

/* Page Header Adjustments */
.container-fluid.bg-primary {
    padding: 20px 0;
}

.container-fluid .form-select,
.container-fluid .form-control,
.container-fluid .btn {
    min-width: 100px;
    /* Pastikan elemen memiliki lebar minimum */
}

.container-fluid form {
    gap: 10px;
    /* Jarak antar elemen pada form */
}

@media (max-width: 768px) {
    .container-fluid .row {
        flex-direction: column;
        /* Ubah layout menjadi vertikal untuk layar kecil */
    }

    .container-fluid .form-select,
    .container-fluid .form-control,
    .container-fluid .btn {
        width: 100%;
        /* Elemen form memenuhi lebar layar */
    }
}

/* Page Header */
.container-fluid.bg-primary {
    background: linear-gradient(90deg, #007bff, #0056b3);
    padding: 50px 0;
}

/* Card */
.card {
    border-radius: 10px;
}

.card-title {
    font-weight: bold;
    color: #333;
}

/* Button */
.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
    padding: 10px 20px;
    font-size: 18px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

/* Alert */
.alert-info {
    background-color: #e9f7fc;
    border-color: #bee5eb;
    color: #31708f;
}

/* Badge */
.badge {
    font-size: 14px;
    padding: 5px 10px;
    border-radius: 20px;
}



/* General Styling for Footer */
footer {
    background-color: #1a1a1a;
    color: #ccc;
    font-size: 15px;
    line-height: 1.8;
    padding-top: 60px;
    padding-bottom: 20px;
}

/* Social Media Buttons */
.btn-social {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: transparent;
    border: 1px solid #ccc;
    color: #ccc;
    transition: all 0.3s ease-in-out;
}

.btn-social:hover {
    background-color: #007bff;
    border-color: #007bff;
    color: #fff;
}

/* Navigation Links */
footer .list-unstyled li a {
    font-size: 15px;
    color: #ccc;
    transition: color 0.3s;
}

footer .list-unstyled li a:hover {
    color: #007bff;
    text-decoration: underline;
}

/* Table in Footer */
footer table {
    width: 100%;
    border: none;
    font-size: 15px;
}

footer table td {
    border: none;
    padding: 5px 0;
}

/* Footer Bottom */
footer .copyright {
    border-top: 1px solid #444;
    padding-top: 20px;
    margin-top: 30px;
    font-size: 14px;
    color: #777;
}

/* Responsiveness */
@media (max-width: 768px) {
    footer .btn-social {
        width: 36px;
        height: 36px;
    }

    footer table td {
        font-size: 14px;
    }
}
