* {
    margin: 0;
}

body {
    font-family: Arial, Helvetica, sans-serif;
}

/* header */
header{
    position: sticky;
    top: 0;
    z-index: 1;
}
nav{
    display: flex;
    justify-content: flex-end;
    background-color: #213448;
    padding: 0.8rem;
    max-height: 40px;
}

.logo {
    margin-right: auto;
}
.logo img {
    position: relative;
    height: 50px;
    bottom: 5px;
}

nav ul{
    display: flex;
    align-items: center;
    gap: 25px;
    list-style: none;
    margin-right: 1rem;
}
nav ul li a{
    color: white;
    text-decoration: none;
    padding: 0.5rem;
    transition: 0.5s ease;
}

nav ul li a:hover{
    background-color: #547792;
    width: 200px;
    border-radius: 5px;
}
.dropdown {
    transition: 0.5s ease;
}
.dropdown-content{
    position: absolute;
    display: none;
    z-index: 1;
    background-color: #213448;
    margin-top: 5px;
    padding: 0.2rem;
    line-height: 2rem;
    border-radius: 5px;
    transition: 0.5s ease;
}
.dropdown:hover .dropdown-content{
    display: block;
}
/* header-end */

/* beranda */
.beranda {
    padding: 4rem 2rem;
    background-color: #F1E6C9;
    text-align: center;
}

.beranda h1 {
    margin-bottom: 2rem;
    font-size: 2.5rem
}

.beranda h3 {
    color: rgb(63, 163, 78); 
    margin-bottom: 1rem;
}
    
/* beranda-end */ 


/* sejarah */
.sejarah {
    background-color: #629FAD;
    text-align: center;
    padding: 4rem 2rem;
}
.sejarah h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.sejarah h3 {
    margin-bottom: 1rem;
}

.sejarah span {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    background-color: #213448;
    color: white;
}

.sejarah p {
    margin-top: 1rem;
}
.sejarah-container{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}
.sejarah .container-item{
    background-color: #F1E6C9;
    border-radius: 10px;
    padding: 1rem;
    margin: 1rem;
    width: 500px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.sejarah .container-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}
/* sejarah-end */

/* wisata */
.wisata {
    padding: 4rem 2rem;
    background-color: #ABDADC;
    text-align: center;
}

.wisata h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}
.wisata h3 {
    margin-bottom: 0.5rem;
}
.wisata-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}
.wisata .container-item {
    background-color: #F1E6C9;
    border-radius: 10px;
    overflow: hidden;
    width: 400px;
    margin: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.wisata .container-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.container-item:hover img{
    transform: scale(1.1);
}

.wisata img{
    width: 100%;
    transition: all 0.3s ease;
}

.wisata .container-text{
    padding: 1rem;
}
/* wisata-end */

/* kuliner */
.kuliner {
    padding: 4rem 2rem;
    background-color: #629FAD;
    text-align: center;
}

.kuliner h2{
    color: white;
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.kuliner h3{
    margin-bottom: 0.5rem;
}
.kuliner-container{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}
.kuliner .container-item{
    background-color: #F1E6C9;
    border-radius: 10px;
    overflow: hidden;
    width: 400px;
    margin: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.kuliner .container-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.kuliner img{
    width: 100%;
}
.kuliner .container-text{
    padding: 1rem;
}
/* kuliner-end */

/* about me */
.contact {
    margin-top: 1rem;
    padding: 4rem 2rem;
    text-align: center;
    background-color: whitesmoke;
}
.contact h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}
profil {
    margin-top: 2rem;
    background-color: whitesmoke;
    padding: 2rem 1rem;
    text-align: center;
}

.profil-container {
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.profil-img {
    width: 210px;
    height: 220px;
    border-radius: 50%;
    border: 2px solid black;
    background-color: white;
    transition: 0.5s ease;
    overflow: hidden;
}

.profil-img img{
    width: 100%;
}

.profil-img:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 25px rgba(255, 255, 255, 0.4);}

.profil-text {
    background-color: lightgray;
    width: 50%;
    height: 100px;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
    border-radius: 10px;
    transition: 0.5s ease;
}

.profil-text:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 25px rgba(255, 255, 255, 0.4);
}

.profil p {
    font-size: 18px;
}

.contact-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
}

.contact-img img {
    width: 100%;
}

.contact-container {
    font-size: 20px;
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    background-color: lightgray;
    border-radius: 22px;
    padding: 0.5rem;
    flex-wrap: wrap;
}

.contact a{
    margin-left: auto;
    margin-right: 1rem;
    padding-right: 1.5rem;
    padding: 10px;
    transition: 0.5s ease;
}

.contact a:hover{
    background-color: #547792;
    border-radius: 10px;
    color: white;
}
/* kontak-end */

/* footer */
footer{
    background-color: #213448;
    color: white;
    text-align: center;
    padding: 1rem;
}
/* footer-end */


/* Media Query */
@media screen and (max-width: 768px){
    nav {
        flex-direction: column;
        align-items: center;
        padding: 1rem;
        max-height: none;
    }

    .logo {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .logo img {
        height: 40px;
        bottom: 0;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        width: 100%;
        margin-right: 0;
        gap: 15px;
    }

    nav ul li {
        width: 100%;
        text-align: center;
    }
    nav ul li a {
        display: block;
        padding: 0.8rem;
    }

    .dropdown-content {
        position: static;
        display: none;
        width: 100%;
        margin-top: 0;
        padding: 0;
        border-radius: 0;
    }

    .dropdown:hover .dropdown-content {
        display: block;
    }

    .dropdown-content li {
        width: 100%;
    }
}

@media screen and (max-width: 480px) {
    nav ul {
        gap: 10px;
    }

    nav ul li a {
        padding: 0.5rem;
        font-size: 1rem;
    }

    .logo img {
        height: 35px;
    }
}