*{
    box-sizing: border-box;   /* ⭐ กันล้นทั้งระบบ */
}


/* ความกว้าง scrollbar */
::-webkit-scrollbar {
    width: 5px;
}

/* พื้นหลังราง */
::-webkit-scrollbar-track {
    background: #020e26;
    border-radius: 5px;
}

/* ตัวเลื่อน */
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #0080ff, #0055ff);
    border-radius: 5px;
}

/* ตอน hover */
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #1e90ff, #003cff);
}


body{
    margin:0;
    position: relative; /* สำคัญเพื่อให้ z-index ของ pseudo-element ทำงาน */
    overflow-x: hidden; 
    font-family: "Noto Sans Thai", sans-serif;
    background-color: #020e26;
}

#background-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* ให้อยู่หลังสุด */
}

/* loader เต็มจอ */
#loader {
    font-size: 20px;
  position: fixed;
  inset: 0;
  background: #000;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* ซ่อนเว็บจริงก่อน */
#content {
  display: none;
}

/* ปุ่มเปิดเมนู */
.menu-btn{
    position: fixed;
    right: 15px;   /* ระยะห่างจากขอบ */
    top: 15px;
    z-index: 2001;
    background: #0080ff;
    color:#fff;
    border:none;
    padding:10px 20px;
    border-radius:8px;
    font-size:16px;
    cursor:pointer;
}

/* overlay */
.overlay{
    position: fixed;
    top:60px;
    left:0;
    width:100%;
    height: calc(100% - 60px);
    background: rgba(0,0,0,0.4);
    opacity:0;
    visibility:hidden;
    transition:0.5s;
    z-index:1500;   /* ต่ำกว่าเมนู */
}

.overlay.show{
    opacity:1;
    visibility:visible;
}

/*     เมนูด้านบน
       ssssssss
*/
.top-menu{
    color: #ffffff;
    position: fixed;
    top:-100%;
    left:0;
    width:100%;
    background: rgba(47, 47, 47, 0.2); /* สีดำโปร่งใส */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* รองรับ Safari / iOS */
    

    border-radius: 0 0 20px 20px;
    box-shadow:0 10px 30px rgba(0, 123, 255, 0.25);

    transition:0.5s ease-in-out;
    z-index:9999;   /* <<< สูงสุด */
    padding:20px;
}




/* เปิดเมนู */
.top-menu.open{
    top:0;
}


/* header เมนู */
.menu-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    font-size:20px;
    font-weight:bold;
}
.close-btn{
    position: absolute;
    flex-direction: row;
    height: 60px;
    width: 60px;
    top: 15px;
    right: 15px;     /* ระยะจากขอบขวา */
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    padding: 10px 20px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.4);
    box-shadow:0 5px 20px rgba(0, 0, 0, 0.3);
    transition: 0.3s;
    font-weight: bold;
}
.close-btn:hover{
    transition: 0.3s;
    transform: scale(1.2) rotate(90deg);
    color: #0251a1;
}


/* รายการเมนู */
.menu-list{
    
    margin-top:20px;
}

.menu-item{
    
    border-radius: 2px;
    transition: 0.3s;
    padding:15px;
    border-bottom:1px solid #eee;
    cursor:pointer;
    font-size:18px;
}

.menu-item:hover{
    
    transition: 0.5s;
    transform:scale(1.01);
    color: #000000;
    background:#ffffff;
    border-bottom:1px solid #0088ff;
}

/* Desktop */
.menu-item{
    display: block;
}

/* Mobile */



.menu-item-nonhid{
    display: block;
    color: #ffffff;
    border-radius: 2px;
    transition: 0.3s;
    padding:15px;
    cursor:pointer;
    font-size:18px;
    transition: 0.5s;
}

@media (max-width: 900px){
    .menu-item-nonhid{
        display: none;
    }
}

.menu-item-nonhid:hover{
    
    background: rgba(255, 255, 255, 0.174);
    box-shadow:0 5px 20px rgba(0, 0, 0, 0.3);
    transition: 0.5s;
    transform:scale(1.2);
    color: #ffffff;
    /* background:#ffffff; */
    border-bottom:4px solid #006aff;
}


/* responsive */
@media(max-width:600px){
    .top-menu{
        height:100%;
        border-radius: 0;
        overflow-y: auto; /* ทำให้เลื่อนได้ถ้าเมนูยาว */
    }
}


