/* GLOBAL */
body {
    margin: 0;
    font-family: 'Orbitron', sans-serif;
    background: radial-gradient(circle at top, #001a2a, #000000 60%);
    color: white;
    padding-top: 80px; /* Account for fixed navbar */
}

/* ===== NAVBAR ===== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 50px;
    background: rgba(0, 20, 40, 0.6);

    border-bottom: 1px solid rgba(0, 180, 255, 0.4);
    box-shadow: 0 0 20px rgba(0, 180, 255, 0.3);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 10000 !important;
    height: 80px !important; /* Paksa tingginya */
    overflow: visible !important; /* Potong jika ada elemen yang keluar jalur */
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-logo {
    font-size: 28px;
    font-weight: bold;
    color: #00c8ff;
    text-shadow: 0 0 12px rgba(0, 200, 255, 0.7);
}

.logo-img {
    height: 40px;
    width: auto;
    margin-right: 10px;
}

.nav-links a {
    color: #bbb;
    margin-left: 25px;
    text-decoration: none;
    font-size: 16px;
    transition: 0.2s;
}

.nav-links a:hover {
    color: #fff;
    text-shadow: 0 0 12px #00c8ff;
}

.nav-links a i {
    margin-right: 6px;
}

/* RIGHT ICONS */
.nav-icons a {
    color: #ccc;
    margin-left: 20px;
    font-size: 22px;
    transition: 0.2s;
}

.nav-icons a:hover {
    color: #00c8ff;
    text-shadow: 0 0 10px #00c8ff;
}

/* ===== HERO ===== */
.hero {
    height: 100vh;
    background: url("hero.jpg") center/cover no-repeat;
    display: flex;
    align-items: center;
    padding: 0 80px;
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6), #000);
    z-index: 1;
    pointer-events: none !important;
}

.hero-content {
    position: relative;
    z-index: 2 !important;;
    max-width: 600px;
}

.hero h1 {
    font-size: 70px;
    font-weight: bold;
    line-height: 1.1;
    color: #00caff;
    text-shadow: 0 0 15px #00caff;
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    color: #cfefff;
    margin-bottom: 30px;
    line-height: 1.6;
}

.btn {
    background: linear-gradient(45deg, #009dff, #003b74);
    padding: 14px 30px;
    margin-top: 20px;
    border: none;
    color: white;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer !important;
    box-shadow: 0 0 15px rgba(0, 200, 255, 0.5);
    transition: 0.2s;
    display: inline-block;
    position: relative;
    z-index: 3 !important; /* Pastikan ini cukup tinggi */
    pointer-events: auto !important;
}    

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px #00caff;
}

/* ===== ABOUT SECTION ===== */
.about {
    max-width: 1100px;
    margin: 80px auto;
    text-align: center;
    padding: 20px;
    background: #000c14;
    border-radius: 15px;
    border: 1px solid #004c75;
    box-shadow: 0 0 20px rgba(0, 200, 255, 0.1);
}

.subtitle {
    font-size: 14px;
    letter-spacing: 3px;
    margin-bottom: 15px;
    color: #00caff;
    text-transform: uppercase;
    font-weight: bold;
}

.about h1 {
    font-size: 42px;
    margin-bottom: 30px;
    color: #00caff;
    text-shadow: 0 0 15px #00caff;
}

.description {
    max-width: 700px;
    margin: 0 auto 50px;
    font-size: 16px;
    line-height: 1.8;
    color: #cfefff;
    font-family: 'Orbitron', sans-serif;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}

.image-grid img {
    width: 100%;
    height: 200px;
    border-radius: 10px;
    object-fit: cover;
    border: 2px solid #004c75;
    transition: 0.3s;
}

.image-grid img:hover {
    transform: scale(1.05);
    border-color: #00caff;
    box-shadow: 0 0 20px rgba(0, 200, 255, 0.3);
}

.bottom-text {
    max-width: 600px;
    margin: 0 auto 40px;
    font-size: 15px;
    line-height: 1.7;
    color: #bbb;
    font-family: 'Orbitron', sans-serif;
}

/* CATEGORY SECTION */
.category-section {
    display: flex;
    gap: 12px;
    padding: 25px 40px;
    background: #0d0d0e;
    overflow-x: auto;
}

.category-card {
    min-width: 170px;
    height: 260px;
    background: #111;
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    cursor: pointer;
    border: 1px solid #222;
    transition: 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: #ff4500;
    box-shadow: 0 0 20px rgba(255, 80, 0, 0.4);
}

