/* ========================================
   RESET & VARIABLES
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-bg-dark: #07080d;
    --color-bg-card: #111523;
    --color-primary: #ffc632;
    --color-primary-dark: #e6b200;
    --color-text: #ffffff;
    --color-text-secondary: rgba(255, 255, 255, 0.8);
    --color-gray: #727586;
    --font-primary: 'Fugaz One', display;
    --font-secondary: 'Montserrat', sans-serif;
    --header-height: 121px;
    --header-height-mobile: 74px;
}

/* FIX UKURAN GAMBAR 200x200 */
.game-image-small {
    width: 200px !important;
    height: 200px !important;
    margin: 0 auto !important;
    background: linear-gradient(135deg, #2d2b55, #1e1b4b);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 12px;
}

.game-image-small img {
    width: 200px !important;
    height: 200px !important;
    object-fit: cover !important;
    display: block;
}

.game-card {
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 15px;
    transition: all 0.3s;
}

.game-info-small {
    padding: 12px;
    text-align: center;
}

.game-title-small {
    font-size: 16px;
    margin-top: 10px;
}

.game-category-small {
    font-size: 12px;
    margin-top: 5px;
}

.games-grid-page {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 25px;
    justify-items: center;
}

body {
    font-family: var(--font-secondary);
    background: var(--color-bg-dark);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 400;
    line-height: 1;
    text-transform: uppercase;
}

h1 {
    font-size: 110px;
    letter-spacing: 0.05em;
}

h2 {
    font-size: 56px;
    margin-bottom: 2rem;
}

h6 {
    font-size: 24px;
    margin-bottom: 1rem;
}

.highlight {
    color: var(--color-primary);
}

p {
    font-size: 16px;
    color: var(--color-text-secondary);
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(7, 8, 13, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.header-scrolled {
    background: rgba(7, 8, 13, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.header-scrolled .navbar {
    padding: 10px 0;
}

.navbar {
    padding: 17px 0;
    transition: padding 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-primary);
    font-size: 24px;
    text-decoration: none;
    color: var(--color-text);
}

.logo span {
    font-size: 28px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 51px;
}

.nav-menu a {
    font-family: var(--font-secondary);
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--color-text);
    transition: color 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--color-primary);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--color-text);
    margin: 3px 0;
    transition: 0.3s;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-block;
    padding: 13px 40px;
    font-family: var(--font-secondary);
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-bg-dark);
}

.btn-primary:hover {
    background: #e6b200;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-primary);
}

.btn-secondary:hover {
    background: var(--color-primary);
    color: var(--color-bg-dark);
}

/* ========================================
   SEARCH CONTAINER
   ======================================== */
.search-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    max-width: 500px;
    margin: 0 auto 40px;
}

.search-container input {
    flex: 1;
    padding: 13px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 0;
    color: var(--color-text);
    font-size: 14px;
}

.search-container input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-container input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.2);
}

.search-container button {
    padding: 13px 30px;
}

/* ========================================
   FILTER BUTTONS
   ======================================== */
.filter-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    padding: 8px 24px;
    border-radius: 50px;
    color: var(--color-text);
    font-family: var(--font-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--color-primary);
    color: var(--color-bg-dark);
}

/* ========================================
   GAMES GRID
   ======================================== */
.games-grid-page {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.game-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(255, 198, 50, 0.2);
    background: rgba(255, 255, 255, 0.1);
}

