/* ==============================================
   ====== GLOBAL VARIABLES & RESET ======
   ============================================== */
:root {
    --color-primary-dark: #1c1f35;
    --color-accent-gold: #f1b328;
    --color-text-dark: #212529;
    --color-text-muted: #6c757d;
    --color-bg-light: #ffffff;
    --color-bg-offwhite: #f8f9fa;
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Reset untuk Button (Hapus Underline) */
a, a:hover, 
.hp-btn, .hp-btn:hover,
a.hp-btn, a.hp-btn:hover,
.hp-btn--glow-effect, .hp-btn--glow-effect:hover {
    text-decoration: none !important;
}

/* ==============================================
   ====== HERO SECTION STYLES ======
   ============================================== */
.hp-hero__section {
    position: relative;
    background-color: #1c1f35;
    color: #ffffff;
    height: 100vh;
    min-height: 600px; 
    display: flex;
    align-items: center; 
    overflow: hidden;
}

#hp-hero-3d-canvas {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
}

.hp-hero__container {
    position: relative;
    z-index: 1;
    width: 100%; 
}

.hp-hero__grid {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 4rem;
    align-items: center;
}

.hp-hero__content {
    max-width: 600px; 
    padding-left: 30px;
}

.hp-hero__deco-svg {
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 8px rgba(241, 179, 40, 0.5));
}

.hp-hero__title {
    font-size: 3rem; 
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.hp-text-highlight {
    color: #f1b328;
    position: relative;
    display: inline-block;
}

.hp-hero__description {
    font-size: 0.85rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2.5rem;
    max-width: 90%; 
}

/* --- Button Styling --- */
.hp-btn {
    display: inline-block;
    padding: 0.9rem 2.2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}
.hp-btn--primary {
    background-color: #f1b328;
    color: #1c1f35;
}
.hp-btn--glow:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -10px rgba(241, 179, 40, 0.5),
                0 0 15px rgba(241, 179, 40, 0.3) inset;
}

/* --- Right Image Styling --- */
.hp-hero__image-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px; 
    margin: 0 auto; 
    display: flex;
    justify-content: center;
    animation: heroImageFloat 6s ease-in-out infinite;
}

.hp-hero__image {
    width: 100%;
    height: auto;
    object-fit: contain; 
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3));
}

@keyframes heroImageFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* ==============================================
   ====== TENTANG SECTION (FIX SEMUA CARD SAMA) ======
   ============================================== */
.hp-tentang__section {
    background-color: #ffffff;
    position: relative;
    overflow: hidden;
    padding: 6rem 0; 
}

.hp-tentang__header-wrap {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem auto;
}

/* --- Wrapper Layout --- */
.hp-tentang__cards-wrapper {
    display: flex !important;
    gap: 1.5rem;
    /* Pastikan tinggi container menyesuaikan */
    align-items: stretch; 
}

/* --- Card Styling (Aesthetic Upgrade) --- */
.hp-tentang__card {
    background-color: #ffffff;
    padding: 2.5rem 1.5rem; /* Padding diperbesar agar estetik */
    border-radius: 16px;
    display: flex;
    flex-direction: column; 
    align-items: center;
    text-align: center;
    gap: 1.5rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    height: auto; 
    
    /* [FIX PENTING] Memaksa semua card terlihat SAMA (tidak peduli swiper active/inactive) */
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    width: 100%; /* Default mobile */
}

/* Hover Effect (Berlaku untuk semua card) */
.hp-tentang__card:hover {
    transform: translateY(-8px) !important; /* Force hover movement */
    border-color: rgba(241, 179, 40, 0.4);
    box-shadow: 0 15px 35px rgba(241, 179, 40, 0.15);
}