/* ===== HEADER BAR ===== */
.header{
    position: fixed;
    top:0;
    left:0;
    width:100%;
    height:70px;

    background: rgba(76, 76, 76, 0.2); /* สีดำโปร่งใส */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* รองรับ Safari / iOS */
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:12px;
    padding:0 20px;
    box-shadow:0 2px 10px rgba(0,0,0,0.08);
    z-index:3000;
    animation: slid_down 1s ease-in-out;
}

@keyframes slid_down {
    0% {
        transform:translateY(-100px);
    }
    100% {
        transform:translateY(0px);
    }
    
}

.portfolio{
    left: 20px;
    position: fixed;
    font-size:25px;
    font-weight:bold;
    color: #0080ff;
    text-decoration: none;
    line-height: 25px;
}

.portfolio_doc{
    font-size:15px;
    font-weight:bold;
    color: #929292;
}

/* ปุ่ม icon */
.icon-btn{
    height:50px;
    width: 50px;
    padding: 10px;
    border-radius:30px;
    border:none;
    background:rgba(0,0,0,0.2);
    color: #ffffff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:20px;
    cursor:pointer;
    transition:0.2s;
    font-weight:bold;
    box-shadow:0 2px 10px rgba(0,0,0,0.3);
}

.icon-btn:hover{
    transform:scale(1.1);
}

/* ปุ่มเมนูหลัก (ตัวเดิม) */
.menu-main-btn{
    background:#0080ff;
    color:#fff;
}

.menu-main-btn:hover{
    box-shadow:0 2px 10px rgba(0, 85, 255, 0.631);
}


/* Toggle Container */
.theme-toggle{
    width:80px;
    height:45px;
    background:#011124;
    border-radius:30px;
    box-shadow:0 5px 15px rgba(0,0,0,0.2);
    position: relative;
    cursor:pointer;
    transition:0.3s;
    display:flex;
    align-items:center;
    padding:5px;
}

/* Circle */
.toggle-circle{
    width:35px;
    height:35px;
    background:#1e90ff;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    position:absolute;
    left:5px;
    transition:0.35s cubic-bezier(.4,1.3,.6,1);
}

/* Icons */
.icon{
    position:absolute;
    font-size:18px;
    transition:0.3s;
}







.interview{
    height: 100vh;
    width: 100%;

    /* พื้นหลังหลัก */
    background:
        linear-gradient(
            to bottom,
            #041536 50%,
            #000000 100%
        );

    position: relative;
    overflow: hidden;
    border-bottom:2px solid #202142;

    /* ตัวแปรตำแหน่งแสง */
    --x: 50%;
    --y: 50%;
}

.interview::before{
    content:"";
    position:absolute;
    inset:0;
    background:
        radial-gradient(
            circle at var(--x) var(--y),
            rgba(0, 120, 255, 0.45),
            transparent 50%
        );
    filter: blur(30px);
    pointer-events:none;
}



.interview_background::before{
    content:"";
    position:absolute;
    inset:0;

    background-image: url("./img/back1001.png");
    background-repeat: repeat;
    background-size: 100%;

    opacity: 0.06;
    filter: blur(2px);
    pointer-events:none;
    z-index:0;
    animation: beur_in 1.5s ease-in-out;

    /* ทำให้ขอบจาง */
    -webkit-mask-image: radial-gradient(
        ellipse at center,
        rgba(0,0,0,1) 0%,
        rgba(0,0,0,0) 100%
    );
    mask-image: radial-gradient(
        ellipse at center,
        rgba(0,0,0,1) 0%,
        rgba(0,0,0,0) 100%
    );
    animation: blink 4s ease-in-out infinite;
}
 

@keyframes beur_in {
    0% {
        opacity: 0%;
        filter: blur(30px);
    }
    100% {
        opacity: 100%;
        filter: blur(2px);
    }
    
}


.img_my_interview{
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);

    height: 90%;
    z-index: 10;
    pointer-events: none;
    animation: beur_in 0.5s ease-in-out;
}


@keyframes ease_img {
    0% {
        opacity: 0;
        right: -50px;
    }
    100% {
        opacity: 100;
        right: 0%;
    }
}
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono&display=swap');



@keyframes blink {
    50% { opacity: 0; }
}


.box_botton_next{
    width: 100%;
    padding: 5px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.botton_next_terminal{
    padding: 16px;
    width: 80%;
    font-size: clamp(15px, 2vw, 23px);
    border: none;
    cursor: pointer;
    padding: 10px 20px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.4);
    box-shadow:0 5px 20px rgba(0, 0, 0, 0.3);
    transition: 0.3s;
}

