/* Background popup */
.popup {
    display: none; 
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.65);
    justify-content: center;
    align-items: center;
}

/* Kotak popup */
.popup-content {
    background: white;
    padding: 10px;
    width: 90%;
    max-width: 700px;
    border-radius: 10px;
    position: relative;
}

/* Tombol X */
.close {
    position: absolute;
    top: -35px;
    right: -20px;
    font-size: 35px;
    cursor: pointer;
    color: #f8f8f8;
}


/* === Reset dasar === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", Arial, sans-serif;
}

/* === Body === */
body {
    background-image: url("Barto.jpg"); /* pastikan path sesuai struktur folder */
    background-size: cover;           /* menutup seluruh layar */
    background-position: center center; /* posisi tengah */
    background-repeat: no-repeat;
    background-attachment: fixed;     /* efek parallax */
    color: #000000;
    line-height: 1.6;
    min-height: 100vh;
}

/* === Overlay agar teks lebih mudah dibaca === */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(22, 21, 21, 0.4); /* lapisan transparan gelap */
    z-index: -1; /* supaya tidak menutupi konten */
}

/* === Header === */
header {
    background-color: rgba(105, 111, 117, 0.9); /* transparan biar nyatu dgn bg */
    color: white;
    padding: 5px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

header .logo {
    display: flex;
    align-items: center;
}

header .logo img {
    width: 90px;
    margin-right: 15px;
}

header h1 {
    font-size: 1.5em;
}

/* === Navigasi === */
nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

nav a {
    text-decoration: none;
    color: rgb(0, 0, 0);
    font-weight: 500;
    transition: 0.3s;
}

nav a:hover {
    color: #f1c40f;
}

/* === Main Content === */
main {
    background-color: rgba(255, 255, 255, 0.85); /* transparan lembut */
    border-radius: 10px;
    padding: 40px 20px;
    max-width: 1000px;
    margin: 40px auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

section {
    margin-bottom: 50px;
}

section h2 {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #2c3e50;
    border-left: 5px solid #f1c40f;
    padding-left: 10px;
}


/* ==== KONTAINER GALERI ==== */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 18px;
    padding: 10px;
    width: 90%;
    margin: auto;
}

/* ==== BOX PER GAMBAR ==== */
.img-box {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
}

.img-box img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Zoom lembut saat hover */
.img-box:hover img {
    transform: scale(1.05);
}

/* ==== DESKRIPSI POP-UP ==== */
.img-box .desc {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;

    padding: 12px;
    background: rgba(0, 0, 0, 0.55); /* transparan */
    color: white;
    font-size: 14px;
    text-align: center;

    opacity: 0;
    transform: translateY(20px);
    transition: 0.3s ease;
}

/* Muncul saat hover */
.img-box:hover .desc {
    opacity: 1;
    transform: translateY(0px);
}


.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 18px;
    padding: 10px;
    width: 90%;
    margin: auto;
}


/* Format gambar galeri */
.gallery img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.gallery img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

/* === mitra kerja sama===*/
/* Container slider */
.logo-slider {
    width: 100%;
    overflow: hidden;
}

.slide-track {
    display: flex;
    width: max-content;
    animation: scroll 15s linear infinite;
}

.slide-track img {
    width: auto;
    height: 100px;
    margin: 0 20px;
}

/* ANIMASI PALING HALUS */
@keyframes scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}


/* === Paragraf === */
p {
    margin-bottom: 10px;
}

/* === Footer === */
footer {
    text-align: center;
    padding: 20px;
    background-color: rgba(44, 62, 80, 0.9);
    color: white;
    font-size: 0.9em;
    margin-top: 40px;
    border-top: 2px solid #f1c40f;
}

/* === Responsif === */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
    }

    nav ul {
        flex-direction: column;
        gap: 10px;
        margin-top: 10px;
    }

    header h1 {
        font-size: 1.2em;
    }

    main {
        padding: 20px 15px;
    }
}

