/* assets/css/index.css - FINAL FIXED MOBILE & SCROLL & NEW TESTIMONIAL */

/* =========================================
   0. ANIMASI SCROLL
   ========================================= */
.reveal-item {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}
.reveal-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   1. HERO SLIDER (91vh)
   ========================================= */
.hero-slider-container {
    width: 100%; height: 91vh; 
    position: relative; overflow: hidden; background-color: #FAF5E6;
}
.slides-wrapper { 
    display: flex; width: 100%; height: 100%; 
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1); 
}
.hero-slide {
    min-width: 100%; width: 100%; height: 100%; flex-shrink: 0;
    background-size: cover; background-position: center; position: relative;
    display: flex; align-items: center; justify-content: center;
}
.hero-slide::before {
    content: ''; position: absolute; inset: 0; 
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.7)); z-index: 1;
}
.hero-content {
    position: relative; z-index: 2; text-align: center; color: white;
    max-width: 900px; padding: 0 20px; width: 100%;
}
.hero-content h1 {
    font-size: 3.5rem; font-weight: 900; margin-bottom: 20px; line-height: 1.2;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.hero-content p {
    font-size: 1.2rem; margin-bottom: 35px; opacity: 0.95; line-height: 1.6;
}
.btn-primary {
    background-color: #800000; color: white; padding: 15px 40px;
    border-radius: 50px; font-weight: 700; font-size: 1.1rem; display: inline-block;
    transition: 0.3s; border: 2px solid transparent; box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.btn-primary:hover { 
    background-color: #600000; transform: translateY(-3px); box-shadow: 0 10px 25px rgba(0,0,0,0.4); 
}
.slider-indicators {
    position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 10px; z-index: 10; padding: 8px 15px;
    background: rgba(255,255,255,0.15); border-radius: 30px; backdrop-filter: blur(4px);
}
.dot {
    width: 10px; height: 10px; background: rgba(255,255,255,0.5); border-radius: 50%; cursor: pointer; transition: 0.3s;
}
.dot.active { background: #D4AF37; transform: scale(1.3); }

/* =========================================
   2. SECTIONS GLOBAL
   ========================================= */
.about-section, .why-us-section { padding: 100px 0; background: var(--color-bg); overflow: hidden; }
.section-title-large {
    font-size: 2.8rem; color: #800000; font-weight: 800; margin-bottom: 25px; line-height: 1.2;
}
.section-tag {
    color: #D4AF37; font-weight: 700; text-transform: uppercase; letter-spacing: 2px;
    margin-bottom: 10px; display: block; font-size: 0.9rem;
}

/* Flex Layout */
.about-content, .why-us-content {
    display: flex; align-items: center; gap: 80px; justify-content: space-between;
}
.about-video, .why-us-image, .about-description, .why-us-text { flex: 1; width: 100%; }

.about-description p {
    font-size: 1.05rem; line-height: 1.8; color: #444; margin-bottom: 20px; text-align: justify;
}
@media (max-width: 992px) {
    .about-content, .why-us-content { 
        flex-direction: column; /* Tumpuk ke bawah di Tablet/HP */
        gap: 40px; 
        text-align: center; /* Rata tengah khusus mobile */
    }
    
    .about-content { 
        flex-direction: column-reverse; /* Gambar di atas teks untuk About */
    }
    
    /* Reset text-align justify di HP biar lebih enak dibaca */
    .about-description p { 
        text-align: center; 
    }
    
    /* Pastikan tombol ada di tengah saat mobile */
    .about-description .btn-primary {
        margin: 0 auto;
    }
}

/* Video & Image */
.video-container {
    position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;
    border-radius: 20px; box-shadow: 0 20px 50px rgba(0,0,0,0.15); border: 4px solid white;
}
.video-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

.floating-image {
    width: 100%; max-width: 500px; display: block; margin: 0 auto;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.1)); animation: float 5s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }

/* Advantage List */
.advantage-list { margin-top: 30px; display: flex; flex-direction: column; gap: 15px; }
.advantage-item { display: flex; gap: 20px; align-items: flex-start; }
.advantage-icon {
    font-size: 2rem; color: #D4AF37; width: 60px; flex-shrink: 0; text-align: center;
}
.advantage-title-red { color: #800000; font-size: 1.2rem; margin-bottom: 5px; font-weight: 700; }
.advantage-description-p { font-size: 1rem; color: #666; line-height: 1.5; }

/* =========================================
   3. PRODUCT CAROUSEL (GROUP SLIDER)
   ========================================= */
.product-carousel-section { padding: 100px 0; background: var(--color-bg); }
.section-title-carousel { text-align: center; font-size: 2.5rem; color: #800000; margin-bottom: 50px; font-weight: 800; }
.product-carousel-wrapper { position: relative; overflow: hidden; padding: 10px 0; }
.carousel-frame { position: relative; overflow: hidden; }
.carousel-slides-wrapper { display: flex; transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1); }

/* Desktop Grid: 4 Kolom */
.carousel-slide-group {
    min-width: 100%; display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 25px; padding: 15px;
}

/* Nav Buttons */
.carousel-control {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 55px; height: 55px; border-radius: 50%; background: white; color: #800000;
    border: none; box-shadow: 0 5px 20px rgba(0,0,0,0.1); cursor: pointer; z-index: 10;
    display: flex; align-items: center; justify-content: center; transition: 0.3s;
}
.carousel-control:hover { background: #800000; color: white; transform: translateY(-50%) scale(1.1); }
.carousel-control.prev { left: -10px; }
.carousel-control.next { right: -10px; }

/* =========================================
   4. REDESIGNED TESTIMONIALS (COMPACT & MODERN)
   ========================================= */

/* Section & Header */
.testimonials-section {
    padding: 80px 0;
    background: #f8f9fa; /* Abu-abu sangat muda */
    position: relative;
}

.section-header {
    display: flex;
    flex-direction: column;
    align-items: center; /* Paksa ke tengah */
    justify-content: center;
}

/* --- KOTAK RATING COMPACT (REVISI BARU) --- */
.rating-summary-compact {
    display: inline-flex; /* Agar lebarnya menyesuaikan isi (tidak melar) */
    align-items: center;
    gap: 15px; /* Jarak antara Angka dan Bintang */
    background: #fff;
    padding: 10px 25px;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); /* Bayangan tipis */
    margin-top: 10px;
}

.rating-summary-compact span#avg-number {
    font-size: 2rem;
    font-weight: 800;
    color: #800000; /* Maroon */
    line-height: 1;
}

.stars-large {
    display: flex;
    gap: 5px;
}
.stars-large i { 
    font-size: 1.2rem; 
    color: #ffc107; /* Kuning Emas */
}

/* ================= CAROUSEL WRAPPER ================= */
.testimonial-carousel-wrapper {
    position: relative;
    max-width: 1100px; /* Lebar maksimal */
    margin: 40px auto 0;
    padding: 0 20px;
}

/* Slider Track */
.testimonial-slider-track {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 5px 40px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.testimonial-slider-track::-webkit-scrollbar { display: none; }

/* ================= THE NEW CARD DESIGN ================= */
.testimonial-card {
    flex: 0 0 auto;
    width: 100%;
    max-width: 350px;
    scroll-snap-align: center;
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.03);
    transition: transform 0.3s ease;
    position: relative;
}
.testimonial-card:hover { transform: translateY(-5px); }

/* Card Header */
.card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}
.user-avatar {
    width: 50px; height: 50px;
    background: #800000;
    color: white; font-size: 1.5rem; font-weight: bold;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.user-info .user-name {
    margin: 0; font-size: 1.1rem; font-weight: 700; color: #333;
}
.user-info .review-date {
    font-size: 0.85rem; color: #999;
}

/* Rating Bintang */
.card-rating { margin-bottom: 15px; }
.card-rating i { font-size: 1rem; margin-right: 2px; }
.card-rating .filled { color: #ffc107; }
.card-rating .empty { color: #e0e0e0; }

/* Isi Review */
.card-body { position: relative; }
.quote-icon {
    font-size: 2rem; color: rgba(128, 0, 0, 0.1);
    position: absolute; top: -10px; left: -10px;
}
.review-text {
    font-size: 1rem; color: #555; line-height: 1.6;
    font-style: italic; position: relative; z-index: 2; margin: 0;
}

/* Nav Buttons */
.testimonial-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 50px; height: 50px; border-radius: 50%;
    background: white; border: none; box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    color: #800000; font-size: 1.2rem; cursor: pointer; z-index: 10;
    transition: all 0.3s ease;
}
.testimonial-nav:hover { background: #800000; color: white; }
.prev-btn { left: -25px; }
.next-btn { right: -25px; }

/* Responsive Testimonials */
@media (min-width: 768px) {
    .testimonial-card { width: 45%; }
}
@media (min-width: 1024px) {
    .testimonial-card { width: 32%; }
    .prev-btn { left: -60px; }
    .next-btn { right: -60px; }
}
@media (max-width: 767px) {
    .testimonial-nav { display: none; }
    .testimonial-carousel-wrapper { padding: 0; margin-top: 30px; }
    .testimonial-slider-track { padding: 20px; gap: 15px; }
    .testimonial-card { width: 85%; max-width: none; padding: 25px; }
}


/* =========================================
   5. STYLE KARTU PRODUK (Inject dari Menu)
   ========================================= */
.menu-card-item {
    background: white; width: 100%; border-radius: 15px; overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: 0.3s; cursor: pointer;
    border: 1px solid #eee; display: flex; flex-direction: column; height: 100%;
}
.menu-card-item:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(128, 0, 0, 0.15); border-color: #ffdce0; }

/* =========================================
   6. RESPONSIVE MOBILE (FIX LENGKAP)
   ========================================= */
@media (max-width: 1200px) {
    .carousel-control.prev { left: 10px; }
    .carousel-control.next { right: 10px; }
    .about-content, .why-us-content { gap: 50px; }
}

@media (max-width: 992px) {
    .about-content, .why-us-content { flex-direction: column; gap: 40px; }
    .about-content { flex-direction: column-reverse; }
    .hero-content h1 { font-size: 3rem; }
    .about-description p { text-align: center; }
    .carousel-slide-group { grid-template-columns: repeat(2, 1fr); }
    .why-us-image { display: none !important; }
}

@media (max-width: 576px) {
    .hero-slider-container { height: 91vh; }
    .hero-content h1 { font-size: 2.2rem; }
    .hero-content p { font-size: 1rem; margin-bottom: 25px; }
    .btn-primary { padding: 12px 30px; font-size: 1rem; }
    .about-section, .why-us-section, .product-carousel-section { padding: 60px 0; }
    .section-title-large { font-size: 2rem; margin-bottom: 20px; }
    
    .carousel-slide-group {
        display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
        gap: 15px; padding-bottom: 20px; grid-template-columns: none;
    }
    .carousel-slide-group > * { min-width: 85%; scroll-snap-align: center; }
    .carousel-control { display: none; }
}