/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    background-color: var(--bg-alt); /* Changed from secondary to bg-alt */
    border-radius: 0 0 40px 40px;
    padding: 80px 10%;
    gap: 40px;
    color: #fff;
    margin: -40px -24px 0 -24px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}
.hero::before {
    content: "";
    position: absolute;
    top:0; left:0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(9, 9, 11, 0.95) 0%, rgba(24, 24, 27, 0.8) 100%);
    z-index: 1;
}

.hero-content {
    flex: 1;
    z-index: 2;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 0 0 20px rgba(0,0,0,0.5);
}
.hero-title span { color: var(--primary); text-shadow: 0 0 20px var(--primary-glow); }

.hero-content h3 { color: #ffffff; font-size: 20px; font-weight: 500;}
.hero-content p { color: rgba(255,255,255,0.8); font-size: 18px; max-width: 600px;}

.hero-box {
    flex: 1;
    z-index: 2;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(251, 191, 36, 0.15); /* Gold glow */
    border: 1px solid var(--border-color);
}
.hero-box img { width: 100%; height: 400px; object-fit: cover;}

@media (max-width: 968px) {
    .hero { flex-direction: column; padding: 60px 5%; text-align: center; }
    .hero-title { font-size: 40px; }
}

/* Steps - 3 Langkah Mudah */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 40px;
    position: relative;
}
/* Horizontal line connecting steps */
.steps-grid::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 10%; right: 10%;
    height: 2px;
    background-color: var(--border-color);
    z-index: 0;
}
@media (max-width: 768px) { .steps-grid::before { display: none; } }

.step-card {
    text-align: center;
    background: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
    z-index: 1;
}

.step-icon {
    width: 60px; height: 60px;
    background-color: var(--card-bg);
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
    font-size: 24px;
    box-shadow: 0 0 0 8px var(--bg-color), 0 0 15px var(--primary-glow);
}

.step-card h3 { font-size: 18px; color: var(--secondary); margin-bottom: 10px;}
.step-card p { font-size: 14px; }

/* Categories Grid - Permainan Terbaik */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.category-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}
.category-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.8), 0 0 15px var(--primary-glow);
    border-color: var(--primary);
    transform: translateY(-5px);
}
.category-card img {
    width: 100%; height: 150px; object-fit: cover; border-radius: 8px; margin: 0 auto 20px;
}
.category-card h3 { font-size: 20px; color: var(--secondary); }

/* App Section */
.app-section {
    background: var(--bg-alt);
    border-radius: 24px;
    padding: 60px;
    display: flex; gap: 50px; align-items: center;
    border: 1px solid var(--border-color);
}
.app-section > div:last-child { flex: 1; border:none; border-radius: 16px; overflow: hidden; width: auto; height: 300px; box-shadow: 0 0 20px rgba(251, 191, 36, 0.1);}
.app-section > div:last-child img { width: 100%; height: 100%; object-fit: cover; }

/* Stats / Jackpot section */
.jackpot-section {
    background: linear-gradient(135deg, #18181b 0%, #09090b 100%);
    padding: 60px 0;
    border-radius: 20px;
    border: 1px solid var(--primary);
    box-shadow: inset 0 0 50px rgba(251, 191, 36, 0.05);
    text-align: center;
}
.jackpot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}
.jackpot-card {
    background: transparent;
    border: none; padding: 20px;
    box-shadow: none;
}
.jackpot-card:hover { transform: none; box-shadow: none; }
.jackpot-amount { color: var(--primary); font-size: 40px; text-shadow: 0 0 15px var(--primary-glow);}
.jackpot-title { color: var(--secondary); font-size: 18px; font-weight: 600; margin-top: 10px;}

