:root {
    --primary: #d8ff3d;
    --active: #b2d134ff;
    --bg: #010101;
}

body,
input,
textarea,
select,
option,
button {
    font-family: 'Open Sans', Helvetica;
}

body {
    margin: 0;
    background-color: #0e0e0e;
    color: white;
}

html {
    scroll-behavior: smooth;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #121212;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 999;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: bold;
    font-size: 1.5rem;
}

.logo a {
    color: var(--primary);
}

.logo span {
    color: white;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: larger;
    font-weight: 500;
}

nav ul li .active {
    color: var(--primary);
}

nav ul li a:hover {
    color: var(--active)
}

nav ul li a::after {
    content: '';
    display: block;
    padding-bottom: .5rem;
    border-bottom: .1rem solid var(--primary);
    transform: scaleX(0);
    transition: .2s linear;
}

nav ul li a:hover::after {
    transform: scaleX(.5);
}

.wallet-button {
    background: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 10px;
    color: #111;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.icon-group {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.hero {
    text-align: center;
    padding: 80px 20px 40px;
    /* background-image: url('/img/grafika.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    mask-image: linear-gradient(rgba(0, 0, 0, 1) 85%, rgba(0, 0, 0, 0)); */
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 0.5em;
}

.hero p {
    font-size: 1.2rem;
    color: #aaa;
}

.hero-search {
    display: flex;
    justify-content: center;
    margin-top: 3.8rem;
}

.hero-search.game {
    margin-top: 0;
}

.search-form {
    display: flex;
    align-items: center;
    justify-content: space-between;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    padding: 0.75rem 1.5rem;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
}

.search-form:hover {
    box-shadow: 0 8px 40px rgba(255, 255, 255, 0.1);
}

.search-form input[type="text"] {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    width: 100%;
}

.search-icon {
    font-size: 1.2rem;
    margin-right: 1rem;
    color: var(--primary);
}

.reset-button {
    background: transparent;
    border: none;
    color: var(--primary);
    font-size: 1rem;
    cursor: pointer;
    margin-left: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
}

.buttons {
    margin-top: 2rem;
}

.buttons-pagination {
    margin-top: 2.5rem;
}

.buttons a,
.buttons-pagination a {
    padding: 0.75rem 1.5rem;
    margin: 0 0.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
}



.btn-yellow {
    background-color: var(--primary);
    color: #111;
}

.btn-yellow:hover {
    background-color: var(--active);
}

.btn-white {
    background-color: white;
    color: #000;
}

.btn-white:hover {
    background-color: #ddd;
}

.swiper {
    width: 90%;
    padding-top: 20px;
    padding-bottom: 50px;
}

.swiper-slide {
    background: #1a1a1a;
    border-radius: 15px;
    text-align: center;
    padding: 10px;
    color: white;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.swiper-slide:hover {
    transform: scale(1.05);
}

.swiper-slide a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.swiper-slide img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 10px;
    height: 300px;
    object-fit: cover;
}

.swiper-pagination {
    text-align: center;
    margin-top: 20px;
}

.swiper-pagination-bullet {
    background: #fff;
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    background: var(--primary);
    opacity: 1;
}

.swiper-button-prev,
.swiper-button-next {
    color: white;
}

.filter-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.filter-section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.filters,
.sort {
    display: inline-block;
    gap: 1rem;
    margin-bottom: 2rem;
}

.filters select,
.sort select {
    background: #1a1a1a;
    border: 1px solid #333;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
}

.item-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

