/* Reset & Global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Kanit', sans-serif;
}

body {
    background-color: #121212;
    color: white;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Header / Nav */
header {
    position: relative;
    padding: 0 2rem;
}

.custom-navbar {
    width: 100%;
    height: 60px;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.custom-logo a {
    font-size: 1.5rem;
    font-weight: bold;
}

.custom-nav ul,
.custom-dropdown-menu ul {
    list-style: none;
    padding-left: 0;
}

.custom-nav ul {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin-left: auto;
}

.custom-nav ul li a,
.custom-dropdown-menu li a {
    transition: all 0.3s ease;
}

.custom-nav ul li a:hover,
.custom-nav ul li a:focus,
.custom-nav ul li a:active,
.custom-dropdown-menu li a:hover,
.custom-dropdown-menu li a:focus,
.custom-dropdown-menu li a:active {
    color: #00E6A1;
    transform: scale(1.1);
    outline: none;
}

.custom-menu {
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
}

.custom-highlight {
    background-color: #00E6A1;
    color: #fff;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s ease;
    text-align: center;
}

.custom-highlight:hover {
    transform: scale(1.05);
    color: #000;
}

.custom-highlight:active {
    transform: scale(0.95);
}

.custom-dropdown-menu {
    position: absolute;
    top: 60px;
    width: 100%;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border-radius: 10px;
    overflow: hidden;
    display: none;
}

.custom-dropdown-menu li {
    padding: 0.7rem;
    display: flex;
    justify-content: center;
}

.custom-dropdown-menu .custom-highlight {
    width: 80%;
    justify-content: center;
}

.custom-dropdown-menu.open {
    height: 325px;
    display: block;
}

/* Hero Section */
.hero {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin: 20px;
    padding: 60px 40px;
    background-color: #1b1b1b48;
    border-radius: 20px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    gap: 2rem;
}

.hero-text {
    max-width: 600px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.hero img {
    max-height: 400px;
    margin-right: 50px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

/* Platforms */
.platforms {
    text-align: center;
    border-radius: 12px;
    padding: 70px 20px;
    margin: 40px auto;
    background-color: #1b1b1b48;
    max-width: 100%;
}

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

.platforms-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    border-radius: 12px;
}

.platform {
    background-color: #1d1d1d;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 300px;
    text-align: center;
    transition: transform 0.3s ease;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.platform img {
    margin-bottom: 12px;
    border-radius: 12px;
}

.platform:hover {
    transform: scale(1.05);
}

.platform h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.platform p {
    font-size: 1rem;
    margin-bottom: 15px;
    color: #ccc;
}

.shop-button {
    padding: 10px 20px;
    background-color: #00E6A1;
    color: white;
    border-radius: 5px;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.shop-button:hover {
    background-color: #009F83;
}

/* Mini Platforms Section */
.mini-platforms {
    text-align: center;
    border-radius: 12px;
    padding: 10px;
    margin: 20px auto;
    background-color: #1b1b1b48;
    max-width: 500px;
}

.mini-platforms h2 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.mini-platforms-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

.mini-platform-link {
    text-decoration: none;
    color: inherit;
    display: inline-block;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mini-platform-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.mini-platform {
    background-color: #1d1d1d;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 10px;
    width: 160px;
    text-align: center;
    color: white;

    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 150px;
}

.mini-platform:hover {
    transform: scale(1.05);
}

.mini-platform img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 8px;
}

.mini-platform h3 {
    margin-bottom: 1px;
    font-size: 0.9rem;
    line-height: 1.2;
}

.mini-platform p {
    font-size: 0.75rem;
    color: #ccc;
    flex-grow: 1;
    line-height: 1.2;
}

.mini-shop-button {
    margin-top: 10px;
    padding: 6px 10px;
    font-size: 0.75rem;
    background-color: #00E6A1;
    color: white;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.mini-shop-button:hover {
    background-color: #009f83;
}

/* Listings */
.listing {
    background-color: #1d1d1d;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 100%;
    max-width: 320px;
    text-align: center;
    transition: transform 0.3s ease;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.listing img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 20px;
}

.listing:hover {
    transform: scale(1.05);
}

.listing p {
    font-size: 1rem;
    margin-bottom: 15px;
    color: #ccc;
}

.listing-item .description {
    font-size: 1rem;
    color: #ccc;
    line-height: 1.4;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Responsive: Tablet */
@media (max-width: 992px) {
    .custom-nav ul {
        display: none;
    }

    .custom-menu {
        display: block;
    }

    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        max-width: 100%;
    }

    .platforms-container {
        flex-direction: column;
        align-items: center;
    }

    .platform {
        width: 90%;
        max-width: 350px;
    }
}

/* Responsive: Mobile */
@media (max-width: 600px) {
    .platforms {
        padding: 40px 10px;
        margin: 20px 10px;
    }

    .listing {
        width: 100%;
        max-width: 100%;
        padding: 16px;
    }

    .listing img {
        height: 200px;
    }

    .custom-navbar {
        flex-direction: column;
        height: auto;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .custom-logo a {
        font-size: 1.2rem;
    }

    .custom-dropdown-menu.open {
        height: auto;
    }
}
