/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* General Styles */
body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    margin: 0;
    padding: 0;
    background-color: whitesmoke;
}

/* Navigation Styles */
nav {
    background-color: white;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0px;
    padding-left: 30px;
    padding-right: 30px;
}

nav img {
    width: 150px;
}

#nav-menu {
    display: flex;
    flex-grow: 1;
    justify-content: flex-end;
}

#dropdown-icon {
    display: block;
    padding: 20px;
    font-size: 24px;
    cursor: pointer; 
}

#menu-right {
    display: flex;
    align-items: center;
}

#menu-right.show {
    display: flex; 
    flex-direction: column; 
    width: 100%; 
}

div a {
    text-decoration: none;
    color: black;
    margin-left: 10px;
    margin-right: 10px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.hover-underline-animation {
    display: inline-block;
    position: relative;
    color: #D46935;
}

.hover-underline-animation:after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #D46935;
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}

.hover-underline-animation:hover:after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

@media only screen and (max-width: 768px) {
    /* Banner Section Styles */
    .banner-section {
        text-align: center;
        padding: 100px 20px;
        font-family: sans-serif;
        background-image: url("../Images/PROJECK.jpg");
        background-position: center;
        background-size: cover;
        color: #211C84;
        filter: contrast(65%);
    }

    .banner-section h1 {
        -webkit-text-stroke: 2px white;
        paint-order: stroke fill;
        font-family: sans-serif;
        font-weight: bold;
        font-size: 30px;
        position: relative;
        top: -120px;  /* atur posisi teks lebih tinggi */
    }

    .hover-underline-animation{
        padding-bottom: 15px;
    }
    
    nav {
        flex-direction: column; 
        padding: 20px; 
    }

    #nav-menu {
        flex-direction: column; 
        width: 100%; 
    }

    #menu-right {
        display: none; 
        justify-content: right; 
    }

    .banner-section {
        font-size: 28px; 
        padding: 50px 10px; 
    }

    #btn1 {
    background-color: #D46935;
    color: #454495;
    width: 180px;
    height: 40px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    font-family: sans-serif;
    position: relative;
    top: 130px;  /* Biar tombol turun ke bawah */
    outline: 2px solid white;
    }

    #btn1:hover{
    background-color: #454495;
    color: #D46935;
    width: 180px;
    height: 40px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    font-family: sans-serif;
    outline: 2px solid white;
    }
}

@media only screen and (min-width: 769px) {
    #dropdown-icon {
        display: none; 
    }

    #menu-right {
        display: flex; 
    }
}

/* Banner Section Styles */
.banner-section {
    text-align: center;
    font-size: 30px;
    padding: 150px 20px;
    font-family: sans-serif;
    background-image: url("../Images/PROJECK.jpg");
    background-position: center;
    background-size: cover;
    color: #211C84;
    filter: contrast(65%);
}

.banner-section p {
    font-size: 20px;
    padding: 10px 0;
}

.banner-section h1{
    -webkit-text-stroke: 2px white;
    font-weight: bold;
}

#btn1 {
    background-color: #D46935;
    color: #454495;
    width: 180px;
    height: 40px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    outline: 2px solid white;
}

#btn1:hover{
    background-color: #454495;
    color: #D46935;
    width: 180px;
    height: 40px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    outline: 2px solid white;
}

/* Carousel Styles */
.carousel {
    position: relative;
    max-width: 100%;
    margin: auto;
    overflow: hidden;
    max-height: 900px
}

.carousel-slides {
    display: relative;
    transition: transform 0.5s ease;
}

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

.carousel-image {
    width: 100%;
    max-height: 900px;
    object-fit: cover;
}

.carousel-caption {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
    text-align: center;
    margin-bottom: 10px;
}

.dots {
    text-align: center;
    position: absolute;
    bottom: 10px;
    width: 100%;
}

.dot {
    height: 15px;
    width: 15px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
}

.active {
    background-color: #717171;
}

/* Featured Products Section */
.featured-products {
    display: flex;
    justify-content: space-around;
    padding: 50px;
    background-color: #f9f9f9;
}

/* Footer Styles */
footer {
    background-color: white;
    color: black;
    padding: 20px 40px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-weight: bold;
    width: 100%;
    box-sizing: border-box;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
}

.footer-left{
    padding-left: 135px;
    width: 50%;
}

.footer-right {
    padding-left: 300px;
    width: 50%;
    padding-right: 135px;
}

.footer-left a,
.footer-right a {
    text-decoration: none;
    color: black;
}

.footer-left div,
.footer-right div {
    margin-bottom: 5px;
}

.alamat{
    padding-left: 10px;
}

.alamat-2{
    padding-left: 50px;
}

/* Style for the active link */
.active-link {
    font-weight: bold;
    text-decoration: underline;
    color: #D46935; 
}

@media screen and (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: flex-start;
        padding: 0 20px;
        padding-left: 0;
        padding-right: 0;
        width: 100%;
    }

    .footer-left,
    .footer-right {
        width: 100%;
        padding: 10px 0;
    }

    .footer-left {
        padding-left: 0;
    }

    .footer-right {
        padding-left: 0;
        padding-right: 0;
    }

    .footer-left div,
    .footer-right div {
        margin-bottom: 10px;
        font-weight: normal;
        word-break: break-word;
        white-space: normal;
        line-height: 1.6;
        margin-bottom: 8px;
    }

    .alamat{
        padding-left: 10px;
    }

    .alamat-1,
    .alamat-2 {
        display: block;
        width: 100%;
        padding-left: 0 !important;
        margin-left: 0;
        word-break: break-word;
        white-space: normal;
    }


    .footer-left a,
    .footer-right a {
        display: inline;
        font-weight: normal;
        word-wrap: break-word;
        white-space: normal;
    }

    footer {
        padding: 20px;
        text-align: left;
    }
}