/* Projects Grid / Popular games */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}
.card:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.8), 0 0 15px var(--primary-glow); border-color: var(--primary); transform: translateY(-5px); }
.card > div:first-child { margin-bottom: 0; text-align: center; }
.card > div:first-child img { width: 100%; height: 180px; object-fit: cover; border-radius: 12px 12px 0 0; }
.card h3 { padding: 20px 20px 10px; font-size: 20px; margin: 0; color: var(--secondary);}
.card p { padding: 0 20px 20px; margin: 0; color: var(--text-muted); }
.card > div:last-child { padding: 0 20px 20px; text-align: left;}

/* Why Choose us / Features grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 40px 30px;
    border-radius: 16px;
    text-align: left;
    transition: all 0.3s ease;
}
.feature-card:hover {
    border-color: var(--primary);
    box-shadow: 0 0 20px var(--primary-glow);
}
.feature-icon {
    width: 50px; height: 50px;
    background: rgba(251, 191, 36, 0.1);
    color: var(--primary);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 10px;
    margin: 0 0 20px 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; box-shadow: none;
}
.feature-card h3 { color: var(--secondary); }

/* FAQ Section */
.faq-container { margin-top: 24px; }
.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    margin-bottom: 15px; border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}
.faq-item:hover { border-color: rgba(251, 191, 36, 0.4); }
.faq-question {
    background: transparent;
    color: var(--secondary);
    padding: 20px 30px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-question span { transition: transform 0.3s ease; font-size: 20px; }
.faq-item.active .faq-question span { transform: rotate(45deg); }
.faq-answer {
    padding: 0 30px;
    max-height: 0; overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
}
.faq-item.active .faq-answer { padding: 10px 30px 20px; max-height: 500px; }
.faq-item.active .faq-question { color: var(--primary); background: rgba(251, 191, 36, 0.05); }

/* Testimonials Section */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 32px;
}
.testimonial-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
    padding: 40px; border-radius: 16px;
    transition: all 0.3s ease;
}
.testimonial-card:hover { border-color: var(--primary); box-shadow: 0 5px 20px rgba(251, 191, 36, 0.15);}
.testimonial-author { color: var(--primary); font-style: normal; margin-top: 20px; font-weight: 600;}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15) 0%, rgba(217, 119, 6, 0.05) 100%);
    border-radius: 24px;
    padding: 60px; color: #fff;
    display: flex; justify-content: space-between; align-items: center;
    text-align: left;
    border: 1px solid rgba(251, 191, 36, 0.3);
}
.cta-section h2 { color: var(--secondary); font-size: 32px; margin-bottom: 10px;}
.cta-section p { color: var(--text-muted); }

section { margin-top: 64px; }
section h2 { color: var(--secondary); font-size: 32px; margin-bottom: 12px; }

@media (max-width: 768px) {
    .cta-section { flex-direction: column; text-align: center; gap: 30px; }
    .app-section { flex-direction: column; text-align: center; padding: 30px; gap: 30px;}
}

/* Promotions Section */
.promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.promo-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}
.promo-card:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0,0,0,0.8), 0 0 15px var(--primary-glow);
    transform: translateY(-5px);
}
.promo-badge {
    position: absolute;
    top: 20px;
    right: -30px;
    background: var(--primary);
    color: #000;
    padding: 5px 40px;
    transform: rotate(45deg);
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* VIP Section */
.vip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 40px;
}
.vip-card {
    background: linear-gradient(180deg, var(--card-bg) 0%, rgba(9,9,11,1) 100%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
}
.vip-card:hover {
    border-color: var(--primary);
    box-shadow: 0 0 20px var(--primary-glow);
}
.vip-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

/* Payment Section */
.payment-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}
.payment-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 18px;
    min-width: 120px;
    transition: all 0.3s ease;
}
.payment-item:hover {
    color: var(--primary);
    border-color: var(--primary);
}

/* Responsive Utilities */
.split-section {
    display: flex;
    gap: 40px;
    align-items: center;
}
.split-section > div { flex: 1; }

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

@media (max-width: 768px) {
    .split-section {
        flex-direction: column;
        gap: 30px;
    }
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .features-grid {
        grid-template-columns: 1fr !important;
    }
}