/* --- BIẾN MÀU VÀ THIẾT LẬP CHUNG --- */
:root {
    --space-black: #020010;
    --hud-cyan: #00f6ff;
    --glow-purple: #9d00ff;
    --text-primary: #e0e5ff;
    --text-secondary: #a9a9b2;
    --panel-bg: rgba(10, 15, 42, 0.6);
    --border-color: rgba(0, 246, 255, 0.25);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Exo 2', sans-serif;
    background: var(--space-black);
    color: var(--text-primary);
    overflow-x: hidden;
    /* GIẢI QUYẾT VẤN ĐỀ LỆCH KHUNG HÌNH */
    cursor: none;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    /* GIẢI QUYẾT VẤN ĐỀ LỆCH KHUNG HÌNH */
}

.glass-panel {
    background: var(--panel-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
}

.section-container {
    padding: 120px 80px;
    position: relative;
}

.section-head {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--hud-cyan);
}

.section-title {
    font-family: 'Exo 2', sans-serif;
    font-size: clamp(2.0rem, 5vw, 4.0rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* --- SECTION MỚI: WHO IS NHAT ANH TRAN (VỚI TRỤC XOAY 3D) --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image-spindle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.spindle-viewer-about {
    width: 350px;
    height: 450px;
    /* Tăng chiều cao cho ảnh chân dung */
    perspective: 2500px;
    margin-bottom: 30px;
}

.spindle-about {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.76, 0, 0.24, 1);
}

.about-panel {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid var(--border-color);
}

.about-panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Các style cho phần text vẫn giữ nguyên */
.about-text {
    padding: 40px;
    border-radius: 15px;
    text-align: justify;
}

.about-text h3 {
   font-family: 'Exo 2', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.about-text p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-text ul {
    list-style: none;
    padding-left: 0;
    margin-top: 30px;
}

.about-text li {
    color: var(--text-primary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.about-text li i {
    color: var(--hud-cyan);
    margin-right: 15px;
    font-size: 1.2rem;
}

/* --- NAVBAR "NAVIGATION ISLANDS" (IOS 26 UPGRADE) --- */
.glass-navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    animation: float-in 1s ease-out forwards;
    width: auto;
    /* Thêm transition để hiệu ứng co giãn mượt mà */
    transition: width 0.6s cubic-bezier(0.76, 0, 0.24, 1),
        background 0.6s,
        backdrop-filter 0.6s,
        padding 0.6s;
}

@keyframes float-in {
    from {
        opacity: 0;
        top: -20px;
    }

    to {
        opacity: 1;
        top: 30px;
    }
}

.nav-item {
    align-items: center;
    display: flex;
}

/* Áp dụng style "Liquid Glass" cho từng đảo riêng biệt */
.nav-logo,
.nav-menu,
.cta-button {
    background: rgba(10, 15, 42, 0.5);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(0, 246, 255, 0.2);
    border-radius: 50px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}
#navbar-logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px; /* Padding nhỏ cho logo */
    border-radius: 50px;
    transition: background 0.3s;
    cursor: pointer;
}

/* Hiệu ứng Liquid Spotlight trên từng đảo */
.nav-logo::before,
.nav-menu::before,
.cta-button::before {
    content: '';
    position: absolute;
    top: var(--mouse-y, 50%);
    /* Đặt giá trị mặc định */
    left: var(--mouse-x, 50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 246, 255, 0.2) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.nav-logo:hover::before,
.nav-menu:hover::before,
.cta-button:hover::before {
    opacity: 1;
}


/* Tinh chỉnh padding cho từng đảo */
.nav-logo {
    height: 45px;
    width: auto;
    border-radius: 0;
    border: none;
    box-shadow: none;
    background: transparent;
}

.nav-logo img {
    height: 100%;
    /* SỬA: Đảm bảo ảnh logo chiếm toàn bộ chiều cao */
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    padding: 0 5px;
}

.nav-link {
    position: relative;
    padding: 12px 20px;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s;
}

.hamburger {
    display: none;
    /* Ẩn trên desktop */
    font-size: 1.8rem;
    color: var(--text-primary);
    cursor: pointer;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 80%;
    /* Giảm chiều cao để đẹp hơn */
    background: rgba(0, 246, 255, 0.1);
    border-radius: 30px;
    transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: -1;
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 95%;
    /* Không full 100% để có khoảng hở */
}

.cta-button {
    padding: 12px 25px;
    border: none;
    color: var(--hud-cyan);
    text-decoration: none;
    font-weight: 500;
    background: rgba(10, 15, 42, 0.5);
    /* Đảm bảo nút có nền nếu muốn hiệu ứng spotlight */
}

.cta-button:hover {
    background: rgba(10, 15, 42, 0.7);
    /* Tăng độ đậm khi hover */
}

/* --- CON TRỎ VÀ NỀN --- */
#cursor-comet {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--hud-cyan);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px var(--hud-cyan);
}

.trail {
    position: fixed;
    background: var(--hud-cyan);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
}

#cosmic-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    transition: transform 0.5s ease-out;
}

.starfield {
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    background-repeat: repeat;
    animation: move-stars linear infinite;
}

#stars1 {
    animation-duration: 100s;
}

