/* --- 1. SETUP & FONTS --- */
@font-face {
    font-family: 'Source Sans 3';
    font-style: normal;
    font-weight: 700;
    src: url('../asset/static/SourceSans3-Bold.ttf') format('truetype');
}

@font-face {
    font-family: 'Source Sans 3';
    font-style: normal;
    font-weight: 400;
    src: url('../asset/static/SourceSans3-Regular.ttf') format('truetype');
}

:root {
    /* PALET WARNA */
    --p-pine: #22393c;   /* Pine Black */
    --p-fog: #46707e;    /* Fog Horizon */
    --p-mid: #6b8b81;    /* Muted Green */
    --p-moss: #afbb98;   /* Pale Moss */
    --p-clay: #cecdb9;   /* Morning Clay */
    
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.08); 
    --shadow-hover: 0 15px 50px rgba(0, 0, 0, 0.15);
    --transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* CUSTOM SCROLLBAR UTAMA */
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--p-pine); }
::-webkit-scrollbar-thumb { background: var(--p-mid); border-radius: 6px; border: 3px solid var(--p-pine); }
::-webkit-scrollbar-thumb:hover { background: var(--p-moss); }

body {
    font-family: 'Source Sans 3', sans-serif;
    overflow-x: hidden;
    color: var(--p-clay); 
    background: var(--p-pine); 
    line-height: 1.6;
}

h1, h2, h3, .logo { font-family: 'Playfair Display', serif; }

/* --- 2. NAVBAR & HAMBURGER MENU --- */
.navbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 5%; position: fixed; top: 0; width: 100%;
    background: rgba(206, 205, 185, 0.9); 
    backdrop-filter: blur(15px); z-index: 9999;
    border-bottom: 1px solid rgba(34, 57, 60, 0.1);
    box-shadow: 0 4px 30px rgba(0,0,0,0.05);
}

.logo { font-size: 22px; font-weight: 800; color: var(--p-pine); display: flex; align-items: center; letter-spacing: 1.5px; text-transform: uppercase; overflow: visible; }

.menu-toggle { display: none; flex-direction: column; cursor: pointer; gap: 6px; z-index: 10001; }
.menu-toggle .bar { width: 25px; height: 3px; background-color: var(--p-pine); transition: all 0.3s ease-in-out; border-radius: 5px; }

.nav-links { list-style: none; display: flex; gap: 35px; align-items: center; }
.nav-links a { 
    text-decoration: none; 
    color: var(--p-pine); 
    font-family: 'Playfair Display', serif; 
    font-size: 16px; font-weight: 700; letter-spacing: 1.5px; 
    text-transform: uppercase; transition: var(--transition); position: relative;
}
.nav-links a::after {
    content: ''; position: absolute; width: 0; height: 2px; bottom: -5px; left: 0;
    background-color: var(--p-fog); transition: width 0.3s ease;
}
.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { color: var(--p-fog); }

.dropdown { position: relative; cursor: pointer; padding-bottom: 20px; margin-bottom: -20px; }
.dropdown-content {
    position: absolute; top: 150%; left: 50%; transform: translateX(-50%); 
    background: var(--p-clay); backdrop-filter: blur(10px); 
    min-width: 150px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1); padding: 12px 0; z-index: 10000;
    opacity: 0; visibility: hidden; transition: var(--transition);
}
.dropdown-content a { color: var(--p-pine); padding: 10px 20px; display: block; font-family: 'Playfair Display', serif; font-size: 14px; font-weight: 700; text-align: center; transition: all 0.2s ease; }
.dropdown-content a:hover { color: var(--p-fog); transform: scale(1.08); background: transparent; }
.dropdown:hover .dropdown-content { opacity: 1; visibility: visible; top: 100%; }

/* --- 3. BACKGROUND SECTION (UMUM) --- */
.bg-yellow { background: var(--p-pine); color: var(--p-clay); }
.bg-green { background: var(--p-mid); color: var(--p-pine); }
.bg-red { background: var(--p-fog); color: var(--p-clay); }
.bg-saran { background: var(--p-moss); color: var(--p-pine); }

/* --- 4. LAYOUT SECTION (UMUM) --- */
section { width: 100%; min-height: auto; display: flex; justify-content: center; align-items: center; position: relative; padding: 110px 0; z-index: 1;}
.container-width { width: 90%; max-width: 1400px; margin: auto; }
.reveal { opacity: 0; transform: translateY(40px); transition: all 1s cubic-bezier(0.25, 1, 0.5, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }
.section-title { font-size: 48px; margin-bottom: 20px; letter-spacing: 1px; color: #fff; }

/* --- 5. GAME SECTION BACKGROUND PETA FIX --- */
div#games {
    position: relative;
    width: 100%;
    background-image: url('asset/board sisi depan (2).png');
    background-attachment: fixed;
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
    overflow: hidden;
}

div#games::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4); 
    z-index: 0;
}

