body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #f4f4f4;
}

header {
    background: linear-gradient(to right, #4e54c8, #8f94fb);
    color: white;
    padding: 60px 0;
    text-align: center;
}

header h1 {
    margin: 0;
    font-size: 3em;
    font-weight: bold;
}

header p {
    font-size: 1.2em;
    margin-top: 10px;
}

nav {
    background: #fff;
    color: #444;
    padding: 15px 0;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 40px; /* เพิ่มช่องว่างระหว่างรายการเมนู */
}

nav ul li {
    display: inline;
}

nav ul li a {
    color: #444;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 20px; /* เพิ่ม padding ให้ตัวหนังสือ */
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #4e54c8;
}

section {
    padding: 60px 0;
    background: white;
    margin: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.container {
    width: 80%;
    margin: 0 auto;
    text-align: center;
}

h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #4e54c8;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

ul li {
    display: inline-block;
    margin: 10px 20px;
    font-size: 1.2em;
    background: #f4f4f4;
    padding: 10px 20px;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.project {
    margin-bottom: 40px;
    padding: 20px;
    border-radius: 10px;
    background: #f9f9f9;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.project:hover {
    transform: translateY(-10px);
}

footer {
    background: #4e54c8;
    color: white;
    padding: 20px 0;
    text-align: center;
}

.profile-pic {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.profile-pic img {
    width: 200px; /* เพิ่มขนาดรูปภาพ */
    height: 200px; /* เพิ่มขนาดรูปภาพ */
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s; /* เพิ่ม transition สำหรับเอฟเฟกต์ hover */
}

.profile-pic img:hover {
    transform: scale(1.1); /* ขยายรูปภาพเมื่อ hover */
}