/* Hero Slider - Full Width Full Height */
.slider {
    width: 100%;
    height: 100vh;
    height: 100dvh; /* Use dynamic viewport height for mobile */
    min-height: 580px;
    position: relative;
    overflow: hidden;
}


.list {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    display: flex;
    width: max-content;
    transition: transform 1s cubic-bezier(0.65, 0.05, 0.36, 1);
}

.item {
    width: 100vw;
    height: 100%;
    position: relative;
}

.item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(30%);
    transition: transform 1.2s ease;
}

.item.active img {
    transform: scale(1.05);
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 10;
    width: 90%;
    max-width: 850px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: clamp(2rem, 4.5vw, 3.8rem);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 20px;
    text-shadow: 2px 2px 12px rgba(0, 0, 0, 0.8);
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.hero-content p {
    font-size: clamp(0.95rem, 2vw, 1.2rem);
    margin-bottom: 35px;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.8);
    color: rgba(255,255,255,0.92);
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: linear-gradient(135deg, #e63946, #c1121f);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 6px 24px rgba(230, 57, 70, 0.5);
    white-space: nowrap;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(230, 57, 70, 0.6);
    background: linear-gradient(135deg, #ff4757, #e63946);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: transparent;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid rgba(255,255,255,0.9);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-3px);
    border-color: white;
}


/* Navigation Buttons */
.buttons {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    z-index: 10;
    transform: translateY(-50%);
    padding: 0 20px;
}

.buttons button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    font-weight: bold;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.buttons button:hover {
    background-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}
h1 {
    text-align: center;
 padding-top: 20px;
}
/* Dots Indicator */
.dots {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    z-index: 10;
    gap: 12px;
}

.dots li {
    list-style-type: none;
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.dots li.active {
    background-color: white;
    transform: scale(1.2);
}

.dots li::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 2px solid transparent;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.dots li.active::after {
    border-color: rgba(255, 255, 255, 0.5);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Improvements */
.wrap {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.glow-container {
    width: 100%;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(230, 57, 70, 0.8),
        transparent
    );
    margin: 60px 0;
    position: relative;
}

.glow-container::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* About Section Improvements */
.about {
    margin: 60px 0;
}

.about1, .about2 {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 80px;
}

.about2 {
    flex-direction: row-reverse;
}

.about .img {
    flex: 1;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
}

.about .img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(230, 57, 70, 0.1), transparent);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.about .img:hover::before {
    opacity: 1;
}

.about .img:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.about .img img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.about .img:hover img {
    transform: scale(1.05);
}

.about .teks {
    flex: 1;
}

.about h2 {
    font-size: 2.2rem;
    color: var(--text-color);
    margin-bottom: 25px;
    line-height: 1.3;
    position: relative;
}

.about h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.about p {
    color: var(--secondary-text);
    line-height: 1.7;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.about a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    background: linear-gradient(135deg, var(--primary-color), #c1121f);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
}

.about a:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(230, 57, 70, 0.4);
}

/* Product Section Improvements */
.product {
    margin: 80px 0;
    text-align: center;
}

.product h1 {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.product h1 span {
    display: inline-block;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    border-radius: 2px;
}

.product-card {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.product1, .product2 {
    flex: 1;
    background-color: #1f2937;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
}


.product1:hover, .product2:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product1:hover img, .product2:hover img {
    transform: scale(1.1);
}

.product-card .teks {
    padding: 25px;
    text-align: left;
}

.product-card .teks p {
    color: var(--secondary-text);
    line-height: 1.7;
    margin-bottom: 25px;
    font-size: 1rem;
}

.product-card .button {
    padding: 0 25px 25px;
}

.product-card .button a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    background: linear-gradient(135deg, var(--primary-color), #c1121f);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
}

.product-card .button a:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(230, 57, 70, 0.4);
}

/* Superiority Section Improvements */
.superiority {
    margin: 80px 0;
}

.judul-superiority {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
}

.judul-superiority h3 {
    margin: 0;
    color: var(--text-color);
}

.judul-superiority a {
    display: inline-block;
    padding: 12px 25px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    border-radius: 5px;
    position: relative;
}

.judul-superiority a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.judul-superiority a:hover::after,
.judul-superiority a.active::after {
    width: 100%;
}

.judul-superiority a:hover,
.judul-superiority a.active {
    color: var(--primary-color);
}

.card-superiority {
    display: flex;
    gap: 50px;
    padding: 30px;
    align-items: center;
    text-align: left;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}


.img-superiority {
    flex: 1;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.img-superiority:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.img-superiority img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

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

.teks-superiority {
    flex: 1;
}

.teks-superiority h1 {
    font-size: 2.2rem;
    color: var(--text-color);
    margin-bottom: 25px;
    line-height: 1.3;
}

.teks-superiority ul {
    list-style: none;
    padding: 0;
}

.teks-superiority li {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    transition: transform 0.3s ease;
}

.teks-superiority li:hover {
    transform: translateX(10px);
}

.teks-superiority p {
    margin: 0;
    color: var(--secondary-text);
    line-height: 1.7;
    display: flex;
    align-items: flex-start;
    font-size: 1.1rem;
}

.teks-superiority i {
    color: var(--primary-color);
    margin-right: 15px;
    font-size: 1.4rem;
    margin-top: 2px;
}

.teks-superiority strong {
    color: var(--text-color);
    margin-right: 5px;
}

/* Responsive Design Improvements */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: clamp(2rem, 4vw, 3.5rem);
        font-weight: 700;
        color: #ffffff;
        margin-bottom: 15px;
        text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .about1, .about2 {
        flex-direction: column;
        gap: 30px;
    }

    .product-card {
        flex-direction: column;
        gap: 30px;
    }

    .card-superiority {
        flex-direction: column;
        gap: 30px;
    }

    .judul-superiority {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .slider {
        height: 70vh;
        min-height: 500px;
    }

    .hero-content h1 {
        font-size: clamp(2rem, 4vw, 3.5rem);
        font-weight: 700;
        color: #ffffff;
        margin-bottom: 15px;
        text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }


    .buttons button {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .about h2 {
        font-size: 1.8rem;
    }

    .product h1 {
        font-size: 2rem;
    }

    .teks-superiority h1 {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .slider {
        height: 60vh;
        min-height: 400px;
    }

    .hero-content h1 {
        font-size: clamp(2rem, 4vw, 3.5rem);
        font-weight: 700;
        color: #ffffff;
        margin-bottom: 15px;
        text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
    }

    .hero-content p {
        font-size: 0.9rem;
    }

    .buttons {
        padding: 0 10px;
    }

    .buttons button {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    .dots {
        bottom: 20px;
    }

    .wrap {
        padding: 40px 15px;
    }

    .about h2 {
        font-size: 1.6rem;
    }

    .product h1 {
        font-size: 1.8rem;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus States for Accessibility */
button:focus,
a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}
/* Add these to your existing styles.css */

/* Rating Stars */
.rating {
    display: flex;
    gap: 2px;
    margin-top: 15px;
}

.rating i {
    color: #FFD700;
    font-size: 1.1rem;
}

/* Enhanced Table Styles */
.choice {
    margin: 60px auto;
    overflow-x: auto;
    width: 100%;
    max-width: 1000px;
    border-radius: 10px;
}

.choice table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.choice th,
.choice td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}


.choice th {
    background: linear-gradient(135deg, var(--primary-color), #c1121f);
    color: white;
    font-weight: 600;
    font-size: 1rem;
}

.choice tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.05);
}



.choice tr:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.01);
    transition: all 0.3s ease;
}


/* Enhanced CTA Buttons */
.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
    min-width: 200px;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}



/* Enhanced Testimonial Styles */
.testimonials-card {
    display: flex;
    gap: 30px;
    margin-top: 40px;
}

.testimoni-card-item {
    background-color: #1f2937;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 30px;
    text-align: left;
    transition: all 0.3s ease;
    position: relative;
}



.testimoni-card-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.testimoni-card-item::before {
    content: '"';
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.3;
    font-family: serif;
}

/* Enhanced FAQ Styles */
.pertanyaan .accordion {
    background-color: #1f2937 !important;
    color: #ffffff !important;
    cursor: pointer;
    padding: 20px 25px;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    text-align: left;
    outline: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding-right: 60px;
    margin-bottom: 0 !important;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    user-select: none;
}



.accordion:after {
    content: "+";
    color: #ffffff;
    font-weight: bold;
    font-size: 24px;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.accordion.active:after {
    content: "-";
    color: #ffffff;
    transform: translateY(-50%) rotate(180deg);
}

.pertanyaan .accordion.active {
    background-color: rgba(255, 255, 255, 0.08) !important;
    border-color: #ffffff !important;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.pertanyaan .accordion:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-2px);
}


.pertanyaan .panel {
    max-height: 0 !important;
    overflow: hidden !important;
    background-color: rgba(31, 41, 55, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-top: none !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 15px !important;
    border-radius: 0 0 12px 12px !important;
    padding: 0 !important;
}


.pertanyaan .panel.show {
    max-height: 500px !important; /* Fixed height for CSS-only transition */
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.panel p {
    padding: 20px 25px;
    margin: 0;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
}

/* Enhanced Cara Pesan */
.cara-pesan ol {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 0;
    list-style: none;
    margin: 40px 0;
}

.cara-pesan li {
    flex: 1;
    max-width: 300px;
    background-color: #1f2937;
    border-radius: 15px;
    padding: 40px 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    transition: all 0.3s ease;
    text-align: center;
}



.cara-pesan li:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.cara-pesan li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), #c1121f);
    border-radius: 15px 15px 0 0;
}

.cara-pesan h1 {
    font-size: 3rem;
    color: var(--primary-color);
    margin: 0 0 15px;
    line-height: 1;
}

.cara-pesan h2 {
    font-size: 1.3rem;
    color: var(--text-color);
    margin: 0 0 15px;
    font-weight: 600;
}



.cara-pesan li p {
    font-size: 1rem;
    color: var(--secondary-text);
    line-height: 1.6;
    margin: 0;
}

.cara-pesan a {
    text-decoration: none;
    font-weight: 500;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.cara-pesan a:hover {
    color: #c1121f;
}

/* Responsive improvements for the new enhancements */
@media (max-width: 768px) {
    .testimonials-card {
        flex-direction: column;
    }

    .cara-pesan ol {
        flex-direction: column;
        align-items: center;
    }

    .cara-pesan li {
        max-width: 100%;
        width: 100%;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .choice {
        margin: 30px 0;
    }

    .choice table {
        font-size: 0.9rem;
    }

    .choice th,
    .choice td {
        padding: 10px;
    }



    /* ====== MOBILE HERO SECTION FIXES (REFINED) ====== */

    /* Restore navigation arrows with better mobile positioning */
    .buttons {
        display: flex !important;
        position: absolute;
        top: 50%;
        width: 100%;
        justify-content: space-between;
        padding: 0 10px;
        z-index: 21;
        transform: translateY(-50%);
        pointer-events: none; /* Let clicks pass through to content if needed, but buttons will have pointer-events: auto */
    }

    .buttons button {
        width: 36px !important;
        height: 36px !important;
        background-color: rgba(0, 0, 0, 0.3) !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        font-size: 16px !important;
        pointer-events: auto;
        backdrop-filter: blur(4px);
    }

    /* Fixed height slider with dynamic viewport support */
    .slider {
        height: 100dvh !important;
        min-height: 520px !important;
    }

    /* Hero content - improved vertical centering and spacing */
    .hero-content {
        top: 48%; 
        left: 50%;
        transform: translate(-50%, -50%);
        padding: 80px 45px 40px; /* Increased side padding (45px) to avoid arrows */
        width: 100%;
        max-width: 450px;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .hero-content h1 {
        font-size: clamp(1.3rem, 5vw, 1.7rem);
        margin-bottom: 12px;
        font-weight: 800;
        line-height: 1.2;
    }

    .hero-content p {
        font-size: 0.82rem;
        margin-bottom: 24px;
        line-height: 1.5;
        color: rgba(255, 255, 255, 0.85);
        max-width: 280px;
    }

    /* Hero Buttons - Better Spacing */
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        width: 100%;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 260px;
        justify-content: center;
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    /* Reposition Dots to bottom edge */
    .dots {
        position: absolute;
        bottom: 15px;
        left: 0;
        width: 100%;
        display: flex;
        justify-content: center;
        z-index: 20;
        gap: 10px;
    }
}




@media (max-width: 576px) {
    .testimoni-card-item {
        padding: 20px;
    }

    .accordion {
        padding: 15px;
        padding-right: 40px;
        font-size: 0.9rem;
    }

    .accordion:after {
        right: 15px;
    }

    .cara-pesan li {
        padding: 30px 20px;
    }

    .cara-pesan h1 {
        font-size: 2.5rem;
    }

    .cara-pesan h2 {
        font-size: 1.1rem;
    }
}
