/* ============================
           Global Styles
           ============================ */
:root {
    --gold-primary: #D4AF37;
    --gold-secondary: #B8860B;
    --gold-light: #FEF3C7;
    --dark-charcoal: #1A1A1A;
    --dark-gray: #2D2D2D;
    --light-gray: #4A4A4A;
    --white: #FFFFFF;
    --off-white: #F5F5F5;
    --silver-primary: #c0c0c0;
    --silver-secondary: #e0e0e0;
    --maroon: #800020;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--dark-charcoal);
    color: var(--off-white);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 90px;
    min-height: 100vh;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
}

.content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
}

/* ============================
           Header Styles
           ============================ */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.4s ease;
    border-bottom: 2px solid var(--gold-primary);
}

header.scrolled {
    padding: 0.7rem 2rem;
    background: rgba(26, 26, 26, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

header .logo h1 {
    margin: 0;
    font-weight: 700;
    color: var(--gold-primary);
    font-size: 1.8rem;
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
}

.logo-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-link:hover {
    opacity: 0.85;
}

.logo-icon {
    font-size: 1.8rem;
    color: var(--gold-primary);
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.6);
}

.logo-img {
    height: 40px;
    margin-right: 8px;
}


header nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

header nav a {
    text-decoration: none;
    color: var(--off-white);
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
    padding: 0.5rem 0;
}

header nav a:hover {
    color: var(--gold-primary);
}

header nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--gold-primary), var(--gold-light));
    transition: width 0.3s ease;
}

header nav a:hover::after {
    width: 100%;
}

/* Dropdown Menu */
.nav-item {
    position: relative;
}

.nav-item>a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(26, 26, 26, 0.98);
    backdrop-filter: blur(10px);
    width: 180px;
    border-radius: 8px;
    padding: 1rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    border: 1px solid var(--gold-primary);
    z-index: 1001;
}

.nav-item:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown a {
    display: flex;
    align-items: center;
    padding: 0.7rem 1.5rem;
    color: var(--off-white);
    transition: all 0.3s;
}

.dropdown a i {
    margin-right: 10px;
    font-size: 0.9rem;
    color: var(--gold-primary);
}

.dropdown a:hover {
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold-primary);
    padding-left: 2rem;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: var(--gold-primary);
    cursor: pointer;
    background: rgba(212, 175, 55, 0.1);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.mobile-menu-btn:hover {
    background: rgba(212, 175, 55, 0.2);
}

/* Default: hidden di desktop */
.mobile-menu-btn {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding-top: 80px;
    }

    header {
        padding: 1rem;
    }

    header.scrolled {
        padding: 0.7rem 1rem;
    }

    header .logo h1 {
        font-size: 1.6rem;
    }

    header nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(26, 26, 26, 0.98);
        flex-direction: column;
        padding: 1rem;
        gap: 0;
        border-top: 2px solid var(--gold-primary);
    }

    header nav.active {
        display: flex;
    }

    .nav-item {
        width: 100%;
        text-align: center;
    }

    .nav-item>a {
        justify-content: center;
        padding: 1rem 0;
    }

    .dropdown {
        position: static;
        width: 100%;
        opacity: 1;
        visibility: visible;
        transform: none;
        margin-top: 0.5rem;
        display: none;
        background: rgba(30, 30, 30, 0.98);
        box-shadow: none;
        border: none;
        border-radius: 8px;
    }

    .nav-item:hover .dropdown {
        display: block;
        transform: none;
    }

    .dropdown a {
        justify-content: center;
        padding: 0.8rem 1rem;
    }

    .dropdown a:hover {
        padding-left: 1rem;
    }

    .mobile-menu-btn {
        display: flex;
    }
}


/* Footer Bar */
.footer-bar {
    background: var(--dark-charcoal);
    border-top: 2px solid var(--gold-primary);
    padding: 1.2rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copy {
    color: var(--off-white);
    font-size: 0.95rem;
}

.footer-social a {
    color: var(--off-white);
    margin-left: 1rem;
    font-size: 1.3rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-social a:hover {
    color: var(--gold-primary);
    transform: translateY(-3px);
}

/* Section Common Styles */
section {
    position: relative;
    overflow: hidden;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-light) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.section-subtitle {
    text-align: center;
    color: var(--off-white);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

/* Buttons */
.btn-gold {
    display: inline-block;
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-secondary) 100%);
    color: var(--dark-charcoal);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.btn-gold::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: 0.5s;
}

.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.6);
    color: var(--dark-charcoal);
}

.btn-gold:hover::before {
    left: 100%;
}

.btn-silver1 {
    display: inline-block;
    background: linear-gradient(135deg, var(--silver-primary) 0%, var(--silver-secondary) 100%);
    color: var(--dark-charcoal);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(192, 192, 192, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.btn-silver1::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: 0.5s;
}

.btn-silver1:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(192, 192, 192, 0.6);
    color: var(--dark-charcoal);
}

.btn-silver1:hover::before {
    left: 100%;
}

