/* Base Styles & Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    font-family: 'Inter', sans-serif;
    background-color: #ffffff; /* Changed to white to match the new lower section */
    color: #000000;
}

[id] {
    scroll-margin-top: 100px;
}

/* ===========================
   HERO SECTION (DARK)
   =========================== */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: #000000; /* Ensuring hero is dark */
    border-radius: 0 0 70px 70px;
    overflow: hidden;
    color: #ffffff;
    --banner-blur: 6px; /* adjust this to make the banner blur stronger/weaker */
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('/assets/home-banner.jpg'); /* Insert your local hero image path here */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center 80%;
    filter: blur(var(--banner-blur));
    z-index: 0;
}

.hero-section--short {
    height: 378px;
}

.hero-section--short .main-title {
    font-size: 26px;
    margin-bottom: 14px;
}

.hero-section--short .kicker {
    margin-bottom: 14px;
}

.hero-section--short .subtitle {
    font-size: 14px;
}

/* Per-page hero banners */
.hero-section--918kiss::before { background-image: url('/assets/918kiss-kiss918-banner.jpg'); }
.hero-section--ace333::before { background-image: url('/assets/ace333-banner.jpg'); }
.hero-section--evo888::before { background-image: url('/assets/evo888-banner.jpg'); }
.hero-section--live22::before { background-image: url('/assets/live22-banner.jpg'); }
.hero-section--mega888::before { background-image: url('/assets/mega888-banner.jpg'); }
.hero-section--newtown::before { background-image: url('/assets/newtown-ntc33-banner.jpg'); }
.hero-section--playboy888::before { background-image: url('/assets/playboy888-play8oy2-banner.jpg'); }
.hero-section--pussy888::before { background-image: url('/assets/pussy888-banner.jpg'); }
.hero-section--rollex11::before { background-image: url('/assets/rollex11-banner.jpg'); }
.hero-section--scr888::before { background-image: url('/assets/scr888-banner.jpg'); }
.hero-section--sky777::before { background-image: url('/assets/sky777-banner.jpg'); }
.hero-section--xe88::before { background-image: url('/assets/xe88-banner.jpg'); }

/* Homepage banner position (adjust the % to nudge the image up/down) */
.hero-section--home::before { background-position: center 45%; }
.hero-section--tentang::before { background-position: center 90%; background-size: 58%; }
.hero-section--hubungi::before { background-position: center 90%; background-size: 58%; }

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.8) 100%);
    z-index: 1;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
    gap: 8px;
    color: #d4af37;
    text-decoration: none;
}

.logo-icon {
    width: 50px;
    height: 50px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    color: #eaeaea;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #ffffff;
}

.dropdown-arrow {
    font-size: 8px;
    color: #888;
}

.nav-item.has-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    background: none;
    border: none;
    color: #eaeaea;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s;
}

.nav-dropdown-toggle:hover {
    color: #ffffff;
}

.dropdown-panel {
    position: absolute;
    top: calc(100% + 18px);
    left: 50%;
    transform: translateX(-50%);
    background: #111111;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 10px;
    display: grid;
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    gap: 4px;
    min-width: 260px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 200;
}

