/* ======================================= */
/* --- GAYA DASAR & HALAMAN UTAMA --- */
/* ======================================= */

/* --- Reset & Variabel Global --- */
:root {
    --primary-color: #00A99D;
    --secondary-color: #1a202c;
    --darker-bg: #151a23;
    --card-bg: #2d3748;
    --border-color: #4a5568;
    --text-color: #cbd5e0;
    --white-color: #ffffff;
    --heading-font: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--secondary-color);
    color: var(--text-color);
    line-height: 1.6;
}
/* Class untuk mengunci scroll saat menu mobile terbuka */
body.nav-is-open {
    overflow: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--white-color);
    margin-bottom: 10px;
}

.cta-button {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s;
    text-align: center;
}

.cta-button:hover {
    background-color: #00877d;
}

/* ======================================= */
/* --- BAGIAN HEADER CSS (DIGANTI) --- */
/* ======================================= */

.main-header {
    background-color: var(--secondary-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); 
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* PERUBAHAN CSS 1: Styling untuk wrapper logo + cart mobile */
.header-left-side {
    display: flex;
    align-items: center;
    gap: 20px; /* Jarak antara logo dan ikon keranjang */
    flex-grow: 1; /* Memastikan grup ini mengambil ruang yang tersedia */
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white-color);
    text-decoration: none;
    z-index: 1001;
    flex-shrink: 0; 
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-icon-link {
    position: relative;
    color: var(--white-color);
    text-decoration: none;
    display: flex;
    align-items: center;
}
.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: #e53e3e;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* PERUBAHAN CSS 2: Mengatur visibilitas ikon keranjang */
.cart-icon-mobile {
    display: flex; /* Tampil di mobile */
}
.cart-icon-desktop {
    display: none; /* Sembunyi di mobile */
}

/* Tombol CTA Desktop */
.cta-desktop {
    display: none; 
}

/* Navigasi Utama (Hanya Desktop) */
.main-nav {
    display: none;
}
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
}
.main-nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s;
}
.main-nav a:hover, .main-nav a.active {
    color: var(--primary-color);
}

/* Navigasi Mobile (Pop-out) */
.mobile-nav {
    display: none; 
    position: fixed;
    top: 73px; 
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--secondary-color);
    padding-top: 30px;
    z-index: 999;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}

body.nav-is-open .mobile-nav {
    display: block;
    transform: translateX(0);
}
.mobile-nav ul {
    list-style: none;
    text-align: center;
    padding: 0;
}
.mobile-nav li {
    margin-bottom: 25px;
}
.mobile-nav a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    padding: 10px;
    display: block;
}
.cta-mobile {
    display: inline-block;
    padding: 10px 30px;
    background-color: #16a34a;
}
.cta-mobile:hover {
    background-color: #15803d;
}

/* Tombol Hamburger */
.nav-toggle {
    display: block; 
    background: transparent;
    border: 0;
    padding: 0.5em;
    cursor: pointer;
    z-index: 1001;
}
.hamburger { display: block; position: relative; width: 1.8em; height: 3px; background: var(--white-color); transition: transform 250ms ease-in-out; }
.hamburger::before, .hamburger::after { content: ''; position: absolute; left: 0; right: 0; height: 3px; background: currentColor; color: var(--white-color); transition: inherit; }
.hamburger::before { top: -7px; }
.hamburger::after { bottom: -7px; }

/* Animasi Hamburger saat menu terbuka */
body.nav-is-open .hamburger { background: transparent; transform: rotate(.625turn); }
body.nav-is-open .hamburger::before { transform: rotate(-45deg) translate(0); top: 0; }
body.nav-is-open .hamburger::after { transform: rotate(45deg) translate(-1px, -1px); bottom: 0; }


/* Tampilan Desktop */
@media (min-width: 850px) {
    .header-left-side {
        flex-grow: 0; /* Kembalikan ke nilai default di desktop */
    }

    /* PERUBAHAN CSS 3: Balik visibilitas ikon keranjang di desktop */
    .cart-icon-mobile {
        display: none; /* Sembunyi di desktop */
    }
    .cart-icon-desktop {
        display: list-item; /* Tampil di desktop */
    }

    .main-nav {
        display: flex;
        flex-grow: 1;
    }
    .main-nav ul {
        width: 100%;
        justify-content: center;
    }
    .nav-toggle {
        display: none;
    }
    .mobile-nav {
        display: none !important;
    }
    .cta-desktop {
        display: inline-block;
    }
    body.nav-is-open {
        overflow: auto;
    }
}


/* ======================================= */
/* --- KONTEN HALAMAN UTAMA & DETAIL --- */
/* ======================================= */
.hero-section { text-align: center; padding: 100px 0; }
.hero-section h1 { font-size: 2.5rem; color: var(--white-color); max-width: 800px; margin: 0 auto 20px; }
.hero-section p { font-size: 1.1rem; max-width: 600px; margin: 0 auto 30px; }

.services-section { padding: 80px 0; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }

@media (min-width: 992px) {
  .services-grid { max-width: 700px; margin-left: auto; margin-right: auto; }
}

