/* CSS Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}
body {
    background-color: #121212;
    color: #e0e0e0;
    line-height: 1.6;
}
a {
    text-decoration: none;
    color: inherit;
}
ul {
    list-style: none;
}
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #FF8C00;
    color: #121212;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}
.btn:hover {
    background-color: #ff9a1f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.3);
}
.section-title {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #FF8C00;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
    font-weight: 700;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #FF8C00;
}

/* Scroll Animation Styles */
.fade-in {
    opacity: 0;
    transition: opacity 0.8s ease-out;
}
.fade-in.active {
    opacity: 1;
}
.slide-in-up {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.slide-in-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* Header Styles */
header {
    background-color: #000000;
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid #333;
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #FF8C00;
    display: flex;
    align-items: center;
}
.logo i {
    margin-right: 10px;
    font-size: 1.5rem;
}
nav ul {
    display: flex;
}
nav ul li {
    margin-left: 30px;
    position: relative;
}
nav ul li a {
    font-weight: 500;
    transition: color 0.3s ease;
    color: #e0e0e0;
}
nav ul li a:hover {
    color: #FF8C00;
}
nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #FF8C00;
    transition: width 0.3s ease;
}
nav ul li a:hover::after {
    width: 100%;
}
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #FF8C00;
    font-size: 1.5rem;
    cursor: pointer;
}
/* Hero Section */
.hero {
    margin-top: 80px;
    height: 90vh;
    position: relative;
    overflow: hidden;
}
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    background-size: cover;
    background-position: center;
}
.hero-slide.active {
    opacity: 1;
}
.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 80%;
    max-width: 800px;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid #333;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.slide-content h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #FF8C00;
    font-weight: 700;
}
.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #e0e0e0;
}
.hero-controls {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
}
.hero-dots {
    display: flex;
    margin: 0 20px;
}
.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.hero-dot.active {
    background-color: #FF8C00;
    transform: scale(1.2);
}
.hero-arrow {
    color: #e0e0e0;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-arrow:hover {
    color: #FF8C00;
    background-color: rgba(255, 140, 0, 0.2);
}
/* Cars Section */
.cars {
    padding: 100px 0;
    background-color: #1a1a1a;
}
.cars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.car-card {
    background-color: #252525;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: 1px solid #333;
}
.car-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(255, 140, 0, 0.2);
    border-color: #FF8C00;
}
.car-image {
    height: 200px;
    overflow: hidden;
}
.car-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.car-card:hover .car-image img {
    transform: scale(1.1);
}
.car-info {
    padding: 20px;
}
.car-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #FF8C00;
}
.car-info p {
    color: #b0b0b0;
    margin-bottom: 20px;
}
/* About Section */
.about {
    padding: 100px 0;
    background-color: #121212;
}
.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}
.about-text {
    flex: 1;
}
.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #FF8C00;
}
.about-text p {
    margin-bottom: 20px;
    color: #b0b0b0;
}
.about-image {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
}
.about-image img {
    width: 100%;
    height: auto;
    display: block;
}
/* Contact Section */
.contact {
    padding: 100px 0;
    background-color: #1a1a1a;
}
.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}
.contact-icon {
    font-size: 1.5rem;
    color: #FF8C00;
    margin-top: 3px;
}
.contact-text h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: #FF8C00;
}
.contact-text p, .contact-text a {
    color: #b0b0b0;
}
.contact-text a:hover {
    color: #FF8C00;
}
.contact-form {
    background-color: #252525;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid #333;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #e0e0e0;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background-color: #333;
    border: 1px solid #444;
    border-radius: 4px;
    font-size: 1rem;
    transition: all 0.3s ease;
    color: #e0e0e0;
}
.form-group input:focus,
.form-group textarea:focus {
    border-color: #FF8C00;
    outline: none;
    background-color: #3a3a3a;
}
.form-group textarea {
    resize: vertical;
    min-height: 120px;
}
/* Footer */
footer {
    background-color: #000000;
    padding: 60px 0 20px;
    border-top: 1px solid #333;
}
.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}
.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #FF8C00;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}
.footer-logo i {
    margin-right: 10px;
    font-size: 1.5rem;
}
.footer-about p {
    margin-bottom: 20px;
    color: #b0b0b0;
}
.social-links {
    display: flex;
    gap: 15px;
}
.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #333;
    border-radius: 50%;
    color: #FF8C00;
    transition: all 0.3s ease;
}
.social-link:hover {
    background-color: #FF8C00;
    color: #000000;
    transform: translateY(-3px);
}
.footer-links h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #FF8C00;
}
.footer-links ul li {
    margin-bottom: 10px;
}
.footer-links ul li a {
    transition: color 0.3s ease;
    color: #b0b0b0;
}
.footer-links ul li a:hover {
    color: #FF8C00;
}
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    color: #b0b0b0;
    font-size: 0.9rem;
}
/* Testimonials Section */
.testimonials {
    padding: 100px 0;
    background-color: #121212;
    margin-top: 80px; /* Memberi jarak dari header */
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.testimonial-card {
    background-color: #252525;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    border-color: #FF8C00;
}

.testimonial-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 3px solid #FF8C00;
}

