@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@500;600;700&display=swap');


* {
    box-sizing: border-box;
}


body {
    margin: 0;
    background: #f3f0e9;
    color: #202020;
    font-family: 'DM Sans', sans-serif;
}


.navbar {
    width: calc(100% - 64px);
    margin: 24px auto 0;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fffdf8;
    border: 1px solid #ddd7cd;
    border-radius: 14px;
}


.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #202020;
    text-decoration: none;
    font-size: 12px;
}


.brand span {
    background: #202020;
    color: #fff;
    padding: 10px;
    border-radius: 8px;
    font-size: 11px;
}


.brand b {
    font-weight: 600;
}


nav {
    display: flex;
    gap: 22px;
}


nav a {
    color: #202020;
    text-decoration: none;
    font-size: 12px;
}


nav a:hover,
nav a.active {
    font-weight: 700;
    border-bottom: 1px solid #202020;
    padding-bottom: 4px;
}


main {
    width: calc(100% - 64px);
    margin: 0 auto;
}


.page {
    display: none;
    min-height: calc(100vh - 150px);
    padding: 90px 7% 60px;
}


.page.active {
    display: block;
}


h1,
h2 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}


h1 {
    font-size: 64px;
    line-height: 1.05;
    margin: 15px 0;
}


h2 {
    text-align: center;
    font-size: 48px;
    margin: 0 0 45px;
}


.eyebrow {
    font-size: 13px;
    letter-spacing: 2px;
}


.role {
    font-size: 18px;
    line-height: 1.6;
}


.intro {
    max-width: 390px;
    line-height: 1.8;
    color: #666;
}


.button {
    display: inline-block;
    margin-top: 18px;
    background: #202020;
    color: #fff;
    text-decoration: none;
    padding: 13px 22px;
    border-radius: 5px;
    font-size: 13px;
}


.home-grid,
.two-col,
.activity-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}


.profile-photo {
    width: 350px;
    height: 430px;
    object-fit: cover;
    border-radius: 180px 180px 12px 12px;
    justify-self: center;
}


.about-photo {
    width: 100%;
    max-width: 360px;
    height: 430px;
    object-fit: cover;
    border-radius: 10px;
}


.two-col p {
    line-height: 1.8;
    color: #555;
}


.details {
    border-top: 1px solid #d7d1c8;
    margin-top: 25px;
    padding-top: 12px;
}


.details b {
    display: inline-block;
    width: 125px;
    color: #222;
}


.cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    max-width: 850px;
    margin: auto;
}


.cards article,
.achievement,
.activity-card,
.contact-box {
    background: #fffdf8;
    border: 1px solid #ddd7cd;
    border-radius: 10px;
    padding: 28px;
}


.cards h3,
.achievement h3,
.activity-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 25px;
}


.cards p {
    padding: 13px 0;
    border-bottom: 1px solid #e4ded5;
}


.timeline {
    max-width: 700px;
    margin: auto;
    border-left: 1px solid #aaa;
    padding-left: 30px;
}


.timeline > div {
    background: #fffdf8;
    border: 1px solid #ddd7cd;
    padding: 20px;
    margin-bottom: 18px;
    border-radius: 8px;
}


.timeline h3 {
    margin: 8px 0;
}


.achievement {
    max-width: 760px;
    margin: auto;
}


.achievement img {
    width: 100%;
    max-height: 430px;
    object-fit: cover;
    margin-top: 20px;
    border-radius: 6px;
}


.activity-card {
    max-width: 850px;
    margin: auto;
    grid-template-columns: 1fr 1fr;
}


.activity-card img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: 6px;
}


.contact-box {
    max-width: 500px;
    margin: auto;
    line-height: 1.8;
}


footer {
    text-align: center;
    padding: 24px;
    border-top: 1px solid #ddd7cd;
    font-size: 13px;
    color: #555;
}


footer span {
    margin: 0 10px;
    color: #aaa;
}


/* Readability and activity photo correction */

body {
    background: #f4f1eb;
    color: #242424;
}


.page {
    background: transparent;
    color: #242424;
}


.page h1,
.page h2,
.page h3,
.page p,
.page li,
.page span,
.page strong {
    color: inherit;
}


.cards article,
.achievement,
.activity-card,
.contact-box,
.timeline > div {
    color: #242424;
    background: #fffdf9;
}


.cards h3,
.achievement h3,
.activity-card h3 {
    color: #202020;
}


.cards p,
.two-col p,
.intro,
.activity-card p {
    color: #555 !important;
}


.achievement img,
.activity-card img {
    display: block;
    opacity: 1;
    visibility: visible;
}


.activity-card {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}


.activity-card img {
    height: 380px;
    object-fit: cover;
    object-position: center 35%;
}


footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    text-align: center;
    color: #444 !important;
}


footer span {
    margin: 0;
    color: #999;
}


@media (max-width: 800px) {

    .navbar {
        width: calc(100% - 24px);
        flex-direction: column;
        gap: 15px;
    }


    nav {
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }


    main {
        width: calc(100% - 24px);
    }


    .page {
        padding: 55px 5%;
    }


    .home-grid,
    .two-col,
    .activity-card,
    .cards {
        grid-template-columns: 1fr;
        gap: 30px;
    }


    h1 {
        font-size: 46px;
    }


    h2 {
        font-size: 38px;
    }


    .profile-photo,
    .about-photo {
        width: 100%;
        height: 360px;
    }


    .activity-card img {
        height: 280px;
    }

}


/* Penyederhanaan tampilan */

body {
    background: #f4f1eb;
}


.page {
    padding-top: 65px;
}


.cards {
    gap: 18px;
}


.cards article {
    box-shadow: none;
    border-radius: 8px;
    padding: 24px;
}


.cards p {
    margin: 0;
    padding: 10px 0;
    border-bottom: 1px solid #e5dfd5;
}


.cards p:last-child {
    border-bottom: 0;
}


.cards h3 {
    margin-top: 0;
}


.home-grid {
    gap: 45px;
}


.home-grid .intro {
    max-width: 330px;
    line-height: 1.6;
}


.profile-photo {
    border-radius: 14px;
    width: 320px;
    height: 400px;
}


.achievement,
.activity-card,
.contact-box,
.timeline > div {
    box-shadow: none;
}


.activity-card img {
    object-position: center 25%;
}


@media (max-width: 800px) {

    .profile-photo {
        width: 100%;
        height: 360px;
    }

}


/* Final corrections */

.home-grid .intro {
    max-width: 280px;
}


.achievement img {
    height: auto;
    max-height: none;
    object-fit: contain;
}


.activity-card img {
    height: auto;
    max-height: 560px;
    object-fit: contain;
    object-position: center;
}


.contact-box a {
    color: #202020;
    text-decoration: underline;
}


@media (max-width: 800px) {

    .activity-card img {
        height: auto;
        max-height: none;
    }


    .achievement img {
        height: auto;
    }

}


/* Animasi ringan melalui JavaScript */

.page.active > * {
    animation: fadeUp 0.7s ease both;
}


@keyframes fadeUp {

    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


.profile-photo {
    animation: floatPhoto 4s ease-in-out infinite;
}


@keyframes floatPhoto {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }

}


.button,
nav a,
.cards article {
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


.button:hover,
nav a:hover {
    transform: translateY(-3px);
}


.cards article:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}