* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { height: 100%; }

body {
    display: flex;
    flex-direction: column;
    font-family: Poppins, sans-serif;
    background: url("assets/bg.jpg") center/cover no-repeat fixed;
    color: #fff;
}

/* HEADER */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0,0,0,.7);
    padding: 12px 30px;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(8px);
}

.logo {
    width: 45px;
}

.brand {
    margin-left: 10px;
    font-weight: bold;
    font-size: 20px;
    color: #00eaff;
}

.logo-area {
    display: flex;
    align-items: center;
}

/* NAVBAR */
nav ul {
    display: flex;
    gap: 20px;
    list-style: none;
}

nav ul li {
    cursor: pointer;
    font-weight: 600;
    transition: .4s;
}
nav ul li:hover { color: #00eaff; }

.menu-toggle {
    font-size: 30px;
    cursor: pointer;
    display: none;
}

/* HERO */
.hero {
    text-align: center;
    margin: 35px 0;
    animation: fadeIn 1.5s ease-in-out;
}

.hero h1 { font-size: 32px; margin-top: 8px; }
.hero h2 { letter-spacing: 3px; font-size: 15px; opacity: .8; }

.ekle-logo {
    width: 220px;     /* ukuran logo lebih besar */
    margin-top: 20px;
    animation: bounce 3s infinite;
}

@media (max-width: 480px) {
    .ekle-logo {
        width: 160px; /* lebih kecil di HP */
    }
}


/* MENU CARD GRID */
.menu-container {
    width: 90%;
    margin: auto;
    display: grid;
    gap: 22px;
    animation: slideUp 1.4s ease;
}

.menu-card {
    min-height: 180px;
    background: rgba(0, 0, 0, 0.65);
    border-radius: 18px;
    padding: 25px 12px;
    border: 2px solid rgba(0, 200, 255, 0.5);
    text-align: center;
    cursor: pointer;
    transition: .35s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 14px;
}


.menu-card:hover {
    transform: translateY(-8px) scale(1.05);
    background: #00aaff;
    box-shadow: 0 0 20px #00eaff;
}

.menu-card img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    display: block;
    margin: 0 auto;
    padding: 0;
    background: none;
    border: none;
    border-radius: 10px;
}


.menu-card p {
    margin-top: 10px;
    font-weight: 600;
}

/* LINK TEKS MENU */
.menu-card a {
    text-decoration: none !important;
}

.menu-card p {
    color: #ffffff !important;
    text-decoration: none !important;
}

/* Saat hover card, teks tetap putih */
.menu-card:hover p {
    color: #000000 !important;
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 70px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,.8);
    backdrop-filter: blur(4px);
}

.modal-content {
    display: block;
    margin: auto;
    max-width: 85%;
    max-height: 85%;
    border-radius: 10px;
    animation: zoomIn .4s;
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    font-size: 40px;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
    transition: .3s;
}

.close:hover {
    color: #00eaff;
}


/* KOTAK KHUSUS DI DALAM MENU CARD */
.menu-card {
    background: rgba(0, 0, 0, 0.65);
    border-radius: 18px;
    padding: 25px 12px;
    border: 2px solid rgba(0, 200, 255, 0.5);
    text-align: center;
    cursor: pointer;
    transition: .35s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

/* BINGKAI ICON */
.menu-card img {
    width: 60px;
    height: 60px;
    padding: 12px;
    background: rgba(0, 50, 90, 0.5);
    border-radius: 12px;
    border: 2px solid #00c8ff;
    transition: .35s ease;
}

/* TEKS DALAM KOTAK */
.menu-card p {
    background: rgba(0, 50, 90, 0.5);
    padding: 8px 6px;
    border-radius: 10px;
    border: 1px solid #00a7ff;
    font-size: 13px;
    font-weight: 600;
    transition: .35s ease;
}

/* ANIMASI HOVER */
.menu-card:hover {
    transform: scale(1.08) translateY(-8px);
    background: rgba(0, 170, 255, 0.85);
    box-shadow: 0 0 25px #00eaff;
}

.menu-card:hover img {
    background: #ffffff;
    border-color: #fff;
    filter: drop-shadow(0 0 8px #ffffff);
}

.menu-card:hover p {
    background: #fff;
    color: #00304a;
    border-color: #fff;
}


/* FOOTER LOCK BOTTOM */
footer {
    margin-top: auto;
    text-align: center;
    padding: 20px;
    background: rgba(0,0,0,.65);
}

/* ANIMATIONS */
@keyframes fadeIn { from{opacity:0;} to{opacity:1;} }
@keyframes slideUp { from{transform:translateY(50px);opacity:0;} to{transform:translateY(0);opacity:1;} }
@keyframes bounce { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-10px);} }
@keyframes zoomIn { from{transform:scale(.5); opacity:0;} to{transform:scale(1); opacity:1;} }

/* RESPONSIVE NAVBAR */
@media(max-width: 900px) {
    nav {
        position: absolute;
        top: 60px;
        right: 0;
        background: rgba(0,0,0,.85);
        width: 200px;
        display: none;
        border-left: 2px solid #00aaff;
        padding: 15px;
    }
    nav ul {
        flex-direction: column;
    }
    .menu-toggle { display: block; }
}

/* === FIX FINAL GRID MENU EKLE === */
.menu-container {
    width: 90%;
    margin: auto;
    display: grid;
    gap: 22px;
}

/* 📱 Portrait → 2 kolom */
@media (orientation: portrait) {
    .menu-container {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* 🖥 Landscape & PC → 5 kolom */
@media (orientation: landscape), (min-width: 768px) {
    .menu-container {
        grid-template-columns: repeat(5, 1fr) !important;
    }
}