--- START OF FILE style.css ---
/* CSS (Cascading Style Sheets) untuk Tampilan */

/* 1. Variabel Warna & Reset Dasar */
:root {
    --biru-muda: #00bfff;
    --biru-tua: #0077b6;
    --bg-color: #0d1117;
    --surface-color: #161b22;
    --text-color: #e0e0e0;
    --text-muted-color: #a0a0a0;
    --border-color: #30363d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: 
        linear-gradient(rgba(13, 17, 23, 0.85), rgba(13, 17, 23, 0.98)),
        url('https://img1.pixhost.to/images/7245/622540535_imgtmp.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* 2. Utilitas & Kontainer */
.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    background: linear-gradient(90deg, var(--biru-muda), var(--biru-tua));
    color: #ffffff;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 191, 255, 0.2);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 191, 255, 0.4);
}

.btn:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 2px 10px rgba(0, 191, 255, 0.3);
}

.btn-secondary {
    background: var(--surface-color);
    border: 1px solid var(--biru-tua);
    color: var(--biru-muda);
    box-shadow: none;
}
.btn-secondary:hover {
     background: rgba(0, 120, 182, 0.2);
     box-shadow: none;
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 50px;
    font-weight: 800;
}

.section-title span {
    background: linear-gradient(90deg, var(--biru-muda), #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 3. Header & Navigasi */
header {
    background-color: rgba(22, 27, 34, 0.7);
    backdrop-filter: blur(12px);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 45px;
    width: 45px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--biru-muda);
    margin-right: 15px;
    box-shadow: 0 0 10px rgba(0, 191, 255, 0.7);
    transition: box-shadow 0.3s ease;
}

.text {
    font-family: 'Exo 2', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    text-shadow: 0 0 8px rgba(0, 191, 255, 0.7), 0 0 3px var(--biru-tua);
    transition: text-shadow 0.3s ease;
}

.logo-container:hover .logo-img {
     box-shadow: 0 0 15px rgba(0, 191, 255, 1);
}
.logo-container:hover .logo-text {
     text-shadow: 0 0 12px rgba(0, 191, 255, 1), 0 0 5px var(--biru-tua);
}

.text span {
    color: var(--biru-muda);
}

nav a {
    color: var(--text-muted-color);
    text-decoration: none;
    margin: 0 15px;
    font-weight: 500;
    font-size: 1rem;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

nav a:hover {
    color: var(--text-color);
    background-color: var(--surface-color);
}
nav a.active {
    color: var(--biru-muda);
    font-weight: 700;
}

.header-actions {
    display: flex;
    align-items: center;
}

.cart-icon {
    position: relative;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-color);
    margin-left: 20px;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -12px;
    background-color: var(--biru-muda);
    color: var(--bg-color);
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 700;
}

/* 4. Konten Halaman (SPA-like) */
main {
    padding-top: 80px;
}

.page {
    display: none;
    padding: 60px 0;
    opacity: 0;
    animation: fadeIn 0.5s forwards;
}

@keyframes fadeIn { to { opacity: 1; } }

.page.active {
    display: block;
}

/* 5. Styling Halaman Dashboard */
#home-page .hero {
    text-align: center;
    padding: 80px 0;
}
#home-page .hero h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}
#home-page .hero p {
    font-size: 1.2rem;
    max-width: 650px;
    margin: 0 auto 2.5rem;
    color: var(--text-muted-color);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.info-card {
    background-color: var(--surface-color);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.info-card:hover {
    transform: translateY(-5px);
    border-color: var(--biru-muda);
}
.info-card i {
    font-size: 2.5rem;
    color: var(--biru-muda);
    margin-bottom: 15px;
}
.info-card h3 {
    margin-bottom: 10px;
    font-size: 1.5rem;
}
.info-card p {
    color: var(--text-muted-color);
}
.info-card .btn {
    margin-top: 20px;
}

/* 6. Styling Halaman Produk */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: var(--surface-color);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    border-color: var(--biru-muda);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.product-price {
    font-size: 1.5rem;
    color: var(--biru-muda);
    font-weight: 700;
    margin-bottom: 15px;
}

/* 7. Keranjang (Cart) Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 450px;
    height: 100%;
    background-color: var(--surface-color);
    box-shadow: -5px 0 25px rgba(0,0,0,0.5);
    z-index: 1100;
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--border-color);
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.cart-header h2 {
    color: var(--biru-muda);
}

.close-cart {
    font-size: 1.8rem;
    cursor: pointer;
    border: none;
    background: none;
    color: var(--text-muted-color);
    transition: color 0.2s;
}
.close-cart:hover {
    color: var(--text-color);
}

.cart-items {
    flex-grow: 1;
    overflow-y: auto;
    padding: 10px 20px;
}

.cart-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.cart-item-info h4 { font-size: 1rem; }
.cart-item-info p { margin: 5px 0; color: var(--biru-muda); }

.cart-item-actions button {
    background: #333;
    color: #fff;
    border: none; width: 28px; height: 28px;
    cursor: pointer; border-radius: 6px;
}

.cart-item img { width: 70px; height: 70px; object-fit: cover; border-radius: 8px; margin-right: 15px; }
.cart-item-info { flex-grow: 1; }
.cart-item-actions { display: flex; align-items: center; }
.cart-item-actions span { margin: 0 12px; font-weight: 500; }

.cart-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-color);
}

.cart-total { display: flex; justify-content: space-between; font-size: 1.3rem; font-weight: 700; margin-bottom: 20px; }

.cart-checkout-buttons { 
    display: grid;
    gap: 10px; 
}
.cart-checkout-buttons .btn { 
    width: 100%; 
    text-align: center; 
    font-size: 1rem; 
}

.empty-cart-message { text-align: center; padding-top: 50px; color: var(--text-muted-color); }
.empty-cart-message i { font-size: 3rem; margin-bottom: 1rem; }

/* 8. Animasi Scroll */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 9. Footer */
footer {
    text-align: center;
    padding: 2rem 0;
    background-color: var(--surface-color);
    margin-top: 60px;
    border-top: 1px solid var(--border-color);
}

/* 10. Responsif untuk Mobile */
@media (max-width: 768px) {
    .section-title { font-size: 2.2rem; }
    #home-page .hero h1 { font-size: 2.8rem; }
    nav { display: none; }
    .cart-sidebar { width: 95%; }
    .logo-text { display: none; }
}

/* 11. Loading Screen */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background-color: var(--bg-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.7s ease, visibility 0.7s ease;
}

.loader-wrapper.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--biru-muda);
    animation: pulse-logo 2s infinite ease-in-out;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    border-top-color: var(--biru-muda);
    border-radius: 50%;
    margin-top: 25px;
    animation: spin 1s linear infinite;
}

@keyframes pulse-logo {
    0% {
        transform: scale(1);
        box-shadow: 0 0 15px rgba(0, 191, 255, 0.6);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 25px rgba(0, 191, 255, 1);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 15px rgba(0, 191, 255, 0.6);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
--- END OF FILE style.css ---