.game-image-small {
    height: 180px;
    background: linear-gradient(135deg, #2d2b55, #1e1b4b);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.game-emoji {
    font-size: 64px;
    transition: transform 0.3s;
}

.game-card:hover .game-emoji {
    transform: scale(1.1);
}

.game-info-small {
    padding: 20px;
}

.game-title-small {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}

.game-category-small {
    font-size: 12px;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.game-meta-small {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 10px;
}

.game-meta-small span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ========================================
   GAME DETAIL PAGE
   ======================================== */
.game-detail-container {
    padding: 40px 0;
}

.game-wrapper {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 30px;
}

.game-iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 12px;
    border: none;
}

.game-meta {
    display: flex;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.badge {
    background: rgba(255, 198, 50, 0.2);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    color: #ffc632;
}

.game-description {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 25px;
    margin: 20px 0;
}

.game-description h2 {
    font-size: 28px;
    margin-bottom: 15px;
}

.game-description ul {
    margin-left: 20px;
    margin-top: 10px;
    color: var(--color-text-secondary);
}

.related-games {
    margin-top: 40px;
}

.related-games h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.breadcrumb {
    margin-bottom: 20px;
    font-size: 14px;
}

.breadcrumb a {
    color: #ffc632;
    text-decoration: none;
}

.back-button {
    display: inline-block;
    margin-bottom: 20px;
    color: #ffc632;
    text-decoration: none;
}

.back-button:hover {
    text-decoration: underline;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    min-height: 971px;
    padding: 80px 0;
    position: relative;
    background: linear-gradient(135deg, var(--color-bg-dark) 0%, #0a0e1a 100%);
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    margin-bottom: 30px;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
}

/* ========================================
   CATEGORIES
   ======================================== */
.categories {
    padding: 80px 0;
    background: var(--color-bg-card);
}

.categories h2 {
    text-align: center;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.category-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.category-card:hover {
    background: rgba(255, 198, 50, 0.1);
    transform: translateY(-5px);
}

.category-icon {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
}

.category-card h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.category-card p {
    font-size: 14px;
}

/* ========================================
   GAMES SECTION
   ======================================== */
.games {
    padding: 80px 0;
}

.games h2 {
    text-align: center;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

/* ========================================
   LIVESTREAM SECTION
   ======================================== */
.livestream {
    padding: 80px 0;
    background: var(--color-bg-dark);
}

.livestream .container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.livestream-content {
    flex: 1;
}

.livestream-content h2 {
    margin-bottom: 20px;
}

.livestream-content p {
    margin-bottom: 30px;
}

.livestream-image {
    flex: 1;
}

.livestream-image img {
    width: 100%;
    border-radius: 12px;
}

/* ========================================
   QUOTE SECTION
   ======================================== */
.quote {
    padding: 80px 0;
    background: linear-gradient(135deg, #111523, #07080d);
    text-align: center;
}

.quote h2 {
    font-size: 48px;
    max-width: 800px;
    margin: 0 auto;
}

/* ========================================
   NEWSLETTER
   ======================================== */
.newsletter {
    padding: 60px 0;
    background: var(--color-bg-card);
    text-align: center;
}

.newsletter h6 {
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
    justify-content: center;
    gap: 15px;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 13px 20px;
    background: rgba(245, 248, 251, 0.6);
    border: none;
    border-radius: 0;
    color: var(--color-text);
    font-size: 14px;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-form input:focus {
    outline: none;
    background: rgba(245, 248, 251, 0.8);
}

.newsletter-form button {
    padding: 13px 30px;
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about {
    padding: 80px 0;
    background: var(--color-bg-dark);
}

.about .container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-content {
    flex: 1;
}

.about-content p {
    margin-bottom: 20px;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 12px;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--color-primary);
    padding: 60px 0 30px;
    color: var(--color-bg-dark);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h6 {
    color: var(--color-bg-dark);
    margin-bottom: 15px;
}

.footer-col p {
    color: var(--color-bg-dark);
    opacity: 0.8;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    font-size: 20px;
    text-decoration: none;
    color: var(--color-bg-dark);
    transition: opacity 0.3s;
}

.social-links a:hover {
    opacity: 0.7;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-bottom p {
    color: var(--color-bg-dark);
    font-size: 12px;
}

/* ========================================
   SCROLL REVEAL
   ======================================== */
.reveal-side {
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform, opacity;
}

.reveal-side.reveal-from-left {
    transform: translateX(-80px);
}

.reveal-side.reveal-from-right {
    transform: translateX(80px);
}

.reveal-side.animate-in {
    opacity: 1;
    transform: translateX(0) translateY(0);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
    h1 { font-size: 70px; }
    h2 { font-size: 44px; }
    
    .hero .container,
    .livestream .container,
    .about .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content p {
        margin: 0 auto 30px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .games-grid-page {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    h1 { font-size: 48px; }
    h2 { font-size: 32px; }
    h6 { font-size: 20px; }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(7, 8, 13, 0.98);
        width: 100%;
        text-align: center;
        padding: 40px 0;
        gap: 25px;
        transition: 0.3s;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .games-grid-page {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .search-container {
        flex-direction: column;
    }
    
    .filter-container {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 6px 16px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .btn {
        padding: 10px 25px;
        font-size: 12px;
    }
    
    .game-image-small {
        height: 150px;
    }
    
    .game-emoji {
        font-size: 48px;
    }
}

html {
    scroll-behavior: smooth;
}