/* ==========================================
   GLOBAL STYLE & RESET
   ========================================== */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background-color: #0b0f19; /* สีน้ำเงินเข้มหม่น รองรับขอบภาพอย่างกลมกลืน */
    font-family: 'IBM Plex Sans Thai', sans-serif;
    overflow: hidden; /* ล็อกหน้าจอห้ามมี Scrollbar ทะลักลงไปด้านล่าง */
}

/* คุม Layout ทั้งหน้าให้อยู่ในกรอบสายตาหน้าจอเดียวพอดี */
.fullscreen-page-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100vh;
    height: 100svh; /* รองรับ Safari มือถือ */
    justify-content: space-between;
    position: relative;
    
    /* เอฟเฟกต์ตอนเริ่มโหลดหน้าเว็บ */
    opacity: 0;
    animation: pageFadeIn 1.5s cubic-bezier(0.215, 0.610, 0.355, 1) forwards;
}

@keyframes pageFadeIn {
    0% { opacity: 0; filter: blur(3px); }
    100% { opacity: 1; filter: blur(0); }
}

/* ==========================================
   MAIN HERO DISPLAY (จุดที่แก้ไขป้องกันข้อความเกินขอบ)
   ========================================== */
.hero_display_area {
    flex: 1;
    width: 100%;
    background-image: url("../images/12062026.jpg") !important;
    background-repeat: no-repeat;
    
    /* 💻 สำหรับหน้าจอ Desktop / Laptop: */
    /* เปลี่ยนจาก cover เป็นการล็อกสัดส่วนภาพให้แสดงผลครบถ้วน 100% ไม่หลุดขอบและไม่ล้นซ้ายขวา */
    background-size: 100%; 
    background-position: center center;
}

/* ==========================================
   MOBILE & TABLET RESPONSIVE (📱 ปรับแต่งเฉพาะหน้าจอเล็ก)
   ========================================== */
@media (max-width: 991px) {
    .hero_display_area {
        /* สลับมาใช้ contain บนมือถือและแท็บเล็ต เพื่อบีบให้เห็นข้อความและรูปภาพครบบนจอทรงตั้ง */
        background-size: contain;
        background-position: center center;
    }
}

/* ==========================================
   EFFECT LAYERS (ดาวระยิบระยับ + เมฆลอยเอื่อยๆ)
   ========================================== */
.stars-container {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    overflow: hidden; pointer-events: none; z-index: 2;
}
.star {
    position: absolute; background: white; border-radius: 50%;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8), 0 0 15px rgba(255, 255, 255, 0.4);
    opacity: 0; animation: blinkAndMove 8s infinite ease-in-out;
}
.star:nth-child(1) { top: 15%; left: 10%; width: 2.5px; height: 2.5px; animation-delay: 0s; }
.star:nth-child(2) { top: 25%; left: 25%; width: 3.5px; height: 3.5px; animation-delay: 1.5s; }
.star:nth-child(3) { top: 35%; left: 15%; width: 2px; height: 2px; animation-delay: 3s; }
.star:nth-child(4) { top: 10%; left: 45%; width: 4px; height: 4px; animation-delay: 0.5s; }
.star:nth-child(5) { top: 20%; left: 75%; width: 2.5px; height: 2.5px; animation-delay: 2s; }
.star:nth-child(6) { top: 40%; left: 85%; width: 4px; height: 4px; animation-delay: 4s; }
.star:nth-child(7) { top: 15%; left: 60%; width: 2px; height: 2px; animation-delay: 1s; }
.star:nth-child(8) { top: 30%; left: 35%; width: 3px; height: 3px; animation-delay: 2.5s; }

@keyframes blinkAndMove {
    0% { opacity: 0; transform: translateY(0) scale(0.8); }
    50% { opacity: 0.6; transform: translateY(-12px) scale(1.1); }
    100% { opacity: 0; transform: translateY(-25px) scale(0.8); }
}

.clouds-container {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    overflow: hidden; pointer-events: none; z-index: 3; opacity: 0.22;
    background: 
        radial-gradient(circle at 20% 85%, rgba(255, 255, 255, 0.3) 0%, transparent 45%),
        radial-gradient(circle at 80% 75%, rgba(255, 255, 255, 0.2) 0%, transparent 40%);
    animation: driftClouds 26s infinite linear;
}
@keyframes driftClouds {
    0% { background-position: 0px 0px, 0px 0px; }
    50% { background-position: 90px -5px, -60px 5px; }
    100% { background-position: 180px 0px, -120px 0px; }
}

/* ==========================================
   FOOTER SECTION (แถบล่างสุด)
   ========================================== */
.footer_section {
    background: linear-gradient(to right, #090c14, #121824);
    width: 100%;
    padding: 20px 15px; 
    text-align: center; 
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.05); 
    z-index: 10;
}
.footer_section p {
    color: #b0b5be; 
    margin: 0; 
    line-height: 1.5; 
    font-weight: 300; 
    letter-spacing: 1px; 
    font-size: 0.88rem;
}
.footer_section a {
    color: #f1ebd9; 
    display: block; 
    margin-bottom: 4px;
    font-weight: 700; 
    text-decoration: none;
    font-size: 0.95rem;
}
.footer_section a:hover {
    color: #ffffff;
    text-decoration: underline;
}