:root {
                --pink-gradient: linear-gradient(90deg, #ff85c0, #f759ab);
            --blue-gradient: linear-gradient(90deg, #70d6ff, #1890ff);
            --glass: rgba(255, 255, 255, 0.8);
        }

        body, html {
            margin: 0;
            padding: 0;
            width: 100%;
            height: 100%;
            font-family: 'Kanit', sans-serif;
            overflow: hidden; 
        }
                      /* 1. Background Layer - สำหรับสลับ 2 รูปภาพ */
        .bg-layer {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-size: cover;
            background-position: center center;
            background-repeat: no-repeat;
            z-index: -1;
            /* ใช้เวลา 26 วินาที เพื่อให้โชว์ภาพละประมาณ 10 วินาที + จังหวะ Fade ช้าๆ */
            animation: bgSlideshow2Images 26s infinite ease-in-out;
        }

        /* โค้ดควบคุมการสลับแบบ 2 รูปภาพ ไร้รอยต่อตอนวนลูป */
        @keyframes bgSlideshow2Images {
            /* ภาพที่ 1: แสดงค้างไว้เต็มร้อย (0% ถึง 42%) */
            0%, 42% {
                background-image: url('075722.webp');
                transform: scale(1);
                opacity: 1;
            }
            /* จังหวะค่อยๆ Fade จากภาพที่ 1 ไป ภาพที่ 2 (ใช้เวลา 8%) */
            50% {
                opacity: 0.1; /* จางลงจนเกือบมืดเพื่อเคลียร์ภาพแรก */
                transform: scale(1.01);
            }
            /* ภาพที่ 2: แสดงค้างไว้เต็มร้อย (58% ถึง 92%) */
            58%, 92% {
                background-image: url('32ec2416.webp');
                transform: scale(1.02);
                opacity: 1;
            }
            /* จังหวะค่อยๆ Fade จากภาพที่ 2 วนกลับไป ภาพที่ 1 (ใช้เวลา 8%) */
            100% {
                background-image: url('githubusercontent.com');
                transform: scale(1);
                opacity: 1;
            }
        }

        /* 2. Navbar สไตล์ใหม่ - ไล่เฉดสีพาสเทลโปร่งแสง ลบขอบตัดแข็ง */
        .navbar {
            position: absolute;
            top: 30px;
            left: 50%;
            transform: translateX(-50%);
            /* พื้นหลังไล่เฉดสีชมพูพาสเทลไปฟ้าพาสเทล แบบโปร่งแสงเนียนตากับกล่องตรงกลาง */
            background: linear-gradient(90deg, rgba(255, 182, 198, 0.9), rgba(179, 229, 252, 0.9));
            padding: 0 35px;
            height: 55px; /* กำหนดความสูงคงที่เพื่อให้ส่วนกลางยื่นเด่นเด่นชัด */
            border-radius: 50px;
            display: flex;
            align-items: center;
            gap: 25px;
            box-shadow: 0 8px 25px rgba(0,0,0,0.12);
            z-index: 100;
            backdrop-filter: blur(5px);
        }

        .nav-item { text-decoration: none; color: #444; font-weight: bold; font-size: 14px; transition: 0.3s; }
        .nav-item:hover { color: #f759ab; }
        .nav-home { background: var(--pink-gradient); color: white; padding: 5px 20px; border-radius: 20px; }

        /* 3. กล่องโลโก้ตรงกลาง - ปรับรูปทรงกระเปาะมนกลม ไร้รอยขอบตัดพาดผ่านด้านหลัง */
        .logo-center { 
    display: flex;
    flex-direction: column;
    align-items: center; 
    justify-content: center;
    position: relative;
    
    /* ถอด background, border-radius และ box-shadow เดิมออก */
    background: transparent; 
    box-shadow: none;
    
    /* ปรับระยะห่างและตำแหน่งให้บาลานซ์กับแถบเมนูซ้าย-ขวา */
    padding: 0 20px;
    margin-top: 0; 
    height: 55px; /* ปรับความสูงให้เท่ากับความสูงของแถบเมนู */
    min-width: 120px;
    z-index: 5; 

    /* เปิดช่องให้โลโก้เด้งขึ้นด้านบนได้อิสระ */
    overflow: visible; 
    perspective: 1000px; 
}
        .logo-center::before {
            content: '';
            position: absolute;
            top: 0; left: 0; right: 0; bottom: 0;
            z-index: -1;
            background: #fff;
            border-radius: 40px;
        }
        
        .logo-main { color: #f759ab; font-size: 20px; display: block; line-height: 1; margin-top: 2px; font-weight: bold; }
        .logo-sub { color: #1890ff; font-size: 10px; text-transform: uppercase; line-height: 1; margin-bottom: 2px; font-weight: bold; }

        /* 4. กล่องรูปภาพตัวละครตรงกลาง และแอนิเมชันเด้งดึ๋ง */
        .logo-animation-box {
            height: 99px; 
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 2px 0;
        }

        .nav-logo-char {
            height: 100%;
            width: auto;
            filter: drop-shadow(0 3px 6px rgba(0,0,0,0.15));
            transform-origin: bottom center;
            animation: logoBounce 3.5s infinite ease-in-out; 
        }

        @keyframes logoBounce {
            0%, 100% { transform: scale(1) translateY(0); }
            35% { transform: scale(1.06, 0.94) translateY(0); }
            55% { transform: scale(0.95, 1.05) translateY(-4px); }
            75% { transform: scale(1.02, 0.98) translateY(0); }
        }
.nav-logo-char1 {
            height: 100%;
            width: auto;
            filter: drop-shadow(0 3px 6px rgba(0,0,0,0.15));
            transform-origin: bottom center;
            animation: logoBounce1 3.5s infinite ease-in-out; 
        }

@keyframes logoBounce1 {
    0% { transform: scale(1) translateY(0) rotateY(0deg); }
    20% { transform: scale(1.12, 0.85) translateY(0) rotateY(0deg); }     /* ยุบตัวสะสมแรงบี้ๆ */
    45% { transform: scale(0.92, 1.08) translateY(-22px) rotateY(180deg); } /* พุ่งลอยขึ้นฟ้า + พลิกกระจกเงา */
    70% { transform: scale(1.06, 0.94) translateY(0) rotateY(360deg); }   /* ตกกระแทกพื้นกล่องขาว + พลิกกลับหน้าเดิม */
    85% { transform: scale(0.98, 1.02) translateY(-3px) rotateY(360deg); }  /* ดอนตัวขึ้นเล็กน้อยลดแรงกระแทก */
    100% { transform: scale(1) translateY(0) rotateY(360deg); }             /* นิ่งสนิทในท่าปกติ */
}



        /* Main Content Area */
        .container {
            position: relative;
            width: 100%;
            height: 100%;
            max-width: 1400px;
            margin: 0 auto;
            display: flex;
            align-items: center;
        }

.notice-window {
            position: absolute;
            left: 0; 
            top: 0; 
            width: 320px;   
            height: 350px;  
            background: #000000; 
            border: 2px solid #00d4ff; 
            box-shadow: 0 0 15px rgba(0, 212, 255, 0.4); 
            display: flex;
            flex-direction: column;
            box-sizing: border-box; 
            overflow: hidden;
        }
        .top-bar-glow {
            height: 3px;
            width: 100%;
            background: #00d4ff;
            flex-shrink: 0;
        }
        /* 5. Hero Section - แอนิเมชันสไลด์ขึ้นตอนเปิดหน้าเว็บ */
        .hero-section {
            padding-left: 80px;
            max-width: 600px;
            z-index: 10;
            margin-top: -150px; 
            animation: fadeInUp 1s ease-out forwards;
        }

        @keyframes fadeInUp {
            from { opacity: 0; transform: translateY(30px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .hero-section h1 {
            color: white;
            font-size: 45px;
            text-shadow: 3px 3px 10px rgba(0,0,0,0.5);
            margin-bottom: 10px;
            line-height: 1.2;
        }

        .hero-section p {
            color: white;
            font-size: 18px;
            text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
            margin-bottom: 30px;
        }

        /* 6. Character - แอนิเมชันตัวละครลอยขึ้นลงช้าๆ */
        .character-box {
            position: absolute;
            right: 50px;
            bottom: 0;
            height: 90%;
            z-index: 5;
            animation: floatAnim 4s infinite alternate ease-in-out;
        }

        @keyframes floatAnim {
            from { transform: translateY(0); }
            to { transform: translateY(-15px); }
        }

        .character-box img {
            height: 100%;
            filter: drop-shadow(0 0 30px rgba(255,255,255,0.3));
        }

        /* Buttons */
        .btn-container { display: flex; gap: 15px; }
        
        /* 7. ปุ่มกดหลัก - เพิ่มสปริงตอนเมาส์ชี้ และปุ่มดาวน์โหลดกะพริบเรียกร้องความสนใจ */
        .btn {
            padding: 12px 25px;
            border-radius: 12px;
            text-decoration: none;
            color: white;
            font-weight: bold;
            text-align: center;
            line-height: 1.2;
            transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s;
        }
        .btn:hover { 
            transform: scale(1.05); 
            box-shadow: 0 10px 25px rgba(247, 89, 171, 0.4); 
        }
        .btn small { display: block; font-size: 10px; font-weight: normal; }
        .btn-pink { background: var(--pink-gradient); }
        
        .btn-blue { 
            background: var(--blue-gradient); 
            animation: pulseGlow 2s infinite ease-in-out;
        }
        .btn-blue:hover {
            box-shadow: 0 10px 25px rgba(24, 144, 255, 0.5);
        }

        @keyframes pulseGlow {
            0% { transform: scale(1); }
            50% { transform: scale(1.02); box-shadow: 0 0 15px rgba(24, 144, 255, 0.3); }
            100% { transform: scale(1); }
        }

        /* Bottom Info Cards */
        .bottom-cards {
            position: absolute;
            bottom: 70px; 
            left: 80px;
            display: flex;
            gap: 20px;
            z-index: 20;
            animation: fadeInUp 1.2s ease-out forwards;
        }

        /* 8. กล่องสถานะ - ใส่เงามิติยกตัวขึ้นเมื่อเมาส์ชี้ */
        .card {
            background: var(--glass);
            backdrop-filter: blur(10px);
            padding: 20px;
            border-radius: 15px;
            min-width: 280px;
            box-shadow: 0 8px 32px rgba(0,0,0,0.1);
            transition: transform 0.3s, box-shadow 0.3s;
        }
        .card:hover {
            transform: translateY(-5px);
            box-shadow: 0 12px 40px rgba(255, 255, 255, 0.25);
            background: rgba(255, 255, 255, 0.9);
        }

        .card h3 { margin: 0 0 10px 0; font-size: 16px; color: #333; border-bottom: 1px solid rgba(0,0,0,0.1); padding-bottom: 5px; }
        .status-row { display: flex; justify-content: space-between; margin: 5px 0; font-size: 14px; }
        
        /* 9. อักษร ONLINE - แอนิเมชันไฟเขียวกะพริบเป็นจังหวะหายใจ */
        .online { 
            color: #52c41a; 
            font-weight: bold; 
            text-shadow: 0 0 5px rgba(82, 196, 26, 0.5);
            animation: breathGlow 1.5s infinite alternate ease-in-out;
        }

        @keyframes breathGlow {
            from { text-shadow: 0 0 2px rgba(82, 196, 26, 0.4); opacity: 0.8; }
            to { text-shadow: 0 0 10px rgba(82, 196, 26, 0.9); opacity: 1; }
        }

        .news-list { list-style: none; padding: 0; margin: 0; font-size: 13px; color: #555; }
        .news-list li { margin-bottom: 5px; }

        /* Copyright Footer */
        .footer {
            position: absolute;
            bottom: 10px;
            width: 100%;
            text-align: center;
            color: rgba(255, 255, 255, 0.7);
            font-size: 11px;
            text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
            z-index: 30;
            line-height: 1.4;
        }
        
        /* 10. Social ปุ่มติดต่อ - เพิ่มเงาลึกและการขยายขนาดยืดหยุ่น */
        .social-container {
            display: flex;            
            align-items: center;       
            gap: 30px;                
            margin-top: 25px;         
        }

        .social-btn {
            transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }

        .social-btn img {
            height: 50px;            
            width: auto;             
            display: block;
            filter: drop-shadow(0px 4px 6px rgba(0,0,0,0.3));
            transition: filter 0.2s;
        }

        .social-btn:hover {
            transform: scale(1.1) translateY(-2px);
        }
        .social-btn:hover img {
            filter: drop-shadow(0px 6px 12px rgba(0,0,0,0.45));
        }