div#games section {
    background: transparent !important;
}

.game-section-full { width: 100%; display: flex; align-items: center; gap: 60px; position: relative; z-index: 1;}
.game-section-full.mirror { flex-direction: row-reverse; }
.split-img-area { width: 45%; display: flex; justify-content: center; position: relative; }
.split-img-area img { width: 100%; object-fit: cover; border-radius: 16px; box-shadow: 0 20px 50px rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.1); transition: var(--transition); }
.split-img-area:hover img { transform: scale(1.02) translateY(-10px); }

/* CARD PUTIH TRANSPARAN HANYA DI DESKRIPSI GAME */
.split-text-area { 
    width: 55%; 
    padding: 35px; 
    background: rgba(255, 255, 255, 0.15); 
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-block;
    align-self: center;
}
.split-text-area p, .split-text-area h2.section-title { color: #fff !important; text-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.split-text-area p { font-size: 19px; line-height: 1.8; margin-bottom: 30px; opacity: 0.85; text-align: justify; }

/* --- 6. MERCHANDISE STYLE --- */
.merch-wrapper { display: flex; flex-wrap: wrap; justify-content: center; gap: 35px; margin-top: 40px; }
.merch-card { width: 300px; background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 20px; padding: 25px; transition: var(--transition); box-shadow: var(--shadow-soft); }
.merch-card:hover { transform: translateY(-12px); box-shadow: var(--shadow-hover); background: rgba(255, 255, 255, 0.15); border-color: rgba(255, 255, 255, 0.4); }
.merch-img-container { width: 100%; height: 250px; overflow: hidden; margin-bottom: 25px; background: transparent; display:flex; align-items:center; justify-content:center; }
.merch-img-container img { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 15px 15px rgba(0,0,0,0.25)); transition: var(--transition); }
.merch-card:hover .merch-img-container img { transform: scale(1.08); }
.merch-info { text-align: center; display: flex; flex-direction: column; align-items: center; }
.merch-name { font-size: 22px; color: #fff; margin-bottom: 10px; font-family: 'Playfair Display', serif; letter-spacing: 1px; }
.merch-price { font-family: 'Source Sans 3', sans-serif; font-weight: 800; font-size: 18px; color: #fff; margin-bottom: 20px; } 
.badge-stock { font-size: 11px; padding: 6px 14px; border-radius: 50px; background: rgba(255,255,255,0.8); color: var(--p-pine); font-weight: 800; margin-bottom: 15px; letter-spacing: 1px; }

/* --- 7. TENTANG CREATOR STYLE --- */
.bg-creator { background: var(--p-clay); color: var(--p-pine); }
.bg-creator p { font-family: 'Playfair Display', serif; font-size: 24px; font-style: italic; line-height: 2; color: var(--p-pine); position: relative; z-index: 2; }
.bg-creator .section-title { color: var(--p-pine); }
.bg-creator i { color: var(--p-pine); } 

/* --- 8. TESTIMONIAL PANEL (SCROLLING MASONRY) --- */
.bg-green#ulasan .section-title { color: var(--p-pine); }
.testimonial-scroll-container { max-height: 600px; overflow-y: auto; padding: 10px 15px; }
.testimonial-scroll-container::-webkit-scrollbar { width: 8px; }
.testimonial-scroll-container::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.1); border-radius: 10px; }
.testimonial-scroll-container::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.4); border-radius: 10px; }
.testimonial-scroll-container::-webkit-scrollbar-thumb:hover { background: var(--p-pine); }

.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; align-items: start; }
.simple-testimonial-card { background: rgba(255, 255, 255, 0.3); border: 1px solid rgba(255, 255, 255, 0.4); border-radius: 16px; padding: 25px; transition: var(--transition); box-shadow: var(--shadow-soft); display: flex; flex-direction: column; gap: 15px; text-align: left; }
.simple-testimonial-card:hover { background: rgba(255, 255, 255, 0.5); transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.t-header { display: flex; align-items: center; gap: 15px; border-bottom: 1px solid rgba(34, 57, 60, 0.15); padding-bottom: 15px; }
.t-avatar { width: 45px; height: 45px; min-width: 45px; background-color: var(--p-pine); color: var(--p-clay); font-family: 'Playfair Display', serif; font-size: 22px; display: flex; justify-content: center; align-items: center; border-radius: 50%; }
.t-author-info { flex-grow: 1; }
.t-author-info h4 { font-family: 'Source Sans 3', sans-serif; font-size: 16px; color: var(--p-pine); margin: 0 0 2px 0; text-transform: capitalize; font-weight: 800; }
.t-author-info span { font-size: 12px; color: var(--p-pine); opacity: 0.7; font-weight: 700; }
.t-text-simple { font-size: 15px; color: var(--p-pine); line-height: 1.6; font-style: italic; opacity: 0.9; margin: 0; }

/* --- 9. TOMBOL & FORM --- */
.btn-wa { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background-color: var(--p-moss); color: var(--p-pine) !important; padding: 15px 35px; border-radius: 50px; text-decoration: none; font-weight: 800; font-size: 14px; transition: var(--transition); border: none; letter-spacing: 1.5px; box-shadow: 0 8px 25px rgba(0,0,0,0.15); } 
.btn-wa:hover { background-color: var(--p-pine); color: var(--p-clay) !important; transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,0.3); }

