html,
body {
    font-family: 'Poppins', sans-serif;
    background-color: #fff;
    color: #333;
    height: auto;
    /* biar gak 100%, supaya sesuai konten */
    margin: 0;
    padding: 0;
    overflow-y: auto;
    /* paksa scroll di seluruh halaman */
    overflow-x: hidden;

}

.navbar {
    background-color: #111 !important;
    padding: 10px 0;
}

.navbar-brand img {
    height: 50px;
}

.navbar-nav .nav-link {
    color: white !important;
    font-weight: 500;
    margin: 0 10px;
    transition: color 0.3s;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-item.active .nav-link {
    color: red !important;
}

.navbar-nav .nav-link.nav-active-user {
    color: red !important;
    font-weight: normal;
}

/* tentang */
.tentang-img {
    height: 400px;
    object-fit: cover;
}

@media (max-width: 768px) {
    .tentang-img {
        height: auto;
    }
}

/* card index keunggulan */
.index-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.index-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}


/* portfolio */

/* Portfolio Card Styling */
.portfolio-card {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    margin: 0 auto;
    max-width: 960px;
}

/* Image Container with Fixed Height */
.portfolio-image-wrapper {
    height: 300px;
    overflow: hidden;
}

.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.portfolio-card:hover .portfolio-img {
    transform: scale(1.05);
}

/* Caption Overlay */
.portfolio-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    padding: 1.25rem;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    font-size: 0.95rem;
}

.portfolio-card:hover .portfolio-caption {
    transform: translateY(0);
}

.portfolio-caption h5 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.portfolio-caption .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.7);
    color: #fff;
}

.portfolio-caption .btn-outline-light:hover {
    background-color: #fff;
    color: #111;
}

.overlay-transition {
    transition: opacity 0.3s ease;
    opacity: 0;
}

.card:hover .overlay-transition {
    opacity: 1;
}

/* portfolio random card */
/* Compact Portfolio Card (same size as product card) */
.portfolio-card-compact {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    height: 150px;
}

.portfolio-card-compact img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
}

.portfolio-card-compact:hover img {
    transform: scale(1.05);
}

.portfolio-overlay-compact {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-card-compact:hover .portfolio-overlay-compact {
    opacity: 1;
}

.carousel-indicators {
    bottom: -40px;
    /* geser ke bawah */
    justify-content: center;
}

.carousel-indicators [data-bs-target] {
    background-color: #aaa;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    opacity: 0.5;
    margin: 0 5px;
    border: none;
    transition: background-color 0.3s ease, opacity 0.3s ease;
}

.carousel-indicators .active {
    background-color: #dc3545 !important;
    /* merah saat aktif */
    opacity: 1;
}



/* Responsive Adjustments */
@media (max-width: 768px) {
    .portfolio-image-wrapper {
        height: 220px;
    }
}

@media (max-width: 576px) {
    .portfolio-image-wrapper {
        height: 180px;
    }
}

/* Kartu utama portfolio di index*/

.portfolio-index-card {
    position: relative;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    background-color: #fff;
}

.portfolio-index-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-index-card:hover img {
    transform: scale(1.05);
}

/* Overlay saat hover */
.portfolio-index-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.portfolio-index-card:hover .portfolio-index-overlay {
    opacity: 1;
}

.portfolio-index-caption {
    color: white;
    max-width: 80%;
    text-align: center;
}

.portfolio-index-caption h5 {
    font-weight: bold;
    margin-bottom: 0.25rem;
    font-size: 1.25rem;
}

.portfolio-index-caption p {
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.portfolio-index-caption a.btn {
    font-weight: 500;
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 0.85rem;
}

/* Carousel controls */
.custom-carousel-control {
    width: 5%;
}

.carousel-control-prev,
.carousel-control-next {
    filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.5));
}

/* Carousel indicators (moved outside carousel) */
.carousel-indicators-wrapper {
    margin-top: 1rem;
}

.carousel-indicators {
    gap: 8px;
}

.carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #444;
    opacity: 0.6;
    transition: opacity 0.3s;
    border: none;
}

.carousel-indicators .active {
    background-color: #dc3545;
    opacity: 1;
}

/* Responsiveness */
@media (max-width: 768px) {
    .portfolio-index-card {
        height: 220px;
    }

    .portfolio-index-caption h5 {
        font-size: 1rem;
    }

    .portfolio-index-caption p {
        font-size: 0.75rem;
    }
}

@media (max-width: 576px) {
    .portfolio-index-card {
        height: 180px;
    }

    .portfolio-index-caption h5 {
        font-size: 0.9rem;
    }

    .portfolio-index-caption a.btn {
        font-size: 0.75rem;
    }
}