#stars2 {
    animation-duration: 200s;
}

#stars3 {
    animation-duration: 300s;
}

@keyframes move-stars {
    from {
        transform: translate(0, 0);
    }

    to {
        transform: translate(-50%, -50%);
    }
}



/* --- 1. HERO (ENERGY CAROUSEL UPGRADE) --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    touch-action: pan-y;
    /* Cho phép cuộn dọc nhưng không ảnh hưởng đến vuốt ngang */
}

.hero-carousel-container {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Stargate và các vòng không thay đổi nhiều, chỉ thêm biến màu */
.stargate-container {
    perspective: 1500px;
    cursor: grab;
}

.stargate-container:active {
    cursor: grabbing;
}

.desktop-only {
    display: flex;
    /* Mặc định hiển thị */
}

#stargate {
    position: relative;
    width: 550px;
    height: 550px;
    transform-style: preserve-3d;
    transition: transform 0.2s;
}

/* Hiệu ứng chuyển đổi khi thay slide */
#stargate.transitioning {
    animation: scale-out-3d 0.4s ease-in-out forwards;
}

@keyframes scale-out-3d {
    to {
        transform: scale3d(0.3, 0.3, 0.3) rotateZ(90deg);
        opacity: 0;
    }
}

.stargate-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    animation: rotate-ring 15s linear infinite;
    /* Áp dụng biến màu */
    border: 3px solid var(--hero-glow-1, var(--hud-cyan));
    box-shadow: 0 0 15px var(--hero-glow-1, var(--hud-cyan)),
        inset 0 0 10px var(--hero-glow-1, var(--hud-cyan)),
        0 0 50px var(--hero-glow-2, var(--glow-purple));
    transition: border-color 0.8s, box-shadow 0.8s;
}

.stargate-ring:nth-child(2) {
    animation-duration: 20s;
}

.stargate-ring:nth-child(3) {
    animation-duration: 25s;
}

@keyframes rotate-ring {
    from {
        transform: rotateY(0deg) rotateZ(0deg);
    }

    to {
        transform: rotateY(360deg) rotateZ(360deg);
    }
}

.stargate-vortex {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 90%;
    border-radius: 50%;
    z-index: -1;
    animation: vortex-spin 10s linear infinite;
    /* Áp dụng biến màu */
    background: radial-gradient(circle, var(--hero-glow-2, rgba(157, 0, 255, 0.4)), var(--hero-glow-1, rgba(0, 246, 255, 0.1)), var(--space-black) 70%);
    box-shadow: inset 0 0 40px var(--hero-glow-2, rgba(157, 0, 255, 0.8));
    transition: background 0.8s, box-shadow 0.8s;
}

@keyframes vortex-spin {
    to {
        transform: translate(-50%, -50%) rotateZ(360deg);
    }
}

/* NỘI DUNG VĂN BẢN ĐI KÈM */
.hero-carousel-content {
    margin-top: 40px;
    position: relative;
    height: 100px;
    /* Đặt chiều cao cố định để không bị giật layout */
    text-align: center;
}

#hero-title,
#hero-subtitle {
    transition: opacity 0.4s, transform 0.4s;
}

#hero-title {
    font-family: 'Exo 2', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

#hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-top: 10px;
}

/* Class để làm mờ nội dung cũ */
.content-fade-out {
    opacity: 0;
    transform: translateY(20px);
}

/* NÚT ĐIỀU HƯỚNG */
.hero-carousel-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 5vw;
    z-index: 100;
    transform: translateY(-50%);
}

.carousel-arrow {
    width: 50px;
    height: 50px;
    background: rgba(10, 15, 42, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 1.5rem;
    transition: all 0.3s;
}

.carousel-arrow:hover {
    background: var(--border-color);
    transform: scale(1.1);
}

/* --- 2. AWARDS & HONORS (CELESTIAL RIVER) --- */
.celestial-river-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

#river-path {
    stroke: var(--hud-cyan);
    stroke-width: 2;
    fill: none;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    transition: stroke-dashoffset 0.5s linear;
    filter: drop-shadow(0 0 5px var(--hud-cyan));
}