.category-card img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    transition: 0.3s;
}

.category-card:hover img {
    transform: scale(1.05);
}

.category-card span {
    color: white;
    font-size: 14px;
    padding: 8px 0;
    display: block;
    letter-spacing: 1px;
}

/* ===== PRODUCTS ===== */
.section-title {
    text-align: center;
    margin-top: 40px;
    font-size: 32px;
    color: #00caff;
    text-shadow: 0 0 10px #00caff;
}

.products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 40px 80px;
    gap: 20px;
}

.product-card {
    background: #002236;
    padding: 50px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #009bd1;
    box-shadow: 0 0 15px rgba(0,150,200,0.3);
    transition: 0.2s;
}

.product-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px #00caff;
}

/* ===== BUILD ===== */
.build {
    padding: 80px 70px;
    text-align: center;
    background: #000c14;
    border-top: 1px solid #004c75;
    border-bottom: 1px solid #004c75;
}

.build h2 span {
    color: #00caff;
    text-shadow: 0 0 12px #00caff;
}

/* ===== PRICING ===== */
.pricing {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 40px 80px;
}

.price-card {
    background: #003049;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #00caff;
    box-shadow: 0 0 15px rgba(0, 200, 255, 0.3);
    transition: 0.2s;
}

.price-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 25px #00caff;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .products {
        grid-template-columns: repeat(2, 1fr);
        padding: 40px 40px;
    }

    .pricing {
        grid-template-columns: repeat(2, 1fr);
        padding: 40px 40px;
    }

    .image-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 15px 20px;
        flex-wrap: wrap;
        height: 80px !important; /* Paksa tinggi navbar agar tidak meluber ke bawah */
        overflow: hidden;
    }

    .navbar-brand {
        order: 1;
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }

    .nav-links {
        order: 2;
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }

    .nav-links a {
        margin: 0 15px;
        display: inline-block;
    }

    .nav-icons {
        order: 3;
        width: 100%;
        text-align: center;
    }

    .nav-icons a {
        margin: 0 10px;
    }

    .hero {
        height: 80vh;
        padding: 0 20px;
        text-align: center;
    }

    .hero h1 {
        font-size: 50px;
    }

    .hero p {
        font-size: 16px;
    }

    .products {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .pricing {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 15px;
    }

    .category-section {
        padding: 20px;
        gap: 8px;
    }

    .category-card {
        min-width: 140px;
        height: 220px;
    }

    .category-card img {
        height: 170px;
    }

    .build {
        padding: 40px 20px;
    }

    .image-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .about {
        margin: 40px 20px;
        padding: 20px;
    }

    .about h1 {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 10px 15px;
    }

    .navbar-logo {
        font-size: 24px;
    }

    .hero h1 {
        font-size: 35px;
    }

    .hero p {
        font-size: 14px;
    }

    .btn {
        padding: 12px 25px;
        font-size: 14px;
    }

    .section-title {
        font-size: 24px;
    }

    .product-card,
    .price-card {
        padding: 30px 20px;
    }

    .category-card {
        min-width: 120px;
        height: 180px;
    }

    .category-card img {
        height: 130px;
    }

    .category-card span {
        font-size: 12px;
        padding: 6px 0;
    }
}

/* ===== SMOOTH SCROLLING ===== */
html {
    scroll-behavior: smooth;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-title,
.product-card,
.price-card,
.category-card,
.about {
    animation: fadeInUp 0.6s ease-out;
}

/* ===== PERBAIKAN PRODUCTS SECTION ===== */
.products-section {
    padding: 60px 80px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.product-card {
    background: #002236;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #009bd1;
    box-shadow: 0 0 15px rgba(0,150,200,0.3);
    transition: 0.3s;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 25px #00caff;
}

.product-image {
    width: 100%;
    height: 200px;
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 8px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.3s;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-price {
    font-size: 24px;
    font-weight: bold;
    color: #00caff;
    margin: 15px 0;
}

/* ===== PERBAIKAN CONTACT SECTION ===== */
.contact-section {
    padding: 80px 70px;
    text-align: center;
    background: #001122;
    border-top: 1px solid #004c75;
    border-bottom: 1px solid #004c75;
}

.contact-section h2 span {
    color: #00caff;
    text-shadow: 0 0 12px #00caff;
}

.contact-grid {
    display: flex;
    gap: 40px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
}

.contact-item {
    text-align: center;
    min-width: 200px;
}

.contact-item i {
    font-size: 32px;
    color: #00caff;
    margin-bottom: 15px;
    transition: 0.3s;
}

.contact-item:hover i {
    transform: scale(1.2);
    text-shadow: 0 0 15px #00caff;
}

.contact-item p {
    color: #cfefff;
    font-size: 16px;
    margin: 0;
}

/* ===== PERBAIKAN HERO BACKGROUND ===== */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.8)), 
                url("../image/hero-bg.jpg") center/cover no-repeat;
    display: flex;
    align-items: center;
    padding: 0 80px;
    position: relative;
}

