/* ==========================================
   HOME PAGE
========================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{

    overflow:hidden;

    font-family:"Segoe UI",sans-serif;

    background:#f4f4f4;

}

/* ==========================================
   WRAPPER
========================================== */

.home-wrapper{

    position:relative;

    width:100%;

    height:100vh;

    overflow:hidden;

}

/* ==========================================
   LEAFLET BACKGROUND
========================================== */

#homeMap{

    position:absolute;

    top:0;
    left:0;

    width:100%;
    height:100%;

    z-index:1;

}

/* ==========================================
   OVERLAY PUTIH TRANSPARAN
========================================== */

.home-wrapper::before{

    content:"";

    position:absolute;

    inset:0;

    background:rgba(255,255,255,.45);

    backdrop-filter:blur(2px);

    z-index:2;

}

/* ==========================================
   CONTENT
========================================== */

.home-content{

    position:relative;

    z-index:3;

    width:100%;

    height:100%;

    display:flex;

    flex-direction:column;

    justify-content:center;

    align-items:center;

    text-align:center;

    padding:30px;

}

/* ==========================================
   TITLE
========================================== */

.home-title{

    font-size:60px;

    font-weight:700;

    color:#8b0000;

    line-height:1.2;

    text-shadow:
        0 2px 8px rgba(255,255,255,.9);

}

.home-subtitle{

    margin-top:18px;

    font-size:24px;

    color:#444;

    font-weight:500;

}

.line-red{

    width:90px;

    height:5px;

    background:#b30000;

    border-radius:30px;

    margin:25px auto;

}

/* ==========================================
   MENU
========================================== */

.menu-home{

    margin-top:70px;

    display:flex;

    gap:35px;

    flex-wrap:wrap;

    justify-content:center;

}

/* ==========================================
   CARD
========================================== */

.menu-card{

    width:270px;

    height:185px;

    background:rgba(255,255,255,.92);

    backdrop-filter:blur(10px);

    border-radius:22px;

    border:1px solid rgba(255,255,255,.5);

    box-shadow:0 18px 40px rgba(0,0,0,.18);

    text-decoration:none;

    color:#222;

    display:flex;

    flex-direction:column;

    justify-content:center;

    align-items:center;

    transition:.35s;

    overflow:hidden;

    position:relative;

}

.menu-card:hover{

    transform:translateY(-12px) scale(1.05);

    box-shadow:0 30px 55px rgba(150,0,0,.25);

    border-color:#a00000;

}

.menu-card i{

    font-size:65px;

    color:#9b0000;

    margin-bottom:15px;

    transition:.3s;

}

.menu-card h3{

    margin-top:15px;

    font-size:32px;

    font-weight:700;

}

/* ==========================================
   RESPONSIVE
========================================== */

@media(max-width:992px){

    .home-title{

        font-size:42px;

    }

    .home-subtitle{

        font-size:20px;

    }

    .menu-card{

        width:210px;

        height:150px;

    }

}

@media(max-width:768px){

    .home-title{

        font-size:34px;

    }

    .home-subtitle{

        font-size:18px;

    }

    .menu-home{

        flex-direction:column;

        align-items:center;

    }

}
/* =====================
   LOGO KPU
===================== */

.logo-kpu{

    width:120px;

    margin-bottom:25px;

    animation:fadeDown 1s;

}
.home-title{

    animation:fadeUp .8s;

}

.home-subtitle{

    animation:fadeUp 1.1s;

}