.star-node {
    position: absolute;
    width: 24px;
    height: 24px;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.5s;
    z-index: 2;
    /* Đảm bảo ngôi sao luôn ở trên */
}

.star-node.in-view {
    transform: translate(-50%, -50%) scale(1);
}

.star-dot {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 15px white, 0 0 30px var(--hud-cyan);
    animation: twinkle 2s infinite ease-in-out;
}

@keyframes twinkle {
    50% {
        transform: scale(0.8);
        opacity: 0.7;
    }
}

.award-panel.in-view {
    opacity: 1;
    transform: translateY(0);
}

.award-year {
    color: var(--hud-cyan);
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: capitalize;
}

.award-title {
    font-size: 1.5rem;
    font-weight: 700;
}

/* --- MODAL CHO AWARDS --- */
#award-modal-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
    padding: 40px;
    width: 90%;
    max-width: 900px;
    /* Rộng hơn để chứa cả ảnh và text */
}

#award-modal-img {
    width: 100%;
    border-radius: 10px;
    aspect-ratio: 10 / 10;
    object-fit: contain;
}

.award-modal-info {
    display: flex;
    flex-direction: column;
}

.award-modal-year {
   font-family: 'Exo 2', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--hud-cyan);
    margin-bottom: 10px;
}

.award-modal-title {
   font-family: 'Exo 2', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.award-modal-desc {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Tinh chỉnh lại để panel có thể click */

/* Đến phần này */
.award-panel {
    position: absolute;
    width: clamp(300px, 30vw, 420px); /* Tăng nhẹ kích thước tối thiểu */
    padding: 30px;
    border-radius: 15px;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.5s, transform 0.5s, border-color 0.3s;
    cursor: pointer;
    z-index: 1; /* Nằm dưới các ngôi sao */
}

.award-panel:hover {
    border-color: var(--hud-cyan);
    transform: translateY(-5px) !important;
}

/* --- 3. RESUME (HOLOGRAPHIC CONSOLE - RESPONSIVE UPDATE) --- */
.holo-console-container-v2 {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.holo-viewer-v2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    width: 80%;
    perspective: 3000px;
    position: relative;
    margin-bottom: 40px;
}

.holo-page-slot {
    aspect-ratio: 1 / 1.414; /* Tỷ lệ giấy A4 */
    position: relative;
    transform-style: preserve-3d;
}

.holo-document-v2 {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: var(--panel-bg);
    transition: transform 0.8s cubic-bezier(0.76, 0, 0.24, 1),
                opacity 0.6s ease;
    backface-visibility: hidden; /* Ẩn mặt sau khi xoay */
}

.holo-document-v2 img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Dùng cover để lấp đầy khung */
}

.holo-document-v2.holo-hidden {
    display: none;
}

/* --- HIỆU ỨNG CHUYỂN ĐỘNG --- */

/* Trạng thái bắt đầu của trang sắp xuất hiện */
.holo-document-v2.enter-from-right {
    transform: translateX(105%) rotateY(-60deg) scale(0.9);
    opacity: 0;
}
.holo-document-v2.enter-from-left {
    transform: translateX(-105%) rotateY(60deg) scale(0.9);
    opacity: 0;
}

/* Trạng thái kết thúc của trang biến mất */
.holo-document-v2.exit-to-left {
    transform: translateX(-105%) rotateY(60deg) scale(0.9);
    opacity: 0;
}
.holo-document-v2.exit-to-right {
    transform: translateX(105%) rotateY(-60deg) scale(0.9);
    opacity: 0;
}


/* BỘ ĐIỀU KHIỂN MỚI */
.holo-controls-v2 {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 15px 30px;
    border-radius: 50px;
}

.control-btn-v2 {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(10, 15, 42, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 1.5rem;
    transition: all 0.3s;
}

.control-btn-v2:hover {
    background: var(--border-color);
    transform: scale(1.1);
    box-shadow: 0 0 15px var(--hud-cyan);
}

.page-counter-v2 {
   font-family: 'Exo 2', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 2px;
}

/* --- RESPONSIVE CHO RESUME --- */
@media (max-width: 1024px) {
    .holo-viewer-v2 {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .holo-viewer-v2 {
        grid-template-columns: 1fr; /* Chỉ hiện 1 trang trên di động */
        /* height: 65vh; Giới hạn chiều cao */
        touch-action: pan-y; /* Cho phép vuốt ngang */
    }

    .holo-page-slot:nth-child(2) {
        display: none; /* Ẩn cột thứ 2 trên di động */
    }

    .holo-controls-v2 {
        padding: 10px 20px;
    }

    .control-btn-v2 {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .page-counter-v2 {
        font-size: 1.4rem;
    }
}

.page-counter-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

.page-counter {
   font-family: 'Exo 2', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.mobile-nav-btn {
    display: none;
    /* Mặc định ẩn nút mobile trên desktop */
}

.disc-btn {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--hud-cyan);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    transition: background-color 0.3s;
}

.disc-btn:hover {
    background-color: var(--border-color);
}

/* --- 4. SKILLS (INFINITE SKILL STREAM) --- */
.skill-stream-container {
    padding: 40px 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 30px;
    -webkit-mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent 100%);
    mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent 100%);
}

.skill-track {
    display: flex;
    width: max-content;
    animation: scroll 40s linear infinite;
}

.skill-track:nth-child(2) {
    animation-direction: reverse;
    /* Chạy ngược chiều */
    animation-duration: 30s;
}

.skill-track:nth-child(3) {
    animation-duration: 50s;
}

@keyframes scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.skill-item {
   font-family: 'Exo 2', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-secondary);
    padding: 0 40px;
    transition: color 0.3s, text-shadow 0.3s;
    cursor: pointer;
    white-space: nowrap;
}

.skill-item:hover {
    color: var(--hud-cyan);
    text-shadow: 0 0 15px var(--hud-cyan);
}

/* --- MODAL CHO SKILLS --- */
#skill-modal-content {
    padding: 40px;
    width: 90%;
    max-width: 600px;
}

