/* ===============================
   GLOBAL
================================ */
* {
    box-sizing: border-box;
}

body {
    background: radial-gradient(circle at top, #0f172a, #020617);
    color: #e5e7eb;
    font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

/* ===============================
   NAVBAR
================================ */
.navbar {
    backdrop-filter: blur(10px);
    background: rgba(2, 6, 23, 0.85) !important;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.navbar-brand {
    letter-spacing: 0.5px;
}

/* ===============================
   SLIDER / HERO
================================ */
#hero img {
    border-radius: 16px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

#hero img:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 60px rgba(56, 189, 248, 0.25);
}

/* ===============================
   CARD PRODUK
================================ */
.card {
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.08);
    background: linear-gradient(180deg, #020617, #020617) padding-box,
                linear-gradient(135deg, rgba(56,189,248,.35), rgba(168,85,247,.35)) border-box;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.7);
}

.card img {
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.card-body {
    padding: 14px;
}

.card h6 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.card p {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-bottom: 8px;
}

/* ===============================
   BADGE / KATEGORI
================================ */
.text-info {
    color: #38bdf8 !important;
    font-weight: 500;
}

/* ===============================
   PRICE
================================ */
.text-success {
    color: #22c55e !important;
    font-weight: 600;
}

/* ===============================
   SECTION TITLE
================================ */
h4 {
    letter-spacing: 0.4px;
}

/* ===============================
   FOOTER
================================ */
footer {
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    background: rgba(2, 6, 23, 0.8);
    font-size: 0.85rem;
}

/* ===============================
   MOBILE OPTIMIZATION
================================ */
@media (max-width: 576px) {

    .card h6 {
        font-size: 0.85rem;
    }

    .card p {
        display: none; /* hemat ruang di HP */
    }

    footer {
        font-size: 0.75rem;
    }
}

/* ===============================
   MICRO INTERACTION (IT FEEL)
================================ */
.card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 18px;
    opacity: 0;
    transition: opacity 0.4s ease;
    background: radial-gradient(circle at top left,
        rgba(56,189,248,0.15),
        transparent 60%);
    pointer-events: none;
}

.card:hover::after {
    opacity: 1;
}
