/* =================================================================
   FUTURISTIK THEME - CORE STYLES
   ================================================================= */

/* 1. IMPORT FONT & DEFINISI WARNA */
@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@400;700;900&display=swap');

:root {
    --bg-dark-primary: #0D1117;     /* Latar utama, hitam kebiruan seperti GitHub */
    --bg-dark-secondary: #161B22;   /* Latar untuk card/panel */
    --color-primary: #00A8FF;       /* Biru elektrik yang menyala */
    --color-accent: #E84545;        /* Merah menyala untuk CTA */
    --text-primary: #E6EDF3;        /* Putih lembut untuk teks utama */
    --text-secondary: #8B949E;      /* Abu-abu untuk teks pendukung */
    --border-color: rgba(139, 148, 158, 0.3);
    --glow-shadow-blue: 0 0 15px rgba(0, 168, 255, 0.6);
    --glow-shadow-red: 0 0 15px rgba(232, 69, 69, 0.6);
}

/* 2. GAYA DASAR */
body {
    font-family: 'Exo 2', sans-serif;
    background-color: var(--bg-dark-primary);
    color: var(--text-primary);
    line-height: 1.7;
}

h1, h2, h3 {
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(90deg, var(--color-primary), var(--text-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    text-shadow: 0 0 5px rgba(0, 168, 255, 0.2);
}

p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}
a:hover {
    text-shadow: var(--glow-shadow-blue);
    filter: brightness(1.2);
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

/* EFEK FADE-IN SAAT SCROLL */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* 3. KOMPONEN UTAMA */

/* HERO SECTION dengan PARALLAX */
#hero {
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Kunci untuk efek paralaks sederhana */
    color: white;
    padding: 10rem 0;
    text-align: center;
    position: relative;
}
#hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(13, 17, 23, 0.7); /* Overlay gelap */
}
#hero .container {
    position: relative;
    z-index: 2;
}
#hero h1 {
    font-size: 4rem;
    background: linear-gradient(90deg, #FFFFFF, var(--color-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* TOMBOL */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px; /* Bentuk pil modern */
    font-weight: 700;
    text-transform: uppercase;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}
.btn-primary {
    background-color: var(--color-primary);
    color: var(--bg-dark-primary);
    border-color: var(--color-primary);
}
.btn-primary:hover {
    background-color: transparent;
    color: var(--color-primary);
    box-shadow: var(--glow-shadow-blue);
}
.btn-accent {
    background-color: var(--color-accent);
    color: white;
    border-color: var(--color-accent);
}
.btn-accent:hover {
    background-color: transparent;
    color: var(--color-accent);
    box-shadow: var(--glow-shadow-red);
}

/* FAQ */
#faq {
    padding: 5rem 0;
    background-color: var(--bg-dark-secondary);
}
#faq details {
    background: var(--bg-dark-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}
#faq details:hover {
    border-color: var(--color-primary);
}
#faq summary {
    padding: 1.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
#faq summary .icon {
    transition: transform 0.3s ease;
}
#faq details[open] summary .icon {
    transform: rotate(45deg);
}
#faq .answer {
    padding: 0 1.5rem 1.5rem 1.5rem;
}

/* FOOTER */
footer {
    background: var(--bg-dark-primary);
    border-top: 1px solid var(--border-color);
    padding: 4rem 0;
    text-align: center;
}
footer .sitemap-links a {
    color: var(--text-secondary);
    padding: 0 1rem;
}
footer .sitemap-links a:hover {
    color: var(--color-primary);
    text-shadow: none;
}
footer .copyright {
    margin-top: 2rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* =================================================================
   FUTURISTIK THEME - HERO PRODUCT
   ================================================================= */

.breadcrumbs {
    padding: 1rem 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}
.breadcrumbs a {
    color: var(--text-secondary);
}
.breadcrumbs a:hover {
    color: var(--color-primary);
    text-shadow: none;
}
.breadcrumbs span {
    margin: 0 8px;
}

.product-hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    padding-top: 2rem;
    padding-bottom: 5rem;
}
@media (min-width: 768px) {
    .product-hero {
        grid-template-columns: 1fr 1fr;
    }
}