.testimonial-quote {
    font-style: italic;
    color: #b0b0b0;
    margin-bottom: 15px;
    flex-grow: 1; /* Membuat semua kartu punya tinggi yang sama */
}

.testimonial-author {
    font-weight: 600;
    color: #e0e0e0;
    margin-top: auto;
}

.testimonial-stars {
    color: #FFD700; /* Warna bintang emas */
    margin-bottom: 15px;
}

/* Styling untuk Halaman Testimoni yang Baru */
.testimonial-subtitle {
    text-align: center;
    color: #e0e0e0;
    font-size: 1.8rem;
    font-weight: 600;
    margin-top: 50px;
    margin-bottom: 20px;
    border-bottom: 2px solid #FF8C00;
    display: inline-block;
    padding-bottom: 10px;
}

.center-container {
    text-align: center;
}

.text-testimonials-grid {
    display: grid;
    grid-template-columns: 1fr; /* Hanya satu kolom untuk teks */
    gap: 20px;
    max-width: 800px;
    margin: 0 auto 50px auto; /* Tengahkan grid */
}

.text-testimonial-card {
    background-color: #252525;
    padding: 25px;
    border-radius: 8px;
    border-left: 5px solid #FF8C00;
    text-align: left;
}

.text-testimonial-card .testimonial-quote {
    font-size: 1.1rem;
    font-style: normal;
}

.photo-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.photo-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid #333;
}

.photo-item img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}
/* Google Maps Rating Section */
.gmaps-rating {
    padding: 100px 0;
    background-color: #1a1a1a;
}

.gmaps-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}

.gmaps-info {
    flex: 1;
    min-width: 300px;
}

.gmaps-info h3 {
    font-size: 2rem;
    color: #FF8C00;
    margin-bottom: 20px;
}

.gmaps-info p {
    color: #b0b0b0;
    margin-bottom: 30px;
}

.rating-box {
    background-color: #252525;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #333;
    display: flex;
    align-items: center;
    gap: 20px;
}

.rating-score {
    font-size: 3rem;
    font-weight: 700;
    color: #e0e0e0;
}

.rating-details .stars {
    color: #FFD700;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.rating-details .review-count {
    color: #b0b0b0;
    font-size: 1rem;
}

.gmaps-screenshot {
    flex: 1;
    min-width: 300px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    overflow: hidden; /* agar gambar mengikuti border-radius */
}

.gmaps-screenshot img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    border: 1px solid #444;
}

/* CHAT WIDGET STYLES */
.chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
    font-family: 'Poppins', sans-serif;
}

.chat-toggle {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #FF8C00, #ff9a1f);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(255, 140, 0, 0.4);
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
}

.chat-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(255, 140, 0, 0.6);
}

.chat-toggle i {
    font-size: 24px;
    color: #000;
    transition: all 0.3s ease;
}

.chat-toggle.active i.fa-comments {
    opacity: 0;
    transform: rotate(90deg);
}

.chat-toggle.active i.fa-times {
    opacity: 1;
    transform: rotate(0deg);
}

.chat-toggle i.fa-times {
    position: absolute;
    opacity: 0;
    transform: rotate(-90deg);
}

.chat-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ff4444;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.chat-container {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background-color: #000;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    border: 1px solid #333;
    display: none;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.8);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.chat-container.active {
    display: flex;
    transform: scale(1);
    opacity: 1;
}

