:root {
    --primary-color: #1e1e2d;
    --secondary-color: #2c2c3d;
    --accent-color: #ffd700;
    --text-color: #ffffff;
    --background-color: #121212;
    --card-background: #2c2c3d;
}

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

body,
html {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    font-size: 16px;
}

.container {
    display: flex;
    min-height: 100vh;
}

header {
    background: var(--primary-color);
    width: 250px;
    padding: 2rem;
    color: var(--text-color);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
}

.logo img {
    max-width: 100%;
    height: auto;
    margin-bottom: 2rem;
}

nav ul {
    list-style-type: none;
}

nav ul li {
    margin-bottom: 1rem;
}

nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
    display: block;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

nav ul li a:hover {
    background-color: var(--secondary-color);
    color: var(--accent-color);
}

.button-utama {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--accent-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: 0.3s;
    text-align: center;
    text-transform: uppercase;
}

.btn:hover {
    background-color: #e6c200;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.main-content {
    flex-grow: 1;
    padding: 2rem;
    margin-left: 250px;
}

.hero {
    background: linear-gradient(rgba(30, 30, 45, 0.7), rgba(30, 30, 45, 0.7)), url('/assets/gambar/abadd.jpg') center/cover no-repeat;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 15px;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    padding: 2rem;
}

.hero-content {
    max-width: 800px;
    width: 100%;
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.hero-content p {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    margin-bottom: 2rem;
}

.section-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: 2rem;
    color: var(--accent-color);
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 1rem auto 0;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.game-card {
    background: var(--card-background);
    border-radius: 15px;
    overflow: hidden;
    transition: 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.2);
}

.game-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 192 / 184;
    object-fit: cover;
}