.nav-item.has-dropdown:hover .dropdown-panel,
.dropdown-panel.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-panel a {
    color: #cccccc;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

.dropdown-panel a:hover {
    background: rgba(212, 175, 55, 0.12);
    color: #d4af37;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn {
    text-decoration: none;
    color: #ffffff;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.3);
    transition: background 0.2s, border-color 0.2s;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
}

.external-icon {
    font-size: 10px;
    opacity: 0.7;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 20px;
    margin-top:48px;
}

.kicker {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 4px;
    color: #cccccc;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.main-title {
    font-size: 72px;
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.subtitle {
    font-size: 18px;
    color: #e0e0e0;
    font-weight: 400;
}

.subtitle strong {
    font-weight: 700;
    color: #ffffff;
}

.bottom-elements {
    position: absolute;
    bottom: 30px;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 2;
    padding: 0 40px;
}

.scroll-arrow {
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: color 0.2s;
}

.scroll-arrow:hover {
    color: #ffffff;
}

.settings-btn {
    position: absolute;
    right: 40px;
    bottom: 0;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.settings-btn:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.5);
}


/* ===========================
   CONTENT SECTION (LIGHT)
   =========================== */
.content-section {
    padding: 90px 5% 60px;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 56px;
}

.divider {
    width: 100%;
    border: none;
    border-top: 1px solid #e5e5e5;
    margin: 0;
}

.content-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.content-row .text-block {
    flex: 1;
}

.image-column {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.collage-image {
    width: 100%;
    max-width: 480px;
    height: auto;
    object-fit: contain;
}

.text-block--centered {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

.text-block h2 {
    font-size: 30px;
    font-weight: 700;
    color: #111111;
    margin-bottom: 20px;
    line-height: 1.25;
}

.text-block p {
    font-size: 15px;
    line-height: 1.7;
    color: #4a4a4a;
    margin-bottom: 18px;
}

.text-block p:last-child {
    margin-bottom: 0;
}

.btn-gradient {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(90deg, #d4af37 0%, #f5d576 100%);
    color: #1a1400;
    text-decoration: none;
    padding: 12px 28px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    transition: opacity 0.3s ease;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    color: #ffffff;
    text-decoration: none;
    padding: 12px 28px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
}

.hero-cta-row {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 28px;
}

.section-note {
    text-align: center;
    font-size: 13px;
    font-style: italic;
    color: #999999;
    margin-top: -12px;
}

/* Contact buttons */
.contact-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: #ffffff;
    font-size: 19px;
    font-weight: 700;
    padding: 22px 44px;
    border-radius: 18px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-btn:hover {
    transform: translateY(-3px);
}

.contact-btn--whatsapp {
    background: #25d366;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
}

.contact-btn--telegram {
    background: #229ed9;
    box-shadow: 0 10px 30px rgba(34, 158, 217, 0.3);
}

.contact-btn--download {
    background: #0d0d0d;
    color: #d4af37;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero-contact-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 28px;
    padding: 48px 5% 0;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-btn--lg {
    font-size: 18px;
    padding: 28px 56px;
    gap: 18px;
}

.contact-btn--lg svg {
    width: 32px;
    height: 32px;
}

.contact-btn--outline {
    background: #ffffff;
    color: #111111;
    border: 2px solid #111111;
    box-shadow: none;
}

.contact-btn--outline:hover {
    background: #111111;
    color: #ffffff;
}

/* Chatbox */
.chatbox {
    max-width: 700px;
    width: 100%;
    margin: 0 auto;
    border: 1px solid #ececec;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.chatbox-header {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #0d0d0d;
    color: #d4af37;
    font-weight: 700;
    font-size: 15px;
    padding: 18px 22px;
}

.chatbox-status {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #25d366;
    display: inline-block;
}

.chatbox-messages {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 22px;
    height: 280px;
    overflow-y: auto;
    background: #fafafa;
}

.chat-message {
    max-width: 80%;
    padding: 10px 16px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.5;
}

.chat-message--bot {
    align-self: flex-start;
    background: #ffffff;
    border: 1px solid #ececec;
    color: #333333;
    border-bottom-left-radius: 4px;
}

.chat-message--user {
    align-self: flex-end;
    background: #d4af37;
    color: #1a1400;
    border-bottom-right-radius: 4px;
}

.chatbox-form {
    display: flex;
    border-top: 1px solid #ececec;
}

.chatbox-input {
    flex: 1;
    border: none;
    padding: 16px 20px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
}

.chatbox-send {
    border: none;
    background: #0d0d0d;
    color: #d4af37;
    padding: 0 26px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.chatbox-send:hover {
    opacity: 0.85;
}

.btn-gradient:hover {
    opacity: 0.85;
}

/* Feature grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.feature-card {
    background: #fafafa;
    border: 1px solid #ececec;
    border-radius: 16px;
    padding: 28px 24px;
}

.feature-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: #111111;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 14px;
    line-height: 1.6;
    color: #555555;
}

.feature-card ul {
    padding-left: 18px;
    margin-top: 8px;
}

.feature-card ul li {
    font-size: 14px;
    line-height: 1.6;
    color: #555555;
    margin-bottom: 4px;
}

/* Hero note */
.hero-note {
    position: relative;
    z-index: 2;
    margin-top: 18px;
    font-size: 13px;
    font-style: italic;
    color: #aaaaaa;
}

/* Download cards */
.download-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.download-card {
    border: 1px solid #ececec;
    border-radius: 16px;
    padding: 28px 24px;
}

.download-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #111111;
    margin-bottom: 10px;
}

.download-card p {
    font-size: 14px;
    line-height: 1.6;
    color: #555555;
    margin-bottom: 16px;
}

.download-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.download-meta span {
    font-size: 13px;
    color: #777777;
    background: #fafafa;
    border: 1px solid #ececec;
    padding: 6px 14px;
    border-radius: 20px;
}

/* Screenshot slider */
.screenshot-slider {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

.slider-viewport {
    position: relative;
    border-radius: 16px;
}

.slider-track {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 2px;
}

.slider-track::-webkit-scrollbar {
    display: none;
}

.slider-slide {
    flex: 0 0 31%;
    scroll-snap-align: start;
    border-radius: 14px;
    border: 1px solid #ececec;
    overflow: hidden;
}

.slider-slide img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: #f5f5f5;
    display: block;
}

.slider-caption {
    padding: 14px 16px;
}

.slider-caption h3 {
    font-size: 14px;
    font-weight: 700;
    color: #111111;
    margin-bottom: 4px;
}

.slider-caption p {
    font-size: 13px;
    color: #555555;
    line-height: 1.5;
}

.slider-progress {
    position: relative;
    height: 4px;
    background: #ececec;
    border-radius: 4px;
    margin-top: 18px;
    overflow: hidden;
}

.slider-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    border-radius: 4px;
    background: #d4af37;
    transition: left 0.1s linear;
}

/* Popular games grid */
.game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.game-card {
    display: flex;
    flex-direction: column;
    text-align: center;
    background: #0d0d0d;
    text-decoration: none;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #1f1f1f;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.game-card:hover {
    transform: translateY(-4px);
    border-color: #d4af37;
}

.game-card-img {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 3;
    background: #1a1a1a;
}

.game-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-card-name {
    padding: 14px 12px;
    color: #d4af37;
    font-weight: 700;
    font-size: 14px;
}

.game-card--extra {
    display: none;
}

.game-grid.is-expanded .game-card--extra {
    display: flex;
}

.see-all-wrap {
    display: flex;
    justify-content: center;
}

/* Brand page components */
.badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.badge {
    background: #0d0d0d;
    color: #d4af37;
    border: 1px solid #1f1f1f;
    border-radius: 20px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
}

.info-list {
    border-top: 1px solid #ececec;
}

.info-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 0;
    border-bottom: 1px solid #ececec;
}

.info-row dt {
    color: #111111;
    font-weight: 600;
    font-size: 14px;
}

.info-row dd {
    color: #777777;
    font-size: 14px;
    text-align: right;
}

.download-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.download-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fafafa;
    border: 1px solid #ececec;
    border-radius: 10px;
    padding: 14px 20px;
    color: #111111;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.download-item:hover {
    border-color: #d4af37;
    background: #ffffff;
}

.steps-list {
    padding-left: 20px;
}

.steps-list li {
    font-size: 15px;
    line-height: 1.7;
    color: #4a4a4a;
    margin-bottom: 12px;
}

.steps-list li:last-child {
    margin-bottom: 0;
}

.review-date {
    text-align: center;
}

.review-date p {
    font-size: 13px;
    color: #999999;
}

/* Footer */
.site-footer {
    padding: 32px 5% 40px;
    text-align: center;
    border-top: 1px solid #ececec;
}

.site-footer p {
    font-size: 13px;
    color: #999999;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 12px;
}

.footer-links a {
    font-size: 13px;
    color: #666666;
    text-decoration: none;
}

.footer-links a:hover {
    color: #333333;
    text-decoration: underline;
}

@media (max-width: 860px) {
    .content-row {
        flex-direction: column;
    }
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .game-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .slider-slide {
        flex: 0 0 47%;
    }
}

@media (max-width: 640px) {
    .hero-section::before {
        background-size: 442%;
    }
    .hero-section--home::before,
    .hero-section--tentang::before,
    .hero-section--hubungi::before {
        background-size: 144%;
        background-position: center 55%;
    }
    .main-title {
        font-size: 44px;
    }
    .slider-slide {
        flex: 0 0 80%;
    }
    .logo {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -35%);
    }
    .logo-icon {
        width: 78px;
        height: 78px;
    }
    .nav-actions {
        margin-left: auto;
    }
    .menu-toggle {
        display: flex;
    }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: rgba(10, 10, 10, 0.97);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 8px 24px 24px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    .nav-links.is-open {
        display: flex;
    }
    .nav-links > a {
        padding: 14px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    .nav-item.has-dropdown {
        width: 100%;
    }
    .nav-dropdown-toggle {
        width: 100%;
        justify-content: space-between;
        padding: 14px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    .dropdown-panel {
        position: static;
        transform: none;
        display: none;
        grid-template-columns: 1fr 1fr;
        min-width: 0;
        width: 100%;
        opacity: 1;
        visibility: visible;
        border: none;
        padding: 10px 0 4px;
    }
    .dropdown-panel.is-open {
        display: grid;
    }
    .feature-grid,
    .game-grid,
    .download-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .info-row {
        flex-direction: column;
        gap: 4px;
    }
    .info-row dd {
        text-align: left;
    }
    .contact-btn {
        width: 100%;
        justify-content: center;
        padding: 20px 24px;
    }
}

@media(max-width:600px){
    .hero-section--short {
        height:500px;
    }
}

/* ===========================
   FLOATING ACTION BUTTONS
   =========================== */
.floating-actions {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 14px;
    z-index: 2000;
}

.fab {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s ease;
}

.fab:hover {
    transform: scale(1.08);
}

.fab svg {
    width: 26px;
    height: 26px;
}

.fab--whatsapp {
    background: #25d366;
}

.fab--telegram {
    background: #229ed9;
}

.fab--playnow {
    background: #d4af37;
}

@media (max-width: 640px) {
    .floating-actions {
        right: 12px;
        gap: 10px;
    }
    .fab {
        width: 60px;
        height: 60px;
    }
    .fab svg {
        width: 30px;
        height: 30px;
    }
}