.hp-tentang__card-icon {
    width: 70px; height: 70px; /* Ukuran icon diperbesar */
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, rgba(241, 179, 40, 0.15) 0%, rgba(241, 179, 40, 0.05) 100%);
    border-radius: 50%; 
    color: #f1b328;
    transition: transform 0.3s ease;
}
/* SVG Icon Size */
.hp-tentang__card-icon svg {
    width: 32px; height: 32px; 
}

.hp-tentang__card:hover .hp-tentang__card-icon {
    transform: scale(1.1) rotate(5deg);
    background: #f1b328;
    color: #fff;
}

.hp-tentang__card-text p {
    font-size: 1rem; 
    color: #212529; 
    line-height: 1.5;
    margin: 0;
    font-weight: 700;
}

/* Desktop Logic (5 Columns) */
@media (min-width: 992px) {
    .hp-tentang__cards-wrapper {
        flex-wrap: nowrap; /* Satu baris */
        justify-content: center;
        gap: 1.5rem; 
    }

    .hp-tentang__card {
        /* Kalkulasi presisi: 100% dibagi 5 dikurangi gap */
        width: calc(20% - 1.2rem) !important; 
        max-width: none !important; 
        margin-right: 0 !important;
    }
}

/* ==============================================
   ====== TESTIMONI SECTION (FIX COLOR & SIZING) ======
   ============================================== */
.testimonial-section {
  --primary-color: #1c1f35;
  --primary-gradient: linear-gradient(90deg, #1c1f35, #8b5cf6);
  --text-dark: #1f2937;
  --text-gray: #6b7280;
  --bg-section: #f8fafc;
  --card-bg: #ffffff;
  
  background-color: var(--bg-section);
  padding: 80px 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  overflow: hidden;
}

.testimonial-section .section-header {
  text-align: center;
  margin-bottom: 60px;
}
.testimonial-section .section-header h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.02em;
}

/* Container Padding Desktop */
.hp-testimoni__carousel-container {
    position: relative;
    padding-bottom: 40px; 
}
@media (min-width: 1024px) {
    .hp-testimoni__carousel-container {
        padding-left: 100px;
        padding-right: 100px;
        box-sizing: border-box; 
    }
}

.testimonial-grid {
  display: flex;
}

/* Style Card */
.testimonial-card {
  background: var(--card-bg);
  border-radius: 24px;
  padding: 40px 32px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  
  /* [FIX PENTING] Reset semua style yang dipengaruhi Swiper Active/Next */
  opacity: 1 !important; 
  transform: scale(1) !important; 
  filter: none !important;
}

.testimonial-card::after {
  content: '';
  position: absolute; top: 0; left: 0; width: 100%; height: 6px;
  background: var(--primary-gradient);
  opacity: 0.7; transition: opacity 0.3s ease;
}

/* Quote warna Black */
.testimonial-card::before {
  content: "“";
  font-family: serif;
  position: absolute; top: 20px; right: 24px;
  font-size: 140px; 
  line-height: 1; 
  color: #000000; /* Hitam */
  opacity: 0.06; 
  z-index: 0; 
  pointer-events: none;
}

/* Hover Effect */
.testimonial-card:hover {
  transform: translateY(-8px) scale(1) !important;
  box-shadow: 0 30px 60px -12px rgba(99, 102, 241, 0.15);
  border-color: rgba(139, 92, 246, 0.3);
}

.testimonial-card .stars, 
.testimonial-card .content, 
.testimonial-card .profile {
  position: relative; z-index: 1;
}

.testimonial-card .stars {
  color: #fbbf24; font-size: 1.1rem; margin-bottom: 24px; display: flex; gap: 4px;
}

.testimonial-card .content {
  font-size: 1.05rem; 
  line-height: 1.8; 
  /* [FIX PENTING] Memaksa warna text konsisten di semua slide */
  color: var(--text-gray) !important; 
  margin-bottom: 30px; 
  font-weight: 400; 
  flex-grow: 1;
}

.testimonial-card .profile {
  display: flex; align-items: center; gap: 16px; padding-top: 24px;
  border-top: 1px solid #f1f5f9;
}

