:root {
    --pink-gradient: linear-gradient(90deg, #ff85c0, #f759ab);
    --blue-gradient: linear-gradient(90deg, #70d6ff, #1890ff);
    --glass-bg: rgba(30, 41, 59, 0.4);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body, html {
    font-family: 'Kanit', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: #f1f5f9;
}

.bg-layer {
    position: fixed; inset: 0;
    background: linear-gradient(rgba(15, 23, 42, 0.75), rgba(15, 23, 42, 0.75)), url('/Jobs/Gem.png') no-repeat center center;
    background-size: cover; z-index: -1;
}

/* 🚀 Navbar สไตล์สไลด์ซ่อนตัวตามสเปกหลัก */
        .navbar {
            position: absolute;
            top: 0;
            left: 50%;
            transform: translateX(-50%) translateY(-85%);
            background: linear-gradient(90deg, rgba(255, 255, 255, 0.92), rgba(240, 249, 255, 0.92));
            padding: 0 40px;
            height: 60px;
            border-radius: 0 0 30px 30px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
            z-index: 1000;
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            width: 85%;
            max-width: 950px;
            transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .nav-trigger-zone:hover .navbar,
        .navbar:hover {
            transform: translateX(-50%) translateY(0);
        }

        .nav-group-left, .nav-group-right {
            display: flex;
            align-items: center;
            gap: 25px;
        }

        .nav-item {
            text-decoration: none;
            color: #334155;
            font-weight: 700;
            font-size: 14px;
            letter-spacing: 0.5px;
            transition: color 0.3s, transform 0.2s;
        }

        .nav-item:hover {
            color: #f759ab;
            transform: translateY(-1px);
        }

        .nav-home {
            background: var(--pink-gradient);
            color: white !important;
            padding: 6px 20px;
            border-radius: 20px;
        }
        .nav-home:hover {
            box-shadow: 0 4px 15px rgba(247, 89, 171, 0.4);
        }

        /* โลโก้ตรงกลางเมนูบาร์ */
        .logo-center { 
            display: flex;
            flex-direction: column;
            align-items: center; 
            justify-content: center;
            position: relative;
            background: transparent; 
            padding: 0 20px;
            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-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% { 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); }             
        }


.navbar:hover { transform: translateX(-50%) translateY(0); }

.jobs-container {
    max-width: 1000px;
    width: 90%;
    margin: 50px auto 40px auto;
    padding: 40px;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.visual-feedback-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
}

.status-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--glass-border);
}

.status-img {
    height: 80px; 
    width: auto;
    object-fit: contain;
}
.status-img2 {
    height: 190px; 
    width: auto;
    object-fit: contain;
}

.job-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.job-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 35px;
    transition: all 0.4s;
    position: relative;
}

.job-card:hover {
    transform: translateY(-8px);
    background: rgba(30, 41, 59, 0.6);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.card-pink { border-top: 4px solid #f759ab; }
.card-blue { border-top: 4px solid #1890ff; }

.click-link {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 16px;
    border-radius: 12px;
    color: #38bdf8 !important;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid rgba(56, 189, 248, 0.2);
    transition: all 0.3s;
}

.click-link:hover {
    background: #38bdf8;
    color: #0f172a !important;
}

.footer {
    width: 100%; text-align: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    margin-top: auto;
}