.name_satang{
    display: flex;
    align-items: center;
    justify-content: center;
    content:"";
    position:absolute;
    inset:0;

    pointer-events:none;
    z-index:0;
    color: white;
    font-family: "Bebas Neue", sans-serif;
    font-size: 25vh;
    text-shadow:10px 10px 30px rgba(0, 0, 0, 0.724);
}

.text_name1{
    transform: translateX(-4%) translateY(-135%);
    color: white;
    animation: beur_in 1.5s ease-in-out;
}

.text_name2{
    transform: translateX(90%) translateY(-40%);
    color: white;
    animation: beur_in 1.5s ease-in-out;
    
}


.container{
    border-bottom:2px solid #202142;
    color: #ffffff;
    width: 100%;
    padding: 3vw;
    margin: auto;
    max-width: 1800px;
    display: flex;
    flex-direction: column;
    align-items: center;

}
.sop{
    font-size: clamp(12px, 5vw, 40px);
}

.hid_SOP{
    position: relative;
    max-height: 120px;
    overflow: hidden;
    transition: 0.5s;
}

.hid_SOP{
    position: relative;
    max-height: 120px;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.text_sop{
    font-size: clamp(12px, 2vw, 18px);
    margin:0;
    line-height:1.6;
}

/* fade effect */
.fade{
    transition:0.5s;
    position:absolute;
    bottom:0;
    left:0;
    width:100%;
    height:100px;

    background: linear-gradient(
        to bottom,
        rgba(15, 37, 101, 0),
        rgba(15, 37, 101, 0.6),
        rgba(15, 37, 101, 1)
    );

    pointer-events:none;
    z-index:1;
}

/* ปุ่ม glow */
.readmore-btn{

    position:absolute;
    bottom:20px;
    left:50%;
    transform:translateX(-50%);

    padding:8px 24px;
    border:none;
    border-radius:30px;
    

    background:rgba(13,110,253,0.9);
    backdrop-filter: blur(5px);

    color:white;
    font-weight:500;

    cursor:pointer;

    z-index:2; /* สำคัญมาก ให้ลอยเหนือ fade */

    box-shadow:
        0 0 10px rgba(13,110,253,0.8),
        0 0 25px rgba(13,110,253,0.5),
        0 0 50px rgba(13,110,253,0.3);

    transition:0.3s;
}

.readmore-btn:hover{

    box-shadow:
        0 0 15px rgba(13,110,253,1),
        0 0 35px rgba(13,110,253,0.8),
        0 0 70px rgba(13,110,253,0.5);

    transform:translateX(-50%) scale(1.08);
}

/* ซ่อน fade เมื่อเปิด */
.hid_SOP.open .fade{
    opacity:0;
    transition:0.5s;
}




/* //////////////////////////////*/

.footer{
    width: 100%;
    margin-top:100px;
    padding-top:10px;

    background: linear-gradient(
        to bottom,
        #0f2565,
        #08143a
    );

    color:white;

    border-top:1px solid rgba(13,110,253,0.3);

    box-shadow:
        0 -5px 20px rgba(13,110,253,0.2);
}

.footer-container{

    max-width:1000px;
    margin:auto;

    display:flex;
    justify-content:space-between;
    flex-wrap:wrap;

    gap:10px;

    padding:20px;
}

.footer-logo{

    margin:0;
    color:#0d6efd;

    text-shadow:
        0 0 10px rgba(32, 121, 255, 0.7);
    transition: 0.5s;
}

.footer-contact{

    margin:0;
    color:#ffffff;

    text-shadow:
        0 0 10px rgba(255, 255, 255, 0.7);
    transition: 0.5s;
}

.footer-logo:hover,.footer-contact:hover{
    transform: translateX(10px);
    transition: 0.5s;
}

.footer-desc{

    max-width:500px;
    opacity:0.8;
}

.footer-right{
    line-height: 1.8;
    display:flex;
    flex-direction:column;
}


.footer-bottom{

    text-align:center;
    padding:15px;

    border-top:1px solid rgba(255,255,255,0.1);

    margin-top:20px;

    opacity:0.7;
}


.contact-btn{
    margin: 10px;
    bottom:20px;
    left:50%;

    padding:8px 24px;
    border:none;
    border-radius:30px;
    

    background:rgba(13,110,253,0.9);
    backdrop-filter: blur(5px);

    color:white;
    font-weight:500;


    box-shadow:
        0 0 10px rgba(13,110,253,0.8),
        0 0 25px rgba(13,110,253,0.5),
        0 0 50px rgba(13,110,253,0.3);

    transition:0.3s;
}

.contact-btn:hover{
    box-shadow:
        0 0 15px rgba(13,110,253,1),
        0 0 35px rgba(13,110,253,0.8),
        0 0 70px rgba(13,110,253,0.5);
    transform: scale(1.05);
}






.notification{
    z-index: 9999;
    width: 90%;
    max-width: 800px;

    background: #1b2230eb;
    color: white;
    padding: 20px 20px 25px 20px;
    border-radius: 14px;

    box-shadow: 0 10px 25px rgba(0,0,0,0.4);

    position: relative;

    bottom: -150px;
    opacity: 0;

    transition: all 0.5s cubic-bezier(0.34,1.56,0.64,1);

    pointer-events: auto;
}

.notification.show{
    bottom: 0;
    opacity: 1;
}
.progress{
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: #009dff;
    width: 100%;
}

.progress.animate{
    animation: progressBar 10s linear forwards;
}

@keyframes progressBar{
    from{ width: 100%; }
    to{ width: 0%; }
}

#notification-container{
    z-index: 9999;
    position: fixed;
    bottom: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
}