.menu-home{

    animation:fadeUp 1.5s;

}
@keyframes fadeUp{

    from{

        opacity:0;

        transform:translateY(40px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}

@keyframes fadeDown{

    from{

        opacity:0;

        transform:translateY(-30px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}

/* LOGO SIPATAKA */
.logo-sipataka-container {
    width: 80%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
}

.logo-sipataka {
    width: 100%;
    max-width: 650px;
    height: auto;
    object-fit: contain;
    display: block;
}

/* RESPONSIVE */
@media (max-width: 768px) {

    .logo-sipataka {
        max-width: 95%;
    }

}

/* ==============================
   HALAMAN AWAL SIPATAKA
================================ */

body {
    margin: 0 !important;
    background: #ffffff !important;
}

.home-wrapper {
    min-height: 100vh;
    width: 100%;
    background: #ffffff !important;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.home-content {
    width: 100%;
    max-width: 1100px;
    padding: 30px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* LOGO SIPATAKA */
.logo-sipataka {
    display: block;
    width: 100%;
    max-width: 780px;
    height: auto;
    object-fit: contain;
    margin: 0 auto 10px;
}

/* PETUNJUK */
.home-instruction {
    font-size: 19px;
    font-weight: 600;
    color: #444;
    margin: 10px 0 25px;
}

/* MENU */
.menu-home {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.menu-card {
    width: 210px;
    height: 135px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: #222;
    transition: 0.3s;
}

.menu-card i {
    font-size: 42px;
    color: #a90000;
    margin-bottom: 12px;
}

.menu-card h3 {
    font-size: 23px;
    margin: 0;
}

.menu-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 16px 35px rgba(0,0,0,0.22);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .logo-sipataka {
        max-width: 100%;
    }

    .menu-home {
        gap: 15px;
    }

    .menu-card {
        width: 150px;
        height: 120px;
    }

    .home-instruction {
        font-size: 15px;
    }
}

/* MENU GAMBAR SIPATAKA */
.menu-home {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.menu-card {
    display: block;
    width: 210px;
    height: 210px;
    background: transparent;
    border: none;
    box-shadow: none;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.menu-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.menu-card:hover {
    transform: translateY(-8px) scale(1.04);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .menu-home {
        gap: 15px;
    }

    .menu-card {
        width: 145px;
        height: 145px;
    }
}

@media (max-width: 480px) {
    .menu-card {
        width: 115px;
        height: 115px;
    }
}

/* =====================================
   EFEK CAHAYA BERGERAK LOGO SIPATAKA
===================================== */

.logo-sipataka-container {
    position: relative;
    overflow: hidden;
}

.logo-sipataka {
    position: relative;
    display: block;
    width: 100%;
    max-width: 780px;
    height: auto;
    margin: 0 auto 10px;
}

/* Lapisan cahaya */
.logo-sipataka-container::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 35%;
    height: 100%;

    background: linear-gradient(
        110deg,
        transparent,
        rgba(255,255,255,0.15),
        rgba(255,255,255,0.85),
        rgba(255,255,255,0.15),
        transparent
    );

    transform: skewX(-25deg);
    pointer-events: none;

    animation: cahayaSipataka 5s ease-in-out infinite;
}

@keyframes cahayaSipataka {
    0% {
        left: -100%;
    }

    45%, 100% {
        left: 130%;
    }
}

/* =================================
   TEMA EMAS SIPATAKA /tidak jadi
================================= */

body,
.home-wrapper {
    background: #ffffff !important;
}

/* =================================
   EFEK CAHAYA LOGO
================================= */
/* EFEK CAHAYA EMAS PADA LOGO */

.logo-sipataka-wrap {
    position: relative;
    display: inline-block;
    overflow: hidden;
    max-width: 700px;
    width: 65%;
    margin-bottom: 10px;
}

.logo-sipataka {
    display: block;
    width: 100%;
    height: auto;
}

/* Cahaya keemasan bergerak */

.logo-sipataka-wrap::after {
    content: "";
    position: absolute;
    top: -20%;
    left: -80%;
    width: 30%;
    height: 140%;

    background: linear-gradient(
        110deg,
        transparent,
        rgba(255, 215, 0, 0.15),
        rgba(255, 255, 255, 0.9),
        rgba(255, 215, 0, 0.4),
        transparent
    );

    transform: skewX(-25deg);
    animation: goldenShine 4s infinite;
    pointer-events: none;
}

@keyframes goldenShine {
    0% {
        left: -80%;
    }

    45%, 100% {
        left: 130%;
    }
}

/* =================================
   MENU NUANSA EMAS
================================= */

.menu-card:hover {
    filter: drop-shadow(
        0 12px 18px rgba(180, 130, 30, 0.25)
    );
}