/* Reset dan gaya dasar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Definisikan variabel tema gelap seperti Vidio.com */
:root {
    --background-color: #1a1d29; /* Gelap seperti Vidio */
    --text-color: #d9d9d9; /* Abu-abu terang untuk teks */
    --sidebar-bg: #252837; /* Sidebar sedikit lebih terang dari body */
    --sidebar-hover-bg: rgba(255, 255, 255, 0.1); /* Hover ringan */
    --accent-color: #2a6df4; /* Biru khas Vidio */
    --card-bg: #252837; /* Kartu gelap */
    --border-color: #3a3e52; /* Batas gelap */
    --nav-bg: #1a1d29; /* Navbar gelap */
    --dot-bg: #6b7280; /* Dot abu-abu gelap */
    --tab-active-bg: rgba(42, 109, 244, 0.2); /* Aksen biru transparan */
    --bottom-nav-bg: #252837; /* Bottom nav lebih terang dari body */
}

a {
    text-decoration: none;
}

/* Terapkan variabel tema */
body {
    font-family: 'Arial', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    padding-bottom: 80px;
}

/* Navbar Desktop */
.desktop-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--nav-bg);
    z-index: 1100;
    padding: 1.5rem 5%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    margin: 0;
}

.nav-links a {
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 500;
    transition: color 0.3s ease, background-color 0.3s ease;
}

/* Header Slider */
.header-slider {
    position: relative;
    height: 100vh;
    min-height: 350px;
    max-height: 800px;
    overflow: hidden;
    margin-top: 0;
}

.slides-container {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.slide-img-container {
    width: 100%;
    height: 100%;
    background-color: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    filter: brightness(0.9);
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    padding: 2rem 5%;
    text-align: center;
}

.slide-category {
    font-size: 0.9rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.slide-content h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin: 0.75rem 0;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.play-button {
    display: inline-flex;
    align-items: center;
    background-color: var(--accent-color);
    color: #fff;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.play-button:hover {
    background-color: #1e5bc3;
    transform: translateY(-3px);
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.0);
    border: none;
    padding: 2rem;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s ease;
}

.prev {
    left: 2rem;
}

.next {
    right: 2rem;
}

.prev svg, .next svg {
    width: 1.5rem;
    height: 1.5rem;
    stroke: #fff;
}

.dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
}

.dot {
    width: 0.75rem;
    height: 0.75rem;
    background-color: var(--dot-bg);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: var(--accent-color);
}

/* Yang Terbaru Section */
.terbaru-section {
    padding: 3rem 5%;
}

.terbaru-section h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-color);
    text-align: left;
    letter-spacing: 1px;
}

.terbaru-container {
    position: relative;
    overflow: hidden;
}

.terbaru-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 1.5rem;
}

.terbaru-card {
    min-width: clamp(200px, 25vw, 300px);
    flex-shrink: 0;
    background-color: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.terbaru-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.terbaru-img-container {
    width: 100%;
    height: 250px; /* Default desktop */
    overflow: hidden;
}

.terbaru-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.terbaru-card h3 {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 600;
    margin: 1rem;
    text-align: center;
    color: var(--text-color);
}

.terbaru-next {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    background: var(--accent-color);
    border: none;
    border-radius: 50%;
    padding: 0.75rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.terbaru-next:hover {
    background: #1e5bc3;
}

.terbaru-next svg {
    width: 1.5rem;
    height: 1.5rem;
    stroke: #fff;
}

/* Produk Section */
.produk-section {
    padding: 3rem 5%;
    background-color: #212430; /* Sedikit lebih terang dari body */
}

.produk-section h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-color);
    text-align: left;
    letter-spacing: 1px;
}

.produk-container {
    position: relative;
    overflow: hidden;
}

.produk-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 1.5rem;
}