.exit_modal{
    position: absolute;
    background: rgba(0,0,0,.5);
    width: 37px;
    height: 37px;
    top: 10px;
    right: 10px;
    border-radius: 10px;
}

.modal-close{
    position: absolute;
    top: 6px;
    right: 10px;
    /* height: 60px;
    width: 60px;
    justify-content: center; /* กลางแนวนอน */
    align-items: center; 
    border-radius: 15px; 
    font-size: 20px;
    font-style: initial;
    cursor: pointer;
    color: #fff;
    transition: .3s;
    font-weight:bold;
}

.exit_modal:hover .modal-close{
    transform: scale(1.2) rotate(90deg);
    color: #1e90ff;
}


/* --- Certificate Page Styles --- */
.contSainer{
    display: grid;
   grid-template-columns: repeat(auto-fit, 500px);
   gap: 20px;
   justify-content: center;
}


.cer-card{
   width: 500px;
   background: #081a3a;
   border-radius: 12px;
   padding: 10px;
   text-align: center;

   opacity: 0;
   transform: translateY(30px);
   transition: 0.3s ease-in;
}

/* ตอนเลื่อนมาเจอ */
.cer-card.show{
   opacity: 1;
   transform: translateY(0);
}


.cer-card:hover{
   transform: translateY(-6px);
   box-shadow: 0 15px 30px rgba(22, 104, 255, 0.5);
}

.cer-card img{
   width: 95%;
   object-fit: cover;
   border-radius: 8px;
}

.cer-card p{
   margin-top: 8px;
   font-size: 14px;
   color: #cfd8ff;
}

.modal{
   position: fixed;
   inset: 0;
   background: rgba(0,0,0,0.7);
   backdrop-filter: blur(8px);
   display: flex;
   align-items: center;
   justify-content: center;

   opacity: 0;
   pointer-events: none;
   transition: .4s ease;
   z-index: 9999;
}

.modal.show{
   opacity: 1;
   pointer-events: auto;
}

.modal-content{
   width: 90%;
   max-width: 1400px;
   max-height: 95vh;
   background: #06152f;
   border-radius: 16px;
   padding: 20px;
   text-align: center;
   color: #fff;
   overflow-y: auto;

   transform: translateY(40px) scale(.95);
   transition: .4s ease;
}

.modal.show .modal-content{
   transform: translateY(0) scale(1);
}

.modal-content img{
   width: 100%;
   max-height: 60vh;
   object-fit: contain;
   border-radius: 12px;
   margin-bottom: 15px;
}

.list_cer{
   margin: 10px;
   align-items: center;
   justify-content: center;
   font-size: 50px;
   color: #cfd8ff;
}

.exit_modal:hover .modal-close{
    transform: scale(1.2) rotate(90deg);
    color: #1e90ff;
}

.exit_modal2:hover .modal-close2{
    transform: scale(1.2) rotate(90deg);
    color: #1e90ff;
}

/* Phone Icon Hover */
.phone:hover {
    background: #4CAF50; /* สีเขียว */
    box-shadow:
        0 0 20px rgba(76, 175, 80, 0.8),
        0 0 50px rgba(76, 175, 80, 0.4);
}
