/* Reset margin dan padding */
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    font-family: Arial, sans-serif;
}

/* Kontainer slider */
.slider-container {
    position: relative;
    overflow: hidden;
    width: 100vw;
    height: 60vh; /* Atur tinggi slider */
}

/* Slider */
.slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

/* Slide */
.slide {
    min-width: 100vw;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Latar belakang slide */
.background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(8px); /* Efek blur */
    opacity: 0.6; /* Transparansi */
    z-index: 1;
}

/* Konten teks */
.content {
    position: relative;
    z-index: 2; /* Pastikan di atas latar belakang */
    text-align: center;
    color: #fff;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5); /* Latar belakang transparan untuk teks */
    border-radius: 10px;
    max-width: 80%;
}

/* Navigasi dots */
.dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.dot {
    position: relative;
    width: 12px;
    height: 12px;
    background: #ccc;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
}

.dot.active {
    background: #fff;
}

.dot .progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.5);
    transform: scaleX(0);
    transform-origin: left;
    animation: progress 5s linear infinite;
}

/* Keyframes untuk animasi timer */
@keyframes progress {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

/* Tombol navigasi */
.navigation {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    z-index: 3;
}

button {
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    margin: 0 20px;
    transition: background 0.3s;
}

button:hover {
    background: rgba(255, 255, 255, 0.7);
    color: black;
}