.testimonial-card .profile img {
  width: 56px; height: 56px; border-radius: 50%;
  object-fit: cover; border: 3px solid #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.testimonial-card .profile-info h4 {
  margin: 0; font-size: 1rem; font-weight: 700; color: var(--text-dark);
}
.testimonial-card .profile-info span {
  font-size: 0.85rem; color: var(--primary-color);
  font-weight: 600; margin-top: 4px; display: block;
}

/* ==============================================
   ====== PRODUK SECTION (TETAP) ======
   ============================================== */
.hp-produk__section {
    background-color: #f8fafc;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 0;
    position: relative;
    overflow: hidden;
}

.hp-produk__container-inner {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    position: relative;
}

.hp-section-header {
    text-align: center; 
    max-width: 800px; 
    margin: 0 auto 2rem auto;
}
.hp-deco-line { width: 60px; height: 4px; background: #f1b328; border-radius: 2px; }
.hp-section-title { 
    font-size: 2.2rem; 
    font-weight: 800; 
    color: #1c1f35; 
    margin-bottom: 0.5rem; }
.hp-produk__subtitle { 
    font-size: 0.65rem; 
    color: rgba(255,255,255,0.7); 
    line-height: 1; 
}

.hp-produk__carousel-container {
    padding: 30px 10px 50px 10px;
    overflow: visible !important; 
    position: relative;
}

.hp-produk__card-wrap {
    height: auto;
    display: flex;
    justify-content: center;
}

.hp-produk__card {
    padding: 1.5rem 1rem;
    background: linear-gradient(145deg, #1c1f35 0%, #242845 100%);
    color: #ffffff;
    border-radius: 16px;
    width: 100%;
    height: 100%;
    max-width: 350px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    overflow: hidden;
}

/* Ribbon (Tetap) */
.ribbon-wrapper {
    width: 120px; height: 120px;
    overflow: hidden; position: absolute;
    top: -10px; left: -10px; z-index: 10;
}
.ribbon {
    font-family: sans-serif; font-weight: 800; font-size: 0.75rem;
    text-transform: uppercase; text-align: center; color: #1c1f35;
    position: absolute; top: 30px; left: -30px; width: 150px;
    padding: 8px 0; transform: rotate(-45deg);
    background: linear-gradient(90deg, #fce38a 0%, #f38181 100%);
    box-shadow: 0 5px 10px rgba(0,0,0,0.2); letter-spacing: 1px;
}
.ribbon-offer {
    background: linear-gradient(90deg, #fbbf24 0%, #d97706 100%);
    color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.hp-produk__header { 
    text-align: center; margin-bottom: 1.2rem; 
    position: relative; z-index: 2; 
}
.hp-produk__title { 
    font-size: 1.3rem; 
    font-weight: 700; color: #f1b328; margin-bottom: 0.5rem; 
}
.hp-produk__separator { 
    width: 30px; height: 3px; background-color: rgba(255,255,255,0.1); 
    margin: 0 auto; border-radius: 2px; 
}

.hp-produk__list { 
    padding: 0;
    margin-bottom: 0.5rem; 
    list-style: none;
    flex-grow: 1;
}
.hp-produk__list li { 
    display: flex; gap: 10px; margin-bottom: 8px !important; 
    font-size: 0.85rem; 
    color: #e2e8f0; align-items: center; 
}
.hp-produk__list-icon { 
    flex-shrink: 0; width: 20px; height: 20px; 
    background: rgba(241, 179, 40, 0.2); 
    color: #f1b328; border-radius: 50%; 
    display: flex; align-items: center; justify-content: center; font-size: 0.6rem; 
}

.hp-produk__pricing { 
    text-align: center; 
    margin-bottom: 1rem; 
    background: rgba(0,0,0,0.2); 
    border-radius: 8px; 
    padding: 6px; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0; 
}
.hp-produk__price-coret { 
    text-decoration: line-through; 
    color: #ef4444; 
    font-size: 0.8rem; 
    font-weight: 400; 
    margin: 0;
    line-height: 1.2; 
}
.hp-produk__price-diskon { 
    color: #fff; 
    font-size: 1.4rem; 
    font-weight: 800; 
    margin-bottom: 8px !important;
    line-height: 1.1; 
}

.hp-produk__cta .hp-btn { 
    display: block; width: 100%; text-align: center; 
    background: linear-gradient(45deg, #f1b328, #f59e0b); 
    color: #1c1f35; padding: 12px; border-radius: 12px; 
    font-weight: 700; text-decoration: none; transition: 0.3s; 
    box-shadow: 0 4px 15px rgba(241, 179, 40, 0.3);
}

.hp-swiper-button-next, .hp-swiper-button-prev {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    width: 40px; height: 40px;
    background: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #1c1f35;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: 0.3s;
}
.hp-swiper-button-next:hover, .hp-swiper-button-prev:hover {
    background: #f1b328; color: #fff;
}
.hp-swiper-button-next { right: 20px; }
.hp-swiper-button-prev { left: 20px; }
.hp-swiper-button-next::after, .hp-swiper-button-prev::after { content: ''; } 

/* Effect khusus Produk (tetap aktif zoom hanya untuk active slide) */
@media (min-width: 1024px) {
    .swiper-slide-active .hp-produk__card {
        transform: scale(1.05);
        z-index: 20;
        box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 
                    0 0 0 2px rgba(241, 179, 40, 0.5);
        background: linear-gradient(145deg, #1f233a 0%, #2a2e4d 100%);
    }
    .swiper-slide:not(.swiper-slide-active) .hp-produk__card {
        opacity: 0.7;
        transform: scale(0.95);
    }
}

.hp-swiper-pagination-produk .swiper-pagination-bullet { width: 8px; height: 8px; background: #cbd5e1; opacity: 1; transition: 0.3s; }
.hp-swiper-pagination-produk .swiper-pagination-bullet-active { width: 30px; border-radius: 4px; background: #f1b328; box-shadow: 0 2px 10px rgba(241, 179, 40, 0.5); }


/* ==============================================
   ====== CTA SECTION ======
   ============================================== */
.hp-cta__section {
    background-color: #ffffff;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.hp-cta__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hp-cta__content {
    color: #1c1f35;
    text-align: center; 
    padding: 2rem; 
    background: radial-gradient(circle at center, rgba(241, 179, 40, 0.03) 0%, transparent 70%);
    border-radius: 20px;
}

.hp-cta__desc {
    color: #555;
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

/* Button Glow */
.hp-btn--glow-effect {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #f1b328 0%, #d97706 100%);
    color: #ffffff;
    padding: 18px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    box-shadow: 0 10px 25px -5px rgba(241, 179, 40, 0.6), 
                0 0 10px rgba(255, 255, 255, 0.3) inset;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 350px;
}
.hp-btn--glow-effect:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 35px -10px rgba(217, 119, 6, 0.6);
    filter: brightness(1.1);
}
.hp-btn__icon {
    font-size: 1.2rem;
    transition: transform 0.3s;
}
.hp-btn--glow-effect:hover .hp-btn__icon {
    transform: translateX(5px);
}

/* Timer Card */
.hp-cta__timer-card {
    background: #1c1f35;
    border-radius: 16px;
    padding: 1.5rem;
    margin: 0 auto 2.5rem auto; 
    max-width: 450px; 
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.hp-cta__timer-header {
    display: flex; justify-content: center; align-items: center; gap: 8px;
    font-weight: 600; color: #f1b328; margin-bottom: 1.2rem; font-size: 0.95rem;
}
.hp-cta__timer-icon { stroke: #f1b328; animation: pulse 2s infinite; }

.hp-cta__timer-display {
    display: flex; justify-content: center; align-items: flex-start; gap: 0.8rem;
}
.hp-timer__unit {
    background: rgba(255,255,255,0.05);
    padding: 0.8rem; border-radius: 8px;
    min-width: 70px;
    border: 1px solid rgba(255,255,255,0.1);
}
.hp-timer__value {
    display: block; font-size: 2.2rem; font-weight: 800; color: #fff;
    line-height: 1; font-family: 'Courier New', monospace;
}
.hp-timer__label {
    font-size: 0.75rem; color: #aaa; margin-top: 5px; display: block; text-transform: uppercase; letter-spacing: 1px;
}
.hp-timer__separator {
    font-size: 2rem; color: #f1b328; font-weight: bold; margin-top: 5px;
}
.hp-cta__note { font-size: 0.85rem; color: #888; margin-top: 1.5rem; font-style: italic; }

/* Right Image */
.hp-cta__image-wrapper {
    position: relative;
    display: flex; justify-content: center;
}
.hp-cta__image {
    width: 100%; height: auto;
    border-radius: 20px;
    box-shadow: 20px 20px 60px rgba(0,0,0,0.1);
    position: relative; z-index: 2;
    transform: rotate(2deg);
    transition: transform 0.5s ease;
}
.hp-cta__image-wrapper:hover .hp-cta__image {
    transform: rotate(0deg) scale(1.02);
}
.hp-cta__deco-svg {
    position: absolute; top: -15%; right: -15%;
    width: 130%; height: 130%; z-index: 1;
    animation: spinSlow 40s linear infinite;
}
@keyframes spinSlow { 100% { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.7; } }


/* ==============================================
   ====== RESPONSIVE STYLES (MOBILE & TABLET) ======
   ============================================== */
@media (max-width: 991.98px) {
    /* Hero */
    .hp-hero__section {
        height: auto;
        min-height: 100vh;
        padding: 0; 
        text-align: center;
    }
    .hp-hero__grid {
        grid-template-columns: 1fr; 
        gap: 0;
    }
    .hp-hero__image-wrapper { display: none; }
    .hp-hero__content { margin: 0 auto; padding: 0 1rem; }
    .hp-hero__title { font-size: 2.5rem; margin-bottom: 1rem; }
    .hp-hero__description { font-size: 1rem; margin: 0 auto 2rem auto; }

    /* Tentang (Responsive Mobile - Swiper Aktif) */
    .hp-tentang__cards-wrapper {
        display: flex; 
        flex-wrap: nowrap; 
        justify-content: flex-start;
        gap: 0;
    }
    .hp-tentang__card {
        width: 100%; 
        margin-bottom: 0;
        /* Kembalikan ke 1 card di mobile */
        flex-direction: column;
    }

    /* Testimoni (Responsive) */
    .testimonial-grid { display: flex; flex-direction: row; }

    /* Produk (Responsive Mobile) */
    .hp-produk__section { 
        height: auto; 
        padding: 4rem 0; 
    }
    .hp-produk__carousel-container {
        padding: 20px 2.5rem 50px 2.5rem !important; 
    }
    .hp-swiper-button-next, .hp-swiper-button-prev { display: none; }
    
    /* CTA (Responsive) */
    .hp-cta__section { padding-top: 4rem; padding-bottom: 4rem; }
    .hp-cta__grid { grid-template-columns: 1fr; gap: 3rem; }
    .hp-cta__content { padding: 1rem; background: none; }
    .hp-timer__value { font-size: 1.8rem; }
    .hp-timer__unit { min-width: 60px; padding: 0.5rem; }
    .hp-btn--glow-effect { max-width: 100%; }
    .hp-cta__image-wrapper { display: none; }
}

@media (max-height: 500px) and (orientation: landscape) {
    .hp-hero__section { height: auto; padding: 4rem 0; }
}