body,
html {
    margin: 0;
    padding: 0;
    width: 100%; /* Đã thay đổi: Bỏ 'vw' và sử dụng % cho độ rộng tốt hơn */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Thêm mới: Font family mặc định */
    background-color: #D7BFAE;
    overflow-x: hidden;
    color: #333; /* Thêm mới: Màu chữ mặc định */
}

.spline-container {
    width: 100%;
    height: 80vh; /* Đã thay đổi: Tăng từ 80vh lên 90vh để hiển thị đẹp hơn */
    border: none;
    position: relative; /* Thêm mới: Cho phép định vị các phần tử con */
}

.text-overlay {
    position: absolute;
    top: 10vh;
    left: 2%; /* Đã thay đổi: Từ 50px thành 8% để phản hồi tốt hơn với kích thước màn hình */
    font-size: 58px;
    font-weight: bold;
    color: #333;
    z-index: 1000;
    text-shadow: 2px 2px 8px rgba(255, 255, 255, 0.5); /* Thêm mới: Bóng đổ cho văn bản */
}

.subtitle {
    font-size: 30px;
    font-weight: normal;
    color: #555;
    display: block; /* Thêm mới: Đảm bảo hiển thị dạng block */
    margin-top: 10px; /* Thêm mới: Tạo khoảng cách với văn bản ở trên */
}

.section {
    padding: 60px 8%; /* Đã thay đổi: Từ 50px thành 60px 8% để tạo không gian tốt hơn và đáp ứng */
    background: #f1eae1;
    color: #333;
    font-size: 18px;
    line-height: 1.7; /* Đã thay đổi: Từ 1.6 lên 1.7 để tăng độ đọc */
    margin: 20px 0; /* Thêm mới: Tạo khoảng cách giữa các section */
    border-radius: 15px; /* Thêm mới: Bo tròn góc */
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); /* Thêm mới: Bóng đổ nhẹ */
}

.section h2 {
    font-size: 36px; /* Đã thay đổi: Từ 32px lên 36px */
    color: #b35a1f;
    position: relative; /* Thêm mới: Cho phép định vị pseudo-element */
    padding-bottom: 15px; /* Thêm mới: Tạo không gian cho đường gạch dưới */
    margin-bottom: 30px; /* Thêm mới: Tăng khoảng cách với nội dung bên dưới */
    display: inline-block;
}

/* Thêm mới: Tạo gạch dưới cho tiêu đề h2 */
.section h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #b35a1f;
}

.education img {
    width: 220px;
    display: block;
    margin-bottom: 30px; /* Đã thay đổi: Từ 20px lên 30px */
}

.education h3 {
    margin-top: 50px; /* Đã thay đổi: Từ 60px xuống 50px cho hợp lý hơn */
    font-size: 24px; /* Thêm mới: Kích thước font cụ thể */
    color: #555; /* Thêm mới: Màu sắc cụ thể */
}

/* Thêm mới: Các style cho phần education */
.education p {
    margin: 10px 0;
}

.education a {
    color: #b35a1f;
    text-decoration: none;
    transition: color 0.3s;
}

.education a:hover {
    color: #824616;
    text-decoration: underline;
}

.gallery1 {
    display: flex;
    justify-content: center;
    align-items: center;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); /* Đã thay đổi: Từ auto-fit/150px thành auto-fill/200px */
    gap: 20px; /* Đã thay đổi: Từ 10px lên 20px */
    margin-top: 30px; /* Đã thay đổi: Từ 20px lên 30px */
}

.gallery1 img {
    width: 30%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); /* Đã thay đổi: Bóng đổ rõ hơn */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Đã thay đổi: Thêm hiệu ứng cho box-shadow */
}

.gallery1 img:hover {
    transform: translateY(-5px); /* Đã thay đổi: Từ scale(1.05) thành translateY(-5px) */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15); /* Thêm mới: Tăng bóng đổ khi hover */
}



.gallery {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* Chia thành 5 cột bằng nhau */
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 30px;
}

.gallery img {
    width: 100%; /* Mỗi ảnh sẽ lấp đầy ô của nó */
    height: 500px; /* Chiều cao cố định cho tất cả ảnh */
    object-fit: cover; /* Quan trọng: Giúp ảnh không bị méo và vẫn đẹp */
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery img:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Đảm bảo hiển thị tốt trên thiết bị di động */
@media (max-width: 768px) {
    .gallery {
        grid-template-columns: repeat(3, 1fr); /* 3 ảnh trên tablet */
    }
}

@media (max-width: 480px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr); /* 2 ảnh trên điện thoại */
    }
    
    .gallery img {
        height: 150px; /* Giảm chiều cao trên điện thoại */
    }
}


/* Thêm mới: Style cho danh sách */
.section ul {
    padding-left: 20px;
}

.section ul li {
    margin-bottom: 10px;
    position: relative;
}

.section ul li:before {
    content: "•";
    color: #b35a1f;
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

/* Thêm mới: Style cho nút */
.section button {
    background-color: #b35a1f;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 10px;
    margin-right: 10px;
}

.section button:hover {
    background-color: #824616;
}

/* Thêm mới: Media queries cho thiết kế đáp ứng */
@media (max-width: 768px) {
    .text-overlay {
        font-size: 40px;
        top: 5vh;
        left: 5%;
    }
    
    .subtitle {
        font-size: 22px;
    }
    
    .section {
        padding: 40px 5%;
    }
    
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

@media (max-width: 480px) {
    .text-overlay {
        font-size: 32px;
    }
    
    .subtitle {
        font-size: 18px;
    }
    
    .spline-container {
        height: 70vh;
    }
}

/* Phần style cho các icon mạng xã hội */
.social-icons {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    margin: 40px 0;
}

.social-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: #333;
    transition: transform 0.3s;
    width: 250px;
    padding: 20px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.social-icon:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.social-icon i {
    font-size: 3.5rem;
    margin-bottom: 15px;
}

/* Màu sắc nguyên bản của các nền tảng */
.linkedin-color {
    color: #0077B5; /* Màu xanh dương của LinkedIn */
}

.github-color {
    color: #171515; /* Màu đen của GitHub */
}

.instagram-color {
    /* Gradient màu như logo Instagram */
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.social-icon span {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #555;
}

.social-icon p {
    font-size: 0.95rem;
    color: #666;
    margin-top: 5px;
}

/* Media query cho màn hình nhỏ */
@media (max-width: 768px) {
    .social-icons {
        flex-direction: column;
        align-items: center;
    }
    
    .social-icon {
        width: 80%;
    }
}