.skill-modal-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

#skill-modal-icon {
    font-size: 4rem;
    color: var(--hud-cyan);
}

#skill-modal-title {
   font-family: 'Exo 2', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
}

#skill-modal-desc {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 30px;
}

.skill-modal-level {
    margin-top: 20px;
}

.level-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.level-bar {
    width: 100%;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
}

.level-progress {
    width: 0;
    /* Sẽ được set bằng JS */
    height: 100%;
    background: var(--hud-cyan);
    border-radius: 4px;
    box-shadow: 0 0 10px var(--hud-cyan);
    transition: width 1s ease-out;
}

/* --- 5. CERTIFICATIONS (HOLOGRAPHIC ARCHIVE) --- */
.cert-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
}

.filter-btn {
    padding: 10px 25px;
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: 30px;
    font-family: 'Exo 2', sans-serif;
    font-weight: 500;
    transition: all 0.3s;
}

.filter-btn:hover {
    color: var(--text-primary);
    background: rgba(0, 246, 255, 0.15);
}

.filter-btn.active {
    color: var(--space-black);
    background: var(--hud-cyan);
    box-shadow: 0 0 15px var(--hud-cyan);
    border-color: var(--hud-cyan);
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.cert-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 16 / 11;
    border: 1px solid var(--border-color);
    transition: transform 0.3s, box-shadow 0.3s;
}

.cert-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.cert-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.cert-item:hover img {
    transform: scale(1.1);
}

.cert-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(2, 0, 16, 0.9), transparent 70%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s;
}

.cert-item:hover .cert-overlay {
    opacity: 1;
}

.cert-title {
   font-family: 'Exo 2', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    transform: translateY(20px);
    transition: transform 0.3s;
}

.cert-item:hover .cert-title {
    transform: translateY(0);
}

/* --- MODAL STYLES --- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 0, 16, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    /* Thêm padding để không bị dính sát cạnh màn hình */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s;
}

.modal.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    position: relative;
    /* Bỏ max-width và max-height ở đây */
    border-radius: 15px;
    transform: scale(0.9);
    transition: transform 0.4s;
    /* Thêm shadow để nổi bật hơn */
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
}

.modal.active .modal-content {
    transform: scale(1);
}

/* Áp dụng kích thước tối đa cho hình ảnh, không phải cho content */
#modal-img {
    display: block;
    max-width: 85vw;
    /* Giới hạn chiều rộng tối đa */
    max-height: 85vh;
    /* Giới hạn chiều cao tối đa */
    border-radius: 15px;
    object-fit: contain;
    /* QUAN TRỌNG: Giữ nguyên tỷ lệ, không bị méo */
}

.modal-close {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 40px;
    height: 40px;
    background: var(--hud-cyan);
    color: var(--space-black);
    border: none;
    border-radius: 50%;
    font-size: 2rem;
    line-height: 40px;
    text-align: center;
    transition: transform 0.3s;
    /* Thêm z-index để nút luôn nằm trên */
    z-index: 1002;
}

.modal-close:hover {
    transform: rotate(90deg);
}