.game-info {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.game-info h3 {
    font-size: 1.1em;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

.progress-container {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-bottom: 0.5rem;
}

.progress-bar {
    height: 6px;
    border-radius: 10px;
    background: linear-gradient(90deg, var(--accent-color), #ffa500);
    width: 0;
    transition: width 1s ease-in-out;
}

.progress-text {
    font-size: 0.8em;
    color: var(--accent-color);
    margin-bottom: 0.25rem;
}

.game-info .btn {
    margin-top: auto;
    padding: 0.5rem 1rem;
    font-size: 0.9em;
}

.section-promosi,
.section-kontak {
    background-color: var(--card-background);
    padding: 3rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    margin-top: 2rem;
}

.kotak-promo {
    background: linear-gradient(145deg, var(--primary-color), var(--secondary-color));
    color: var(--text-color);
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.kotak-promo h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.5em;
}

.div-kontaks {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.div-kontak {
    background-color: var(--primary-color);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    width: calc(33.33% - 2rem);
    min-width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: 0.3s;
}

.div-kontak:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.2);
}

.div-kontak img {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
}

.div-kontak h3 {
    margin: 0.5rem 0;
    color: var(--accent-color);
}

footer {
    text-align: center;
    font-size: 0.7rem;
    color: var(--text-color);
    padding: 2rem;
    background-color: var(--primary-color);
    border-radius: 15px;
    margin-top: 2rem;
}

.menu-toggle {
    display: none;
    background: var(--accent-color);
    border: none;
    color: var(--primary-color);
    font-size: 1.5rem;
    cursor: pointer;
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1001;
    padding: 0.5rem;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.tentang-kami {
    background-color: var(--card-background);
    padding: 3rem;
    border-radius: 15px;
    margin-top: 2rem;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.konten-about {
    max-width: 800px;
    margin: 0 auto;
}

.judul-about {
    color: var(--accent-color);
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: 1rem;
    text-align: center;
}

.deskripsi-about {
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.fitur-kotak-about {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.fitur {
    text-align: center;
    margin: 1rem;
    flex-basis: calc(33.333% - 2rem);
}

.fitur-icon {
    font-size: 2.5em;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.fitur-title {
    font-size: 1.2em;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.fitur-description {
    font-size: 0.9em;
}

.section-jepe {
    background: var(--card-background);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-around;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.komponen-jepe {
    text-align: center;
    flex: 1 1 250px;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.judul-konten-jp {
    font-size: 1rem;
    color: #ffd700;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.value-jepe {
    font-size: clamp(1rem, 4vw, 2.0rem);
    font-weight: bold;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    word-break: break-all;
}

.mata-uang {
    font-size: 0.5em;
    vertical-align: super;
    margin-right: 5px;
}

.ikon-online,
.ikon-status {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
    animation: pulse 2s infinite;
}

.ikon-online {
    background-color: #00ff00;
    box-shadow: 0 0 10px #00ff00;
}

.ikon-status {
    background-color: #00ff00;
    box-shadow: 0 0 10px #00ff00;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

#website-status {
    color: #ffffff;
}

@media (max-width: 1200px) {
    .value-jepe {
        font-size: clamp(1.2rem, 3vw, 2rem);
    }
}

@media (max-width: 1024px) {
    header {
        transform: translateX(-100%);
    }
    .main-content {
        margin-left: 0;
    }
    .menu-toggle {
        display: block;
    }
    header.active {
        transform: translateX(0);
    }
    .overlay.active {
        display: block;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 50vh;
    }
    .hero-content h1 {
        font-size: clamp(1.5rem, 5vw, 2.5rem);
    }
    .hero-content p {
        font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    }
    .game-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    .div-kontak {
        width: 100%;
    }
    .game-info h3 {
        font-size: 1em;
    }
    .progress-text {
        font-size: 0.75em;
    }
    .game-info .btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8em;
    }
    .tentang-kami,
    .section-promosi,
    .section-kontak {
        padding: 2rem;
    }
    .fitur {
        flex-basis: calc(50% - 2rem);
    }
    .section-jepe {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .section-jepe {
        flex-direction: column;
    }
    .komponen-jepe {
        width: 100%;
    }
    .value-jepe {
        font-size: clamp(1rem, 5vw, 1.8rem);
    }
    .section-title {
        font-size: clamp(1.3rem, 4vw, 1.8rem);
    }
    .kotak-promo h3 {
        font-size: 1.3em;
    }
    .div-kontak {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 40vh;
    }
    .hero-content h1 {
        font-size: clamp(1.2rem, 5vw, 2rem);
    }
    .hero-content p {
        font-size: clamp(0.8rem, 2.5vw, 1rem);
    }
    .btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    .fitur {
        flex-basis: 100%;
    }
    .value-jepe {
        font-size: clamp(0.9rem, 4vw, 1.5rem);
    }
    .game-grid {
        grid-template-columns: 1fr;
    }
    .section-promosi,
    .section-kontak,
    .tentang-kami {
        padding: 1.5rem;
    }
    .kotak-promo {
        padding: 1.5rem;
    }
    .kotak-promo h3 {
        font-size: 1.2em;
    }
    .div-kontak {
        padding: 1rem;
    }
    .div-kontak img {
        width: 50px;
        height: 50px;
    }
    .div-kontak h3 {
        font-size: 1em;
    }
}

@media (max-height: 600px) and (max-width: 1024px) {
    header {
        overflow-y: scroll;
        max-height: 100vh;
    }
    .logo img {
        max-height: 40px;
        width: auto;
    }
    nav ul li {
        margin-bottom: 0.5rem;
    }
    .button-utama {
        margin-top: 1rem;
    }
    .btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

@media (min-width: 1920px) {
    body,
    html {
        font-size: 18px;
    }
    .container {
        max-width: 1600px;
        margin: 0 auto;
    }
    .hero-content h1 {
        font-size: 3.5rem;
    }
    .hero-content p {
        font-size: 1.3rem;
    }
    .game-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

a {
    text-decoration: none;
    color: white;
}

a:hover {
    color: yellow;
}