:root {
    --primary-color: #00f2ff;
    --secondary-color: #bc13fe;
    --bg-color: #0f0f12;
    --card-bg: rgba(255, 255, 255, 0.05);
    --text-color: #ffffff;
    --text-muted: #a0a0a0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Kanit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: url('../../images/bg-pattern.html');
    background-attachment: fixed;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-gradient {
    background: linear-gradient(to bottom, #fff700 0%, #ff8c00 50%, #ff4500 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    filter: drop-shadow(0 0 8px rgba(255, 69, 0, 0.6));
    font-weight: 800;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid transparent;
}

.btn-primary {
    background: #ff4500;
    color: #fff;
    box-shadow: 0 4px 15px #ff4500;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 2, 2, 0.4);
}

.btn-outline {
    border-color: #ff4500;
    color: #ff4500;
    background: transparent;
}

.btn-outline:hover {
    background: #ff4500;
    color: #ffffff;
}

/* Glitch Effect Text */
.glitch {
    position: relative;
    font-weight: 800;
}

/* Header / Nav */
header {
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(15, 15, 18, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: white;
    text-decoration: none;
    letter-spacing: 2px;
}

.hamburger {
    display: none;
}


/* Particles */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    pointer-events: none;
}

/* Animated Logo */
.header_logo {
    background: url('../../images/logo.png') no-repeat center center;
    background-size: contain;
    width: 700px;
    height: 420px;
    margin: 0 auto 30px;
    position: relative;
    z-index: 10;
    -webkit-animation: 8s heart infinite linear;
    -moz-animation: 8s heart infinite linear;
    animation: 8s heart infinite linear;
}

@keyframes heart {

    0%,
    100% {
        transform: scale(1) translate(0, 0) rotate(0deg);
    }

    25% {
        transform: scale(0.95) translate(0, 5px) rotate(-1deg);
    }

    50% {
        transform: scale(1) translate(0, 0) rotate(0deg);
    }

    75% {
        transform: scale(0.95) translate(0, -5px) rotate(1deg);
    }
}

/* Nav Links */
.nav-links {
    display: flex;
    gap: 20px;
    list-style: none;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
}

.nav-main {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.nav-sub {
    font-size: 10px;
    color: var(--primary-color);
    font-weight: 400;
}
.nav-links li a .nav-main {
    color: #ffffff !important;
    font-weight: 600;
}
.nav-links li a:hover .nav-main {
    color: #ff8c00;
    text-shadow: 0 0 10px rgba(255, 140, 0, 0.5);
    }

.nav-links li a:hover .nav-sub {
    color: #ffef00 !important; /* เปลี่ยนเป็นสีเหลืองส้มเมื่อ Hover */
    text-shadow: 0 0 10px rgba(255, 239, 0, 0.8);
}
.nav-links li a .nav-sub {
    color: #ff9d00 !important; /* สีส้มสว่าง */
    text-shadow: 0 0 5px rgba(255, 140, 0, 0.5); /* เพิ่มความเรืองแสง */
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: radial-gradient(circle at center, rgba(188, 19, 254, 0.1) 0%, rgba(15, 15, 18, 1) 70%);
    position: relative;
    padding-top: 80px;
}

/* Small Hero for Subpages */
.hero-small {
    min-height: 40vh;
    padding-top: 100px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../../images/Y2K-RAN_09.png') no-repeat center center;
    background-size: cover;
    opacity: 0.1;
    z-index: -1;
}

.hero-content h1 {
    font-size: 80px;
    line-height: 1;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero-small .hero-content h1 {
    font-size: 50px;
}

.hero-content p {
    font-size: 20px;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Server Status / Info Cards */
.server-stats {
    padding: 80px 0;
    position: relative;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.stat-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 242, 255, 0.1);
    border-color: var(--primary-color);
}

.stat-card i {
    font-size: 40px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.stat-card h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.stat-card p {
    color: var(--text-muted);
    font-size: 16px;
}

.stat-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--secondary-color);
}

/* Schedule Section */
.schedule {
    padding: 80px 0;
    background: rgba(255, 255, 255, 0.02);
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.schedule-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

@media(max-width: 768px) {
    .schedule-grid {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 40px;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        flex-direction: column;
        background: rgba(15, 15, 18, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.5);
        padding: 20px 0;
        gap: 10px;
        z-index: 999;
    }

    .nav-links.active {
        left: 0;
    }

    .hamburger {
        display: block;
        cursor: pointer;
    }

    .hamburger .bar {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px auto;
        transition: all 0.3s ease-in-out;
        background-color: var(--primary-color);
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

.schedule-box {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    border-left: 5px solid var(--secondary-color);
}

.schedule-box h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.schedule-list {
    list-style: none;
}

.schedule-list li {
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
}

.schedule-list li:last-child {
    border-bottom: none;
}

/* Video Section */
.video-section {
    padding: 80px 0;
    text-align: center;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Footer */
footer {
    background: #050507;
    padding: 50px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-social {
    margin-bottom: 30px;
}

.footer-social a {
    color: white;
    font-size: 24px;
    margin: 0 15px;
    transition: color 0.3s;
}

.footer-social a:hover {
    color: var(--secondary-color);
}

/* Subpage Content */
.content-section {
    padding: 60px 0;
}

.content-box {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid #ff4500;
    margin-bottom: 30px;
}

.content-box h2 {
    color: #ff4500;
    margin-bottom: 20px;
    border-bottom: 1px solid #ff4500 ;
    padding-bottom: 10px;
}

/* Tables in content */
.modern-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.modern-table th,
.modern-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.modern-table th {
    color: #ff4500;
    font-weight: 600;
}

.modern-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}
.hero-buttons {
    display: flex;
    gap: 28px;
    justify-content: center;
    margin-top: 35px;
}

/* ===== Fade in จากด้านบน ===== */
.fade-trigger {
    opacity: 0;
    transform: translateY(-40px);
    transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-trigger.show {
    opacity: 1;
    transform: translateY(0);
}

/* ===== ปุ่มรูป ===== */
.img-btn {
    display: inline-block;
    transition: all 0.35s ease;
    filter: drop-shadow(0 18px 40px rgba(0,0,0,0.9));
    position: relative;
}

/* ขนาดปุ่ม */
.img-btn img {
    height: 100px;
    width: auto;
    display: block;
}

/* ===== Hover เอฟเฟกต์เกม ===== */
.img-btn:hover {
    transform: translateY(-10px) scale(1.06);
    filter:
        drop-shadow(0 0 10px rgba(255,140,0,0.6))
        drop-shadow(0 10px 40px rgba(0,0,0,1));
}


<script>
document.addEventListener("DOMContentLoaded", () => {
    const observer = new IntersectionObserver(entries => {
        entries.forEach(entry => {
            if (entry.isIntersecting) {
                entry.target.classList.add("show");
                observer.unobserve(entry.target);
            }
        });
    }, {
        threshold: 0.3
    });

    document.querySelectorAll(".fade-trigger").forEach(el => {
        observer.observe(el);
    });
});
</script>
