:root {
    --bg-dark: #0b0e14;
    --card-bg: #151b26;
    --accent-blue: #39b4ff;
    --accent-green: #00e676;
    --accent-red: #ff3b5c;
    --text-main: #f0f4f8;
    --text-muted: #8a99ad;
    --border-color: #232d3f;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-image: linear-gradient(rgba(11, 14, 20, 0.85), rgba(11, 14, 20, 0.95)), url('./Kantin Pixel/BG/Wall.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
}

/* HEADER & NAVBAR */
header {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    width: 92%;
    max-width: 1200px;
}

.navbar {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 12px 45px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.brand-icon {
    max-height: 40px;
    width: auto;
    object-fit: contain;
}

.brand-title-img {
    max-height: 40px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 20px;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent-blue);
}

.contact-btn {
    cursor: pointer;
}

/* CONTACT MODAL STYLES */
.contact-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.contact-modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 14, 20, 0.85);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.modal-close:hover {
    background: rgba(57, 180, 255, 0.1);
    color: var(--accent-blue);
}

.modal-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin-bottom: 10px;
}

.modal-subtitle {
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 30px;
    font-size: 0.95rem;
}

.contact-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(21, 27, 38, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    text-decoration: none;
    transition: 0.3s;
}

.contact-card:hover {
    border-color: var(--accent-blue);
    background: rgba(57, 180, 255, 0.05);
    transform: translateX(5px);
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.contact-card.whatsapp .contact-icon {
    background: rgba(37, 211, 102, 0.15);
    color: #25d366;
}

.contact-card.shopee .contact-icon {
    background: rgba(240, 82, 29, 0.15);
    color: #f0521d;
}

.contact-card.instagram .contact-icon {
    background: rgba(225, 48, 108, 0.15);
    color: #e1306c;
}

.contact-info {
    flex: 1;
}

.contact-info h3 {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.contact-info p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.contact-arrow {
    color: var(--text-muted);
    font-size: 1rem;
    transition: 0.3s;
}

.contact-card:hover .contact-arrow {
    color: var(--accent-blue);
    transform: translateX(5px);
}

/* HERO BANNER */
.hero {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.banner {
    background-image: linear-gradient(rgba(11, 14, 20, 0.75), rgba(11, 14, 20, 0.9)), url('./Kantin Pixel/BG/BG.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 0 0 55px 55px;
    padding: 100px 8% 110px 8%;
    min-height: 540px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.banner-content {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.banner-text {
    max-width: 62%;
}

.banner-text h1 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 3.4rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.12;
    text-transform: none;
}

.banner-text p {
    color: #cbd5e1;
    margin-top: 28px;
    font-size: 1rem;
    line-height: 1.6;
}

.banner-badge {
    background: var(--accent-red);
    color: #fff;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 15px;
}

/* MAIN CONTENT & GAME GRID */
.main-container {
    max-width: 1200px;
    margin: 120px auto 50px;
    padding: 0 20px;
}

.section-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.6rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-left: 4px solid var(--accent-blue);
    padding-left: 10px;
}

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

.game-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, border-color 0.3s;
    display: flex;
    flex-direction: column;
}

.game-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-blue);
    box-shadow: 0 5px 15px rgba(57, 180, 255, 0.2);
}

.poster-wrapper {
    position: relative;
    width: 100%;
    padding-top: 130%; /* Ratio 3:4 */
    overflow: hidden;
}

.poster-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tag-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(11, 14, 20, 0.85);
    border: 1px solid var(--accent-blue);
    color: var(--accent-blue);
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: bold;
    backdrop-filter: blur(4px);
}

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

.game-title {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.3;
}

.price-container {
    margin: 10px 0;
}

.old-price {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-right: 6px;
}

.new-price {
    color: var(--accent-green);
    font-size: 1.2rem;
    font-weight: 700;
}

.buy-btn {
    width: 100%;
    background: var(--accent-blue);
    color: #000;
    border: none;
    padding: 10px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    transition: 0.3s;
}

.buy-btn:hover {
    background: #28a0ed;
    box-shadow: 0 0 10px rgba(57, 180, 255, 0.5);
}

/* MINI PRODUCT GRID */
.mini-catalog-section {
    max-width: 1200px;
    margin: 50px auto 30px;
    padding: 0 20px;
}

.mini-catalog-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    font-family: 'Rajdhani', sans-serif;
}

.mini-game-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(6, 1fr);
}

.mini-card {
    background: #151b26;
    border: 1px solid #232d3f;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, border-color 0.3s;
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.mini-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-blue);
}

.mini-card-img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    display: block;
}

.mini-card-content {
    padding: 10px 12px;
}

/* CATEGORY GRID STYLES */
.category-section {
    max-width: 1200px;
    margin: 50px auto 30px;
    padding: 0 20px;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.category-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    margin: 0;
}

.category-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(6, 1fr);
}

.category-card {
    position: relative;
    cursor: pointer;
    display: block;
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.3s;
}

.category-card:hover {
    transform: translateY(-4px);
}

.category-card:hover {
    transform: translateY(-4px);
}

.category-card-img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 6px;
    display: block;
    transition: all 0.3s ease;
}

.category-card:hover .category-card-img {
    filter: brightness(0.4) blur(2px);
}

.category-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1;
    gap: 8px;
}

