* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    scroll-behavior: smooth;
    font-family: sans-serif;
}
nav {

    margin-top: -8px;
    width: 4%;
    justify-content: space-between;

}
.navbar {
     display: flex;
}
.nav{
    backdrop-filter: blur(6px);
    background-color: rgba(0, 0, 0, 0.288);
    padding: 1.4rem 7%;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background-color: transparent;
    filter: blur(3);
    position: fixed;
    font-family: poppins;
    height: 70px; 

}

.brand {
    display: flex;
    margin-left: 30px;
    color: azure;
    margin-top: -10px;
}
.logo {
    filter: invert(1) brightness(2);
}
.nama1 {
    align-content: center;
    font-size: 20px;
    font-family: poppins;
}
nav ul {
    display: flex;
    text-decoration: none;
    list-style: none;
    gap: 40px;
    font-family: poppins;
    margin-left: 55%;
}
nav ul li a {
    color: white;
    text-decoration: none;
    padding: 8px;
}
nav ul li a:hover {
    background-color: rgba(250,180,93,255);
    border-radius: 10px;
    height: 60px;

}
.home {
    margin: 0;
    padding: 0;
    background-image: url("gambar/bagroundbg.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    height: 680px;
    height: 100vh;
    position: relative;

}
.home img {
    filter:brightness(0,1);
}
h1 {
    color: aliceblue;
    padding-top:250px;
    margin-left: 200px;
    font-size: 50px;
    z-index: 2;
    position: relative;
    font-family: sans-serif;

}
.segi2:hover {
    color: black;
}
.segi6 {
    border-radius: 5px;
    width: 400px;
    height: 400px;
    background-color: rgb(45, 109, 165);
    background-image: url("gambar/awan-sukawati.jpg");
    object-fit: cover;
    object-position: 50% 50%;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    clip-path: polygon(50% 0%, 95% 25%, 95% 75%, 50% 100%, 5% 75%, 5% 25%);

    margin-left: 513px;
    margin-top: -250px;

}
.segi1 {
    background-color: blueviolet;
    background-image: url("gambar/bebatuan-pantai.webp");
    width: 250px;
    height: 250px;
    object-fit: cover;
    object-position: 50% 50%;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    box-shadow: -5px -5px 30px 1px rgba(0, 0, 0, 0.751);
    clip-path: polygon(50% 0%, 95% 25%, 95% 75%, 50% 100%, 5% 75%, 5% 25%);
    margin-left: 980px;
    margin-top: -10px;

}
.segi2 {
    background-color: #d69002;
    width: 220px;
    height: 220px;
    clip-path: polygon(50% 0%, 95% 25%, 95% 75%, 50% 100%, 5% 75%, 5% 25%);
    margin-left: 795px;
    margin-top: -450px;
}
.segi3 {
    background-color: #d69002;
    background-image: url("gambar/pariwisata-gar.avif");
    object-fit: cover;
    object-position: 50% 50%;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    width: 190px;
    height: 190px;
    clip-path: polygon(50% 0%, 95% 25%, 95% 75%, 50% 100%, 5% 75%, 5% 25%);
    margin-left: 860px;
    margin-top: -520px;
}
.segi4 {
    background-color: rgb(226, 141, 43);

    width: 220px;
    height: 5px;
    clip-path: polygon(50% 0%, 95% 25%, 95% 75%, 50% 100%, 5% 75%, 5% 25%);
    margin-left: -90px;
    margin-top: 100px;
}
.segi5 {
    background-color: blueviolet;
    background-image: url("gambar/pantai-biru.jpg");
    width: 180px;
    height: 180px;
    object-fit: cover;
    object-position: 50% 50%;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    clip-path: polygon(50% 0%, 95% 25%, 95% 75%, 50% 100%, 5% 75%, 5% 25%);
    margin-left: 1040px;
    margin-top: -90px;
}
section {

    border-radius: 40px;
    height: 500px;
    margin: 0;
    height: 580px;
}
.menu {
    gap: 40px;
    padding-top: 180px;
    align-items: center;
    margin-left: 130px;
    display: flex;
    margin-left: 300px;

}
.card {
    text-align: center;
    box-shadow: -5px -5px 30px 1px rgba(0, 0, 0, 0.751);
    transition: transform 0.3s;
    height: 280px;
    width: 300px;

}
.card p {
    background-color: rgb(4, 54, 54);
    width: 160px;
    height: 40px;
    margin-top: 15px;
    border-radius: 30px;
    text-decoration-line: none;
    font-family: sans-serif;
    color: rgb(236, 229, 229);
    margin-left: 73px;
    padding: 8px;
}
.card:hover {
    transform: scale(1.05);

}
.about {
    background-color: #212321;
    margin-top: 40px;
    height: 680px;
}
.elemen {
    display: flex;
}

.elemen img {
    width: 380px;
    height: 550px;
    margin-left: 70px;
    margin-top: -120px;
    box-shadow: 5px 5px 5px 5px;
    border-radius: 20px;
}
.elemen p {
    margin: 50px 80px;
    color: rgb(194, 194, 194);
    max-width: 45%;
    font-size: 15px;
    line-height: 22px;
}
h3 {
    font-size: 50px;
    text-align: center;
    color: rgb(213, 210, 210);
    font-family: poppins;
    padding-top: 10%;
    margin-left: 450px;
}
.sejarah {
    background-color: #14120f;
    height: 750px;
    align-items: center;

}
.atur {
    display: flex;
}

.teks-sejarah {
    margin-top: 120px;
    margin-left: 50px;
}
.gmr1 {
    margin: 50px;
    background-color: #d69002;
    height: 380px;
    width: 90px;
}
.ketupat1 {
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    background-image: url("gambar/peninggalan1.jpg");
    object-fit: cover;
    object-position: 50% 50%;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    width: 200px;
    height: 200px;
    background-color: lightblue;
    margin-top: 60px;
}
.ketupat2 {
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    width: 130px;
    height: 130px;
    object-fit: cover;
    object-position: 50% 50%;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-color: lightblue;
    background-image: url("gambar/peninggalan2-goa.png");
    margin-top: 60px;

}
.ketupat3 {
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    background-image: url("gambar/gapura-candi.webp");
    object-fit: cover;
    object-position: 50% 50%;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    width: 200px;
    height: 200px;
    background-color: lightblue;
    margin-top: 60px;
}
.ketupat4 {
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    width: 130px;
    height: 130px;
    object-fit: cover;
    object-position: 50% 50%;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-color: lightblue;
    background-image: url("gambar/goa-garba-1.webp");
    margin-top: 220px;
}
.medsos {
    background-color: #bb7d02;
    height: 400px;
    margin-top: -30px;
    border-top-right-radius: 30px;
    border-top-left-radius: 30px;
    font-size: 50px;
    color: rgb(212, 212, 212);
    padding: 30px 50px;
    font-family: poppins;
}


@media screen and (max-width: 600px) {
    /* General adjustments */
    body {
        overflow-x: hidden;
    }
    .navbar{
         justify-content: flex-end;
         margin-left: 250px;
         gap: 0px;
    }
    
    .nama1 {
        font-size: 16px;
    }
    
    nav ul li a {
        font-size: 14px;
        justify-content: flex-start;
        
        
    }
    nav ul{
        margin-right: 20px;
        gap: 10px;
    }
    
    /* Home section */
    .home {
        height: auto;
        padding-bottom: 50px;
        background-attachment: scroll;
    }
    
    h1 {
        font-size: 28px;
        margin-left: 20px;
        padding-top: 150px;
        text-align: center;
    }
   
    
    h1 span {
        font-size: 36px !important;
        
    }
    
    /* Hide hexagon shapes on mobile */
    .segi1, .segi2, .segi3, .segi4, .segi5, .segi6 {
        display: none;
    }
    
    /* Menu cards section */
    section {
        height: auto;
        padding: 20px 0;
    }
    
    .menu {
        flex-direction: column;
        margin-left: 0;
        padding-top: 30px;
        gap: 20px;
    }
    
    .card {
        width: 80%;
        margin: 0 auto;
        height: auto;
    }
    
    .card img {
        width: 100%;
        height: auto;
    }
    
    .card p {
        margin: 10px auto;
        width: 140px;
    }
    
    /* About section */
    .about {
        height: auto;
        padding: 30px 0;
    }
    
    h3 {
        font-size: 28px;
        margin-left: 0;
        padding-top: 30px;
    }
    
    .elemen {
        flex-direction: column;
    }
    
    .elemen img {
        width: 90%;
        height: auto;
        margin: 20px auto;
    }
    
    .elemen p {
        max-width: 90%;
        margin: 20px auto;
        font-size: 14px;
    }
    
    /* History section */
    .sejarah {
        height: auto;
        padding: 30px 0;
    }
    
    .atur {
        flex-direction: column;
        align-items: center;
    }
    
    .teks-sejarah {
        max-width: 90%;
        margin: 20px auto;
        font-size: 14px;
        text-align: justify;
    }
    
    .ketupat1, .ketupat2, .ketupat3, .ketupat4 {
        margin: 20px auto;
    }
    
    /* Social media section */
    .medsos {
        height: auto;
        padding: 20px;
        font-size: 28px;
    }
    
    /* Adjust spacing for all sections */
    .about, .sejarah, .medsos {
        margin-top: 20px;
    }
}