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

/* ซ่อน scrollbar ทั้งหมดในทุก element */
* {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

*::-webkit-scrollbar {
    display: none; /* Chrome, Safari และ Opera */
}

html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    overflow-y: auto; /* ใช้ auto เพื่อให้ scrollbar ปรากฏเฉพาะเมื่อจำเป็น */
    scrollbar-width: none; /* Firefox - ซ่อน scrollbar */
    -ms-overflow-style: none; /* IE and Edge - ซ่อน scrollbar */
}

/* ซ่อน scrollbar ใน Chrome, Safari และ Opera */
html::-webkit-scrollbar {
    display: none;
}

body {
    font-family: 'Prompt', sans-serif;
    background-color: #000000;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: visible; /* ใช้ visible เพื่อให้ body ไม่มี scrollbar ของตัวเอง */
    width: 100%;
    max-width: 100%;
    position: relative;
    scrollbar-width: none; /* Firefox - ซ่อน scrollbar */
    -ms-overflow-style: none; /* IE and Edge - ซ่อน scrollbar */
}

/* ซ่อน scrollbar ใน Chrome, Safari และ Opera */
body::-webkit-scrollbar {
    display: none;
}

/* Section 1 with Background Image */
.section-1 {
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: url('../images/wallpaper.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    overflow-x: hidden;
    overflow-y: visible;
}

/* Dark overlay on section 1 */
.section-1::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1;
    pointer-events: none;
}

.section-1-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 20px;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 700;
    color: #ffd700;
    margin-bottom: 30px;
    line-height: 1.2;
    text-shadow: 2px 2px 12px rgba(0, 0, 0, 0.8);
    font-family: 'Prompt', sans-serif;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    color: #ffffff;
    margin-bottom: 50px;
    line-height: 1.6;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.7);
    font-family: 'Prompt', sans-serif;
}

.hero-button {
    display: inline-block;
    background: linear-gradient(135deg, #5AC8FA, #4AB5E0);
    color: white;
    text-decoration: none;
    padding: 18px 50px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.3rem;
    font-family: 'Prompt', sans-serif;
    position: relative;
    border: 3px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(90, 200, 250, 0.6);
}

/* Outer border (line only) */
.hero-button::before {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50px;
    pointer-events: none;
    z-index: -1;
}

/* Bounce animation */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.hero-button {
    animation: bounce 2s ease-in-out infinite;
}

.hero-button:hover {
    background: linear-gradient(135deg, #6BC4F5, #5AC8FA);
    box-shadow: 0 6px 25px rgba(90, 200, 250, 0.8);
    animation: bounce 0.6s ease-in-out infinite;
}

/* Social Icons */
.social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
}

.social-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.social-icon:hover {
    transform: translateY(-5px) scale(1.1);
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.social-icon svg {
    width: 24px;
    height: 24px;
}

.social-icon.discord:hover {
    background: rgba(88, 101, 242, 0.3);
    border-color: #5865F2;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.4);
}

.social-icon.facebook:hover {
    background: rgba(24, 119, 242, 0.3);
    border-color: #1877F2;
    box-shadow: 0 4px 15px rgba(24, 119, 242, 0.4);
}

.social-icon.email:hover {
    background: rgba(234, 67, 53, 0.3);
    border-color: #EA4335;
    box-shadow: 0 4px 15px rgba(234, 67, 53, 0.4);
}

/* Animation for text slide */
@keyframes slideInFromTop {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

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

.hero-title.animate-in {
    animation: slideInFromTop 0.6s ease-out forwards;
}

.hero-title.animate-out {
    animation: slideOutToBottom 0.6s ease-in forwards;
}

/* Section 2 - News Section */
.section-2 {
    width: 100%;
    max-width: 100%;
    padding: 50px 0;
    background-color: #000000;
    position: relative;
    overflow-x: hidden;
    overflow-y: visible;
}

.section-2-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    width: 100%;
    box-sizing: border-box;
}

.section-2-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-2-title {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
    font-family: 'Prompt', sans-serif;
}

.section-2-title .highlight {
    color: #ffd700;
}

.section-2-subtitle {
    font-size: 1rem;
    color: #ffffff;
    font-weight: 400;
    font-family: 'Prompt', sans-serif;
}

/* Featured News */
.featured-news {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 35px;
    border: 2px solid rgba(90, 200, 250, 0.5);
    box-shadow: 0 4px 20px rgba(90, 200, 250, 0.3);
}

.featured-news-image {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
}

.featured-news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
    filter: brightness(0.4);
}

.featured-news-image:hover img {
    filter: brightness(1);
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
    pointer-events: none;
}

.featured-news-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px;
    z-index: 2;
}

