/*Theme*/
:root {
    --bg-dark: #0a0a0a;
    --text-light: #ffffff;
    --cyan: #00b4ff;
    --pink: #ff66cc;
    --card-bg: #141414;
    
    /* Font Families */
    --font-huge: 'Archivo Black', sans-serif;
    --font-text: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent !important; 
}

*:focus, *:active, *:hover {
    outline: none !important;
    box-shadow: none !important;
}

input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active {
    transition: background-color 5000s ease-in-out 0s;
    -webkit-text-fill-color: white !important;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: var(--font-text);
    overflow-x: hidden;
    width: 100%;
}

.text-pink { color: var(--pink); }
.text-cyan { color: var(--cyan); }

/* navbar header */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    position: absolute; 
    top: 0;
    width: 100%;
    z-index: 100;
}

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

/* logo size */
.logo img {
    height: 60px;
    width: auto;
    display: block;
    transition: height 0.3s ease;
}

.nav-btn {
    background-color: var(--text-light);
    color: var(--bg-dark);
    padding: 8px 18px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.8rem;
    text-transform: uppercase;
    border: none;
}

.nav-katalog-title {
    font-family: var(--font-huge);
    font-size: 1.2rem;
    color: var(--text-light);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* hero section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 20px;
}

/* main text */
.huge-text-bg {
    position: absolute;
    top: 38%; 
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
    font-family: var(--font-huge);
    font-size: 18vw; 
    line-height: 0.9;
    letter-spacing: -1px;
    z-index: 1;
    white-space: nowrap;
}

/* ps5 position */
.center-object-wrapper {
    position: absolute;
    top: 65%; 
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: 160px; 
    animation: float3D 5s ease-in-out infinite;
}

.center-3d-obj {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 30px 25px rgba(0, 180, 255, 0.4));
}

@keyframes float3D {
    0% { transform: translate(-50%, -50%) translateY(0px); }
    50% { transform: translate(-50%, -50%) translateY(-20px); }
    100% { transform: translate(-50%, -50%) translateY(0px); }
}

.float-text {
    position: absolute;
    font-family: var(--font-huge);
    font-size: 0.7rem;
    color: #888;
    z-index: 3;
    letter-spacing: 1px;
}

.top-left {
    top: 25%;
    left: 20px;
}

.bottom-right {
    top: 65%;
    right: 20px;
    text-align: right;
}

/* bottom text */
.hero-desc {
    position: absolute;
    bottom: 40px; 
    left: 20px;
    right: 20px;
    z-index: 10;
    text-align: center;
}

.hero-desc p {
    font-size: 0.85rem;
    color: #cccccc;
    line-height: 1.5;
    max-width: 400px;
    margin: 0 auto; 
}

/* catalog section */
.katalog-section {
    padding: 60px 20px 40px;
    background-color: #050505;
}

.section-header {
    text-align: center;
    margin-bottom: 30px;
}

.section-header h2 {
    font-family: var(--font-huge);
    font-size: 2.5rem;
    line-height: 1;
    margin-bottom: 5px;
}

.section-header p {
    color: #888;
    font-size: 0.85rem;
}

.modern-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 450px;
    margin: 0 auto;
}

.m-card {
    background-color: var(--card-bg);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid #222;
    position: relative;
    overflow: hidden;
}

.best-tier {
    border: 1px solid #222;
    background: linear-gradient(180deg, rgba(0,180,255,0.05) 0%, rgba(20,20,20,1) 100%);
}

.m-card-image img {
    height: 100px;
    object-fit: contain;
    margin-bottom: 15px;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.8));
}

.m-title {
    font-family: var(--font-huge);
    font-size: 1.5rem;
    color: white;
    margin-bottom: 2px;
}

.m-tier {
    font-size: 0.7rem;
    font-weight: 800;
    color: #666;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.m-price {
    font-family: var(--font-huge);
    font-size: 1.8rem;
    color: white;
    margin-bottom: 10px;
}

.best-tier .m-price {
    color: var(--cyan);
}

.m-price.text-pink {
    color: var(--pink);
}

.m-price span {
    font-family: var(--font-text);
    font-size: 0.8rem;
    color: #888;
    font-weight: normal;
}

.m-features {
    list-style: none;
    margin-bottom: 15px;
    width: 100%;
}

.m-features li {
    font-size: 0.8rem;
    color: #aaa;
    padding: 5px 0;
    border-bottom: 1px solid #222;
}

.m-btn {
    width: 100%;
    padding: 10px 15px;
    font-family: var(--font-huge);
    font-size: 0.85rem;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    text-transform: uppercase;
}

.btn-cyan { background-color: var(--cyan); color: black; }
.btn-pink { background-color: var(--pink); color: white; }
.btn-outline { background-color: transparent; border: 2px solid white; color: white; }

