/* ==================================== */
/* 1. VARIABEL & RESET DASAR */
/* ==================================== */
:root {
    --primary-color: #007bff;
    --secondary-color: #ff5722;
    --accent-color: #28a745;
    --text-light: #f8f9fa;
    --bg-dark: #1e1e2d; 
    --bg-medium: #27293d; 
    --bg-light: #303351;
    --gold-primary: #ffc107;
    --border-color: rgba(255, 255, 255, 0.1);
    --text-dark: #000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-light);
    background-color: var(--bg-dark); 
    background-attachment: fixed;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: #ff3300;
}

/* ==================================== */
/* 2. TOP BAR & NAV FIXES */
/* ==================================== */
.top-bar {
    background: var(--bg-dark);
    padding: 0;
    border-bottom: 3px solid var(--gold-primary);
    position: fixed; 
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.top-bar-content { 
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 20px;
}

.navbar-logo-link {
    display: flex;
    align-items: center;
}

.navbar-logo {
    height: 35px;
    width: auto;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

.top-bar-buttons {
    display: flex;
    gap: 10px;
}

.top-btn {
    color: var(--text-light);
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.top-btn:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.scrolled {
    background-color: rgba(30, 30, 45, 0.95);
    backdrop-filter: blur(5px);
}

.main-content {
    padding-top: 55px; 
    flex: 1;
    background: radial-gradient(circle at top left, var(--bg-light) 0%, var(--bg-dark) 70%);
}

/* ==================================== */
/* 3. JUDUL DAN SECTIONS */
/* ==================================== */
.section-container {
    padding: 80px 0;
}

.section-title {
    font-family: 'Oswald', sans-serif;
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 60px;
    color: var(--gold-primary);
    position: relative;
    text-shadow: 0 0 15px rgba(255, 193, 7, 0.4);
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -15px;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 2px;
}

/* ==================================== */
/* 4. HERO SECTION - FULL BANNER & CLOSE BUTTON */
/* ==================================== */
.main-banner-section {
    padding: 0; 
    height: 550px; 
    
    /* GAMBAR BANNER BARU SEBAGAI BACKGROUND */
    /* KOREKSI AKHIR: Menggunakan 'contain' agar gambar TIDAK TERPOTONG */
    background: url('https://res.cloudinary.com/dzqmwuff7/image/upload/v1763105323/bener_utama_holy_bnndch.webp') no-repeat center center;
    background-size: contain; 
    
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.main-banner-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* KOREKSI AKHIR: Mengurangi opacity menjadi 0.3 untuk MEMBUATNYA LEBIH TERANG */
    background: rgba(0, 0, 0, 0.3); 
    z-index: 1;
}

.main-banner {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 700px; 
    padding: 0;
}

/* Tombol Silang */
.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    color: #fff;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s;
    z-index: 10;
}

.close-btn:hover {
    opacity: 1;
    color: var(--secondary-color);
}

.banner-overlay {
    position: relative;
    background: rgba(0, 0, 0, 0.65); 
    padding: 25px 30px; 
    border-radius: 15px;
    border: 1px solid var(--gold-primary);
    box-shadow: 0 0 25px rgba(255, 193, 7, 0.6); 
    transition: opacity 0.5s ease;
}

.banner-overlay h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-light);
    text-shadow: 0 0 15px rgba(0, 123, 255, 0.7);
    min-height: 55px;
}

.banner-overlay p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #ccc;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.7);
}

.btn-main-cta {
    display: inline-block;
    background: linear-gradient(45deg, var(--secondary-color), #ff8a65);
    color: var(--text-light);
    padding: 12px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(255, 87, 34, 0.4);
}

.btn-main-cta:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px rgba(255, 87, 34, 0.6);
}