@media (max-width: 576px) {
    .portfolio-index-caption p:last-of-type {
        display: none;
    }
}

/* faq */
.icon-circle {
    width: 32px;
    height: 32px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    font-size: 1rem;
}

/* Responsive tweak untuk mobile */
@media (max-width: 576px) {
    .icon-circle {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }
}

/* visi misi */
.visimisi-image {
    width: 100%;
    height: 300px;
    display: block;
    object-fit: cover;
}

.object-fit-cover {
    object-fit: cover;
    object-position: center;
}


/* Process di tentang */
.process-box {
    background-color: rgba(17, 16, 16, 0.9);
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.process-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(255, 165, 0, 0.2);
}

.text-light-50 {
    color: rgba(255, 255, 255, 0.6);
}


/* Chatbot */
#chat-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1001;
    font-size: 24px;
    padding: 12px;
    border-radius: 50%;
    background-color: #ea0000;
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

#chat-toggle:hover {
    background-color: #c70000;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

#chat-box {
    display: none;
    flex-direction: column;
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 380px;
    height: 500px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    z-index: 1002;
    /* Lebih tinggi dari WA */

}

#chat-header {
    background-color: #111;
    color: white;
    padding: 12px 16px;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
}

#chat-body {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    background-color: #f9f9f9;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-bubble {
    padding: 10px 14px;
    border-radius: 16px;
    max-width: 75%;
    word-wrap: break-word;
    font-size: 14px;
    line-height: 1.4;
}

.chat-user {
    background-color: #e0e0e0;
    align-self: flex-end;
    margin-left: auto;
}

.chat-bot {
    background-color: #e9c4c4;
    align-self: flex-start;
    margin-right: auto;
}

#typing-indicator {
    display: none;
    padding: 0 16px 10px;
    font-size: 13px;
    color: #888;
    font-style: italic;
}

.dot-typing::after {
    content: '.';
    animation: dots 1s steps(3, end) infinite;
}

@keyframes dots {
    0% {
        content: '.';
    }

    33% {
        content: '..';
    }

    66% {
        content: '...';
    }

    100% {
        content: '.';
    }
}

#chat-input-area {
    display: flex;
    padding: 12px 16px;
    border-top: 1px solid #ddd;
    background-color: #fff;
    gap: 10px;
}

#chat-input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 12px;
    font-size: 14px;
    resize: none;
    min-height: 38px;
    max-height: 100px;
    overflow-y: auto;
}

#chat-send {
    font-size: 18px;
    padding: 4px 12px;
    cursor: pointer;
    background-color: #ea0000;
    border: none;
    color: white;
    border-radius: 4px;

}

/* Media Query for mobile optimization */
@media (max-width: 480px) {
    #chat-box {
        width: calc(100% - 40px);
        height: 80vh;
        right: 10px;
        bottom: 70px;
        border-radius: 10px;
    }

    #chat-toggle {
        right: 10px;
        bottom: 10px;
    }
}

/* whatsapp */
.whatsapp-float {
    position: fixed;
    bottom: 100px;
    right: 22px;
    z-index: 1001;
    width: 64px;
    /* ukuran fix */
    height: 64px;
    /* ukuran fix */
    border-radius: 50%;
    background-color: #25d366;
    color: white;
    font-size: 32px;
    /* sesuaikan icon supaya proporsional */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    border: none;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
    padding: 0;
    /* hapus padding biar gak tambah ukuran */
}

.whatsapp-float:hover {
    background-color: #1ebea5;
    transform: scale(1.1);
}

.whatsapp-icon {
    font-family: "Font Awesome 5 Brands";
    font-size: 32px;
    /* harus sama dengan font-size tombol */
    line-height: 1;
}

@media (max-width: 480px) {
    .whatsapp-float {
        bottom: 90px;
        /* sejajar dengan posisi chat-box */
        right: 13px;
        /* agar sejajar dengan #chat-toggle */
        width: 65px;
        height: 65px;
        font-size: 28px;
    }

    .whatsapp-icon {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .mt-mobile-extra {
        margin-top: 300px !important;
    }
}

.text-danger-bright {
  color: #ff0000;
}

/* quick reply bot */
.quick-reply {
    background-color: #e70909;
    border: 1px solid #ccc;
    border-radius: 20px;
    padding: 6px 14px;
    margin: 5px 5px 0 0;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s ease;
}
.quick-reply:hover {
    background-color: #f63a06;
}

/*pop up mail*/
@media (max-width: 576px) {
    .toast {
        width: 100%;
        max-width: 100%;
        border-radius: 0;
    }

    .position-fixed.bottom-0.end-0.p-3 {
        padding: 0;
        right: 0;
        bottom: 0;
    }
}







