/* =========================================
   MAIN MENU FULLSCREEN
========================================= */

.back-hero-btn {

    position: absolute;

    top: 25px;
    right: 25px;

    z-index: 999;

    display: flex;
    align-items: center;
    gap: 10px;

    padding: 12px 20px;

    border: none;

    border-radius: 999px;

    cursor: pointer;

    color: white;

    font-size: 14px;
    font-weight: 600;

    background:
        rgba(255, 255, 255, .08);

    backdrop-filter:
        blur(12px);

    border:
        1px solid rgba(255, 255, 255, .12);

    transition: .35s ease;
}

.back-hero-btn:hover {

    transform:
        translateY(-2px);

    background:
        rgba(245, 197, 66, .2);

    border-color:
        rgba(245, 197, 66, .4);

    color: #f5c542;
}

@media(max-width:768px) {

    .back-hero-btn {

        top: 15px;
        right: 15px;

        padding: 10px 16px;

        font-size: 13px;
    }

}


.main-menu {

    position: fixed;
    inset: 0;

    display: flex;

    pointer-events: none;

    opacity: 0;
    visibility: hidden;

    transform: translateY(80px);

    transition: .8s;

    z-index: 999;
    flex-direction: column;

    justify-content: center;

    padding: 40px;

    overflow-y: auto;
    /* penting */

    overflow-x: hidden;

    background:
        linear-gradient(135deg,
            #020202,
            #07140d,
            #020202);

    opacity: 0;
    visibility: hidden;

    transform: translateY(80px);

    transition: .8s;

    z-index: 999;
}
.back-hero-btn{

    position:fixed;

    top:20px;
    right:20px;

    z-index:999999;
}
.main-menu.show {
    opacity: 1;
    visibility: visible;

    pointer-events: auto;

    transform: translateY(0);
}

/* =========================================
   HEADER
========================================= */

.menu-header {
    position: relative;
    z-index: 10;

    text-align: center;

    max-width: 900px;

    margin: 0 auto 35px;
}

.menu-header span {
    display: block;

    color: #f5c542;

    letter-spacing: 6px;

    font-size: 14px;

    text-transform: uppercase;

    margin-bottom: 10px;
}

.menu-header h2 {
    font-family: 'Cinzel', serif;

    color: #fff;

    font-size: clamp(1.8rem, 3vw, 2.7rem);

    margin: 0;
}

.menu-header h1 {
    font-family: 'Cinzel', serif;

    color: #f5c542;

    font-size: clamp(3rem, 5vw, 4.8rem);

    margin: 10px 0;
}

.menu-header p {
    color: rgba(255, 255, 255, .75);

    max-width: 700px;

    margin: auto;

    line-height: 1.7;

    font-size: 16px;
}

/* =========================================
   GRID
========================================= */

.menu-grid {
    position: relative;
    z-index: 10;

    width: 100%;

    max-width: 1500px;

    margin: auto;

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 25px;
}

/* =========================================
   CARD
========================================= */

.menu-card {
    position: relative;

    height: 34vh;

    min-height: 250px;

    max-height: 340px;

    overflow: hidden;

    border-radius: 30px;

    cursor: pointer;

    transition: .5s;

    border:
        1px solid rgba(255, 255, 255, .08);

    box-shadow:
        0 15px 40px rgba(0, 0, 0, .45);
}

.menu-card:hover {
    transform:
        translateY(-10px) scale(1.02);

    box-shadow:
        0 25px 50px rgba(0, 0, 0, .6);
}

/* IMAGE */

.menu-card::before {
    content: "";

    position: absolute;
    inset: 0;

    background-size: cover;
    background-position: center;

    transition: 1.2s ease;
}

.menu-card:hover::before {
    transform: scale(1.12);
}

/* GANTI GAMBAR */

.sejarah::before {
    background-image: url("../images/menu/tb.png");
}

.bupati::before {
    background-image: url("../images/menu/bupwabup.png");
}

.tambun::before {
    background-image: url("../images/menu/Program.jpeg");
}

/* OVERLAY */

.menu-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(to top,
            rgba(0, 0, 0, .95),
            rgba(0, 0, 0, .3),
            transparent);

    z-index: 1;
}

