/* reset dasar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* variabel warna */
:root {
    --navy: #1e3a5f;
    --navy-dark: #142841;
    --abu: #e8eef5;
    --abu-text: #5a6878;
    --gold: #d4a017;
    --putih: #ffffff;
}

body {
    font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
    line-height: 1.6;
    color: var(--navy-dark);
    background-color: var(--abu);
    scroll-behavior: smooth;
}

html {
    scroll-behavior: smooth;
}

/* navbar */
.navbar {
    background-color: var(--navy);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.nav-logo {
    color: var(--gold);
    font-size: 1.4rem;
    font-weight: bold;
    text-decoration: none;
    letter-spacing: 1px;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.nav-menu a {
    color: var(--putih);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--gold);
}

/* header / hero */
.header {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
    color: var(--putih);
    padding: 60px 20px;
    text-align: center;
}

.header-content {
    max-width: 800px;
    margin: 0 auto;
}

.foto-profil {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top center;
    border: 5px solid var(--gold);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
}

.header h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.tagline {
    font-size: 1.1rem;
    color: var(--abu);
    margin-bottom: 8px;
}

.lokasi {
    font-size: 0.95rem;
    color: var(--gold);
    font-style: italic;
}

/* section umum */
.section {
    padding: 60px 20px;
}

.section-alt {
    background-color: var(--putih);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

.section-title {
    font-size: 2rem;
    color: var(--navy);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 4px;
    background-color: var(--gold);
    border-radius: 2px;
}

/* about */
.about-content {
    background-color: var(--putih);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-left: 5px solid var(--gold);
}

.about-content p {
    font-size: 1.05rem;
    color: var(--abu-text);
    text-align: justify;
    margin-bottom: 20px;
}

.about-content p:last-child {
    margin-bottom: 0;
}

.about-content strong {
    color: var(--navy);
}

.about-content em {
    color: var(--navy-dark);
}

.about-content mark {
    background-color: rgba(212, 160, 23, 0.25);
    color: var(--navy-dark);
    padding: 2px 6px;
    border-radius: 3px;
}

/* tabel */
.table-wrapper {
    overflow-x: auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--putih);
    overflow: hidden;
}

.data-table thead {
    background-color: var(--navy);
    color: var(--putih);
}

.data-table th,
.data-table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid #e0e6ed;
}

.data-table th {
    font-weight: 600;
    letter-spacing: 0.5px;
}

.data-table tbody tr:hover {
    background-color: rgba(212, 160, 23, 0.08);
    transition: background-color 0.3s ease;
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.badge {
    display: inline-block;
    background-color: var(--gold);
    color: var(--navy-dark);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* list */
.list-card {
    background-color: var(--putih);
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-left: 5px solid var(--gold);
}

.list-style {
    padding-left: 25px;
}

.list-style li {
    color: var(--abu-text);
    font-size: 1.02rem;
    margin-bottom: 12px;
    line-height: 1.7;
}

.list-style li:last-child {
    margin-bottom: 0;
}

.list-style.ordered li::marker {
    color: var(--gold);
    font-weight: bold;
}

.list-style strong {
    color: var(--navy);
}

.list-style em {
    color: var(--navy-dark);
}

/* galeri */
.galeri-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.galeri-item {
    background-color: var(--putih);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.galeri-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.galeri-img-wrapper {
    width: 100%;
    height: 280px;
    background-color: var(--abu);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.galeri-img-wrapper img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
}

/* khusus foto diri di galeri: cover dgn fokus muka */
.galeri-img-wrapper.tipe-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

/* khusus ilustrasi: cover penuh */
.galeri-img-wrapper.tipe-ilustrasi img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* khusus logo: contain (gak di-crop, ada padding) */
.galeri-img-wrapper.tipe-logo {
    background-color: var(--navy);
    padding: 20px;
}

.galeri-img-wrapper.tipe-logo img {
    object-fit: contain;
}

.galeri-item p {
    color: var(--navy);
    font-weight: 600;
    font-size: 0.95rem;
    margin-top: auto;
}

/* kontak */
.kontak-wrapper {
    background-color: var(--putih);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    border-top: 5px solid var(--gold);
}

.kontak-intro {
    color: var(--abu-text);
    font-size: 1.05rem;
    margin-bottom: 25px;
}

.kontak-info {
    margin-bottom: 30px;
}

.kontak-info p {
    color: var(--abu-text);
    font-size: 1rem;
    margin-bottom: 10px;
}

.kontak-info strong {
    color: var(--navy);
}

.link-list {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-link {
    display: inline-block;
    padding: 12px 28px;
    background-color: var(--navy);
    color: var(--putih);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-link:hover {
    background-color: var(--gold);
    color: var(--navy-dark);
    transform: translateY(-3px);
}

/* footer */
.footer {
    background-color: var(--navy-dark);
    color: var(--abu);
    text-align: center;
    padding: 25px 20px;
}

.footer p {
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.footer-sub {
    color: var(--gold);
    font-size: 0.85rem !important;
}

/* tombol back to top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--navy);
    color: var(--putih);
    border: 2px solid var(--gold);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--gold);
    color: var(--navy-dark);
    transform: translateY(-3px);
}

/* responsive */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 10px;
    }

    .nav-menu {
        gap: 12px;
        justify-content: center;
    }

    .nav-menu a {
        font-size: 0.85rem;
    }

    .header {
        padding: 40px 20px;
    }

    .header h1 {
        font-size: 1.7rem;
    }

    .foto-profil {
        width: 140px;
        height: 140px;
    }

    .section {
        padding: 40px 15px;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .about-content,
    .list-card,
    .kontak-wrapper {
        padding: 25px;
    }

    .about-content p {
        font-size: 0.95rem;
    }

    .data-table th,
    .data-table td {
        padding: 10px 12px;
        font-size: 0.9rem;
    }

    .galeri-grid {
        grid-template-columns: 1fr;
    }

    .galeri-img-wrapper {
        height: 300px;
    }

    .link-list {
        flex-direction: column;
        align-items: center;
    }

    .btn-link {
        width: 80%;
        text-align: center;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}