/* About Page Styles */

.about-header {
    text-align: center;
    margin-top: 15vh;
    margin-bottom: 4rem;
    color: white;
}

.about-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-family: 'Funnel Display', sans-serif;
}

.about-subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    font-family: 'Funnel Display', sans-serif;
    color: rgba(255, 255, 255, 0.9);
}

/* About Cards */
.about-card {
    max-width: 900px;
    margin: 0 auto 2rem;
    padding: 2rem;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    background: rgba(232, 129, 127, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(232, 129, 127, 0.18);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-card:hover {
    background: rgba(232, 129, 127, 0.15);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.section-heading {
    color: white;
    font-size: 1.6rem;
    font-family: 'Funnel Display', sans-serif;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(232, 129, 127, 0.3);
}

/* About Content */
.about-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.about-content p:last-child {
    margin-bottom: 0;
}

/* Project Items */
.project-item {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 1rem;
}

.project-item:last-child {
    margin-bottom: 0;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.project-title {
    color: white;
    font-size: 1.3rem;
    font-family: 'Funnel Display', sans-serif;
    margin: 0;
}

.project-date {
    color: rgba(232, 129, 127, 0.8);
    font-size: 0.9rem;
    font-weight: 500;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #e8817f;
    text-decoration: none;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.project-link:hover {
    color: white;
    transform: translateX(3px);
}

.project-link i {
    font-size: 1.1rem;
}

.project-description {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.project-details {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0 0 1rem 1.5rem;
    padding: 0;
}

.project-details li {
    margin-bottom: 0.5rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    padding: 0.35rem 0.75rem;
    background: rgba(232, 129, 127, 0.2);
    border-radius: 15px;
    color: #e8817f;
    font-size: 0.85rem;
    font-weight: 500;
}

/* --- SKILLS SECTION (New Layout) --- */

/* Container bảng */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    margin-bottom: 2rem;
}

.skills-table {
    width: 100%;
    border-collapse: collapse;
    color: white;
    font-size: 1.1rem;
}

/* Tiêu đề bảng (Language / Frameworks) */
.skills-table th {
    text-align: left;
    padding: 1rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

/* Các ô trong bảng */
.skills-table td {
    padding: 1.5rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    vertical-align: middle;
}

.skills-table tr:last-child td {
    border-bottom: none;
}

/* Cột Ngôn ngữ (Cột trái) */
.skill-lang {
    width: 35%;
    border-right: 1px dashed rgba(255, 255, 255, 0.1); /* Đường kẻ dọc ngăn cách */
}

/* Cột Frameworks (Cột phải) */
.skill-frameworks {
    padding-left: 2rem !important; /* Thụt vào một chút cho thoáng */
}

/* Danh sách công nghệ */
.tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    /* Mặc định căn trái cho đẹp trong bảng */
    justify-content: flex-start; 
}

/* Item công nghệ (viên thuốc) */
.tech-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.08);
    padding: 0.4rem 0.9rem;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.tech-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Highlight cho Ngôn ngữ chính */
.tech-item.highlight {
    background: rgba(232, 129, 127, 0.15);
    border: 1px solid rgba(232, 129, 127, 0.3);
    font-weight: 600;
    color: white;
}

/* Note text (ví dụ: System Programming) */
.note-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

/* --- INTERESTS SECTION (Riêng biệt) --- */
.interests-container {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 2rem;
    margin-top: 1rem;
    text-align: center;
}

.interests-title {
    color: white;
    font-family: 'Funnel Display', sans-serif;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
}

/* Căn giữa chỉ dành riêng cho phần Interests */
.tech-list.centered {
    justify-content: center;
    gap: 1.5rem;
}

/* Hiệu ứng Glow cho Interests */
.tech-item.glow {
    background: rgba(118, 68, 255, 0.15);
    border: 1px solid rgba(118, 68, 255, 0.3);
    color: #e0d4ff;
    padding: 0.6rem 1.2rem; /* To hơn chút */
}

/* --- CONTACT SECTION --- */

/* Card Contact có màu nền hơi khác chút để nổi bật */
.contact-card {
    background: linear-gradient(135deg, rgba(232, 129, 127, 0.12), rgba(232, 129, 127, 0.08));
    position: relative;
    z-index: 5; /* Đảm bảo nổi lên trên nền */
}

/* Phần CTA (Call To Action) - Email */
.contact-cta {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(232, 129, 127, 0.2);
}

.contact-intro {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
}

.contact-methods {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Nút Email to bự */
.email-primary {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    background: rgba(232, 129, 127, 0.2);
    border: 2px solid rgba(232, 129, 127, 0.4);
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    color: white;
    cursor: pointer;
    position: relative;
    z-index: 10;
}

.email-primary:hover {
    background: rgba(232, 129, 127, 0.3);
    border-color: rgba(232, 129, 127, 0.8);
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(232, 129, 127, 0.3);
}

.email-icon {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.email-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.email-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.email-address {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Nhóm các liên kết (Social / Professional) */
.contact-section-group {
    margin-bottom: 2.5rem;
}

.contact-section-group:last-child {
    margin-bottom: 0;
}

.contact-group-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: white;
    padding-left: 0.75rem;
    border-left: 4px solid #e8817f; /* Viền hồng bên trái tiêu đề */
}

/* Grid chứa các nút liên hệ nhỏ */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

/* Từng nút liên hệ (GitHub, Facebook...) */
.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    position: relative;
    z-index: 10;
}

.contact-item:hover {
    background: rgba(232, 129, 127, 0.15);
    border-color: rgba(232, 129, 127, 0.4);
    transform: translateX(5px); /* Trượt nhẹ sang phải khi hover */
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* Icon SVG trong nút liên hệ */
.contact-svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    /* Dùng filter để đổi màu icon sang trắng nếu icon gốc màu đen */
    filter: brightness(0) invert(1); 
    opacity: 0.9;
}

.contact-info {
    display: flex;
    flex-direction: column;
}

.contact-platform {
    font-size: 1rem;
    font-weight: 600;
}

.contact-handle {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}


/* --- RESPONSIVE MOBILE --- */
@media (max-width: 768px) {
        .contact-grid {
        grid-template-columns: 1fr; /* Một cột trên điện thoại */
    }
    
    .email-primary {
        width: 100%; /* Nút email full chiều rộng */
        justify-content: center;
    }
    
    .contact-intro {
        font-size: 1rem;
    }

    .skills-table thead {
        display: none;
    }

    /* Chuyển các dòng thành khối block */
    .skills-table td {
        display: block;
        width: 100%;
        padding: 0.5rem 0;
        border: none;
        text-align: left;
    }

    .skill-lang {
        border-right: none;
        margin-bottom: 0.5rem;
    }

    .skill-frameworks {
        padding-left: 0 !important;
        padding-bottom: 1.5rem !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    }

    /* Interests trên mobile */
    .tech-list.centered {
        flex-direction: column;
        width: 100%;
    }
    
    .tech-item.glow {
        width: 100%;
        justify-content: center;
    }
}