/* === VARIABLES & TYPOGRAPHY === */
:root {
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    --color-bg: #10141f;
    --color-surface: #1a2035;
    --color-primary: #ffffff;
    --color-accent: #3b82f6; 
    --color-accent-dark: #2563eb;
    --color-text: #a8b2d1;
    --color-heading-text: #e6f1ff;
    --border-radius: 12px;
    --transition-fast: all 0.25s ease-in-out;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    overflow-x: hidden;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); color: var(--color-heading-text); font-weight: 700; }
h1 { font-size: 4rem; font-weight: 800; line-height: 1.15; letter-spacing: -2px; }
h2 { font-size: 2.5rem; font-weight: 700; }
p { line-height: 1.7; }

/* === CSS PARALLAX & ANIMATED SHAPES === */
/* .parallax-container { height: 100vh; overflow-x: hidden; overflow-y: auto; perspective: 3px; } */
.content-wrapper { transform: translateZ(0); position: relative; z-index: 2; }
.shape { position: absolute; background: radial-gradient(circle, var(--color-accent) 0%, rgba(59,130,246,0) 70%); opacity: 0.1; will-change: transform; }
.shape-1 { width: 300px; height: 300px; top: 15vh; left: 5vw; transform: translateZ(-3px) scale(1.5); animation: float 12s ease-in-out infinite; }
.shape-2 { width: 400px; height: 400px; top: 120vh; right: 10vw; transform: translateZ(-5px) scale(2); animation: float 15s ease-in-out infinite reverse; }
.shape-3 { width: 250px; height: 250px; top: 200vh; left: 15vw; transform: translateZ(-4px) scale(1.8); animation: float 10s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-30px); } }

/* === ANNOUNCEMENT BAR & HEADER === */
.announcement-bar { background: linear-gradient(90deg, var(--color-accent), var(--color-accent-dark)); color: var(--color-primary); text-align: center; padding: 10px; font-size: 0.9rem; font-weight: 500; }
.main-header { position: sticky; top: 0; width: 100%; z-index: 1000; padding: 16px 0; background: rgba(16, 20, 31, 0.7); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255, 255, 255, 0.08); animation: fadeInDown 0.6s ease-out 0.2s both; }
.main-header nav { display: flex; justify-content: space-between; align-items: center; }
.logo { z-index: 101; }
.logo img { height: 48px; }
.nav-links { list-style: none; display: flex; gap: 32px; }
.nav-links a { color: var(--color-text); text-decoration: none; font-weight: 500; transition: var(--transition-fast); }
.nav-links a:hover { color: var(--color-primary); }

/* === HAMBURGER MENU === */
.hamburger-btn { display: none; flex-direction: column; justify-content: space-around; width: 30px; height: 24px; background: transparent; border: none; cursor: pointer; padding: 0; z-index: 101; }
.hamburger-btn span { width: 30px; height: 3px; background-color: var(--color-primary); border-radius: 10px; transition: all 0.3s linear; position: relative; transform-origin: 1px; }
.hamburger-btn.open span:nth-child(1) { transform: rotate(45deg); }
.hamburger-btn.open span:nth-child(2) { opacity: 0; transform: translateX(20px); }
.hamburger-btn.open span:nth-child(3) { transform: rotate(-45deg); }