/* --- 6. CONTACT (INTERACTIVE COMMS HUB) --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    /* Cột form to hơn một chút */
    gap: 60px;
    align-items: flex-start;
    /* Căn lề trên */
}

.contact-details h3 {
   font-family: 'Exo 2', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.contact-details p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 40px;
    /* Tăng khoảng cách */
    max-width: 500px;
}

.personal-info-list {
    list-style: none;
    padding: 0;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    /* Khoảng cách giữa các dòng */
}

.personal-info-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.personal-info-list i {
    font-size: 1.5rem;
    color: var(--hud-cyan);
}

.personal-info-list a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.personal-info-list a:hover {
    color: var(--hud-cyan);
}


/* CSS MỚI CHO ICON MẠNG XÃ HỘI */
.social-links-contact {
    display: flex;
    gap: 20px;
}

.social-icon-bubble {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
}

.social-icon-bubble i {
    font-size: 1.8rem;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.social-icon-bubble:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 246, 255, 0.2);
}

.social-icon-bubble:hover i {
    color: var(--hud-cyan);
}

.email-link {
    display: inline-block;
    color: var(--hud-cyan);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 40px;
    position: relative;
}

.email-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--hud-cyan);
    transition: width 0.3s;
}

.email-link:hover::after {
    width: 100%;
}

.social-links-contact {
    display: flex;
    gap: 25px;
}

.social-icon {
    font-size: 2rem;
    color: var(--text-secondary);
    transition: color 0.3s, transform 0.3s;
}

.social-icon:hover {
    color: var(--hud-cyan);
    transform: translateY(-5px);
}

.contact-form-wrapper {
    padding: 40px;
    border-radius: 15px;
}

.form-group {
    position: relative;
    margin-bottom: 40px;
}

.form-group label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
    font-family: 'Exo 2', sans-serif;
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-top: 5px;
    outline: none;
    resize: vertical;
    /* Cho phép thay đổi chiều cao textarea */
}

.form-group::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--hud-cyan);
    transition: width 0.4s ease-out;
}

/* Selector đúng: Khi input focus, thay đổi pseudo-element của parent */
.form-input:focus+label~.form-group::after,
/* Vẫn chưa đúng */
.form-input:focus {
    border-bottom-color: transparent;
    /* Ẩn border cũ */
}

/* Selector chính xác nhất: đặt ::after trên group và dùng focus-within */
.form-group:focus-within::after {
    width: 100%;
}


.form-submit-btn {
    width: 100%;
    padding: 18px;
    background: transparent;
    border: 1px solid var(--hud-cyan);
    border-radius: 30px;
    color: var(--hud-cyan);
   font-family: 'Exo 2', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    transition: color 0.4s;
}

.form-submit-btn span {
    position: relative;
    z-index: 2;
}

.form-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--hud-cyan);
    transition: left 0.4s cubic-bezier(0.7, 0, 0.3, 1);
    z-index: 1;
}

.form-submit-btn:hover {
    color: var(--space-black);
}

.form-submit-btn:hover::before {
    left: 0;
}

/* --- FOOTER BẢN QUYỀN MỚI --- */
.site-footer {
    padding: 30px;
    text-align: center;
    color: var(--text-secondary);
    opacity: 0.5;
    font-size: 0.9rem;
}

/* --- SECTION MỚI: KNOWLEDGE HUB (PHIÊN BẢN SỬA LỖI & NÂNG CẤP) --- */
.knowledge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
}

.knowledge-card {
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    display: flex;
    /* Sử dụng Flexbox để kiểm soát cấu trúc */
    flex-direction: column;
    height: 450px;
    /* Đặt chiều cao cố định để các thẻ bằng nhau */
    transition: transform 0.4s, box-shadow 0.4s;
}

.knowledge-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7);
}

.knowledge-card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
    z-index: 1;
    /* Nằm dưới cùng */
}

.knowledge-card:hover .knowledge-card-img {
    transform: scale(1.1);
}

/* Lớp overlay gradient nằm giữa ảnh và chữ */
.knowledge-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(2, 0, 16, 1) 20%, rgba(2, 0, 16, 0.4) 60%, transparent);
    z-index: 2;
    transition: background 0.4s;
}

.knowledge-card:hover::after {
    background: linear-gradient(to top, rgba(2, 0, 16, 1) 30%, rgba(2, 0, 16, 0.6) 70%, transparent);
}


.knowledge-card-content {
    /* Không còn position: absolute */
    position: relative;
    z-index: 3;
    /* Nằm trên cùng */
    margin-top: auto;
    /* Đẩy nội dung xuống dưới cùng */
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    /* Thêm khoảng cách giữa các item con */
    transition: transform 0.4s;
}