/* Typing Cursor Effect */
.typing-cursor {
    display: inline-block;
    width: 4px;
    height: 35px;
    margin-left: 5px;
    background-color: var(--gold-primary);
    animation: blink 0.8s infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* ==================================== */
/* 5. FLOATING STICKY INFO BAR */
/* ==================================== */
.floating-sticky-bar {
    width: 100%;
    position: sticky;
    top: 55px; 
    z-index: 900; 
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    transform: translateY(-100%);
    animation: slideDown 1s ease-out 0.5s forwards; 
    background: linear-gradient(90deg, var(--gold-primary), var(--secondary-color)); 
    border-bottom: 2px solid var(--primary-color);
    transition: opacity 0.5s ease;
}

.sticky-content {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px 20px;
    color: var(--text-dark);
    font-weight: 500;
    gap: 20px;
    flex-wrap: wrap;
    text-align: center; 
}

.sticky-icon {
    font-size: 1.4rem;
    color: var(--primary-color);
}

.sticky-content p {
    margin: 0;
    font-size: 1rem;
    color: var(--text-dark);
}

.sticky-content strong {
    font-weight: 900;
    color: var(--primary-color);
}

.btn-sticky-cta {
    background-color: var(--primary-color);
    color: #fff;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.btn-sticky-cta:hover {
    background-color: #0056b3;
    color: #fff;
}

@keyframes slideDown {
    to {
        transform: translateY(0);
    }
}

/* ==================================== */
/* 6. FITUR UTAMA & PROMO */
/* ==================================== */
.features-section {
    background-color: var(--bg-medium);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: linear-gradient(135deg, var(--bg-light), var(--bg-medium));
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--primary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.feature-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: var(--gold-primary);
}

.promo-highlight {
    background: transparent;
}

.promo-card-wrapper {
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

.promo-card {
    background: linear-gradient(135deg, var(--bg-dark), var(--bg-medium));
    border: 3px solid var(--gold-primary);
    border-radius: 20px;
    padding: 20px;
    max-width: 500px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
    transition: none; 
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.promo-image-full-width { 
    width: calc(100% + 40px);
    margin-left: -20px;
    margin-right: -20px;
    max-width: none;
    height: 250px;
    object-fit: cover;
    border-radius: 15px 15px 0 0;
    margin-bottom: 25px;
    border-bottom: 3px solid var(--secondary-color);
}

.promo-card-title {
    margin-top: 15px;
}

.promo-description {
    font-size: 1.05rem;
}

/* Promo Price Box */
.promo-price-box, .item-price {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
    padding: 10px 20px;
    border-radius: 5px;
    background-color: var(--bg-light);
    width: 100%;
    max-width: 250px;
}

.price-label {
    font-size: 0.9rem;
    color: #ccc;
    font-weight: 400;
}

.price-value {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--accent-color);
    text-shadow: 0 0 5px rgba(40, 167, 69, 0.5);
}

.btn-buy-now, .btn-item-buy {
    display: block;
    width: 100%;
    padding: 10px;
    border-radius: 50px;
    font-weight: 700;
    margin-top: 10px;
    transition: background-color 0.3s ease;
}

.btn-buy-now {
    background-color: var(--secondary-color);
    color: var(--text-light);
}

.btn-buy-now:hover {
    background-color: #e64a19;
}

.btn-item-buy {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.btn-item-buy:hover {
    background-color: #0056b3;
}


.other-promos {
    background-color: rgba(255, 255, 255, 0.05);
}

.promo-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.promo-item {
    background-color: var(--bg-medium);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.item-image-full-width {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--accent-color);
}

.promo-item .item-details {
    padding: 0 20px 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
}

.promo-item .item-details h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--gold-primary);
}

.promo-item .item-details p {
    font-size: 0.95rem;
    color: #ccc;
    margin-bottom: 15px;
}

/* ==================================== */
/* 7. FOOTER FIXES */
/* ==================================== */
.main-footer {
    background: var(--bg-dark);
    padding: 25px 0;
    border-top: 3px solid var(--gold-primary);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.license-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.license-label {
    font-weight: 500;
    color: var(--gold-primary);
    font-size: 0.85rem;
}

.license-logo {
    height: 30px;
    object-fit: contain;
}

/* ==================================== */
/* 8. MEDIA QUERIES (RESPONSIVE) */
/* ==================================== */
@media (max-width: 992px) {
    .banner-overlay h1 {
        font-size: 3rem;
    }
    .footer-content {
        flex-direction: column;
        gap: 15px;
    }
    .license-info {
        flex-wrap: wrap;
        justify-content: center;
    }
    .promo-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .top-bar-content {
        flex-direction: row;
        justify-content: space-between;
        gap: 5px;
        padding: 8px 10px;
    }
    
    .top-bar-buttons {
        gap: 5px;
    }
    
    .top-btn {
        padding: 5px 8px;
        font-size: 0.9rem;
    }
    
    .main-content {
        padding-top: 55px;
    }

    .floating-sticky-bar {
        top: 55px;
    }
    
    .main-banner-section {
        /* Meningkatkan tinggi untuk menampung seluruh gambar 'contain' */
        height: 500px; 
    }

    .banner-overlay h1 {
        font-size: 2.2rem;
    }
    .banner-overlay p {
        font-size: 1rem;
    }
    
    .sticky-content {
        gap: 10px;
        padding: 10px 15px;
        justify-content: space-between;
    }
    
    /* Sticky bar adjustment for better mobile layout */
    .sticky-content p {
        font-size: 0.85rem;
        flex-basis: auto; 
        order: 2;
        margin-right: auto; 
    }
    
    .sticky-icon {
        order: 1;
    }
    .btn-sticky-cta {
        order: 3;
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .promo-list {
        grid-template-columns: 1fr;
    }

    .promo-card {
        padding: 15px;
    }

    .promo-image-full-width { 
        width: calc(100% + 30px);
        margin-left: -15px;
        margin-right: -15px;
        height: 200px;
    }
}