:root {
    --hitam: #0f0f0f;
    --putih: #ffffff;
    --merah: #7a0c0c;
    --kuning: #d4af37;
}

/* RESET */
body {
    margin: 0;
    font-family: "Segoe UI", sans-serif;
}

/* CONTAINER */
.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

/* ========================= */
/* HEADER */
/* ========================= */

.header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;

    background: rgba(15,15,15,0.8);
    backdrop-filter: blur(8px);
    color: var(--putih);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    font-weight: bold;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.logo img {
    height: 35px;
    width: auto;
    display: block;
    transition: 0.3s;

    filter: brightness(1.5) contrast(1.2); /* ⬅️ TAMBAHKAN DI SINI */
}

.logo img:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.nav a {
    color: var(--putih);
    margin-left: 25px;
    text-decoration: none;
    position: relative;
    font-weight: 500;
}

.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0%;
    height: 2px;
    background: var(--kuning);
    transition: 0.3s;
}

.nav a:hover::after {
    width: 100%;
}

.nav a.active {
    color: var(--kuning);
}

/* biar garis bawah langsung aktif */
.nav a.active::after {
    width: 100%;
}

/* ========================= */
/* HERO DESKTOP FIX */
/* ========================= */

.hero {
    position: relative;
    width: 100%;
    height: 590px; /* FIX sesuai gambar */
    margin-top: 55px; /* biar tidak ketutup header */
    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;
}

/* IMAGE DESKTOP */
.hero-img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover; /* isi penuh */
    object-position: center center;

    top: 0;
    left: 0;
}

/* OVERLAY */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.6),
        rgba(0,0,0,0.85)
    );
}

/* CONTENT */
.hero-content {
    position: absolute;
    inset: 0;
    z-index: 2;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding-top: 120px; /* responsive, lebih turun (lebih cinematic) */

    text-align: center;
    gap: 15px;
    color: var(--putih);
}

/* TITLE */
.hero-title {
    margin: 0;
    font-size: 3.5rem;
    letter-spacing: 2px;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.8);
}

/* SUBTITLE */
.hero-subtitle {
    margin: 0;
    margin-bottom: 20px; /* ⬅️ TAMBAHKAN */
    font-size: 1.2rem;
    opacity: 0.9;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
}

/* BUTTON GROUP */
.hero-btns {
    margin-top: 70px; /* ⬅️ UBAH dari 20px */
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

/* ========================= */
/* BUTTON */
/* ========================= */

.btn {
    background: none;
    padding: 0;
    text-decoration: none;

    color: var(--kuning);
    font-weight: 600;
    letter-spacing: 1px;

    position: relative;
    transition: 0.3s;
}

.btn::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0%;
    height: 2px;
    background: var(--kuning);
    transition: 0.3s;
}

.btn:hover::after {
    width: 100%;
}

.btn:hover {
    transform: translateY(-2px);
}

/* ========================= */
/* SECTION */
/* ========================= */

.section {
    padding: 80px 20px;
    text-align: center;
}

/* GRID */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

/* CARD */
.card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eee;
    text-decoration: none;
    color: inherit;
}

.card-content {
    padding: 20px;
}

/* ========================= */
/* GALLERY */
/* ========================= */

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.gallery img {
    width: 100%;
    border-radius: 10px;
}

/* ========================= */
/* FOOTER */
/* ========================= */

.footer {
    text-align: center;
    padding: 30px;
    background: var(--hitam);
    color: var(--putih);
}

/* ========================= */
/* MOBILE (TIDAK DIUBAH LOGIKA) */
/* ========================= */

.mobile {
    display: none;
}

@media (max-width: 768px) {

    .desktop {
        display: none;
    }

    .mobile {
        display: block;
    }

    .logo img {
        height: 35px;
    }

    .hero {
        height: auto;
        margin-top: 55px;
    }

    .hero-img.mobile {
        position: relative;
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    .hero-content {
        position: absolute;
        inset: 0;

        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-title {
        font-size: 1.5rem; /* ⬅️ lebih kecil dari sebelumnya */
    }

    .hero-subtitle {
        font-size: 0.8rem;
    }

    .hero-btns {
        margin-top: 15px; /* ⬅️ TAMBAHKAN DI SINI */
    }

    .btn {
        font-size: 0.85rem;
    }
}

/* ========================= */
/* ANIMATION */
/* ========================= */

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1.2s ease forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================= */
/* HAMBURGER MENU */
/* ========================= */

/* sembunyikan checkbox */
#menu-toggle {
    display: none;
}

/* icon hamburger */
.menu-icon {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--putih);
}

/* ========================= */
/* MOBILE NAVBAR */
/* ========================= */

@media (max-width: 768px) {

    .menu-icon {
        display: block;
    }

    .nav {
        position: absolute;
        top: 60px;
        right: 0;
        width: 100%;

        background: rgba(15,15,15,0.95);
        backdrop-filter: blur(10px);

        display: flex;
        flex-direction: column;
        align-items: center;

        max-height: 0;
        overflow: hidden;

        transition: 0.3s ease;
    }

    .nav a {
        margin: 15px 0;
        font-size: 1rem;
    }

    /* ketika toggle aktif */
    #menu-toggle:checked ~ .nav {
        max-height: 300px;
    }
}