/* === HERO SECTION & STEAM CANVAS === */
.hero-section { min-height: 90vh; display: flex; align-items: center; position: relative; padding: 80px 0; }
#steam-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.hero-container { display: grid; grid-template-columns: 45% 55%; align-items: center; gap: 60px; }
.hero-text h1 { background: linear-gradient(90deg, #fff, #c9d5e8); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-text p { font-size: 1.1rem; margin: 24px 0 40px; max-width: 480px; }
.hero-gif-wrapper { perspective: 2000px; }
.hero-gif-container { border-radius: var(--border-radius); transform-style: preserve-3d; transition: transform 0.1s linear; border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 40px 80px rgba(0,0,0,0.4); }
.hero-gif { display: block; width: 100%; border-radius: var(--border-radius); }

/* === BUTTONS === */
.btn { padding: 12px 24px; border-radius: 8px; text-decoration: none; font-weight: 600; transition: var(--transition-fast); border: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; position: relative; overflow: hidden; }
.btn-primary { background: linear-gradient(90deg, var(--color-accent), var(--color-accent-dark), var(--color-accent)); background-size: 200% auto; color: var(--color-primary); }
.btn-primary:hover { background-position: right center; transform: translateY(-3px); box-shadow: 0 10px 20px rgba(59, 130, 246, 0.2); }
.btn-secondary { background: rgba(255,255,255,0.05); color: var(--color-primary); border: 1px solid rgba(255,255,255,0.2); }
.btn-secondary:hover { background: rgba(255,255,255,0.1); transform: translateY(-3px); }
.btn-large { padding: 14px 28px; font-size: 1rem; }

/* === SECTION STYLING === */
.info-section, .feature-showcase-section, .pricing-section, .games-slider-section, .testimonial-section { padding: 120px 0; position: relative; }
.weakness-section, .testimonial-section { background-color: var(--color-surface); }
.section-title { margin-bottom: 60px; text-align: center; }
.section-label { display: block; color: var(--color-accent); font-family: var(--font-body); font-weight: 600; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 12px; }

/* === FEATURE SHOWCASE (ABOUT) === */
.showcase-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 60px; margin-top: 60px; }
.showcase-visual img { width: 100%; height: 100%; max-height: 500px; object-fit: cover; border-radius: var(--border-radius); }
.showcase-features { display: flex; flex-direction: column; gap: 30px; }
.feature-item { display: flex; align-items: flex-start; gap: 20px; background: rgba(255,255,255,0.03); padding: 20px; border-radius: var(--border-radius); border: 1px solid rgba(255,255,255,0.05); transition: var(--transition-fast); }
.feature-item:hover { transform: translateX(10px); background: rgba(255,255,255,0.07); }
.feature-icon { flex-shrink: 0; width: 50px; height: 50px; background: var(--color-surface); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: var(--color-accent); }
.feature-text h3 { font-size: 1.2rem; margin-bottom: 8px; }
.feature-text p { font-size: 1rem; line-height: 1.6; }

/* === PRICING SECTION (Lebih Lebar) === */
.pricing-card { max-width: 800px; margin: auto; background: var(--color-surface); border-radius: 20px; padding: 50px; text-align: center; border: 1px solid rgba(255,255,255,0.1); box-shadow: 0 20px 50px rgba(0,0,0,0.3); }
.pricing-header { margin-bottom: 24px; }
.pricing-header h2 { margin-top: 12px; font-size: 2rem; }
.price { font-size: 3.5rem; font-weight: 800; color: var(--color-primary); margin: 16px 0; }
.original-price { font-size: 1.5rem; text-decoration: line-through; color: var(--color-text); margin-right: 12px; }
.pricing-features { list-style: none; padding: 0; margin: 32px 0; display: flex; flex-direction: column; gap: 12px; text-align: left; max-width: 300px; margin-left: auto; margin-right: auto; }
.pricing-features li { display: flex; align-items: center; gap: 10px; }
.pricing-features .fa-check-circle { color: var(--color-accent); }
.promo-info { margin-top: 24px; font-size: 0.9rem; opacity: 0.7; }

/* === INFO GRID (Weakness) === */
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.info-card { background: linear-gradient(145deg, rgba(255,255,255,0.03), rgba(255,255,255,0)); padding: 32px; border-radius: var(--border-radius); border: 1px solid rgba(255,255,255,0.1); text-align: center; transition: var(--transition-fast); }
.info-card:hover { transform: translateY(-8px); background: rgba(255,255,255,0.05); border-color: var(--color-accent); }
.info-icon { font-size: 2.5rem; color: var(--color-accent); margin-bottom: 20px; }
.info-card h3 { font-size: 1.25rem; margin-bottom: 12px; }

/* === GAMES SLIDER (Infinite Loop) === */
/* .games-slider-section { overflow: hidden; }
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }
.games-slider { overflow: hidden; position: relative; width: 100%; margin-top: 60px; }
.games-slider::before, .games-slider::after { content: ''; position: absolute; top: 0; width: 200px; height: 100%; z-index: 2; pointer-events: none; }
.games-slider::before { left: 0; background: linear-gradient(to left, rgba(16, 20, 31, 0), var(--color-bg)); }
.games-slider::after { right: 0; background: linear-gradient(to right, rgba(16, 20, 31, 0), var(--color-bg)); }
.slide-track { display: flex; width: calc(300px * 6); animation: scroll 40s linear infinite; }
.slide-track:hover { animation-play-state: paused; }
.slide { width: 300px; padding: 0 12px; }
.slide img { width: 100%; border-radius: var(--border-radius); transition: var(--transition-fast); }
.slide:hover img { transform: scale(1.05); } */

/* === GAMES SLIDER (Infinite Loop with Swiper.js) === */
.games-slider-section { 
    overflow: hidden; 
}

.games-slider { 
    overflow: visible; /* Diubah ke visible agar shadow tidak terpotong */
    position: relative; 
    width: 100%; 
    margin-top: 60px; 
}

/* Gradient overlay untuk efek fade di tepi */
.games-slider::before, .games-slider::after { 
    content: ''; 
    position: absolute; 
    top: 0; 
    width: 200px; 
    height: 100%; 
    z-index: 2; 
    pointer-events: none; 
}
.games-slider::before { 
    left: 0; 
    background: linear-gradient(to left, rgba(16, 20, 31, 0), var(--color-bg)); 
}
.games-slider::after { 
    right: 0; 
    background: linear-gradient(to right, rgba(16, 20, 31, 0), var(--color-bg)); 
}

/* Styling untuk slide individu di dalam Swiper */
.games-slider .swiper-slide {
    width: 300px; /* Lebar setiap slide */
    box-sizing: border-box; /* Pastikan padding tidak menambah lebar */
}

.games-slider .swiper-slide img {
    width: 100%;
    border-radius: var(--border-radius);
    transition: var(--transition-fast);
    display: block; /* Mencegah spasi kosong di bawah gambar */
}

.games-slider .swiper-slide:hover img {
    transform: scale(1.05); /* Efek hover tetap dipertahankan */
}

/* Mengatur transisi Swiper menjadi linear seperti animasi CSS sebelumnya */
.games-slider .swiper-wrapper {
    transition-timing-function: linear !important;
}

/* === TESTIMONIAL SLIDER === */
.testimonial-section { overflow: hidden; }
.testimonial-slider { width: 100%; padding-top: 50px; padding-bottom: 50px; }
.testimonial-slider .swiper-slide { background-position: center; background-size: cover; width: 340px; transition: var(--transition); filter: blur(2px) opacity(0.5); transform: scale(0.9); }
.testimonial-slider .swiper-slide-active { filter: blur(0) opacity(1); transform: scale(1); }
.testimonial-card { background: linear-gradient(180deg, #1f2641, #151a2e); border-radius: var(--border-radius); padding: 40px; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; border: 1px solid rgba(255,255,255,0.1); box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
.testimonial-avatar { font-size: 3rem; width: 80px; height: 80px; border-radius: 50%; background-color: var(--color-bg); color: var(--color-accent); display: flex; align-items: center; justify-content: center; margin-bottom: 24px; border: 4px solid var(--color-surface); }
.quote { font-size: 1rem; font-style: italic; line-height: 1.7; }
.author-info { margin-top: 24px; }
.swiper-pagination-bullet { background: rgba(255, 255, 255, 0.5); }
.swiper-pagination-bullet-active { background: var(--color-accent); }

/* === FOOTER === */
.main-footer { padding: 100px 0 60px; margin-top: 100px; position: relative; border-top: 2px solid; border-image-source: linear-gradient(90deg, transparent, var(--color-accent), transparent); border-image-slice: 1; overflow: hidden; }
.footer-cta {
    background-color: var(--color-surface);
    border-radius: var(--border-radius);
    padding: 40px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    text-align: left;
    margin-bottom: 80px;
    position: relative;
}
.footer-cta-text h2 { margin: 0 0 8px; }
.footer-cta-text p { margin: 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 40px; text-align: center; }
.contact-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 30px; margin-top: 20px; }
.contact-link { color: var(--color-text); text-decoration: none; transition: var(--transition-fast); display: inline-flex; align-items: center; gap: 8px; }
.contact-link:hover { color: var(--color-accent); }
.copyright { margin-top: 40px; font-size: 0.9rem; }
.ornament-shape { position: absolute; z-index: 0; opacity: 0.1; }
.footer-shape-triangle { width: 0; height: 0; border-left: 40px solid transparent; border-right: 40px solid transparent; border-bottom: 70px solid var(--color-accent); bottom: 10%; right: 15%; animation: float 12s infinite ease-in-out reverse; }
.footer-shape-square { width: 50px; height: 50px; border: 4px solid var(--color-accent); bottom: 20%; left: 10%; animation: spin 20s infinite linear reverse; }
.footer-shape-circle { width: 80px; height: 80px; background: var(--color-accent); border-radius: 50%; top: -40px; left: 20%; animation: float 8s infinite ease-in-out; }
.footer-shape-x { width: 60px; height: 60px; top: 20%; right: 15%; animation: spin 15s infinite linear; }
.footer-shape-x::before, .footer-shape-x::after { content: ''; position: absolute; left: 50%; top: 0; width: 4px; height: 100%; background: var(--color-accent); }
.footer-shape-x::before { transform: translateX(-50%) rotate(45deg); }
.footer-shape-x::after { transform: translateX(-50%) rotate(-45deg); }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* === VIDEO MODAL === */
.modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); backdrop-filter: blur(8px); align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s ease; }
.modal.is-open { display: flex; opacity: 1; }
.modal-content { position: relative; width: 90vw; max-width: 1200px; height: auto; max-height: 90vh; transform: scale(0.9); transition: transform 0.3s ease; }
.modal.is-open .modal-content { transform: scale(1); }
.modal-content video { width: 100%; height: 100%; display: block; max-height: 90vh; border-radius: var(--border-radius);}
.close-button { position: absolute; top: -35px; right: -5px; color: #fff; font-size: 30px; cursor: pointer; }

/* === PAGE LOAD ANIMATION === */
body { animation: fadeIn 0.8s ease-out; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* === RESPONSIVE MEDIA QUERIES === */
@media (max-width: 992px) {
    h1 { font-size: 3.2rem; }
    .hero-container, .showcase-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-text p, .showcase-features { margin-left: auto; margin-right: auto; }
    .hero-buttons { justify-content: center; }
    .hero-gif-wrapper { margin-top: 60px; max-width: 500px; margin-left: auto; margin-right: auto; }
    .showcase-visual { margin-bottom: 40px; }
    .info-grid { grid-template-columns: 1fr; }
    .footer-cta { flex-direction: column; text-align: center; }
}
@media (min-width: 992px) { .buy-now-image { display: block; } }
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 100%;
        /* max-width: 320px; */
        background-color: var(--color-surface);
        padding-top: 100px;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        z-index: 100;
    }
    .nav-menu.is-open {
        transform: translateX(0);
    }
    .nav-links {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    .nav-links li {
        width: 100%;
        text-align: center;
    }
    .nav-links a {
        padding: 20px;
        display: block;
        width: 100%;
    }
    .hamburger-btn {
        display: flex;
    }
    .btn-download {
        display: none;
    }
    .contact-grid { grid-template-columns: 1fr; }
    .testimonial-slider .swiper-slide { width: 300px; }
}