/* ==========================================================================
   DINH DANG CSS CHO TRANG KY NANG & DU AN (KYNANG.CSS)
   ========================================================================== */

/* Cho phep cuon trang tu nhien tren moi man hinh */
body, html {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    height: auto !important;
    min-height: 100vh;
}

/* Thanh cuon dep phong cach kinh mo */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: rgba(3, 0, 20, 0.9);
}
::-webkit-scrollbar-thumb {
    background: rgba(168, 85, 247, 0.35);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(168, 85, 247, 0.65);
}

.page-container {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 110px 20px 60px;
    position: relative;
    z-index: 10;
    box-sizing: border-box;
}

.skills-card {
    background: rgba(10, 15, 30, 0.82);
    backdrop-filter: blur(35px);
    -webkit-backdrop-filter: blur(35px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 28px;
    width: 100%;
    max-width: 860px;
    padding: 38px 36px;
    margin: auto 0;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(0, 242, 254, 0.2);
    animation: fadeInSkills 1s cubic-bezier(0.16, 1, 0.3, 1);
    transform-style: preserve-3d;
    transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes fadeInSkills {
    from { opacity: 0; transform: translateY(30px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.header-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 242, 254, 0.1);
    border: 1px solid rgba(0, 242, 254, 0.3);
    color: #00f2fe;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.section-block {
    margin-bottom: 30px;
}

.section-block h3 {
    font-size: 1.15rem;
    color: #00f2fe;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Luoi ky nang va thanh phan tram */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 16px;
}

.skill-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 16px 18px;
    transition: all 0.3s ease;
}

.skill-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(0, 242, 254, 0.4);
    transform: translateY(-2px);
}

.skill-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.92rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.text-cyan { color: #00f2fe; }
.text-pink { color: #ff007f; }
.text-yellow { color: #f59e0b; }
.text-green { color: #00ff88; }

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #00f2fe, #a855f7);
    border-radius: 10px;
    animation: fillProgress 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.3s;
}

@keyframes fillProgress {
    to { width: var(--p); }
}

/* Luoi cac the du an */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 18px;
}

.project-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.project-box:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(168, 85, 247, 0.5);
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

.project-tag {
    align-self: flex-start;
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(168, 85, 247, 0.4);
    color: #c084fc;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.74rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.project-box h4 {
    font-size: 1.15rem;
    color: #ffffff;
    margin-bottom: 8px;
}

.project-box p {
    font-size: 0.86rem;
    color: #94a3b8;
    line-height: 1.5;
    margin-bottom: 16px;
}

.tech-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.tech-chips span {
    background: rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.76rem;
    font-weight: 600;
}

.project-link {
    color: #00f2fe;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.project-link:hover {
    color: #38bdf8;
    gap: 10px;
}

/* Hang nut hanh dong chuyen trang */
.action-row {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 30px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.btn-primary {
    background: linear-gradient(135deg, #00f2fe, #38bdf8);
    color: #030014;
    box-shadow: 0 0 25px rgba(0, 242, 254, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 0 35px rgba(0, 242, 254, 0.7);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #00f2fe;
    transform: translateY(-2px);
}

/* Tuong thich di dong chong tran tuyet doi */
@media (max-width: 640px) {
    .page-container {
        padding: 85px 12px 40px;
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }
    .skills-card {
        padding: 24px 16px;
        border-radius: 22px;
        max-width: 100%;
    }
    .hero-name {
        font-size: 1.6rem;
    }
    .skills-grid, .projects-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .skill-item, .project-box {
        padding: 16px 14px;
    }
}