.service-card { background-color: var(--card-bg); padding: 30px; border-radius: 8px; text-align: center; height: 100%; display: flex; flex-direction: column; justify-content: space-between; }
.service-card img {
    margin-bottom: 20px;
    height: 60px;
    width: auto;
    align-self: center;
    object-fit: contain;
}
.service-card h3 { color: var(--white-color); margin-bottom: 10px; }
.service-card-link { text-decoration: none; color: inherit; display: block; transition: transform 0.3s, box-shadow 0.3s; height: 100%; }
.service-card-link:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.2); }
.view-detail-btn { display: inline-block; margin-top: 15px; padding: 8px 15px; background-color: var(--primary-color); color: var(--white-color); border-radius: 5px; font-weight: 600; }

.portfolio-section { background-color: var(--darker-bg); padding: 80px 0;}
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.testimonial-card { background-color: var(--card-bg); padding: 25px; border-radius: 8px; border-left: 4px solid var(--primary-color); font-style: italic; }

.about-section { background-color: var(--card-bg); padding: 80px 0;}
.about-flex { display: flex; flex-wrap: wrap; align-items: center; gap: 50px; }
.about-image, .about-content { flex: 1 1 300px; }
.about-image img { width: 100%; border-radius: 8px; }
.about-content h2 { font-size: 2.5rem; color: var(--white-color); margin-bottom: 20px; }

.contact-section { padding: 80px 0; }
.contact-form { max-width: 600px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.contact-form input, .contact-form textarea { width: 100%; padding: 15px; border-radius: 5px; border: 1px solid var(--border-color); background-color: var(--card-bg); color: var(--white-color); }
.contact-form button { align-self: flex-start; border: none; cursor: pointer; }
.main-footer-bottom { text-align: center; padding: 20px 0; border-top: 1px solid #333; margin-top: 40px; }

.product-detail-section { padding: 60px 0; }
.product-detail-grid { display: flex; flex-wrap: wrap; gap: 50px; align-items: flex-start; }
.product-gallery { flex: 1 1 300px; }

.product-gallery img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
}

@media (min-width: 992px) {
    .product-gallery {
        position: sticky;
        top: 120px;
    }
}

.product-info { flex: 1.2 1 300px; }
.product-info h1 { font-size: 2.8rem; color: var(--white-color); margin-bottom: 15px; }
.duration-options { margin-bottom: 25px; }
.duration-options h3 { font-size: 1.2rem; color: var(--white-color); margin-bottom: 15px; }

.options-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr;
}

@media (min-width: 500px) {
    .options-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.option input[type="radio"] { display: none; }
.option label { display: block; background-color: var(--card-bg); border: 2px solid var(--border-color); border-radius: 8px; padding: 15px; cursor: pointer; text-align: center; transition: border-color 0.3s; }
.option label .duration { display: block; font-weight: 600; color: var(--white-color); font-size: 1rem; }
.option label .price { display: block; color: var(--text-color); font-size: 0.9rem; }
.option input[type="radio"]:checked + label { border-color: var(--primary-color); background-color: #3e4c63; }
.description p { font-size: 1rem; line-height: 1.7; margin-bottom: 30px; }
.features, .terms { margin-bottom: 30px; }
.features h3, .terms h3 { color: var(--white-color); font-size: 1.2rem; margin-bottom: 15px; border-bottom: 1px solid var(--border-color); padding-bottom: 10px; }
.features ul, .terms ul { list-style: none; padding-left: 0; }
.features li, .terms li { margin-bottom: 10px; font-size: 1rem; }
.cta-button-large { display: block; width: 100%; background-color: #25D366; color: var(--white-color); text-align: center; padding: 18px 25px; border-radius: 8px; text-decoration: none; font-weight: 700; font-size: 1.2rem; transition: background-color 0.3s; }
.cta-button-large:hover { background-color: #1DAE54; }

.faq-section { padding: 60px 0; background-color: var(--card-bg); }
.faq-item { background-color: var(--secondary-color); border: 1px solid var(--border-color); border-radius: 8px; margin-bottom: 10px; padding: 10px 20px; }
.faq-item summary { font-size: 1.1rem; font-weight: 600; color: var(--white-color); cursor: pointer; list-style: none; position: relative; padding-right: 25px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 5px; font-size: 1.5rem; transition: transform 0.2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding-top: 15px; border-top: 1px solid var(--border-color); margin-top: 15px; }


/* --- GAYA UNTUK HIGHLIGHT STREMIO DI INDEX.HTML --- */
.service-card.stremio-highlight-card {
    background-color: #3e4c63;
    border-left: 5px solid var(--primary-color);
}
.service-card-link:hover .stremio-highlight-card {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}
.service-card-link.stremio-highlight-card {
    text-decoration: none;
    color: inherit;
}

@media (max-width: 768px) {
    .section-title h2 {
        font-size: 2rem;
    }
    .service-card.stremio-highlight-card {
        background-color: var(--card-bg);
        border-left: none;
        transform: none;
        box-shadow: none;
    }
}

/* ======================================= */
/* --- GAYA NOTIFIKASI (TAMBAHKAN INI) --- */
/* ======================================= */

.toast-notification {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translate(-50%, 150%); /* Mulai dari bawah layar */
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 16px 25px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.25);
    z-index: 2000;
    font-weight: 600;
    font-size: 1rem;
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.215, 0.610, 0.355, 1), opacity 0.4s ease;
}

.toast-notification.show {
    transform: translate(-50%, 0); /* Muncul ke posisi akhir */
    opacity: 1;
}

.toast-notification.error {
    background-color: #e53e3e; /* Warna merah untuk notifikasi error */
}
