@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@300;400;500;700&display=swap');

:root {
    --bg-dark: #060b14;
    --bg-card: #0f182b;
    --primary: #0071bc;
    --primary-dark: #004b80;
    --primary-light: #3a9dec;
    --gold: linear-gradient(171deg, #ffffb9, #feae0b 51.68%, #c37b00);
    --red-grad: linear-gradient(180deg, #0071bc 18%, #004b80 84%);
    --text-main: #ffffff;
    --text-muted: #c5c5c5;
    --red-text: #0071bc;
    --font-fam: 'Noto Sans Thai', sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-fam);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header */
.main-header {
    background-color: rgba(0, 0, 0, 0.8);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    position: relative;
    min-height: 75px;
}

.menu-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: var(--text-main);
    font-weight: 500;
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--primary);
    border-radius: 2px;
}

.logo {
    position: absolute;
    left: 50%;
    top: -35px;
    transform: translateX(-50%);
    z-index: 1050;
}

.logo img {
    min-width: 245px;
    width: 245px;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.4));
}

.logo:hover img {
    transform: scale(1.05);
}

.line-contact img {
    height: 45px;
    object-fit: contain;
}

/* Main Banner */
.hero-section {
    text-align: center;
    padding: 100px 20px 60px;
    background: url("./background-001.png");
    background-size: contain;
    background-position: top center;
    background-repeat: no-repeat;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-section h1 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 15px;
    margin-top: 200px;
}

.hero-section h1 span {
    color: #ffffff;
}

.subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.btn-register-banner img {
    max-width: 100%;
    width: 500px;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-register-banner:hover img {
    transform: translateY(-5px);
    /*box-shadow: 0 0 30px rgba(254, 174, 11, 0.6);*/
}

/* Features CTA */
.features-section {
    max-width: 1200px;
    margin: 20px auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 0 20px;
}

.feature-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.feature-card img {
    width: 100px;
    height: 100px;
    margin-bottom: 15px;
    border-radius: 50%;
    object-fit: cover;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #fff;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Services section */
.services-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
    text-align: center;
}

.services-section h2 {
    font-size: 2rem;
    margin-bottom: 40px;
    color: #ffffff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
}

.service-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
    background: #111;
}

.service-item:hover {
    transform: translateY(-10px);
}

.service-item img {
    width: 100%;
    object-fit: cover;
    display: block;
}

.service-item span {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 20px 10px 10px;
    font-weight: 500;
}

.service-item-v2 {
    position: relative;
    border: solid 2px #D2AA3D;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
    background: #111;
}


.service-item-v2:hover {
    transform: translateY(-10px);
}

.service-item-v2 img {
    width: 100%;
    object-fit: cover;
    display: block;
}

/* Action Buttons */
.actions-section {
    max-width: 600px;
    margin: 60px auto;
    display: flex;
    gap: 20px;
    padding: 0 20px;
    justify-content: center;
}

.btn-action {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
    transition: filter 0.3s ease, transform 0.2s ease;
}

.btn-action:hover {
    filter: brightness(1.2);
    transform: scale(1.02);
}

.btn-action.register {
    background: var(--gold);
    color: #000;
    box-shadow: 0 0 15px rgba(254, 174, 11, 0.4);
}

.btn-action.login {
    background: var(--red-grad);
    box-shadow: 0 0 15px rgba(0, 113, 188, 0.4);
    border: 1px solid var(--primary-light);
}

/* Hot Games */
.hot-games {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
    text-align: center;
}

.hot-games h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #fff;
}

.games-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 20px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) #222;
}