/* Fallback jika gambar tidak ada */
.hero:not([style*="background-image"]) {
    background: linear-gradient(135deg, #001a2a 0%, #000814 100%);
}

/* ===== BROWSER COMPATIBILITY ===== */
/* Fallback untuk backdrop-filter */
.navbar {
    background: rgba(0, 20, 40, 0.85);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

/* Fallback jika backdrop-filter tidak support */
@supports not (backdrop-filter: blur(10px)) {
    .navbar {
        background: rgba(0, 20, 40, 0.95);
    }
}

/* ===== RESPONSIVE FIXES ===== */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .products-section {
        padding: 40px 20px;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-grid {
        flex-direction: column;
        gap: 30px;
    }

    .contact-item {
        width: 100%;
    }
}

/* ===== SMOOTH TRANSITIONS ===== */
* {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== ACCESSIBILITY ===== */
.btn:focus,
.product-card:focus,
.category-card:focus {
    outline: 2px solid #00caff;
    outline-offset: 2px;
}

/* ===== check out ===== */
    .checkout-glass {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-radius: 18px;
    padding: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
}

.checkout-header h4 {
    font-weight: 700;
    margin-bottom: 5px;
}

.checkout-header p {
    font-size: 14px;
    color: #bbb;
    margin-bottom: 25px;
}

/* Floating Input */
.form-group {
    position: relative;
    margin-bottom: 22px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 12px;
    padding: 14px 14px;
    color: #fff;
    outline: none;
    font-size: 14px;
}

.form-group label {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    color: #aaa;
    font-size: 13px;
    pointer-events: none;
    transition: 0.3s;
    background: transparent;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #0d6efd;
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -8px;
    font-size: 11px;
    color: #0d6efd;
    background: #0b0f1a;
    padding: 0 6px;
}

/* Total */
.total-box {
    background: linear-gradient(135deg, #0d6efd, #6610f2);
    border-radius: 14px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.total-box span {
    font-size: 14px;
}

.total-box strong {
    font-size: 20px;
    font-weight: 700;
}

/* Button */
.btn-pay {
    width: 100%;
    background: linear-gradient(135deg, #0d6efd, #6610f2);
    border: none;
    border-radius: 14px;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: 0.3s;
}

.btn-pay i {
    margin-right: 8px;
}

.btn-pay:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(13, 110, 253, 0.4);
}

.btn-action-group {
    display: flex;
    gap: 8px;
    width: 100%;
    margin-top: 15px;
}

.btn-beli-custom {
    flex: 1; /* Biar tombol beli lebih lebar */
    background: linear-gradient(to right, #0082e6, #024fa0);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
}

.btn-keranjang-custom {
    background: transparent;
    border: 1px solid #00caff;
    color: #00caff;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
}

/* TAMPILAN HARGA HORIZONTAL TAPI KEREN */
.price-container {
    display: flex;
    justify-content: center;
    align-items: baseline; /* Biar teks sejajar di bawah teksnya */
    gap: 10px; /* Jarak antara harga lama dan baru */
    margin: 10px 0;
    flex-wrap: wrap; /* Supaya kalau layar sempit otomatis turun sendiri */
}

.price-old {
    color: #ff4d4d !important; /* Warna merah agar terlihat 'dikurangi' */
    text-decoration: line-through;
    font-size: 0.85rem;
    opacity: 0.7;
}

.price-new {
    color: #00ffcc !important; /* Warna hijau neon/cyan menyala */
    font-size: 1.3rem;
    font-weight: 800;
    text-shadow: 0 0 10px rgba(0, 255, 204, 0.4); /* Efek glow */
}

/* Tambahan: Efek saat kartu di hover */
.product-card:hover .price-new {
    color: #ffffff !important;
    text-shadow: 0 0 15px #00caff;
    transition: 0.3s;
}
