/* ================= RESET ================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: radial-gradient(circle at 30% 40%, #252930 0%, #1a1d23 60%);
    color: #e0e0e0;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ================= HEADER ================= */

header {
    text-align: center;
    padding: 110px 20px 90px;
    background: linear-gradient(to bottom, #1C1F25 0%, #1A1D23 100%);
    transition: transform 0.5s ease-in-out;
    position: relative;
    z-index: 1;
}


header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

header p {
    font-size: 1.1rem;
    color: #BFBFBF;
}

/* ================= MAIN ================= */

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 70px 20px 100px;
    transition: transform 0.5s ease-in-out;
}

/* ================= SECTION TITLE ================= */

h2 {
    font-size: 2rem;
    margin-bottom: 50px;
    text-align: center;
    font-weight: 700;
}

/* ================= GRID ================= */

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

/* ================= CARD ================= */

.gear-card {
    background: #252930;
    border: 1px solid #333842;
    border-radius: 18px;
    padding: 35px;
    transition: 0.3s ease;
    text-align: center;
}

.gear-card:hover {
    border-color: #c9ff00;
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.gear-card img {
    width: 120px;
    height: 160px;
    object-fit: contain;
    margin-bottom: 25px;
}

.gear-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
}

.gear-card p {
    color: #b0b0b0;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* ================= BUTTON ================= */

.buy-btn {
    background: #c9ff00;
    color: #1a1d23;
    border: none;
    padding: 10px 25px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 700;
    transition: 0.2s ease;
}

.buy-btn:hover {
    background: #b3e600;
    transform: scale(1.05);
}

/* ================= MENU SYSTEM ================= */

body.menu-open {
    overflow: hidden;
}

/* geser halaman */
body.menu-open header,
body.menu-open main,
body.menu-open footer {
    transform: translateX(-300px);
}

header,
main,
footer {
    transition: transform 0.5s ease-in-out;
}

/* dim background */
#dim-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    visibility: hidden;
    transition: background 0.5s, visibility 0.5s;
    z-index: 14;
    pointer-events: none;
}

body.menu-open #dim-overlay {
    background: rgba(0, 0, 0, 0.4);
    visibility: visible;
    pointer-events: auto;
}

/* menu button */
.menu-toggle {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 20;
}

.openbtn {
    position: fixed;
    top: 0;
    right: 0;
    height: 2.5rem;
    min-width: 2.5rem;
    padding: 0 1rem;
    font-size: 1rem;
    font-weight: 600;
    background: #ffffff;
    color: #1a1d23;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s, opacity 0.3s ease;
}

.openbtn:hover {
    background: #f7f7f7;
}

.openbtn:active {
    background: #e8e8e8;
}

body.menu-open .openbtn {
    opacity: 0;
    pointer-events: none;
}

/* ================= OVERLAY ================= */

.overlay {
    height: 100%;
    width: 300px;
    position: fixed;
    z-index: 1000;
    top: 0;
    right: 0;
    background-color: rgba(26, 29, 35, 0.95);
    overflow-x: hidden;
    transition: transform 0.5s ease-in-out;
    transform: translateX(100%);
}

.overlay.open {
    transform: translateX(0);
}

.overlay-content {
    position: relative;
    top: 50px;
    width: 100%;
    padding: 0 40px;
    text-align: left; /* tambah ini */
}



.menu-title {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 25px;
    font-weight: 900;
    text-align: left; /* tambah ini */
}

.overlay a {
    padding: 10px 0;
    text-decoration: none;
    font-size: 1.5rem;
    color: #e0e0e0;
    display: block;
    transition: 0.3s;
    font-weight: 600;
}

.overlay a:hover {
    color: #c9ff00;
}

.closebtn {
    position: absolute;
    top: -15px;
    right: 5px;
    font-size: 40px;
    color: #ffffff;
    background: none;
    border: none;
    cursor: pointer;
}

.section-tagline {
    text-align: center;
    color: #b0b0b0;
    font-size: 1rem;
    margin-top: -35px;
    margin-bottom: 50px;
    font-style: italic;
}
/* ================= FOOTER ================= */

footer {
    background-color: #111;
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.9rem;
    color: #888;
    border-top: 1px solid #333842;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 1024px) {
    .gear-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .gear-grid {
        grid-template-columns: 1fr;
    }

    header h1 {
        font-size: 2.2rem;
    }
}

@media screen and (min-width: 48em) {
    .openbtn {
        top: 1rem;
        right: 1rem;
    }
}