.produk-card {
    min-width: clamp(200px, 25vw, 300px);
    flex-shrink: 0;
    background-color: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.produk-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.produk-img-container {
    width: 100%;
    height: 250px; /* Default desktop */
    overflow: hidden;
}

.produk-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.produk-card h3 {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 600;
    margin: 1rem;
    text-align: center;
    color: var(--text-color);
}

.produk-next {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    background: var(--accent-color);
    border: none;
    border-radius: 50%;
    padding: 0.75rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.produk-next:hover {
    background: #1e5bc3;
}

.produk-next svg {
    width: 1.5rem;
    height: 1.5rem;
    stroke: #fff;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--bottom-nav-bg);
    display: flex;
    justify-content: space-around;
    padding: 0.625rem 0;
    z-index: 1000;
    height: 60px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    transition: color 0.3s ease; /* Hapus background-color transition */
}

.nav-item img {
    width: clamp(1.5rem, 4vw, 2rem);
    height: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: 0.2rem;
}

/* Media Queries untuk Responsivitas */
@media (min-width: 1025px) {
    .desktop-nav {
        display: block;
    }
    .bottom-nav {
        display: none;
    }
}

@media (max-width: 1024px) {
    .desktop-nav {
        display: none;
    }
    .header-slider {
        height: 60vh;
    }
    .slide-content h2 {
        font-size: clamp(1.5rem, 3vw, 2.5rem);
    }
    .play-button {
        padding: 0.5rem 1.5rem;
        font-size: 0.9rem;
    }
    .terbaru-card {
        min-width: clamp(180px, 22vw, 250px);
    }
    .terbaru-img-container {
        height: 200px;
    }
    .produk-card {
        min-width: clamp(180px, 22vw, 250px);
    }
    .produk-img-container {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .header-slider {
        height: 50vh;
        min-height: 250px;
    }
    .slide-content {
        padding: 1rem 3%;
    }
    .terbaru-card {
        min-width: clamp(150px, 25vw, 200px);
    }
    .terbaru-img-container {
        height: 180px;
    }
    .produk-card {
        min-width: clamp(150px, 25vw, 200px);
    }
    .produk-img-container {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .header-slider {
        height: 40vh;
        min-height: 200px;
        background-color: var(--card-bg);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
        margin-top: 0; /* Mentok atas */
        position: relative; /* Pastikan posisi relatif untuk dots */
    }

    .slide-content {
        padding: 1rem 3%;
        text-align: left; /* Geser konten ke kiri */
        display: flex;
        flex-direction: column;
        justify-content: flex-end; /* Konten di bagian bawah */
        align-items: flex-start; /* Konten rata kiri */
    }

    .slide-content h2 {
        font-size: clamp(1.25rem, 2.5vw, 2rem);
        margin-bottom: 0.5rem; /* Kurangi jarak ke play button */
    }

    .play-button {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        margin-left: 0; /* Pastikan di kiri */
        position: relative; /* Relatif terhadap slide-content */
    }

    /* Pastikan dots tetap di tengah bawah dan tidak tertabrak */
    .dots {
        bottom: 0.5rem; /* Sedikit lebih tinggi dari bawah */
        left: 50%;
        transform: translateX(-50%);
        z-index: 10; /* Pastikan di atas play button */
    }

    .slide-category {
        display: none; /* Sembunyikan kategori jika masih ada di HTML */
    }
    .terbaru-section, .produk-section {
        padding: 2rem 3%;
    }
    .terbaru-card {
        width: 144px; /* Lebar mobile */
        height: 240px;
    }
    .terbaru-card h3 {
        font-size: 0.9rem;
        margin: 0 auto;
        text-align: center;
        color: var(--text-color);
    }
    .terbaru-img-container {
        height: 208px; /* Tinggi mobile 144x208 */
        min-width: 144px;
    }
    .produk-card {
        width: 200px; /* Lebar mobile */
        height: 140px;
    }
    .produk-card h3 {
        font-size: 0.9rem;
        margin: 0 auto;
        text-align: center;
        color: var(--text-color);
    }
    .produk-img-container {
        height: 113px; /* Tinggi mobile 200x113 */
    }
    .nav-item {
        font-size: 0.65rem;
    }
    .nav-item img {
        width: 1.75rem;
        height: 1.75rem;
        background-color: #3a3e52;
        border-radius: 50%;
    }
}