.featured-news-episode {
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-family: 'Prompt', sans-serif;
}

.featured-news-title {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
    font-family: 'Prompt', sans-serif;
}

.featured-news-footer {
    margin-top: 15px;
}

.featured-news-meta {
    font-size: 0.9rem;
    color: #ff9800;
    margin-bottom: 6px;
    font-weight: 500;
    font-family: 'Prompt', sans-serif;
}

.featured-news-desc {
    font-size: 0.85rem;
    color: #ffffff;
    font-family: 'Prompt', sans-serif;
}

/* News Slider */
.news-slider-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    padding: 0;
}

.slider-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(90, 200, 250, 0.3);
    border: 2px solid rgba(90, 200, 250, 0.5);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    z-index: 3;
}

.slider-btn:hover {
    background: rgba(90, 200, 250, 0.6);
    border-color: rgba(90, 200, 250, 0.8);
    transform: scale(1.1);
}

.slider-btn:active {
    transform: scale(0.95);
}

.slider-btn svg {
    stroke: white;
}

.news-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex: 1;
    min-width: 0;
    max-width: 100%;
    position: relative;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
}

.news-slider::-webkit-scrollbar {
    display: none;
}

.news-slide {
    width: 240px;
    min-width: 240px;
    max-width: 240px;
    border-radius: 10px;
    overflow: hidden;
    background: #1a1a1a;
    border: 2px solid rgba(90, 200, 250, 0.3);
    transition: all 0.3s ease;
    flex-shrink: 0;
    scroll-snap-align: start;
}

.news-slide:hover {
    border-color: rgba(90, 200, 250, 0.6);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(90, 200, 250, 0.4);
}

.news-card-image {
    position: relative;
    width: 100%;
    height: 160px;
    overflow: hidden;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
    filter: brightness(0.4);
}

.news-card-image:hover img {
    filter: brightness(1);
    transform: scale(1.1);
}

.news-card-content {
    padding: 12px;
}

.news-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
    font-family: 'Prompt', sans-serif;
}

.news-card-subtitle {
    font-size: 0.85rem;
    color: #ffffff;
    margin-bottom: 8px;
    font-weight: 400;
    font-family: 'Prompt', sans-serif;
}

.news-card-event {
    font-size: 0.75rem;
    color: #ff9800;
    margin-bottom: 5px;
    font-weight: 500;
    font-family: 'Prompt', sans-serif;
}

.news-card-description {
    font-size: 0.7rem;
    color: #cccccc;
    line-height: 1.4;
    font-family: 'Prompt', sans-serif;
}

/* Main Content */
.main-content {
    width: 100%;
    max-width: 100%;
    position: relative;
    background-color: #000000;
    overflow-x: hidden;
    overflow-y: visible;
}

/* Scroll Reveal Animations */
.scroll-reveal {
    opacity: 0;
    transition: all 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: opacity, transform;
}

.scroll-reveal.fade-up {
    transform: translateY(50px);
}

.scroll-reveal.fade-down {
    transform: translateY(-50px);
}

.scroll-reveal.fade-left {
    transform: translateX(-50px);
}

.scroll-reveal.fade-right {
    transform: translateX(50px);
}

