/* Global Styles */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Carousel Styling */
.carousel {
    position: relative;
    width: 100%;
    height: 100vh;  /* Ensures carousel takes full viewport height */
    margin: 0 auto;  /* Center the carousel */
    overflow: hidden;
}

.carousel-images {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;  /* Ensure the image container takes the full height of the carousel */
}

.carousel-images img {
    width: 100%;
    height: 100%;  /* Ensures the image covers the entire height */
    object-fit: cover;  /* Ensures image maintains aspect ratio and covers the area without stretching */
}

/* Footer Styling */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 1rem;
    width: 100%;
    position: relative;
    bottom: 0;
}

/* Navbar Styling */
nav {
    background-color: #333;
    padding: 1rem 0;
}

.navbar-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav ul li {
    display: inline-block;
}

nav ul li a {
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

nav ul li a:hover {
    background-color: #575757;
    border-radius: 5px;
}

/* Responsive Design for Mobile */
@media (max-width: 768px) {
    nav ul {
        display: none;
        flex-direction: column;
        align-items: center;
        width: 100%;
        position: absolute;
        top: 60px;
        left: 0;
        background-color: #333;
        z-index: 10;
    }

    nav ul li {
        width: 100%;
        text-align: center;
    }

    nav ul li a {
        padding: 15px;
        width: 100%;
        display: block;
    }

    .menu-icon {
        display: flex;
    }

    nav.active ul {
        display: flex;
    }
}

/* Menampilkan ikon hamburger */
.menu-icon {
    display: none;  /* Sembunyikan default */
    flex-direction: column;
    cursor: pointer;
    width: 30px;
    height: 25px;
}

.menu-icon .bar {
    width: 100%;
    height: 4px;
    background-color: white;
    margin: 5px auto;
}

/* Tampilkan menu icon pada perangkat mobile */
@media (max-width: 768px) {
    .menu-icon {
        display: flex;  /* Tampilkan ikon hamburger */
    }
    /* Gaya navbar ketika aktif */
    nav.active ul {
        display: flex;
    }
}