.chat-header {
    background: linear-gradient(135deg, #FF8C00, #ff9a1f);
    color: #000;
    padding: 20px;
    text-align: center;
    position: relative;
}

.chat-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.chat-header p {
    margin: 5px 0 0 0;
    font-size: 12px;
    opacity: 0.8;
}

.chat-status {
    position: absolute;
    top: 15px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: #4CAF50;
    border-radius: 50%;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background-color: #121212;
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}

.message {
    margin-bottom: 15px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.user {
    text-align: right;
}

.message.bot {
    text-align: left;
}

.message-bubble {
    display: inline-block;
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
}

.message.user .message-bubble {
    background: linear-gradient(135deg, #FF8C00, #ff9a1f);
    color: #000;
    border-bottom-right-radius: 4px;
}

.message.bot .message-bubble {
    background-color: #252525;
    color: #e0e0e0;
    border: 1px solid #333;
    border-bottom-left-radius: 4px;
}

.chat-input {
    padding: 20px;
    background-color: #1a1a1a;
    border-top: 1px solid #333;
}

.input-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.chat-input input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #333;
    border-radius: 25px;
    background-color: #252525;
    color: #e0e0e0;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.chat-input input:focus {
    border-color: #FF8C00;
    background-color: #2a2a2a;
}

.send-button {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #FF8C00, #ff9a1f);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.send-button:hover {
    transform: scale(1.1);
}

.send-button i {
    color: #000;
    font-size: 16px;
}

.typing-indicator {
    display: none;
    padding: 10px 16px;
    margin-bottom: 10px;
}

.typing-indicator.active {
    display: block;
}

.typing-dots {
    background-color: #252525;
    border: 1px solid #333;
    border-radius: 18px;
    border-bottom-left-radius: 4px;
    padding: 12px 16px;
    display: inline-block;
}

.typing-dots span {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #666;
    margin: 0 2px;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) { animation-delay: 0s; }
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
    }
    
    .about-image {
        order: -1;
    }
}
@media (max-width: 768px) {
    .header-container {
        padding: 0 15px;
    }
    .mobile-menu-btn {
        display: block;
    }
    nav {
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: #000000;
        padding: 20px;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.4s ease;
        border-top: 1px solid #333;
        border-bottom: 1px solid #333;
    }
    nav.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
    nav ul {
        flex-direction: column;
    }
    nav ul li {
        margin: 15px 0;
    }
    .hero {
        height: 70vh;
    }
    .slide-content h1 {
        font-size: 2rem;
    }
    .slide-content p {
        font-size: 1rem;
    }
    .section-title {
        font-size: 2rem;
    }
    
    /* Mobile chat adjustments - Improved for better mobile experience */
    .chat-widget {
        bottom: 15px;
        right: 15px;
    }
    
    .chat-toggle {
        width: 60px;
        height: 60px;
    }
    
    .chat-toggle i {
        font-size: 24px;
    }
    
    .chat-container {
        width: calc(100vw - 30px);
        max-width: 400px;
        height: 75vh;
        max-height: 500px;
        bottom: 80px;
        border-radius: 16px;
        
        /* === PERBAIKAN UTAMA === */
        position: fixed; /* Posisi relatif terhadap layar */
        left: 50%;
        right: auto; /* Hapus properti right agar tidak konflik */
        transform: translateX(-50%) scale(0.8); /* Gabungkan transform */
    }

    .chat-container.active {
        transform: translateX(-50%) scale(1); /* Atur transform saat aktif */
    }
    
    .chat-header {
        padding: 15px 20px;
    }
    
    .chat-header h3 {
        font-size: 18px;
    }
    
    .chat-messages {
        padding: 15px;
    }
    
    .message-bubble {
        font-size: 14px;
        padding: 12px 16px;
        max-width: 85%;
    }
    
    .chat-input {
        padding: 15px;
    }
    
    .chat-input input {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 12px 16px;
    }
    
    .send-button {
        width: 44px;
        height: 44px;
    }
    
    .send-button i {
        font-size: 16px;
    }
}
@media (max-width: 576px) {
    .hero {
        height: 60vh;
    }
    .slide-content {
        padding: 20px;
    }
    .slide-content h1 {
        font-size: 1.5rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .btn {
        padding: 10px 20px;
    }

    /* PERUBAHAN UNTUK TAMPILAN MOBIL */
    .cars-grid {
        grid-template-columns: repeat(2, 1fr); /* Membuat 2 kolom */
        gap: 15px; /* Mengurangi jarak antar item */
    }

    .car-image {
        height: 100px; /* Mengurangi tinggi gambar agar pas */
    }

    .car-info {
        padding: 10px; /* Mengurangi padding */
    }

    .car-info h3 {
        font-size: 0.9rem; /* Ukuran font judul mobil */
        line-height: 1.3;
    }

    .car-info p {
        font-size: 0.75rem; /* Ukuran font deskripsi */
        margin-bottom: 15px;
    }

    .car-info .btn {
        padding: 6px 10px;
        font-size: 0.7rem;
        width: 100%; /* Tombol memenuhi lebar card */
    }
    /* END PERUBAHAN TAMPILAN MOBIL */

    /* PERUBAHAN UNTUK GALERI FOTO */
    .photo-gallery-grid {
        grid-template-columns: repeat(2, 1fr); /* Membuat 2 kolom untuk galeri */
        gap: 10px; /* Mengurangi jarak antar foto */
    }
    .photo-item img {
        height: 120px; /* Menyesuaikan tinggi gambar galeri */
    }
    /* END PERUBAHAN GALERI FOTO */
    
    /* Extra mobile optimizations for chat */
    .chat-widget {
        bottom: 10px;
        right: 10px;
    }
    
    .chat-toggle {
        width: 50px;
        height: 50px;
        box-shadow: 0 6px 20px rgba(255, 140, 0, 0.4);
    }
    
    .chat-toggle i {
        font-size: 20px;
    }
    
    .chat-container {
        width: calc(100vw - 20px);
        height: 75vh;
        max-height: 550px;
        bottom: 65px;
        border-radius: 12px;
        
        /* === PERBAIKAN UTAMA DI SINI JUGA === */
        position: fixed; /* Pastikan ini juga fixed */
        left: 50%;
        right: auto;
        transform: translateX(-50%) scale(0.8);
    }

    .chat-container.active {
         transform: translateX(-50%) scale(1);
    }
    
    .chat-header {
        padding: 12px 15px;
    }
    
    .chat-header h3 {
        font-size: 15px;
    }
    
    .chat-header p {
        font-size: 11px;
    }
    
    .chat-status {
        top: 12px;
        right: 15px;
        font-size: 11px;
    }
    
    .status-dot {
        width: 6px;
        height: 6px;
    }
    
    .chat-messages {
        padding: 12px;
    }
    
    .message {
        margin-bottom: 12px;
    }
    
    .message-bubble {
        font-size: 14px;
        padding: 8px 12px;
        max-width: 90%;
        border-radius: 16px;
    }
    
    .message.user .message-bubble {
        border-bottom-right-radius: 3px;
    }
    
    .message.bot .message-bubble {
        border-bottom-left-radius: 3px;
    }
    
    .chat-input {
        padding: 12px;
    }
    
    .input-container {
        gap: 8px;
    }
    
    .chat-input input {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 10px 12px;
        border-radius: 20px;
    }
    
    .send-button {
        width: 34px;
        height: 34px;
        min-width: 34px;
        flex-shrink: 0;
    }
    
    .send-button i {
        font-size: 13px;
    }
    
    .typing-indicator {
        padding: 8px 12px;
    }
    
    .typing-dots {
        padding: 8px 12px;
        border-radius: 16px;
        border-bottom-left-radius: 3px;
    }
    
    .typing-dots span {
        width: 6px;
        height: 6px;
    }
    
    .chat-badge {
        width: 18px;
        height: 18px;
        font-size: 11px;
        top: -4px;
        right: -4px;
    }
}

/* Landscape mobile adjustments */
@media (max-width: 896px) and (orientation: landscape) {
    .chat-container {
        height: 85vh;
        max-height: 400px;
    }
}

/* Touch improvements */
@media (hover: none) and (pointer: coarse) {
    .chat-toggle:hover {
        transform: none;
    }
    
    .chat-toggle:active {
        transform: scale(0.95);
    }
    
    .send-button:hover {
        transform: none;
    }
    
    .send-button:active {
        transform: scale(0.95);
    }
    
    .hero-arrow:hover {
        color: #e0e0e0;
        background-color: rgba(0, 0, 0, 0.5);
    }
    
    .hero-arrow:active {
        color: #FF8C00;
        background-color: rgba(255, 140, 0, 0.2);
    }
}

/* Fix iOS safari viewport issues */
@supports (-webkit-touch-callout: none) {
    .chat-container {
        height: 70vh;
    }
    
    @media (max-width: 576px) {
        .chat-container {
            height: 65vh;
        }
    }
}