.badge-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--cyan);
    color: black;
    font-weight: 900;
    font-size: 0.6rem;
    padding: 4px 10px;
    border-radius: 5px;
}

/* footer */
footer {
    background-color: var(--bg-dark);
    padding: 50px 20px 30px;
    text-align: center;
    border-top: 1px solid #222;
}

.footer-logo {
    font-family: var(--font-huge);
    font-size: 2rem;
    margin-bottom: 20px;
}

.footer-info p {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 8px;
}

.copyright {
    margin-top: 30px;
    font-size: 0.75rem;
    color: #444;
}

/* syarat.html page */
.rules-content {
    padding: 40px 20px;
}

.rules-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 20px;
    border-left: 5px solid var(--pink);
    max-width: 600px;
    margin: 0 auto;
}

.rules-card h3 {
    font-family: var(--font-huge);
    font-size: 1.2rem;
    margin-top: 25px;
    margin-bottom: 10px;
}

.rules-card p {
    font-size: 0.9rem;
    color: #aaa;
    line-height: 1.6;
}

.contact-box-modern {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #333;
}

/* filter game */
.filter-section {
    padding: 20px 20px 30px;
    background-color: var(--bg-dark);
}

.filter-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap; 
    gap: 15px;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.filter-box, .search-box {
    display: flex;
    align-items: center;
    background: var(--card-bg);
    border: 2px solid #333;
    border-radius: 50px;
    padding: 10px 20px;
    gap: 10px;
    flex-grow: 1; 
}

.filter-box label {
    font-weight: 800;
    color: #888;
    font-size: 0.75rem;
    text-transform: uppercase;
    white-space: nowrap;
}

.filter-box select {
    background: transparent;
    border: none;
    color: white;
    font-family: var(--font-text);
    font-weight: bold;
    font-size: 0.9rem;
    outline: none;
    width: 100%;
    cursor: pointer;
}

.filter-box select option {
    background-color: var(--bg-dark);
    color: white;
}

.search-box {
    background: white; 
    border-color: white;
    min-width: 250px;
}

.search-box input {
    background: transparent;
    border: none;
    width: 100%;
    font-family: var(--font-text);
    font-weight: bold;
    color: black;
    font-size: 0.95rem;
    outline: none;
}

/* GRID game show 2 grid */
.game-katalog {
    padding: 0 20px 80px;
    background-color: var(--bg-dark);
    max-width: 1200px;
    margin: 0 auto;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 15px;
}

.g-item {
    background: #111;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #333;
    display: flex;
    flex-direction: column;
}

.g-item img {
    width: 100%;
    aspect-ratio: 3 / 4; 
    object-fit: cover;
}

.g-info {
    padding: 15px 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.g-info h4 {
    font-family: var(--font-huge);
    font-size: 0.85rem; 
    color: white;
    margin-bottom: 10px;
    line-height: 1.2;
}

.g-badge {
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
    display: inline-block;
}

.ps5 { background: white; color: black; }
.ps4 { background: var(--cyan); color: white; }

/* responsive mobile */
@media (max-width: 768px) {
    .logo img {
        height: 45px; 
    }

    .nav-katalog-title {
        font-size: 0.8rem;
    }
}

/* scaling for web */
@media (min-width: 769px) {
    .huge-text-bg {
        font-size: 9vw; 
        top: 32%; 
    }
    
    /* 3d object */
    .center-object-wrapper {
        width: 260px; 
        top: 66%; 
    }

    /* not blocking other */
    .katalog-section {
        position: relative; 
        z-index: 20; 
        background-color: var(--bg-dark); 
        border-top: 1px solid #111;
    }

    /* space between section price */
    .modern-cards {
        flex-direction: row;
        max-width: 1100px;
        justify-content: center;
        gap: 30px;
    }

    .m-card {
        width: 33%;
        min-width: 300px; 
        padding: 30px;
        border-radius: 20px;
    }

    .m-card-image img {
        height: 120px;
        margin-bottom: 20px;
    }

    .m-title {
        font-size: 1.8rem;
    }

    .m-price {
        font-size: 2.2rem;
        margin-bottom: 20px;
    }

    .m-features {
        margin-bottom: 25px;
    }

    .m-features li {
        font-size: 0.9rem;
        padding: 8px 0;
    }

    .m-btn {
        padding: 15px;
        font-size: 1rem;
    }
    
    .hero-desc {
        bottom: 50px;
    }

    .filter-section, .game-katalog {
        padding-left: 50px;
        padding-right: 50px;
    }
    
    .game-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 25px;
    }

    .g-info h4 {
        font-size: 1rem;
    }
}