.btn-maroon {
    display: inline-block;
    background: linear-gradient(135deg, var(--maroon) 0%, #600018 100%);
    color: var(--off-white);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(128, 0, 32, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.btn-maroon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn-maroon:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(128, 0, 32, 0.6);
    color: var(--off-white);
}

.btn-maroon:hover::before {
    left: 100%;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 10px 25px rgba(212, 175, 55, 0.6);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes shine {
    0% {
        left: -100%;
    }

    20% {
        left: 100%;
    }

    100% {
        left: 100%;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        padding: 1rem;
    }

    header nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(26, 26, 26, 0.98);
        flex-direction: column;
        padding: 1rem;
        gap: 0;
        border-top: 2px solid var(--gold-primary);
    }

    header nav.active {
        display: flex;
    }

    .nav-item {
        width: 100%;
    }

    .dropdown {
        position: static;
        width: 100%;
        opacity: 1;
        visibility: visible;
        transform: none;
        margin-top: 0.5rem;
        display: none;
    }

    .nav-item:hover .dropdown {
        display: block;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-content h2 {
        color: red !important;
    }


    .hero-content p {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .produk-grid {
        grid-template-columns: 1fr;
    }

    .harga-box {
        min-width: auto;
        width: 100%;
        padding: 2rem;
    }
}


@keyframes fadeUpIn {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-up {
    animation: fadeUpIn 2.5s ease-out forwards;
    /* 2.5 detik */
}

@keyframes heroEntrance {
    0% {
        opacity: 0;
        transform: translateY(-50px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes titleReveal {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.gold-particle {
    position: absolute;
    top: -20px;
    width: 6px;
    height: 6px;
    background: gold;
    border-radius: 50%;
    opacity: 0.8;
    animation-name: fall;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

@keyframes fall {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    100% {
        transform: translateY(100vh) rotate(360deg);
    }
}

/* ============================
   Mobile Interactivity Enhancements
   ============================ */

/* Improved Mobile Menu */
@media (max-width: 768px) {

    /* Enhanced mobile menu button */
    .mobile-menu-btn {
        display: flex;
        z-index: 1002;
        transition: all 0.3s ease;
    }

    /* Active state for menu button */
    .mobile-menu-btn.active {
        background: rgba(212, 175, 55, 0.3);
        transform: rotate(90deg);
    }

    /* Smooth menu animation */
    header nav {
        display: flex;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transition: max-height 0.4s ease, opacity 0.3s ease;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(26, 26, 26, 0.98);
        backdrop-filter: blur(10px);
        padding: 0;
        gap: 0;
        border-top: 2px solid var(--gold-primary);
    }

    header nav.active {
        max-height: 500px;
        opacity: 1;
        padding: 1rem;
    }

    /* Improved dropdown behavior */
    .dropdown {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-item.active .dropdown {
        max-height: 300px;
    }

    /* Better touch targets */
    .nav-item>a,
    .dropdown a {
        padding: 1rem;
        min-height: 50px;
        display: flex;
        align-items: center;
    }

    /* Enhanced product cards for mobile */
    .produk-card {
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .produk-card:active {
        transform: scale(0.98);
    }

    /* Improved button interactions */
    .btn-gold,
    .btn-silver1,
    .btn-maroon {
        min-height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Prevent zoom on input focus */
    @media (max-width: 480px) {

        input,
        select,
        textarea {
            font-size: 16px !important;
        }
    }

    /* Smooth scrolling for anchor links */
    html {
        scroll-behavior: smooth;
    }
}

/* Touch-friendly improvements for all devices */
.btn-gold,
.btn-silver1,
.btn-maroon,
.artikel-link,
.nav-item>a {
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

/* Enhanced feedback for touch interactions */
.btn-gold:active,
.btn-silver1:active,
.btn-maroon:active {
    transform: scale(0.95);
}

/* Improved article card interactions */
.artikel-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.artikel-card:active {
    transform: translateY(2px);
}

/* Better form interactions */
input,
textarea,
select {
    min-height: 44px;
    font-size: 16px;
    /* Prevents zoom on iOS */
}

/* Price box interaction improvements */
.harga-box {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.harga-box:active {
    transform: scale(0.98);
}

/* Loading state for API calls */
.api-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px;
    border-radius: 8px;
    margin-top: 15px;
    background: rgba(26, 26, 26, 0.8);
    color: #f8f8f8;
    border: 1px solid var(--gold-primary);
}

/* Animation for price updates */
@keyframes priceUpdate {
    0% {
        background-color: rgba(212, 175, 55, 0.1);
    }

    50% {
        background-color: rgba(212, 175, 55, 0.3);
    }

    100% {
        background-color: transparent;
    }
}

.price-update {
    animation: priceUpdate 1s ease;
}

/* Back to top button for mobile */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gold-primary);
    color: var(--dark-charcoal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:active {
    transform: scale(0.9);
}

/* Improved hero section for mobile */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem !important;
        line-height: 1.2;
    }

    .hero-content p {
        font-size: 1.1rem !important;
    }

    .btn-container {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Prevent horizontal scrolling */
body {
    overflow-x: hidden;
    width: 100%;
}