/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Kanit', sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 450px;
    text-align: center;
}

/* Header Section */
.profile {
    margin-bottom: 30px;
}

.profile-img img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid #24b7fb;
    margin-bottom: 15px;
    object-fit: cover;
}

.logo-placeholder {
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, #24b7fb, #f59e0b);
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    font-weight: bold;
    color: #0f172a;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    border: 4px solid rgba(255,255,255,0.1);
}

h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.tagline {
    font-weight: 300;
    color: #cbd5e1;
    font-size: 0.95rem;
}

/* Links Section */
.links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.link-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px 20px;
    border-radius: 12px;
    text-decoration: none;
    color: white;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.link-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
    border-color: #24b7fb;
}

.link-card.highlight {
    background: #24b7fb;
    color: #0f172a;
    font-weight: 600;
}

.link-card.highlight:hover {
    background: #24b7fb;
}

.icon {
    font-size: 1.2rem;
    margin-right: 15px;
}

.text {
    font-size: 1rem;
}

/* Social Grid */
.social-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.social-link {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 8px;
    text-decoration: none;
    color: #94a3b8;
    font-size: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s;
}

.social-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

/* Footer Section */
footer {
    margin-top: 40px;
    color: #64748b;
    font-size: 0.85rem;
}













/* การตั้งค่าเพิ่มเติมสำหรับหน้า Project ให้เหมือนในรูป */
.project-page {
    background-color: #0b0e14; /* สีพื้นหลังเข้มตามรูป */
    background-image: radial-gradient(circle at 2px 2px, rgba(255,255,255,0.02) 1px, transparent 0);
    background-size: 40px 40px;
}

.container-full {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.8rem;
    letter-spacing: 2px;
    color: #ffffff;
    text-align: left;
    margin-bottom: 10px;
}

.title-line {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #00d2ff 0%, transparent 100%);
    margin-bottom: 40px;
}

/* Project Grid */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

/* Card Style ตามรูปที่คุณส่งมา */
.project-card {
    background: #151921;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: #00d2ff;
    box-shadow: 0 10px 30px rgba(0, 210, 255, 0.1);
}

.project-thumb img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    opacity: 0.8;
}

.project-info {
    padding: 20px;
}

.tag {
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    display: inline-block;
    margin-bottom: 10px;
}

.tag.lua { background: rgba(0, 0, 255, 0.1); color: #5c7cff; border: 1px solid #5c7cff; }
.tag.python { background: rgba(255, 255, 0, 0.1); color: #ffd700; border: 1px solid #ffd700; }
.tag.web { background: rgba(255, 69, 0, 0.1); color: #ff4500; border: 1px solid #ff4500; }

.project-info h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.project-info p {
    font-size: 0.9rem;
    color: #a0a0a0;
    line-height: 1.5;
    margin-bottom: 20px;
}

.view-project {
    color: #00d2ff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: 0.3s;
}

.view-project:hover {
    border-bottom: 1px solid #00d2ff;
}

.back-btn {
    text-decoration: none;
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 20px;
    display: inline-block;
}









/* สไตล์เพิ่มเติมสำหรับหน้าสมาชิก */
.member-page {
    background-color: #ffffff; /* พื้นหลังสีขาวตามรูป */
    color: #ffffff;
    display: block; /* ยกเลิก flex จากหน้าแรก */
    padding: 0;
}

.container-full {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.intro-section {
    margin-bottom: 60px;
}

.intro-section h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.intro-section p {
    font-size: 1.1rem;
    color: #b4b4b4;
    max-width: 800px;
    margin-bottom: 10px;
}

.group-title {
    font-size: 2.5rem;
    margin: 40px 0 20px 0;
    border-left: 8px solid #ffffff;
    padding-left: 15px;
}

/* Grid Layout */
.member-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

/* การ์ดสมาชิก */
.member-card {
    text-align: left;
}

.image-box {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.yellow-bg {
    background-color: #57e6ff; /* สีเหลืองตามรูป */
}

.image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-info h3 {
    font-size: 1.2rem;
    margin-bottom: 2px;
}

.member-info .surname {
    font-size: 0.9rem;
    font-weight: 400;
    margin-bottom: 5px;
}

.member-info .position {
    font-size: 0.85rem;
    color: #cfcfcf;
    font-weight: 300;
}

/* สไตล์เมนูย้อนกลับ */
.nav-simple {
    padding: 20px;
    background: #f8f9fa;
}

.nav-simple a {
    text-decoration: none;
    color: #000;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .member-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .intro-section h1 {
        font-size: 2rem;
    }
}