.knowledge-card:hover .knowledge-card-content {
    transform: translateY(-10px);
    /* Trượt nhẹ lên khi hover */
}

.knowledge-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.knowledge-card-tag {
    padding: 5px 12px;
    background: rgba(0, 246, 255, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--hud-cyan);
}

.knowledge-card-title {
   font-family: 'Exo 2', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.2;
}

.knowledge-card-excerpt {
    color: var(--text-secondary);
    line-height: 1.6;
    /* Cắt bớt văn bản nếu quá dài */
    -webkit-line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.knowledge-card .read-more-btn {
    /* Đổi tên class để rõ ràng hơn */
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
    align-self: flex-start;
    /* Nút nằm bên trái */
    margin-top: 10px;
}

.knowledge-card:hover .read-more-btn {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

/* --- SECTION MỚI: PROJECTS (PORTFOLIO HUB VỚI TABS) --- */

.portfolio-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.portfolio-tab-btn {
    padding: 12px 30px;
    font-family: 'Exo 2', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: 30px;
    transition: all 0.3s;
}

.portfolio-tab-btn:hover {
    color: var(--text-primary);
    background: rgba(0, 246, 255, 0.1);
}

.portfolio-tab-btn.active {
    color: var(--space-black);
    background: var(--hud-cyan);
    border-color: var(--hud-cyan);
}

.portfolio-hub-container {
    position: relative;
    /* Chiều cao sẽ được set bằng JS để tránh giật layout */
}

.project-carousel-wrapper {
    position: absolute;
    /* Xếp chồng các carousel lên nhau */
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    border-radius: 15px;

    /* Hiệu ứng chuyển tab */
    opacity: 0;
    transform: translateX(50px);
    transition: transform 0.6s cubic-bezier(0.76, 0, 0.24, 1), opacity 0.6s;
    pointer-events: none;
}

.project-carousel-wrapper.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: all;
}

.project-carousel-track {
    display: flex;
    transition: transform 0.8s cubic-bezier(0.76, 0, 0.24, 1);
}

.project-slide {
    flex: 0 0 100%;
    position: relative;
    aspect-ratio: 16 / 8;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.project-bg-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1.1);
    filter: blur(20px) brightness(0.4);
    z-index: 1;
    transition: opacity 0.8s;
}

.project-content-panel {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 40% 1fr;
    gap: 40px;
    align-items: center;
    width: 100%;
    max-width: 1000px;
    padding: 30px;
    border-radius: 15px;
    opacity: 0;
    transform: translateY(30px);
}

.project-slide.active .project-content-panel {
    animation: slide-in-content 0.8s 0.3s forwards cubic-bezier(0.25, 1, 0.5, 1);
}

@keyframes slide-in-content {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-image-container {
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.project-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* border-radius: 15px; */
}

.project-info h3 {
   font-family: 'Exo 2', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.project-info .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.project-info .tag {
    font-size: 0.8rem;
    font-weight: 500;
    padding: 5px 12px;
    background: rgba(0, 246, 255, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--hud-cyan);
}

.project-info p {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

/* --- MODAL CHO PROJECTS --- */
#project-modal-content {
    /* Tương tự modal cho knowledge hub */
    padding: 0;
    display: flex;
    flex-direction: column;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
}

#project-modal-img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    /* object-position: center center; */
    /* display: none; */
    border-radius: 15px 15px 0 0;
}

.project-modal-info {
    padding: 40px;
    overflow-y: auto;
}

.project-modal-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.project-modal-title {
   font-family: 'Exo 2', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.project-modal-desc {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 30px;
}

#project-modal-link {
    display: inline-block;
}

/* =================================================================== */
/* --- RESPONSIVE DESIGN (MOBILE, TABLET, DESKTOP) --- */
/* =================================================================== */

/* --- TABLET & MÀN HÌNH NHỎ HƠN (DƯỚI 1200px) --- */
@media (max-width: 1200px) {
    .section-container {
        padding: 100px 40px;
    }

    /* Tinh chỉnh lại các bố cục 2 cột */
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        /* Chuyển thành 1 cột */
        gap: 60px;
    }

    .about-image-spindle {
        margin: 0 auto;
        /* Căn giữa trục xoay */
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
        align-items: center;
    }

    .social-link:hover {
        transform: none;
    }

    .holo-console-container {
        grid-template-columns: 60px 1fr 60px;
        /* Thu nhỏ trụ đèn */
        gap: 20px;
    }
}