/* CONTENT */

.menu-content {
    position: absolute;

    left: 30px;
    right: 30px;
    bottom: 30px;

    z-index: 2;
}

.menu-content span {
    display: block;

    color: #f5c542;

    letter-spacing: 4px;

    font-size: 14px;

    margin-bottom: 10px;
}

.menu-content h3 {
    color: white;

    font-size: 1.9rem;

    line-height: 1.2;

    margin: 0;
}

/* =========================================
   ARROW BUTTON
========================================= */

.menu-card::after {
    content: "→";

    position: absolute;

    top: 20px;
    right: 20px;

    width: 55px;
    height: 55px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background:
        rgba(255, 255, 255, .12);

    backdrop-filter: blur(10px);

    color: white;

    font-size: 24px;

    z-index: 2;

    transition: .4s;
}

.menu-card:hover::after {
    transform:
        rotate(-45deg);

    background: #f5c542;

    color: black;
}

/* =========================================
   DAYAK SYMBOL
========================================= */

.dayak-bg {
    position: absolute;
    inset: 0;

    background:
        url("../images/dayak/batang-garing.png") center center no-repeat;

    background-size: 650px;

    opacity: .05;

    animation:
        rotateDayak 120s linear infinite;
}

@keyframes rotateDayak {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* =========================================
   DAYAK PATTERN
========================================= */

.dayak-pattern {
    position: absolute;
    inset: 0;

    background:
        url("../images/dayak/batang-garing.png");

    background-size: 450px;

    opacity: .04;

    animation:
        movePattern 50s linear infinite;
}

@keyframes movePattern {
    from {
        background-position: 0 0;
    }

    to {
        background-position:
            1000px 1000px;
    }
}

/* =========================================
   GOLD GLOW
========================================= */

.main-menu::before {
    content: "";

    position: absolute;

    width: 700px;
    height: 700px;

    left: 50%;
    top: -250px;

    transform:
        translateX(-50%);

    background:
        radial-gradient(rgba(245, 197, 66, .2),
            transparent);

    filter:
        blur(120px);

    animation:
        pulseGlow 8s ease infinite;
}

@keyframes pulseGlow {

    0%,
    100% {
        opacity: .4;
    }

    50% {
        opacity: 1;
    }
}

/* =========================================
   PARTICLES
========================================= */

.particles {
    position: absolute;
    inset: 0;

    overflow: hidden;

    pointer-events: none;
}

.particles span {
    position: absolute;

    bottom: -100px;

    width: 5px;
    height: 5px;

    border-radius: 50%;

    background: #f5c542;

    box-shadow:
        0 0 10px #f5c542;

    animation:
        particleMove 15s linear infinite;
}


@keyframes particleMove {
    from {
        transform: translateY(0);
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    to {
        transform: translateY(-120vh);
        opacity: 0;
    }
}

/* =========================================
   LAPTOP HEIGHT FIX
========================================= */

@media (max-height:800px) {

    .menu-header {
        margin-bottom: 20px;
    }

    .menu-header h1 {
        font-size: 3.5rem;
    }

    .menu-card {
        height: 30vh;
    }
}

/* =========================================
   TABLET
========================================= */

@media(max-width:1200px) {

    .menu-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }
}

/* =========================================
   MOBILE
========================================= */

@media(max-width:768px) {

    .main-menu {
        padding: 30px 20px;
    }

    .menu-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .menu-card {
        height: 260px;
    }

    .menu-header h1 {
        font-size: 2.8rem;
    }

    .menu-header h2 {
        font-size: 1.8rem;
    }

    .menu-content h3 {
        font-size: 1.5rem;
    }
}