:root {
    --primary: #0D6EFD;
    --primary-glow: rgba(13, 110, 253, 0.5);
    --bg-dark: #0B0B0B;
    --bg-card: rgba(255, 255, 255, 0.05);
}

body {
    background-color: var(--bg-dark);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Page Loader */
.loader-wrapper {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--bg-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}
.loader {
    border: 4px solid rgba(255,255,255,0.1);
    border-left-color: var(--primary);
    border-radius: 50%;
    width: 40px; height: 40px;
    animation: spin 1s linear infinite;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* Scroll Progress */
.scroll-progress {
    position: fixed;
    top: 0; left: 0;
    width: 0%; height: 4px;
    background: var(--primary);
    z-index: 9999;
    box-shadow: 0 0 10px var(--primary-glow);
}

/* Glassmorphism */
.glass-nav {
    background: rgba(11, 11, 11, 0.7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: 0.3s;
}
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.glass-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 15px var(--primary-glow);
}

/* Neon & Effects */
.text-glow { text-shadow: 0 0 10px var(--primary-glow); }
.neon-button { box-shadow: 0 0 15px var(--primary-glow); }
.neon-button:hover { box-shadow: 0 0 25px var(--primary-glow); }

.hover-scale { transition: transform 0.2s; }
.hover-scale:hover { transform: scale(1.05); }

/* Animations */
.floating-anim { animation: floating 3s ease-in-out infinite; }
@keyframes floating {
    0% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0); }
}

.pulse-btn { animation: pulse 2s infinite; }
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Cards */
.product-img-wrap {
    height: 200px;
    overflow: hidden;
    border-radius: 15px 15px 0 0;
    position: relative;
}
.product-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.glass-card:hover .product-img-wrap img {
    transform: scale(1.1);
}
.badge-custom {
    position: absolute;
    top: 10px; right: 10px;
    background: var(--primary);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    box-shadow: 0 0 10px var(--primary-glow);
}
.badge-danger-custom { background: #dc3545; box-shadow: 0 0 10px rgba(220,53,69,0.5); }

/* Form inputs */
.glass-input {
    background: rgba(255,255,255,0.05) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    color: white !important;
}
.glass-input:focus {
    box-shadow: 0 0 10px var(--primary-glow) !important;
    border-color: var(--primary) !important;
}

/* Floating Elements */
.floating-wa, .floating-top {
    position: fixed;
    right: 30px;
    width: 50px; height: 50px;
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    color: white; font-size: 24px;
    z-index: 1000;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.floating-wa {
    bottom: 30px;
    background: #25D366;
}
.floating-top {
    bottom: 90px;
    background: var(--primary);
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s;
}
.floating-top.show { opacity: 1; pointer-events: auto; }

/* =========================================
   PERBAIKAN KONTRAST TEKS (PUTIH / TERANG)
========================================= */
body, .glass-card, .modal-content, .card-title, h1, h2, h3, h4, h5, p {
    color: #ffffff !important;
}
.text-secondary, .text-muted {
    color: #cccccc !important; 
}
.filter-btn {
    color: #ffffff;
}
.filter-btn:hover, .filter-btn.active {
    color: #ffffff !important;
}
.glass-input::placeholder {
    color: #aaaaaa !important;
}
.small {
    color: #eeeeee !important;
}

/* =========================================
   PENGATURAN RESPONSIVE (MOBILE FRIENDLY)
========================================= */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        padding-top: 120px;
    }
    .hero-section h1 {
        font-size: 2.2rem;
    }
    .hero-section .d-flex {
        flex-direction: column;
        width: 100%;
        gap: 15px !important;
    }
    .hero-section .btn {
        width: 100%;
    }
    
    .glass-nav .navbar-collapse {
        background: rgba(11, 11, 11, 0.98);
        padding: 20px;
        border-radius: 15px;
        margin-top: 15px;
        border: 1px solid rgba(255,255,255,0.1);
        text-align: center;
    }
    .glass-nav .btn {
        margin-top: 15px;
        width: 100%;
    }

    #filter-container {
        flex-wrap: nowrap !important;
        overflow-x: auto;
        padding-bottom: 15px;
        -webkit-overflow-scrolling: touch;
    }
    #filter-container::-webkit-scrollbar {
        display: none;
    }
    
    .product-img-wrap {
        height: 180px;
    }
    .modal-dialog {
        margin: 10px;
    }
}