﻿/* Atur posisi tombol fixed agar lebih ke atas agar tidak menutupi captcha */
.fixed-bottom-chatbot-btn {
    bottom: 125px !important; /* beri jarak dari bawah sekitar 90px */
    right: -2px !important;
    z-index: 1050; /* pastikan tetap di atas konten lain */
}

/* Style untuk container chatbot */
#chatbotContainer {
    position: fixed;
    bottom: 90px;
    right: 30px;
    width: 350px;
    max-height: 80vh; /* Batas tinggi maksimum */
    z-index: 1050;
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
}

    /* Style untuk card chatbot */
    #chatbotContainer .card {
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    /* Style untuk body card */
    #chatbotContainer .card-body {
        overflow: hidden;
        display: flex;
        flex-direction: column;
        flex-grow: 1;
    }

/* Style untuk area pertanyaan */
#chatQuestion {
    resize: none; /* Nonaktifkan resize */
    min-height: 80px;
    max-height: 150px;
    overflow-y: auto !important;
}

/* Style untuk area jawaban */
#chatAnswer {
    min-height: 100px;
    max-height: 300px;
    overflow-y: auto;
    word-wrap: break-word;
    white-space: pre-wrap;
    background-color: #f8f9fa;
    border-radius: 5px;
    padding: 10px;
    margin-top: 10px;
    border: 1px solid #dee2e6;
    flex-grow: 1;
}

/* Style untuk footer card */
#chatbotContainer .card-footer {
    padding: 10px;
}

.landing-slider-container {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
}

    /* Pastikan gambar full cover dengan overlay langsung di gambar */
    .landing-slider-container .carousel-inner img {
        width: 100%;
        height: 100vh;
        object-fit: cover;
        filter: brightness(0.7); /* Kurangi brightness untuk efek gelap */
    }

/* PERBAIKAN: Hapus overlay pada carousel-inner dan buat overlay khusus untuk gambar */
.carousel-item {
    position: relative;
}

    /* Overlay gelap hanya untuk gambar, tidak mengenai teks */
    .carousel-item::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.4);
        z-index: 1; /* Di atas gambar tapi di bawah teks */
        pointer-events: none;
    }

.carousel-caption {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    z-index: 10; /* Pastikan teks di atas overlay */
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-in-out;
}

.carousel-item.active .carousel-caption {
    opacity: 1;
    transform: translateY(0);
}

.carousel-caption h1 {
    color: white;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease-out;
}

.carousel-caption p {
    color: white;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
    font-size: 1.5rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.carousel-caption .btn {
    animation: fadeInUp 1s ease-out 0.6s both;
    margin: 0 10px;
    padding: 12px 30px;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

    .carousel-caption .btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.landing-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
}

.logo-default {
    height: 50px;
}

/* Mobile Sidebar Menu */
.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(15px);
    z-index: 2000;
    transition: left 0.3s ease;
    box-shadow: 2px 0 20px rgba(0,0,0,0.1);
}

    .mobile-sidebar.active {
        left: 0;
    }

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

    .mobile-overlay.active {
        opacity: 1;
        visibility: visible;
    }

.mobile-menu-header {
    padding: 20px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #333;
    cursor: pointer;
}

.mobile-menu-items {
    padding: 20px 0;
}

    .mobile-menu-items .menu-item {
        margin: 0;
    }

    .mobile-menu-items .menu-link {
        display: block;
        padding: 15px 20px;
        color: #333;
        text-decoration: none;
        border-bottom: 1px solid rgba(0,0,0,0.05);
        transition: all 0.3s ease;
    }

        .mobile-menu-items .menu-link:hover {
            background: rgba(0,123,255,0.1);
            color: #007bff;
        }

