/* =========================
   DASAR
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    background-color: #fff8f8;
    color: #4a3035;
}


/* =========================
   NAVBAR
========================= */

nav {
    width: 100%;
    height: 75px;

    background-color: #fffafa;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 8%;

    box-shadow: 0 2px 10px rgba(120, 70, 80, 0.08);

    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 25px;
    font-weight: bold;
    color: #7d3f4d;
}

.menu {
    display: flex;
    align-items: center;
    gap: 28px;
}

.menu a {
    text-decoration: none;
    color: #4a3035;
    font-size: 15px;
    font-weight: bold;

    transition: 0.3s;
}

.menu a:hover {
    color: #c98291;
}


/* =========================
   HOME
========================= */

.hero {
    width: 100%;
    min-height: 650px;

    background: linear-gradient(
        135deg,
        #f8dddd,
        #fff1f1,
        #f5d9df
    );

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 80px;

    padding: 70px 8%;

    overflow: hidden;
}


/* =========================
   FOTO
========================= */

.foto {
    width: 320px;
    height: 390px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;
}

.foto img {
    width: 280px;
    height: 350px;

    max-width: 280px;
    max-height: 350px;

    object-fit: cover;

    display: block;

    border: 10px solid white;

    border-radius: 25px;

    box-shadow:
        0 15px 35px rgba(90, 40, 50, 0.18);

    transform: rotate(-3deg);
}


/* =========================
   INTRO
========================= */

.intro {
    width: 500px;
    max-width: 500px;
}

.sapaan {
    font-size: 28px;

    color: #8d5360;

    margin-bottom: 5px;
}

.intro h1 {
    font-family: Georgia, serif;

    font-size: 65px;

    color: #5c303a;

    margin-bottom: 20px;
}

.deskripsi {
    font-size: 18px;

    line-height: 1.8;

    color: #5b4549;

    margin-bottom: 30px;
}

.tombol {
    display: inline-block;

    background-color: #c98291;

    color: white;

    text-decoration: none;

    padding: 15px 28px;

    border-radius: 30px;

    font-weight: bold;

    transition: 0.3s;
}

.tombol:hover {
    background-color: #a96070;

    transform: translateY(-3px);
}


/* =========================
   ABOUT ME
========================= */

.about {
    width: 100%;

    padding: 80px 8%;

    background-color: #fffafa;
}

.about h2 {
    font-family: Georgia, serif;

    font-size: 45px;

    color: #63343d;

    margin-bottom: 20px;
}

.about > p {
    max-width: 650px;

    line-height: 1.8;

    font-size: 17px;

    color: #5b4549;

    margin-bottom: 45px;
}


/* =========================
   CARDS
========================= */

.cards {
    width: 100%;

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 25px;
}

.card {
    background-color: white;

    padding: 30px 20px;

    text-align: center;

    border-radius: 20px;

    border: 1px solid #f0d7dc;

    box-shadow:
        0 8px 20px rgba(100, 50, 60, 0.08);

    transition: 0.3s;
}

.card:hover {
    transform: translateY(-8px);

    box-shadow:
        0 15px 30px rgba(100, 50, 60, 0.13);
}

.icon {
    width: 60px;
    height: 60px;

    background-color: #f4dce1;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 20px;

    font-size: 27px;
}

.card h3 {
    font-size: 21px;

    color: #713d48;

    margin-bottom: 10px;
}

.card p {
    color: #705b60;

    line-height: 1.5;
}


/* =========================
   FOOTER
========================= */

footer {
    width: 100%;

    background-color: #f0d1d7;

    text-align: center;

    padding: 25px;

    color: #6b4149;
}


/* =========================
   TABLET
========================= */

@media (max-width: 1000px) {

    .hero {
        gap: 40px;
        padding: 60px 5%;
    }

    .foto {
        width: 300px;
    }

    .foto img {
        width: 250px;
        height: 320px;

        max-width: 250px;
        max-height: 320px;
    }

    .intro {
        width: 450px;
    }

    .intro h1 {
        font-size: 55px;
    }

    .menu {
        gap: 15px;
    }

    .menu a {
        font-size: 13px;
    }

    .cards {
        grid-template-columns:
            repeat(2, 1fr);
    }
}


/* =========================
   HP
========================= */

@media (max-width: 700px) {

    nav {
        height: auto;

        padding: 20px;

        flex-direction: column;

        gap: 15px;
    }

    .menu {
        flex-wrap: wrap;

        justify-content: center;

        gap: 12px;
    }

    .hero {
        flex-direction: column;

        text-align: center;

        min-height: auto;

        padding: 70px 20px;
    }

    .foto {
        width: 280px;
        height: 360px;
    }

    .foto img {
        width: 240px;
        height: 300px;

        max-width: 240px;
        max-height: 300px;
    }

    .intro {
        width: 100%;
        max-width: 500px;
    }

    .intro h1 {
        font-size: 50px;
    }

    .deskripsi {
        font-size: 16px;
    }

    .cards {
        grid-template-columns: 1fr;
    }
}