/* ================= RESET & BASE ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: #f3e6c9;
    color: #3b2a1a;
    line-height: 1.7;
    overflow-x: hidden;
}

/* ================= PRELOADER ================= */
#preloader {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: #3c2a14;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.6s ease;
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid #f5d28c;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ================= NAVBAR ================= */
.navbar {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    padding: 18px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(60, 40, 20, 0.85);
    backdrop-filter: blur(12px);
    z-index: 1000;
    transition: all 0.4s ease;
}

.navbar.scrolled {
    padding: 12px 5%;
    background: rgba(60, 40, 20, 0.95);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #f5d28c;
    font-weight: 700;
    font-size: 1.35rem;
}

.logo img {
    width: 48px;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: rotate(8deg) scale(1.05);
}

.menu {
    display: flex;
    gap: 28px;
    align-items: center;
}

.menu a {
    color: #f5d28c;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    position: relative;
    transition: color 0.3s;
}

.menu a.active {
    color: #fff;
}

.menu a::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: #f5d28c;
    transition: width 0.3s ease;
}

.menu a:hover::after,
.menu a.active::after {
    width: 100%;
}


/* ================= BUTTON ================= */
.btn-primary1 {
    background: linear-gradient(135deg, #c58b2b, #e2a33b);
    color: white;
    padding: 12px 26px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary1:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(197, 139, 43, 0.4);
}

.btn-primary1::before {
    content: "";
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.5), transparent);
    transition: 0.7s;
}

.btn-primary1:hover::before {
    left: 100%;
}

/* ================= HERO SECTION ================= */
.hero {
    position: relative;
    height: 100vh;
    min-height: 650px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: white;
}

/* Background Image Layer */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://i.pinimg.com/1200x/24/33/77/243377d4f4e5fc22c6fbe784f6e8d64d.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;   /* parallax effect */
    z-index: 1;
}

/* Dark Overlay agar teks tetap jelas */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.58);
    z-index: 2;
}

/* Hero Content */
.hero-overlay {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 820px;
    padding: 0 20px;
}

#typing-text {
    font-size: clamp(3rem, 8vw, 5.8rem);
    font-weight: 800;
    letter-spacing: 4px;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 0 5px 30px rgba(0, 0, 0, 0.8);
}

.hero-overlay p {
    font-size: 1.15rem;
    margin-bottom: 40px;
    opacity: 0.95;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

/* Button */
.hero-btn {
    margin-top: 10px;
}

/* Responsif untuk Mobile */
@media (max-width: 768px) {
    .hero {
        min-height: 580px;
    }
    
    .hero-background {
        background-attachment: scroll;   /* fixed bermasalah di HP */
    }
    
    .hero-overlay p {
        font-size: 1.05rem;
    }
}
/* ================= EXPLORE GAME ================= */
.explore-game {
    padding: 120px 5%;
    background: #fff8e6;
}

.explore-container {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.explore-text h2 {
    font-size: 3.2rem;
    margin-bottom: 24px;
    color: #3b2a1a;
}

.explore-image img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}

/* ================= ABOUT PERSON (Pembuat) ================= */
.about-person {
    background: #efe2c5;
    padding: 130px 5%;
}

.about-wrapper {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.25);
    transition: transform 0.5s ease;
}

.about-image img:hover {
    transform: scale(1.04);
}

.about-content h2 {
    font-size: 3.5rem;
    margin-bottom: 28px;
    color: #3b2a1a;
}

.about-content p {
    font-size: 1.05rem;
    color: #4b3a24;
    line-height: 1.9;
}

/* ================= SECTION TITLE ================= */
.section-title {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 70px;
    position: relative;
    color: #3b2a1a;
}

.section-title::after {
    content: "";
    display: block;
    width: 90px;
    height: 5px;
    background: linear-gradient(to right, #c58b2b, #e2a33b);
    margin: 20px auto 0;
    border-radius: 3px;
}

/* ================= NEWS SECTION ================= */
.news-section {
    padding: 130px 5%;
    background: #efe2c5;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.news-card {
    background: #fff8e6;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    transition: all 0.4s ease;
}

.news-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.2);
}

.news-image img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover img {
    transform: scale(1.08);
}

.news-content {
    padding: 28px;
}

.news-content h3 {
    font-size: 1.45rem;
    margin-bottom: 12px;
    line-height: 1.3;
    color: #3b2a1a;
}

.news-content p {
    font-size: 0.98rem;
    margin-bottom: 15px;
    color: #555;
}

.news-content small {
    color: #7a6a50;
    font-size: 0.9rem;
}

/* ================= MERCHANDISE SECTION ================= */
.merch-section {
    padding: 130px 5%;
    background: #fff8e6;
}

.merch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 35px;
    max-width: 1200px;
    margin: 0 auto;
}

.merch-card {
    background: white;
    padding: 24px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
    transition: all 0.4s ease;
}

.merch-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 65px rgba(197,139,43,0.25);
}

.merch-card img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 18px;
    transition: transform 0.5s ease;
}

.merch-card:hover img {
    transform: scale(1.07);
}

.merch-card h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: #3b2a1a;
}

.price {
    color: #c58b2b;
    font-weight: 700;
    font-size: 1.35rem;
    margin: 10px 0;
}

.stock {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 18px;
}

.buy-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 26px;
    background: linear-gradient(135deg, #25D366, #1ebe57);
    color: white;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.4s ease;
}

.buy-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.4);
}

/* ================= FOOTER ================= */
.footer {
    background: #3c2a14;
    color: white;
    padding: 80px 5% 30px;
    margin-top: 60px;
}

.footer-container {
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-left, .footer-center, .footer-right {
    flex: 1;
    min-width: 250px;
}

.footer-left img {
    width: 85px;
    margin-bottom: 15px;
}

.footer-left p {
    color: #ccc;
    font-size: 0.95rem;
}

.footer-center h3, .footer-right h3 {
    margin-bottom: 20px;
    color: #f5d28c;
}

.footer-center ul {
    list-style: none;
}

.footer-center ul li {
    margin-bottom: 10px;
}

.footer-center ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-center ul li a:hover {
    color: #f5d28c;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 50px;
    padding: 20px 0;
    font-size: 0.9rem;
    color: #aaa;
}

/* ================= BACK TO TOP ================= */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    background: #c58b2b;
    color: white;
    border: none;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(197,139,43,0.4);
    z-index: 999;
    transition: all 0.3s ease;
}

.back-to-top:hover {
    background: #e2a33b;
    transform: translateY(-5px);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 992px) {
    .about-wrapper,
    .explore-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 50px;
    }
    .about-image img {
        height: 420px;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 15px 5%;
    }
    .hero-overlay {
        padding: 0 5%;
    }
}

@media (max-width: 600px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
}

/* ================= AOS ANIMATION SUPPORT ================= */
[data-aos] {
    pointer-events: none;
}

[data-aos].aos-animate {
    pointer-events: auto;
}
/* ================= MOBILE MENU BUTTON ================= */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: #f5d28c;
    font-size: 1.8rem;
    cursor: pointer;
}

/* ================= RESPONSIVE NAVBAR ================= */
@media (max-width: 768px) {
    .menu {
        position: absolute;
        top: 70px;
        right: 5%;
        background: #3c2a14;
        flex-direction: column;
        width: 220px;
        padding: 20px;
        border-radius: 12px;
        display: none;
    }

    .menu.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }
}