/* Animasi fade-in untuk card cerpen */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.item-card {
    background: linear-gradient(145deg, #1a1a1a, #161616);
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    opacity: 0;
    /* Untuk fade-in */
    perspective: 800px;
    transform-style: preserve-3d;
    will-change: transform, box-shadow, background;
}


.item-card:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.item-card:hover img {
    transform: scale(1.1);
}

.item-card img {
    width: 100%;
    height: 180px;
    border-radius: 10px;
    margin-bottom: 0.5rem;
    transition: transform 0.3s ease-in-out;
}

.item-card p {
    margin: 0.25rem 0;
}

.item-card small {
    color: #ccc;
}

body {
    background-color: #0e0e0e;
    color: #fff;
    margin: 0;
    padding: 0;
}

header {
    background: #121212;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 999;
}

.logo {
    display: flex;
    align-items: center;
    color: var(--primary);
    font-weight: bold;
    font-size: 1.5rem;
}

.logo span {
    color: #fff;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
}

.wallet-button {
    background: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 10px;
    color: #111;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.icon-group {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.container {
    display: flex;
    flex-wrap: wrap;
}

.container,
.container-info {
    max-width: 1200px;
    margin: auto;
    padding: 2rem;
    gap: 2rem;
}

.container-info {
    background: #1a1a1a;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    margin-bottom: 3rem;
    margin-top: 3rem;
    max-width: 1300px;
}


.nft-image {
    flex: 1 1 45%;
}

.nft-image img {
    width: 100%;
    border-radius: 12px;
}

.nft-details {
    flex: 1 1 50%;
}

.nft-details h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.nft-meta {
    margin: 1rem 0;
    font-size: 0.95rem;
    color: #bbb;
}

.nft-description {
    margin-top: 1.5rem;
    line-height: 1.6;
    color: #ccc;
}

.nft-actions {
    margin-top: 2rem;
}

.nft-actions button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    background: var(--primary);
    color: #111;
    font-weight: bold;
    cursor: pointer;
    margin-right: 1rem;
}

.nft-actions .buy-btn {
    background: #fff;
    color: #111;
}

.nft-properties {
    margin-top: 2rem;
}

.nft-properties h2 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
}

.property-card {
    background: #1a1a1a;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

.property-card small {
    color: #999;
}

.related-section {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem 2rem;
}

.related-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.related-items {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.related-card {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 1rem;
    width: calc(33.333% - 1rem);
    box-sizing: border-box;
}

.related-card img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.related-card p {
    margin: 0.25rem 0;
}

.related-card small {
    color: #bbb;
}

.video-section {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem 2rem;
}

.video-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/**/
.cerpen-title {
    cursor: pointer;
    text-decoration: none;
    color: #fff;
}

.cerpen-title:hover {
    color: var(--primary);
}

.cerpen-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background-color: #1a1a1a;
    /* Warna dark agar selaras dengan tema */
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    line-height: 1.6;
    color: #ccc;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cerpen-container:hover {
    transform: translateY(-5px);
    color: #fff;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

.cerpen-container p {
    margin-bottom: 1rem;
}

.cerpen-container strong {
    color: var(--primary);
}


.cerpen-btn {
    display: inline-block;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    padding: 0.75rem 1.5rem;
    margin: 0 0.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
}

.cerpen-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Contact Section */
.contact-section {
    max-width: 1300px;
    margin: 2rem auto;
    padding: 1rem;
}

.contact-wrapper {
    display: flex;
    background: #1a1a1a;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.map-container {
    flex: 1 1 50%;
    min-height: 400px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}


.form-container {
    flex: 1 1 50%;
    padding: 2rem;
}

.form-container h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.form-container p {
    margin-bottom: 2rem;
    color: #ccc;
}

.contact-form .input-group {
    margin-bottom: 1.2rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem 0rem 0.8rem 1rem;
    border: none;
    border-radius: 8px;
    background: #111;
    color: #fff;
    font-size: 1rem;
}

.contact-form textarea {
    resize: none;
}

.btn-send {
    padding: 0.8rem 1.5rem;
    background: var(--primary);
    color: #111;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-send:hover {
    background: var(--active);
}

/* Tombol hamburger */
.hamburger {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    color: white;
}

.hamburger:hover {
    color: var(--primary);
}

/* Responsif untuk layar kecil */
@media (max-width: 768px) {
    .hero {
        padding: 50px 15px 30px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .buttons a {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
        margin: 0.25rem;
    }

    .swiper {
        width: 100%;
        padding-bottom: 40px;
    }

    .swiper-slide {
        padding: 8px;
    }

    .cerpen-container {
        color: #fff;
    }

    .contact-wrapper {
        flex-direction: column;
    }


    .map-container,
    .form-container {
        flex: 1 1 100%;
    }

    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        right: 0;
        background: #121212;
        width: 200px;
        padding: 1rem;
        border-radius: 8px;
    }

    nav ul li {
        text-align: center;
    }

    nav ul.show {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    .related-items {
        flex-direction: column;
    }

    .related-card {
        width: 100%;
    }
}





.main-footer {
    background-color: #0e0e0e;
    border-top: 1px solid #222;
    padding: 20px 40px;
    font-size: 14px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-left p {
    margin: 0;
    color: #ccc;
    font-family: monospace;
}

.footer-right a {
    color: #ccc;
    margin-left: 20px;
    text-decoration: none;
    font-family: monospace;
}

.footer-right a:hover {
    color: var(--primary);
}