.scroll-reveal.fade-scale {
    transform: scale(0.85);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

/* Stagger animation delay */
.scroll-reveal.delay-1 {
    transition-delay: 0.15s;
}

.scroll-reveal.delay-2 {
    transition-delay: 0.3s;
}

.scroll-reveal.delay-3 {
    transition-delay: 0.45s;
}

.scroll-reveal.delay-4 {
    transition-delay: 0.6s;
}

.scroll-reveal.delay-5 {
    transition-delay: 0.75s;
}

/* Optimize for mobile */
@media screen and (max-width: 768px) {
    .scroll-reveal.fade-up,
    .scroll-reveal.fade-down {
        transform: translateY(40px);
    }

    .scroll-reveal.fade-left,
    .scroll-reveal.fade-right {
        transform: translateX(40px);
    }

    .scroll-reveal {
        transition-duration: 0.7s;
    }
}

/* Responsive Design */
@media screen and (max-width: 968px) {
    .hero-title {
        font-size: 3.5rem;
        min-height: 100px;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
        margin-bottom: 40px;
    }
    
    .hero-button {
        padding: 15px 40px;
        font-size: 1.1rem;
    }
    
    .social-icons {
        gap: 15px;
        margin-top: 30px;
    }
    
    .social-icon {
        width: 45px;
        height: 45px;
    }
    
    .social-icon svg {
        width: 20px;
        height: 20px;
    }
}

@media screen and (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
        min-height: 80px;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }
    
    .hero-button {
        padding: 12px 35px;
        font-size: 1rem;
    }
    
    .section-1-content {
        padding: 15px;
    }
    
    .social-icons {
        gap: 12px;
        margin-top: 25px;
    }
    
    .social-icon {
        width: 40px;
        height: 40px;
    }
    
    .social-icon svg {
        width: 18px;
        height: 18px;
    }
}

/* Section 2 Responsive */
@media screen and (max-width: 968px) {
    .section-2 {
        padding: 40px 0;
    }

    .section-2-container {
        padding: 0 20px;
        box-sizing: border-box;
    }

    .section-2-title {
        font-size: 2rem;
    }

    .section-2-subtitle {
        font-size: 0.9rem;
    }

    .section-2-header {
        margin-bottom: 30px;
    }

    .featured-news-image {
        height: 280px;
    }

    .featured-news-title {
        font-size: 1.6rem;
    }

    .featured-news-content {
        padding: 20px;
    }

    .news-slider-container {
        gap: 10px;
        padding: 0;
    }

    .news-slider {
        gap: 10px !important;
        padding: 0;
    }

    .news-slide {
        width: calc(50% - 5px) !important;
        min-width: calc(50% - 5px) !important;
        max-width: calc(50% - 5px) !important;
    }

    .slider-btn {
        display: none; /* ซ่อนปุ่มลูกศรในมือถือ */
    }

    .slider-btn svg {
        width: 18px;
        height: 18px;
    }
}

@media screen and (max-width: 480px) {
    .section-2 {
        padding: 30px 0;
    }

    .section-2-container {
        padding: 0 15px;
        box-sizing: border-box;
    }

    .section-2-title {
        font-size: 1.8rem;
    }

    .section-2-subtitle {
        font-size: 0.85rem;
    }

    .featured-news-image {
        height: 220px;
    }

    .featured-news-title {
        font-size: 1.3rem;
    }

    .featured-news-content {
        padding: 15px;
    }

    .featured-news-episode {
        font-size: 0.75rem;
    }

    .news-slider-container {
        gap: 8px;
        padding: 0;
    }

    .news-slider {
        gap: 8px !important;
        padding: 0;
    }

    .news-slide {
        width: calc(50% - 4px) !important;
        min-width: calc(50% - 4px) !important;
        max-width: calc(50% - 4px) !important;
    }

    .news-card-image {
        height: 140px;
    }

    .news-card-title {
        font-size: 1rem;
    }

    .news-card-subtitle {
        font-size: 0.8rem;
    }

    .news-card-event {
        font-size: 0.7rem;
    }

    .news-card-description {
        font-size: 0.65rem;
    }
    
    .news-card-content {
        padding: 10px;
    }

    .slider-btn {
        display: none; /* ซ่อนปุ่มลูกศรในมือถือ */
    }

    .slider-btn svg {
        width: 16px;
        height: 16px;
    }
}