.bg-saran .section-title { color: var(--p-pine); }
.form-saran-container { background: rgba(255, 255, 255, 0.25); backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, 0.5); border-radius: 24px; padding: 50px 40px; box-shadow: var(--shadow-soft); }
.form-input { width: 100%; padding: 18px 25px; background: rgba(255, 255, 255, 0.5); border: 2px solid rgba(255, 255, 255, 0.4); border-radius: 12px; color: var(--p-pine); font-size: 16px; margin-bottom: 20px; transition: var(--transition); box-shadow: inset 0 2px 5px rgba(0,0,0,0.02); }
.form-input::placeholder { color: var(--p-pine); opacity: 0.6; }
.form-input:focus { outline: none; border-color: var(--p-pine); background: #ffffff; box-shadow: 0 10px 25px rgba(0,0,0,0.05); transform: translateY(-2px); }

.btn-submit { background: var(--p-pine); color: var(--p-clay); border: none; padding: 20px; border-radius: 12px; font-size: 15px; font-weight: 800; cursor: pointer; width: 100%; transition: var(--transition); letter-spacing: 2px; box-shadow: 0 10px 25px rgba(0,0,0,0.15); }
.btn-submit:hover { background: var(--p-fog); color: #fff; transform: translateY(-4px); box-shadow: 0 15px 35px rgba(0,0,0,0.25); }

/* --- 10. FOOTER --- */
.footer { background: #1E2B25; color: var(--p-clay); padding: 40px; display: flex; justify-content: center; font-size: 13px; letter-spacing: 2px; font-weight: 700; opacity: 0.9;}

/* --- CAROUSEL SLIDER --- */
.carousel-section {
    background-image: linear-gradient(to right bottom, #46707e, #4a767f, #507b7f, #578080, #5f8580, #6b8c84, #779487, #839b8c, #95a796, #a8b4a0, #bbc0ac, #cecdb9);
    padding: 100px 0 30px 0; 
    min-height: auto; 
    display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden;
}

.carousel-header { text-align: center; margin-bottom: 15px; } 
.carousel-main-title { font-size: 46px; color: #fff; margin-bottom: 5px; letter-spacing: 1px; }
.carousel-container { width: 100%; max-width: 1600px; position: relative; display: flex; flex-direction: column; align-items: center; }
.carousel-track-wrapper { display: flex; align-items: center; justify-content: center; width: 100%; margin-bottom: 15px; position: relative; } 
.carousel-track { position: relative; height: 480px; display: flex; justify-content: center; align-items: center; width: 100%; } 
.carousel-slide {
    position: absolute; width: 650px; height: 400px; border-radius: 16px; overflow: hidden; 
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1); opacity: 0; z-index: 1;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2); cursor: pointer;
}
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; transition: filter 0.6s; }

.carousel-slide.active { transform: translateX(0) scale(1.1); z-index: 3; opacity: 1; box-shadow: 0 25px 60px rgba(0,0,0,0.4); pointer-events: none; }
.carousel-slide.prev { transform: translateX(-40%) scale(0.85); z-index: 2; opacity: 0.85; } 
.carousel-slide.next { transform: translateX(40%) scale(0.85); z-index: 2; opacity: 0.85; } 
.carousel-slide.prev-2 { transform: translateX(-80%) scale(0.65); z-index: 1; opacity: 0.4; } 
.carousel-slide.next-2 { transform: translateX(80%) scale(0.65); z-index: 1; opacity: 0.4; }
.carousel-slide:not(.active) img { filter: brightness(0.5); }
.carousel-slide:not(.active):hover img { filter: brightness(0.8); }

.carousel-btn {
    background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.3); backdrop-filter: blur(5px);
    color: #fff; width: 55px; height: 55px; border-radius: 50%; font-size: 24px; font-weight: bold; cursor: pointer;
    transition: var(--transition); display: flex; justify-content: center; align-items: center; z-index: 10; position: absolute;
}
.prev-btn { left: calc(50% - 480px); }
.next-btn { right: calc(50% - 480px); }
.carousel-btn:hover { background: var(--p-pine); border-color: var(--p-pine); transform: scale(1.1); box-shadow: 0 10px 25px rgba(0,0,0,0.3); }

/* CAROUSEL INFO KEMBALI JADI TEKS BIASA SAJA */
.carousel-info {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 10px; 
}
.carousel-bottom { display: flex; align-items: center; justify-content: center; width: 100%; margin-top: 10px; }
.carousel-info h2 { font-size: 34px; margin-bottom: 10px; color: var(--p-clay); letter-spacing: 2px; text-shadow: 0 2px 10px rgba(0,0,0,0.3); } 
.carousel-info p { font-size: 18px; opacity: 0.85; margin-bottom: 15px; line-height: 1.7; color: var(--p-clay); text-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.btn-link { font-size: 14px; font-weight: 800; text-decoration: none; transition: 0.3s; color: var(--p-clay); border-bottom: 2px solid var(--p-clay); padding-bottom: 4px; letter-spacing: 1px; text-shadow: 0 2px 10px rgba(0,0,0,0.3);}
.btn-link:hover { color: #fff; border-color: #fff; }


/* =========================================
   --- CTA SECTION (FULL WIDTH FIX) ---
========================================= */
section.cta-section { 
    background-color: #2F4858 !important; 
    background-image: none !important; 
    padding-top: 90px; 
    padding-bottom: 90px; 
    min-height: auto; 
    width: 100%;
    border: none;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.cta-container { 
    background: transparent !important; 
    text-align: center; 
    max-width: 800px; 
    margin: 0 auto; 
    padding: 0 20px;
}

.cta-title { 
    font-family: 'Playfair Display', serif; 
    font-size: 42px; 
    color: #ffffff; 
    margin-bottom: 15px; 
    letter-spacing: 1px; 
}

.cta-subtitle { 
    font-family: 'Source Sans 3', sans-serif; 
    font-size: 20px; 
    color: rgba(255, 255, 255, 0.8); 
    margin-bottom: 40px; 
    font-weight: 400; 
}

.cta-btn { 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    gap: 10px; 
    background-color: #80998D !important; 
    color: #ffffff !important; 
    padding: 16px 45px; 
    font-size: 15px; 
    letter-spacing: 2px; 
    border-radius: 50px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    border: none;
} 

.cta-btn:hover { 
    background-color: #A6B3A1 !important; 
    color: #2F4858 !important; 
    transform: translateY(-4px); 
    box-shadow: 0 15px 40px rgba(0,0,0,0.4); 
}

/* =========================================
   --- SCRIPT RESPONSIVE (MEDIA QUERIES) ---
========================================= */
@media (max-width: 1024px) {
    .prev-btn { left: 5%; }
    .next-btn { right: 5%; }
    .carousel-slide { width: 500px; height: 300px; }
    .carousel-track { height: 400px; }
    .game-section-full { gap: 30px; }
}

@media (max-width: 768px) {
    .navbar { padding: 15px 5%; }
    .logo { display: flex; align-items: center; gap: 0px; }
    
    .menu-toggle { display: flex; } 
    .menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.is-active .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
    
    .nav-links {
        position: fixed; top: 0; right: -100%; 
        width: 70%; height: 100vh;
        background-color: var(--p-clay); 
        flex-direction: column; justify-content: center; align-items: center;
        transition: 0.4s ease-in-out;
        box-shadow: -5px 0 20px rgba(0,0,0,0.2);
        z-index: 10000;
    }
    .nav-links.active { right: 0; } 
    
    .dropdown { margin-bottom: 0; padding-bottom: 0; display: flex; flex-direction: column; align-items: center;}
    .dropdown-content { position: static; transform: none; box-shadow: none; background: rgba(255,255,255,0.1); width: 100%; border: none; margin-top: 10px; display: none; }
    .dropdown:hover .dropdown-content { display: block; }
    
    .carousel-section { padding: 100px 0 20px 0; min-height: auto;}
    .carousel-main-title { font-size: 32px; }
    .carousel-slide { width: 300px; height: 180px; }
    .carousel-track { height: 250px; }
    .carousel-slide.prev { transform: translateX(-45%) scale(0.8); }
    .carousel-slide.next { transform: translateX(45%) scale(0.8); }
    
    .prev-btn { left: 2%; width: 40px; height: 40px; font-size: 18px;}
    .next-btn { right: 2%; width: 40px; height: 40px; font-size: 18px;}
    
    .game-section-full, .game-section-full.mirror { flex-direction: column; }
    .split-img-area, .split-text-area { width: 100%; padding: 10px; text-align: center; }
    .section-title { font-size: 34px; }
    .bg-creator p { font-size: 18px; }
    .cta-title { font-size: 32px; }
    .form-saran-container { padding: 30px 20px; }
    .testimonial-grid { grid-template-columns: 1fr; } 
    
    div#games {
        background-attachment: scroll;
    }
}