/* Pengaturan dasar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}


/* =========================
   NAVBAR
========================= */

header {
    background-color: #1e3a5f;
    padding: 15px 8%;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav h2 {
    color: white;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

nav ul li a:hover {
    color: #ffd166;
}


/* =========================
   BERANDA / HERO
========================= */

.hero {
    min-height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: left;
    padding: 40px 20px;
    background: linear-gradient(135deg, #dbeafe, #ffffff);
}


/* =========================
   FOTO
========================= */

.hero-photo {
    margin-right: 50px;
    text-align: center;
}


/* Tempat foto */
.hero-photo img {
    width: 250px;
    height: 250px;

    object-fit: cover;

    border-radius: 50%;

    border: 5px solid #1e3a5f;

    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);

    display: block;

    /* Background ketika belum ada foto */
    background-color: #dbeafe;
}


/* =========================
   TOMBOL PILIH FOTO
========================= */

.foto-button {
    display: inline-block;

    margin-top: 20px;

    padding: 10px 20px;

    background-color: #1e3a5f;

    color: white;

    border-radius: 8px;

    cursor: pointer;

    font-weight: bold;
}

.foto-button:hover {
    background-color: #315b89;
}


/* Menyembunyikan input file asli */
#pilihFoto {
    display: none;
}


/* =========================
   TEKS HERO
========================= */

.hero-text {
    max-width: 600px;
}

.hero-text p:first-child {
    color: #1e3a5f;
    font-size: 20px;
}

.hero h1 {
    font-size: 45px;
    color: #1e3a5f;
    margin: 10px 0;
}

.hero h3 {
    font-size: 24px;
    margin-bottom: 15px;
}


/* =========================
   TOMBOL
========================= */

.button {
    display: inline-block;

    margin-top: 20px;

    padding: 12px 25px;

    background-color: #1e3a5f;

    color: white;

    text-decoration: none;

    border-radius: 8px;

    font-weight: bold;
}

.button:hover {
    background-color: #315b89;
}


/* =========================
   SECTION
========================= */

.section {
    padding: 70px 10%;
    text-align: center;
}

.section h2,
.motto h2 {
    color: #1e3a5f;
    margin-bottom: 25px;
    font-size: 30px;
}


/* =========================
   CARD
========================= */

.card {
    max-width: 700px;

    margin: auto;

    padding: 30px;

    background-color: white;

    border-radius: 12px;

    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.card p {
    margin-bottom: 15px;
}


/* =========================
   MOTTO
========================= */

.motto {
    padding: 70px 10%;

    text-align: center;

    background-color: #1e3a5f;

    color: white;
}

.motto h2 {
    color: white;
}

.motto p {
    max-width: 700px;

    margin: auto;

    font-size: 20px;

    font-style: italic;
}


/* =========================
   FOOTER
========================= */

footer {
    text-align: center;

    padding: 25px;

    background-color: #12263f;

    color: white;
}


/* =========================
   TAMPILAN HP
========================= */

@media (max-width: 700px) {

    nav {
        flex-direction: column;
        gap: 15px;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero-photo {
        margin-right: 0;
        margin-bottom: 30px;
    }

    .hero-photo img {
        width: 200px;
        height: 200px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero h3 {
        font-size: 20px;
    }

    .section {
        padding: 50px 20px;
    }
}