@media (max-width: 1024px) {
    .section-container {
        padding: 100px 40px;
    }

    .glass-navbar {
        /* Chỉ là một hình tròn chứa logo */
        width: 60px;
        height: 60px;
        padding: 0;
        gap: 0;
        border-radius: 50%;
        background: var(--panel-bg);
        border: 1px solid var(--border-color);
        backdrop-filter: blur(20px);
    }
    /* Ẩn menu và nút CTA đi */
    .nav-menu, #main-navbar .cta-button {
        display: none;
        opacity: 0;
        transform: scale(0.8);
        transition: opacity 0.3s, transform 0.3s;
    }

    /* Trạng thái khi mở rộng */
    .glass-navbar.expanded {
        width: 95%;
        max-width: 600px;
        border-radius: 50px;
        justify-content: space-evenly;
        padding: 5px;
    }
    /* Hiển thị lại menu và nút CTA khi mở rộng */
    .glass-navbar.expanded .nav-menu,
    .glass-navbar.expanded .cta-button {
        display: flex;
        opacity: 1;
        transform: scale(1);
        overflow: scroll;
        
    }
    .nav-menu { flex-direction: row; gap: 0; }

    .nav-link {
        padding: 8px 12px;
        font-size: 1.0rem;
    }
    .cta-button{
        padding: 8px 15px;
        font-size: 0.9rem;
    }

    .about-grid,
    .contact-grid,
    .footer-content {
        grid-template-columns: 1fr;
        /* Chuyển thành 1 cột */
        gap: 50px;
        text-align: center;
    }

    .about-image-spindle,
    .contact-details {
        margin: 0 auto;
        align-items: center;
    }

    .social-links {
        justify-content: center;
    }

    .holo-console-container {
        grid-template-columns: 80px 1fr 80px;
        gap: 20px;
    }

    .project-content-panel {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .project-image-container {
        max-width: 400px;
        margin: 0 auto;
    }

    .project-info .tags {
        justify-content: center;
    }
}

/* --- ĐIỆN THOẠI DI ĐỘNG (DƯỚI 768px) --- */
@media (max-width: 768px) {

    /* --- CÀI ĐẶT CHUNG CHO DI ĐỘNG --- */
    * {
        cursor: auto !important;
    }

    #cursor-comet,
    .trail {
        display: none !important;
    }

    .section-container {
        padding: 80px 20px;
    }

    .section-title {
        font-size: clamp(1.5rem, 7vw, 3.5rem);
    }

    /* --- NAVBAR --- */
    .nav-menu {
        display: none;
        /* Ẩn menu chữ để gọn hơn, chỉ giữ lại logo */
    }

    .nav-logo {
        padding: 8px 20px;
    }


    /* --- HERO --- */
    #stargate {
        width: 90vw;
        /* Chiếm 90% chiều rộng màn hình */
        height: 90vw;
        max-width: 350px;
        max-height: 350px;
    }

    #hero-title {
        font-size: 1.5rem;
    }

    #hero-subtitle {
        font-size: 0.9rem;
    }

    .hero-carousel-nav {
        display: none;
    }

    /* Ẩn nút điều hướng, có thể thêm vuốt sau */

    /* --- ABOUT --- */
    .about-grid {
        gap: 40px;
    }

    .spindle-viewer-about {
        width: 100%;
        max-width: 300px;
        height: auto;
        aspect-ratio: 350 / 450;
    }

    .about-text {
        height: auto;
        overflow: visible;
        padding: 30px;
    }

    /* --- AWARDS (QUAN TRỌNG) --- */
    #cosmic-thread-svg {
        display: none;
    }

    /* Ẩn Sợi Chỉ Vũ Trụ */

    .celestial-river-container {
        height: auto !important;
        /* Reset chiều cao JS */
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    .star-node {
        display: none;
    }

    .award-panel {
        position: static; /* RẤT QUAN TRỌNG: Reset định vị */
        width: 100%;
        opacity: 1;
        transform: none;
    }


    /* --- RESUME (QUAN TRỌNG) --- */
    .holo-console-container {
        grid-template-columns: 1fr;
        /* Chỉ còn 1 cột cho viewer */
    }

    .nav-pylon {
        display: none;
    }

    .holo-viewer {
        order: 1;
    }

    .page-counter-container {
        order: 2;
        margin-top: 0;
        display: flex;
        align-items: center;
        gap: 20px;
    }

    .mobile-nav-btn {
        display: block;
        /* Hiện nút mobile */
    }

    /* Thêm nút điều khiển mới cho di động */
    .page-counter-container::before,
    .page-counter-container::after {
        content: '<';
       font-family: 'Exo 2', sans-serif;
        display: block;
        width: 40px;
        height: 40px;
        line-height: 40px;
        text-align: center;
        border: 1px solid var(--border-color);
        border-radius: 50%;
        color: var(--hud-cyan);
    }

    .page-counter-container::after {
        content: '>';
    }

    /* Gán sự kiện click cho các nút giả này bằng JS */
    #prev-resume-btn-mobile {
        display: block;
    }

    #next-resume-btn-mobile {
        display: block;
    }


    /* --- SKILLS --- */
    .skill-stream-container {
        -webkit-mask-image: none;
        mask-image: none;
        gap: 20px;
    }

    .skill-item {
        font-size: 2rem;
        padding: 0 20px;
    }

    /* --- CERTIFICATIONS & KNOWLEDGE HUB --- */
    .cert-grid,
    .knowledge-grid {
        grid-template-columns: 1fr;
        /* Luôn là 1 cột */
    }

    /* --- PROJECTS --- */
    .project-slide {
        padding: 15px;
        aspect-ratio: 9 / 12;
        /* Tỷ lệ dọc cho di động */
    }

    .project-content-panel {
        grid-template-columns: 1fr;
    }

    .project-info h3 {
        font-size: 1.8rem;
    }

    /* --- MODALS --- */
    .modal {
        padding: 20px;
    }

    .modal-content,
    #award-modal-content,
    #project-modal-content {
        grid-template-columns: 1fr;
        max-width: 90vw;
        max-height: 85vh;
        overflow-y: auto;
    }

    #award-modal-content,
    #project-modal-content,
    #skill-modal-content,
    .knowledge-modal-info {
        padding: 30px;
    }

    .modal-close {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        line-height: 35px;
        font-size: 1.5rem;
    }
    /* Phần Certs */
    .glass-navbar.expanded {
        width: 95%;
        max-width: 600px;
        border-radius: 50px;
        justify-content: space-evenly;
        padding: 5px;
    }
    .nav-link {
        padding: 8px 12px;
        font-size: 0.6rem;
    }
}
/* =================================================================== */
/* --- SỬA LỖI HIỂN THỊ CHO KNOWLEDGE HUB (TRANG CHỦ) --- */
/* =================================================================== */