.mobile-buttons {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hamburger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

    .hamburger-menu span {
        width: 25px;
        height: 3px;
        background: #333;
        margin: 3px 0;
        transition: 0.3s;
        border-radius: 2px;
    }

    .hamburger-menu.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger-menu.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger-menu.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

.btn-primary {
    background: linear-gradient(45deg, #007bff, #0056b3);
    border: none;
}

.btn-success {
    background: linear-gradient(45deg, #28a745, #1e7e34);
    border: none;
}

.carousel-indicators button {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: 2px solid white;
    background: transparent;
    margin: 0 8px;
    transition: all 0.3s ease;
}

    .carousel-indicators button.active {
        background: white;
        transform: scale(1.2);
    }

/* About Pertamina Section Styles */
.about-pertamina {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

    .about-pertamina::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(90deg, transparent, #007bff, transparent);
    }

.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #2c3e50;
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 30px;
}

    .section-title::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        width: 60px;
        height: 4px;
        background: linear-gradient(45deg, #007bff, #0056b3);
        border-radius: 2px;
    }

.about-content {
    padding-right: 20px;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    text-align: justify;
}

.about-image {
    position: relative;
}

    .about-image img {
        border-radius: 15px;
        transition: transform 0.3s ease;
        box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    }

    .about-image:hover img {
        transform: scale(1.02);
    }

    .about-image::before {
        content: "";
        position: absolute;
        top: -10px;
        left: -10px;
        right: 10px;
        bottom: 10px;
        background: linear-gradient(45deg, #007bff, #28a745);
        border-radius: 15px;
        z-index: -1;
        opacity: 0.1;
    }

/* Perwira Pertamina Section Styles */
.perwira-pertamina {
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

    .perwira-pertamina::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(90deg, transparent, #28a745, transparent);
    }

.perwira-content {
    padding-left: 20px;
}

    .perwira-content .section-title::after {
        background: linear-gradient(45deg, #28a745, #20c997);
    }

.perwira-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    text-align: justify;
}

.perwira-image {
    position: relative;
}

    .perwira-image img {
        border-radius: 15px;
        transition: transform 0.3s ease;
        box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    }

    .perwira-image:hover img {
        transform: scale(1.02);
    }

    .perwira-image::before {
        content: "";
        position: absolute;
        top: -10px;
        left: -10px;
        right: 10px;
        bottom: 10px;
        background: linear-gradient(45deg, #28a745, #6f42c1);
        border-radius: 15px;
        z-index: -1;
        opacity: 0.1;
    }

@media (max-width: 768px) {
    #chatbotContainer {
        width: 90% !important;
        left: 5%;
        right: 5%;
        max-height: 70vh;
    }

    #chatAnswer {
        max-height: 200px;
    }

    .carousel-caption h1 {
        font-size: 2.5rem;
    }

    .carousel-caption p {
        font-size: 1.2rem;
    }

    .landing-slider-container {
        height: 100vh;
        min-height: 500px;
    }

        .landing-slider-container .carousel-inner img {
            height: 100vh;
        }

    .hamburger-menu {
        display: flex;
    }

    /* Sembunyikan menu desktop di mobile */
    #kt_header_nav_wrapper {
        display: none !important;
    }

    /* Sembunyikan tombol register/login di header mobile */
    .button-group {
        display: none !important;
    }

    .carousel-caption {
        padding: 0 15px;
    }

        .carousel-caption .btn {
            font-size: 0.9rem;
            padding: 10px 20px;
            margin: 5px;
        }

    /* About Section Mobile */
    .section-title {
        font-size: 2rem;
        text-align: center;
    }

    .about-content {
        padding-right: 0;
        margin-bottom: 30px;
    }

    .about-text p {
        font-size: 1rem;
        text-align: left;
    }

    .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    /* Perwira Section Mobile */
    .perwira-content {
        padding-left: 0;
        margin-top: 30px;
    }

    .perwira-text p {
        font-size: 1rem;
        text-align: left;
    }
}

@media (max-width: 991px) {
    /* Sembunyikan menu desktop di tablet juga */
    #kt_header_nav_wrapper {
        display: none !important;
    }

    .hamburger-menu {
        display: flex;
    }
}
