/* css/about.css */

:root { 
    --sea-green: #66CDAA; 
    --sea-dark: #4CB090; 
}

/* --- Hero Section --- */
.hero-section {
    background: linear-gradient(135deg, var(--sea-green) 0%, var(--sea-dark) 100%);
    color: white;
    padding: 80px 15px 120px 15px;
    margin-bottom: -60px;
    clip-path: ellipse(150% 100% at 50% 0%);
}

.hero-title { 
    font-size: 3.5rem; 
    font-weight: bold; 
    margin-bottom: 0.5rem; 
    line-height: 1.2; 
}

/* --- ส่วน Hero Description --- */
.hero-desc {
    font-size: 5.0rem; /* ✅ ปรับให้ใหญ่ขึ้น (เดิม 1.15rem) */
    font-weight: 600;
    opacity: 0.95; /* เพิ่มความชัดอีกนิด */
    max-width: 800px; /* ขยายความกว้างกล่องข้อความให้รองรับตัวหนังสือใหญ่ */
    margin: 0 auto;
    line-height: 1.6;
    padding: 0 20px;
}

/* --- ส่วน Mobile (คงเดิม หรือปรับลดตามเหมาะสม) --- */
@media (max-width: 768px) {
    .hero-desc {
        font-size: 1.1rem; /* มือถือให้ขนาดพอดีจอ */
        width: 100%;
        padding: 0 15px;
    }
}

/* --- Profile Card --- */
.profile-card {
    border: none;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    background-color: #fff;
    overflow: hidden;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(102, 205, 170, 0.2);
}

.profile-img-wrapper {
    height: 350px;
    overflow: hidden;
    position: relative;
}

.profile-img {
    width: 100%; 
    height: 100%; 
    object-fit: cover;
    transition: transform 0.5s;
}

.profile-card:hover .profile-img { 
    transform: scale(1.05); 
}

/* --- Badges & Links --- */
.tech-badge {
    font-size: 0.85rem; 
    padding: 6px 12px; 
    border-radius: 50px;
    background-color: #f0fdf9; 
    color: var(--sea-dark); 
    border: 1px solid #ccfbf1;
    margin-right: 5px; 
    margin-bottom: 8px; 
    display: inline-flex; 
    align-items: center; 
    gap: 5px;
}

.social-link {
    width: 38px; 
    height: 38px; 
    display: inline-flex; 
    align-items: center; 
    justify-content: center;
    border-radius: 50%; 
    background-color: #f1f3f5; 
    color: #555; 
    text-decoration: none; 
    margin-right: 8px;
}

.social-link:hover { 
    background-color: var(--sea-green); 
    color: white; 
}

.role-badge {
    color: white; 
    padding: 5px 15px; 
    border-radius: 20px; 
    font-size: 0.8rem;
    font-weight: 600; 
    letter-spacing: 0.5px; 
    text-transform: uppercase;
    display: inline-block; 
    margin-bottom: 10px; 
    margin-right: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* --- Mobile Horizontal Scroll Logic --- */
@media (max-width: 991px) {
    .member-scroll-container {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 15px;
        padding: 10px 15px 30px 15px;
        -webkit-overflow-scrolling: touch;
    }
    
    .member-scroll-container::-webkit-scrollbar { display: none; }

    .member-item {
        flex: 0 0 85vw; /* กว้าง 85% ของจอ */
        scroll-snap-align: center;
    }
    
    .hero-section { padding-bottom: 80px; }
}

/* --- Desktop Logic --- */
@media (min-width: 992px) {
    .hero-section { padding: 60px 20px 100px 20px; }
    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1.5rem; display: block; }
    .hero-desc { font-size: 1rem; width: 100%; padding: 0 10px; }
    .profile-img-wrapper { height: 100%; min-height: 350px; }
    
    .member-scroll-container { display: block; }
    .member-item { margin-bottom: 3rem; display: flex; justify-content: center; }
    .member-item > div { width: 100%; max-width: 900px; }
}
/* about.css */

/* --- จัดการรูปภาพโปรไฟล์ --- */
.profile-img-wrapper {
    width: 100%;
    height: 300px;        /* Mobile: ล็อกความสูงไว้ที่ 300px */
    overflow: hidden;
    background-color: #f0f0f0; /* สีพื้นหลังรองรับรูปโหลดไม่ทัน */
    border-radius: 0.5rem 0 0 0.5rem; /* (Optional) ถ้ามีการ์ดโค้ง */
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;    /* ตัดส่วนเกินออก ไม่ให้รูปบี้ */
    object-position: top center; /* เน้นโชว์ส่วนหน้า */
    transition: transform 0.5s ease;
}

/* Effect ตอนเอาเมาส์ชี้รูป (Optional) */
.profile-card:hover .profile-img {
    transform: scale(1.05);
}

/* --- จัดการพื้นที่ Badge (ป้ายตำแหน่ง) --- */
.role-wrapper {
    min-height: 60px;     /* Mobile: จองพื้นที่ไว้สูงพอสำหรับ 2 บรรทัด */
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    align-content: flex-end; /* ดัน Badge ให้ชิดขอบล่างของกล่องตัวเอง เพื่อให้ชื่อคนเริ่มที่เส้นเดียวกัน */
    margin-bottom: 10px;
}

/* --- Responsive: Desktop (หน้าจอใหญ่กว่า 992px) --- */
@media (min-width: 992px) {
    .profile-img-wrapper {
        height: 100%;      /* Desktop: ให้ยืดตามความสูงการ์ดเต็มๆ */
        min-height: 400px; /* กันการ์ดสั้นเกินไป */
    }
    
    .role-wrapper {
        min-height: auto;  /* Desktop: ไม่ต้องล็อกความสูงแล้ว */
        align-content: flex-start; /* กลับไปเรียงจากบนลงล่างปกติ */
    }
}