/* 1. Canh giữa và tạo khoảng cách cho nút "View All" */
.view-all-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 60px; /* Tạo khoảng cách thẩm mỹ với lưới ở trên */
}

/* 2. Khử gạch chân và đặt lại màu chữ cho toàn bộ card */
a.knowledge-card {
    text-decoration: none !important; /* Quan trọng: Bỏ gạch chân */
}

/* 3. Khôi phục màu chữ chính xác cho tiêu đề và mô tả */
.knowledge-card .knowledge-card-title {
    color: var(--text-primary); /* Lấy lại màu chữ trắng */
}

.knowledge-card .knowledge-card-excerpt {
    color: var(--text-secondary); /* Lấy lại màu chữ xám */

    /* 4. Đảm bảo dấu "..." (ellipsis) hiển thị */
    -webkit-line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.6;
    word-break: break-word; /* Hỗ trợ ngắt dòng nếu cần */
}

/* 5. Tăng cường hiệu ứng hover cho card */
a.knowledge-card:hover {
    border-color: var(--hud-cyan); /* Thêm viền sáng khi hover */
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7);
}
/* =================================================================== */
/* --- SỬA LỖI RESPONSIVE CHO HOLOGRAPHIC ARCHIVE (PHONE/TABLET) --- */
/* =================================================================== */

/* Áp dụng cho màn hình tablet nhỏ và điện thoại */
@media (max-width: 768px) {

    /* 1. Thu nhỏ các nút Filter (giảm padding và cỡ chữ) */
    .cert-filters {
        gap: 10px; /* Giảm khoảng cách */
        flex-wrap: wrap; /* Cho phép các nút tự xuống dòng */
    }

    .filter-btn {
        padding: 8px 18px; /* Giảm padding đáng kể */
        font-size: 0.9rem; /* Giảm cỡ chữ */
    }

    /* * 2. Sửa lỗi hiển thị 1 CỘT (Vấn đề chính của bạn)
     * Ghi đè quy tắc cũ (.cert-grid { grid-template-columns: 1fr; })
     */
    .cert-grid {
        /* Đổi từ 1 cột thành 2 cột */
        grid-template-columns: repeat(3, 1fr);
        gap: 20px; /* Giảm khoảng cách giữa các ảnh */
    }

    /* * 3. (Tùy chọn) Ép ảnh thành hình vuông trên di động
     * Trông sẽ gọn gàng hơn khi hiển thị 2 cột.
     */
    .cert-item {
        aspect-ratio: 1 / 1; /* Giữ tỷ lệ 1:1 (vuông) */
    }
}