*{
    box-sizing: border-box;   /* ⭐ กันล้นทั้งระบบ */
}


body{
    margin:0;
    
    overflow-x: hidden; 
    font-family: "Noto Sans Thai", sans-serif;
    background-color: #020e26;
    
    
}



/* ปุ่มเปิดเมนู */
.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;
}





.menu-item-nonhid{
    color: #ffffff;
    border-radius: 2px;
    transition: 0.3s;
    padding:15px;
    cursor:pointer;
    font-size:18px;
    transition: 0.5s;
}

.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:70%;
    }
}


/* ===== 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{
    padding: 5%;
    padding-top:10%;
    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');



.container{
    /* display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh; */
    border-bottom:2px solid #202142;
    width: 100%;
    padding: 2rem;
    margin: auto;
    max-width: 1800px;
}

.terminal-3d {
    width: 100%;
    min-height: 35vh;

    background: #051129;
    border-radius: 15px;
    --ty: 0px;
    transform:
        perspective(900px)
        translateY(var(--ty));

    box-shadow:
        0 30px 60px rgba(0,0,0,0.6),
        inset 0 0 0 1px rgba(255,255,255,0.05);

    font-family: 'JetBrains Mono', monospace;
    color: #fff;

    transition: transform 0.8s ease, color 0.5s ease;

    will-change: transform;
}

.terminal-3d:hover{
    animation-play-state: paused;
    color: #e1bbbb;
    --ty: 0px;
}

.terminal-3d:hover .terminal-body {
    transition: 1s;
    padding: 16px;
    font-size: clamp(15px, 2vw, 25px);
    line-height: 1.6;
}

/* header */
.terminal-header {
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 8px;

    padding: 10px 14px;
    background: linear-gradient(to bottom, #1a2040, #020f2b);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.terminal-header .title {
    margin-left: auto;
    font-size: 20px;
    opacity: 0.6;
}

/* dots */
.dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
}
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

/* body */
.terminal-body {
    padding: 16px;
    font-size: 20vh;
    line-height: 1.6;
    transition: 1s;
}



.prompt {
    color: #ffffff;
    margin-right: 6px;
}

.terminal-body {
    padding: 16px;
    font-size: clamp(15px, 2vw, 23px);
    line-height: 1.6;
    position: relative;
}

.line {
    font-family: monospace;
    white-space: pre-wrap;
}

.cursor {
    display: inline-block;
    margin-left: 2px;
    animation: blink 0.8s steps(1) infinite;
}

@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 0 rgba(0,0,0,0.1);
}

.text_name1{
    transform: translateX(-48%) translateY(-135%);
    color: white;
    animation: beur_in 1.5s ease-in-out;
}

.text_name2{
    transform: translateX(50%) translateY(-40%);
    color: white;
    animation: beur_in 1.5s ease-in-out;
    
}