/* Galeri Gambar */
.image-gallery {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.main-image-container {
    border: 1px solid var(--border-color);
    background: var(--bg-dark-secondary);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 0px rgba(0, 168, 255, 0);
    transition: box-shadow 0.4s ease;
}
.main-image-container:hover {
    box-shadow: var(--glow-shadow-blue);
}
.main-image {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}
.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}
.thumbnail {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    opacity: 0.6;
    transition: all 0.3s ease;
    cursor: pointer;
}
.thumbnail:hover {
    opacity: 1;
    border-color: var(--color-primary);
    transform: scale(1.05);
}
.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* Info Produk */
.product-info {
    display: flex;
    flex-direction: column;
}
.product-title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}
.product-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}
.price {
    font-size: 2.25rem;
    font-weight: 900;
    color: var(--color-accent);
}
.product-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
}
.product-rating .star {
    width: 1.25rem;
    height: 1.25rem;
    fill: #FFC107;
}
.product-description {
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 0;
    margin-bottom: 1.5rem;
}
.product-actions {
    display: flex;
    gap: 1rem;
    margin-top: auto; /* Mendorong tombol ke bawah */
}
.product-actions .btn {
    flex-grow: 1; /* Tombol WA mengambil sisa ruang */
}
.product-actions .btn-accent {
    flex-grow: 0;
    padding: 12px;
    width: 58px; /* Membuatnya jadi kotak */
}

/* =================================================================
   FUTURISTIK THEME - HEADER & MEGA MENU
   ================================================================= */
.site-header {
    position: fixed; /* Membuat header tetap di atas */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.3s, backdrop-filter 0.3s;
}

/* EFEK STICKY SAAT SCROLL */
.site-header.sticky {
    background-color: rgba(13, 17, 23, 0.8); /* Warna latar semi-transparan */
    backdrop-filter: blur(10px); /* Efek blur kaca */
    border-bottom: 1px solid var(--border-color);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.desktop-menu {
    display: none; /* Sembunyi di mobile */
}
@media (min-width: 1024px) {
    .desktop-menu {
        display: flex; /* Tampil di desktop */
        align-items: center;
        gap: 1.5rem;
    }
}

.desktop-menu .menu-item {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}
.desktop-menu .menu-item:hover,
.desktop-menu .menu-item.active {
    color: var(--color-primary);
    text-shadow: 0 0 8px var(--color-primary);
}

/* MEGA MENU */
.mega-menu-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 kolom */
    gap: 2rem;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-dark-secondary);
    border: 1px solid var(--border-color);
    padding: 2rem;
    width: 100%;
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
    border-radius: 0 0 12px 12px;
}
.mega-menu-title {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: block;
}
.mega-menu-item ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.mega-menu-item li a {
    color: var(--text-secondary);
    padding: 0.5rem 0;
    display: block;
}
.mega-menu-item li a:hover {
    color: var(--color-primary);
    transform: translateX(5px);
}

/* =================================================================
   FUTURISTIK THEME - REVISI HEADER & NAVIGATION
   ================================================================= */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.4s, backdrop-filter 0.4s, border-color 0.4s;
    border-bottom: 1px solid transparent; /* Garis bawah transparan */
}

/* EFEK STICKY SAAT SCROLL */
.site-header.sticky {
    background-color: rgba(13, 17, 23, 0.85); /* Latar semi-transparan */
    backdrop-filter: blur(12px); /* Efek blur kaca */
    border-bottom: 1px solid var(--border-color);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    padding-bottom: 1rem;
    position: relative;
}

.logo {
    max-height: 40px;
    filter: brightness(0) invert(1); /* Logo jadi putih */
}