.games-carousel img {
    width: 140px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.games-carousel img:hover {
    transform: translateY(-5px);
}

/* Supported Banks */
.banks-section {
    max-width: 1000px;
    margin: 60px auto;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 0 20px;
    align-items: center;
}

.banks-section img {
    height: 60px;
    max-width: 100px;
    object-fit: contain;
    filter: grayscale(0.5);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.banks-section img:hover {
    filter: grayscale(0);
    transform: scale(1.1);
}

/* SEO Content */
.seo-content {
    max-width: 1200px;
    margin: 60px auto 100px;
    padding: 30px;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.seo-content h2,
.seo-content h3 {
    color: var(--primary);
    margin-bottom: 15px;
    margin-top: 25px;
}

.seo-content h2:first-child {
    margin-top: 0;
}

.seo-content p {
    color: var(--text-muted);
    margin-bottom: 15px;
}

/* Main Footer */
.site-footer {
    background-color: #060b14;
    border-top: 1px solid rgba(109, 51, 51, 0.1);
    padding-top: 50px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 40px;
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 40px;
}

.footer-logo {
    height: 50px;
    margin-bottom: 20px;
}

.footer-col h4 {
    color: var(--text-main);
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 3px;
    background-color: var(--primary);
    border-radius: 2px;
}

.about-col p {
    margin-bottom: 20px;
    line-height: 1.7;
}

.age-restriction {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 5px 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
}

.age-restriction span {
    font-weight: 700;
    color: #fff;
    background: var(--primary);
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.8rem;
}

.links-col ul {
    list-style: none;
}

.links-col ul li {
    margin-bottom: 12px;
}

.links-col ul li a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s, padding-left 0.3s;
    display: inline-block;
}

.links-col ul li a:hover {
    color: var(--primary-light);
    padding-left: 5px;
}

.support-col p {
    margin-bottom: 15px;
}

.footer-line-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #00B900;
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.2s, filter 0.2s;
}

.footer-line-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.footer-line-btn img {
    height: 24px;
}

.footer-bottom {
    background-color: #03080e;
    text-align: center;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
    margin: 0;
    font-size: 0.85rem;
}

/* Footer Action */
.bottom-action {
    text-align: center;
    padding: 40px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-news {
    display: inline-block;
    padding: 10px 30px;
    background: #333;
    color: #fff;
    text-decoration: none;
    border-radius: 999px;
    transition: background 0.3s ease;
}

.btn-news:hover {
    background: var(--primary);
}

/* Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: -100%;
    width: 300px;
    height: 100vh;
    background: rgba(6, 11, 20, 0.95);
    backdrop-filter: blur(15px);
    z-index: 2000;
    transition: left 0.4s cubic-bezier(0.77, 0.2, 0.05, 1.0);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    padding: 80px 30px;
    box-shadow: 20px 0 50px rgba(0, 0, 0, 0.5);
}

.menu-overlay.active {
    left: 0;
}

.menu-close {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 2.5rem;
    color: var(--primary);
    cursor: pointer;
    line-height: 1;
    transition: transform 0.3s;
}

.menu-close:hover {
    transform: rotate(90deg) scale(1.1);
}

.nav-links {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 500;
    transition: color 0.3s, transform 0.3s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 10px;
}

.nav-links a:hover {
    color: var(--primary-light);
    transform: translateX(10px);
}

/* Responsive */
@media (max-width: 992px) {
    .features-section {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-section h1 {
        margin-top: 140px;
    }
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: rgba(6, 11, 20, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    justify-content: space-around;
    align-items: center;
    padding: 0;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.5);
}

.mobile-bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.75rem;
    gap: 4px;
    transition: color 0.3s;
}

.mobile-bottom-nav .nav-item>svg {
    height: 24px;
    width: auto;
}

.mobile-bottom-nav .nav-item:hover,
.mobile-bottom-nav .nav-item.active {
    color: var(--primary-light);
}

.mobile-bottom-nav .main-action {
    position: relative;
    top: -21px;
}

.mobile-bottom-nav .main-action-inner {
    width: 60px;
    height: 60px;
    background: var(--red-grad);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
    box-shadow: 0 5px 15px rgba(0, 113, 188, 0.4);
    color: #fff;
    border: 3px solid var(--bg-dark);
}

.mobile-bottom-nav .main-action-inner svg {
    height: 28px;
    width: auto;
}

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

    .actions-section {
        flex-direction: column;
    }

    .hero-section h1 {
        font-size: 1.8rem;
    }

    .logo img {
        margin-top: 20px;
        min-width: 120px;
        width: 120px;
    }

    .logo {
        top: -35px;
    }

    .seo-content {
        margin: 60px 15px 30px;
        padding: 15px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .mobile-bottom-nav {
        display: flex;
    }

    body {
        padding-bottom: 70px;
    }
}

@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .feature-card img {
        width: 80px;
        height: 80px;
    }

    .hero-content {
        transform: scale(0.6);
        transform-origin: top center;
    }

    .hero-section {
        padding-bottom: 0px;
        max-height: 270px;
    }

    .hero-section h1 {
        margin-top: 10px;
    }
}