.category-card:hover .category-card-overlay {
    opacity: 1;
}

.category-card-title {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* PRODUCT MODAL STYLES */
.product-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.product-modal.active {
    display: flex;
}

.product-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.product-option-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(21, 27, 38, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    text-decoration: none;
    transition: 0.3s;
}

.product-option-btn:hover {
    transform: translateX(5px);
}

.product-option-btn.whatsapp-btn:hover {
    border-color: #25d366;
    background: rgba(37, 211, 102, 0.1);
}

.product-option-btn.steam-btn:hover {
    border-color: #1b2838;
    background: rgba(27, 40, 56, 0.3);
}

.product-option-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.product-option-btn.whatsapp-btn .product-option-icon {
    background: rgba(37, 211, 102, 0.15);
    color: #25d366;
}

.product-option-btn.steam-btn .product-option-icon {
    background: rgba(27, 40, 56, 0.3);
    color: #66c0f4;
}

.product-option-info {
    flex: 1;
}

.product-option-info h3 {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.product-option-info p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.product-option-arrow {
    color: var(--text-muted);
    font-size: 1rem;
    transition: 0.3s;
}

.product-option-btn:hover .product-option-arrow {
    color: var(--accent-blue);
}

/* STEAM-STYLE CATEGORY TABS */
.category-tabs {
    max-width: 1200px;
    margin: 20px auto 30px;
    padding: 0 20px;
    display: flex;
    gap: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 25px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category-tabs::-webkit-scrollbar {
    display: none;
}

.category-tab {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    padding: 6px 4px;
    transition: color 0.3s;
    white-space: nowrap;
}

.category-tab:hover {
    color: #ffffff;
}

.category-tab.active {
    color: #ffffff;
    border-bottom: 3px solid var(--accent-blue);
}

/* FAQ SECTION STYLES */
.faq-section {
    max-width: 1200px;
    margin: 50px auto 30px;
    padding: 0 20px;
}

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

.faq-title {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    margin: 0 0 10px 0;
}

.faq-subtitle {
    color: #8a99ad;
    font-size: 1rem;
    margin: 0;
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: rgba(21, 27, 38, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(57, 180, 255, 0.3);
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #f0f4f8;
    font-size: 1.05rem;
    font-family: 'Inter', sans-serif;
}

.faq-icon {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #39b4ff;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), padding 0.35s ease;
    padding: 0 20px;
}

.faq-item.active .faq-answer {
    padding: 0 20px 20px;
}

.faq-answer p {
    color: #cbd5e1;
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.faq-item.active .faq-answer p {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s;
}

@media (max-width: 768px) {
    .faq-title {
        font-size: 1.5rem;
    }
    .faq-question {
        padding: 15px;
        font-size: 0.95rem;
    }
}
footer {
    background: #080b10;
    border-top: 1px solid var(--border-color);
    padding: 30px 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.socials {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.socials a {
    color: var(--text-main);
    font-size: 1.2rem;
    transition: 0.3s;
}

.socials a:hover {
    color: var(--accent-blue);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--accent-blue);
    color: #000;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(57, 180, 255, 0.4);
    transition: all 0.3s ease;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #28a0ed;
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(57, 180, 255, 0.6);
}

.back-to-top i {
    font-size: 1.2rem;
}

@media (max-width: 1024px) {
    .banner-text h1 { font-size: 2.5rem; }
    .banner-text p { font-size: 0.95rem; }
    .category-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    header { width: 95%; }
    .navbar { padding: 10px 25px; flex-direction: column; gap: 10px; }
    .brand-icon { max-height: 32px; }
    .brand-title-img { max-height: 32px; }
    .nav-links { justify-content: center; gap: 15px; }
    .category-tabs { gap: 16px; font-size: 0.9rem; }
    .category-tab { font-size: 0.9rem; padding: 4px 2px; }
    .banner { flex-direction: column; text-align: center; gap: 20px; padding: 40px 20px; }
    .banner-text { max-width: 100%; }
    .banner-text h1 { font-size: 1.8rem; }
    .banner-text p { font-size: 0.9rem; }
    .game-grid { grid-template-columns: 1fr; gap: 20px; }
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .modal-content { padding: 30px; }
}

@media (max-width: 600px) {
    .category-grid { gap: 12px; }
}

@media (max-width: 480px) {
    header { top: 15px; width: 98%; }
    .navbar { padding: 8px 20px; }
    .brand-icon { max-height: 28px; }
    .brand-title-img { max-height: 28px; }
    .nav-links { gap: 12px; font-size: 0.85rem; }
    .category-tabs { gap: 12px; font-size: 0.85rem; }
    .category-tab { font-size: 0.85rem; padding: 3px 2px; }
    .banner { padding: 30px 15px; }
    .banner-text h1 { font-size: 1.4rem; }
    .banner-text p { font-size: 0.85rem; }
    .game-title { font-size: 0.9rem; }
    .buy-btn { padding: 8px; font-size: 0.9rem; }
    .mini-game-grid { gap: 10px; }
    .back-to-top { bottom: 20px; right: 20px; width: 45px; height: 45px; }
    .modal-content { padding: 25px; width: 95%; }
    .modal-title { font-size: 1.5rem; }
    .contact-card { padding: 15px; }
    .contact-icon { width: 45px; height: 45px; font-size: 1.3rem; }
}