/* --- MENU DESKTOP --- */
.desktop-menu {
    display: none;
}
@media (min-width: 1024px) {
    .desktop-menu {
        display: flex;
        align-items: center;
        gap: 0.5rem; /* Jarak antar menu lebih rapat */
    }
}

.menu-item {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}
.menu-item:hover, .menu-item.active {
    color: var(--color-primary);
    background-color: rgba(0, 168, 255, 0.1);
}
.menu-item .chevron {
    stroke: var(--text-secondary);
    transition: transform 0.3s;
}
.menu-item:hover .chevron, .menu-item.active .chevron {
    transform: rotate(180deg);
    stroke: var(--color-primary);
}

/* --- MEGA MENU --- */
.produk-menu-wrapper {
    position: relative;
}
.mega-menu-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 1rem;
    width: 1000px; /* Lebar mega menu */
    max-width: 90vw;
    background: var(--bg-dark-secondary);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
}
.mega-menu-title {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: block;
    border-left: 3px solid var(--color-primary);
    padding-left: 1rem;
}
.mega-menu-item ul { list-style: none; padding: 0; }
.mega-menu-item li a {
    color: var(--text-secondary);
    padding: 0.5rem 0 0.5rem 1.2rem;
    display: block;
}
.mega-menu-item li a:hover {
    color: var(--color-primary);
    transform: translateX(5px);
}

/* =================================================================
   FUTURISTIK THEME - FORM LOGIN & DAFTAR
   ================================================================= */

.form-page-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 80px); /* 80px adalah perkiraan tinggi header */
    padding: 4rem 1rem;
}

.form-card {
    width: 100%;
    max-width: 450px;
    background: var(--bg-dark-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 0 30px rgba(0, 168, 255, 0.1);
}

.form-title {
    text-align: center;
    font-size: 2.5rem;
    background: none; /* Override gaya h1 global */
    -webkit-text-fill-color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.form-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.form-input {
    background-color: var(--bg-dark-primary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 12px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-family: inherit;
    font-size: 1rem;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: var(--glow-shadow-blue);
}

.form-error {
    color: var(--color-accent);
    font-size: 0.9rem;
    text-align: center;
}

.form-footer-link {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* =================================================================
   FUTURISTIK THEME - HALAMAN PENCARIAN
   ================================================================= */

.search-query {
    text-align: center;
    color: var(--text-secondary);
    margin-top: -2rem;
    margin-bottom: 3rem;
}
.search-query strong {
    color: var(--color-primary);
}

.results-grid {
    display: grid;
    gap: 1.5rem;
}

.result-item {
    display: block;
    background: var(--bg-dark-secondary);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}
.result-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--glow-shadow-blue);
    border-color: var(--color-primary);
}
.result-item h3 {
    font-size: 1.25rem;
    background: none;
    -webkit-text-fill-color: var(--text-primary);
    margin-bottom: 0.5rem;
}
.result-item p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}
.result-item .result-link {
    font-weight: 700;
    color: var(--color-primary);
}
.no-results {
    text-align: center;
    padding: 3rem;
    background: var(--bg-dark-secondary);
    border: 1px dashed var(--border-color);
    border-radius: 12px;
}

/* =================================================================
   FUTURISTIK THEME - HOMEPAGE HEADER
   ================================================================= */

.homepage-header {
    position: relative; /* Wadah utama */
    width: 100%;
    height: 100vh; /* Tinggi hero section sebesar layar */
    color: white;
}

/* Mengatur agar nav-menu berada di atas hero-homepage */
.homepage-header .site-header {
    position: absolute; /* Membuat nav melayang di atas */
    top: 0;
    left: 0;
    background: transparent; /* Awalnya transparan */
    border-bottom-color: transparent;
}

/* Tampilan nav-menu saat sticky/scroll */
.homepage-header .site-header.sticky {
    background-color: rgba(13, 17, 23, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}