@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Roboto:wght@400;500;600;700&family=Noto+Sans:wght@400;500;600;700&family=Noto+Sans+JP:wght@400;500;600;700&display=swap');

@font-face {
    font-family: 'Brasika';
    src: url('../font/DFVN Brasika Display.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

/* Vietnamese font support */
html[data-language="vi"],
html[lang="vi"] {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

html[data-language="vi"] body,
html[lang="vi"] body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

html[data-language="vi"] h1,
html[data-language="vi"] h2,
html[data-language="vi"] h3,
html[data-language="vi"] h4,
html[data-language="vi"] h5,
html[data-language="vi"] h6,
html[lang="vi"] h1,
html[lang="vi"] h2,
html[lang="vi"] h3,
html[lang="vi"] h4,
html[lang="vi"] h5,
html[lang="vi"] h6 {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

/* Keep Brasika font for these specific elements */
html[data-language="vi"] .logo,
html[lang="vi"] .logo,
html[data-language="vi"] .page-section .page-title,
html[lang="vi"] .page-section .page-title,
html[data-language="vi"] .contact-page .page-title,
html[lang="vi"] .contact-page .page-title,
html[data-language="vi"] .about-page .page-title,
html[lang="vi"] .about-page .page-title,
html[data-language="vi"] .portfolio-stack h1,
html[lang="vi"] .portfolio-stack h1,
html[data-language="vi"] .portfolio-stack h2,
html[lang="vi"] .portfolio-stack h2,
html[data-language="vi"] .portfolio-stack h3,
html[lang="vi"] .portfolio-stack h3 {
    font-family: 'Brasika', sans-serif !important;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;

    background: #f5f5f5;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 10px 8%;
    box-sizing: border-box;
}

body {
    padding-top: 50px;
}

@media (max-width: 768px) {

    .header {
        padding: 12px 16px 12px 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        background: #f5f5f5;
    }

    .logo {
        font-size: 18px;
        width: 100%;
        padding-left: 16px;
        margin: 0;
    }

    nav {
        display: flex;
        gap: 10px;
        flex-wrap: nowrap;
        width: 100%;
        margin: 0;
        padding-left: 16px;
        margin-bottom: 0;
        font-size: 13px;
        justify-content: flex-start;
    }

    nav a {
        white-space: nowrap;
        font-size: 13px;
        padding: 0 6px;
    }

    .nav-dropdown > a {
        gap: 4px;
    }

    body {
        padding-top: 140px;
    }

    /* Mobile dropdown flows inline instead of floating */
    .nav-dropdown {
        width: auto;
    }

    .dropdown-menu {
        position: static;
        min-width: 0;
        margin-top: 0;
        box-shadow: none;
        background: transparent;
        padding: 0;

        max-height: 0;
        overflow: hidden;
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: max-height 0.3s ease;
    }

    .nav-dropdown.open .dropdown-menu {
        max-height: 500px;
        transform: none;
    }

    .dropdown-menu a {
        padding: 6px 0 6px 14px;
        font-size: 14px;
    }

    .dropdown-menu a:hover {
        background: transparent;
        color: #5a73e8;
    }
}

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

img {
    max-width: 100%;
    display: block;
}

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #f8f6f2, #eef1ff);
    color: #222;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

html[data-language="vi"] body,
html[lang="vi"] body {
    font-family: 'Roboto', sans-serif !important;
}

/* HEADER */
header {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 30px clamp(20px, 4vw, 50px);
}

nav {
    display: flex;
    gap: clamp(16px, 3vw, 40px);
    flex-wrap: wrap;
    justify-content: flex-end;
}

.logo {
    font-family: 'Brasika';
    font-size: 26px;
    font-weight: 800;
    color: #f58c8c;
    padding-left: 0;
}

nav a {
    text-decoration: none;
    color: #222;
    font-weight: 500;
    padding-right: 0;
    white-space: nowrap;
}

nav a:hover {
    color: #5a73e8;
}

/* ACTIVE NAV STATE */
nav a.active,
.nav-dropdown > a.active {
    color: #5a73e8;
    font-weight: 600;
}

/* WORK DROPDOWN */
.nav-dropdown {
    position: relative;
}

.nav-dropdown > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.nav-dropdown > a::after {
    content: "";
    width: 6px;
    height: 6px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #f5f5f5;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    padding: 8px 0;
    margin-top: 12px;

    display: flex;
    flex-direction: column;

    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    z-index: 10000;
}

.dropdown-menu a {
    padding: 10px 20px;
    white-space: nowrap;
    font-weight: 500;
}

.dropdown-menu a:hover {
    background: #eef1ff;
}

/* Desktop: open on hover */
@media (min-width: 769px) {
    .nav-dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-dropdown:hover > a::after {
        transform: rotate(-135deg);
    }
}

/* Mobile: open when toggled via class */
.nav-dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown.open > a::after {
    transform: rotate(-135deg);
}

/* HERO */
.hero {
    display: grid;
    grid-template-columns: minmax(360px, 0.85fr) minmax(0, 1.15fr);
    align-items: center;
    min-height: 90vh;
    margin: 0 auto;
    max-width: 1360px;
    gap: clamp(12px, 2vw, 32px);
    padding: 0 clamp(20px, 3vw, 44px) 20px;
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    max-width: 640px;
    justify-self: start;
    transform: translateY(0px);
}

.portfolio-stack {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
}

.portfolio-stack h1,
.portfolio-stack h2,
.portfolio-stack h3 {
    font-family: 'Brasika';
    font-size: clamp(56px, 5.8vw, 104px);
    line-height: 1.0;
    margin: 0;
    white-space: nowrap;
}

.portfolio-stack h1 {
    color: #f58c8c;
}

.portfolio-stack h2 {
    color: transparent;
    -webkit-text-stroke: 2px #7c8df0;
    margin-top: 18px;
}

.portfolio-stack h3 {
    color: transparent;
    -webkit-text-stroke: 2px #7c8df0;
    margin-top: 18px;
}

.description {
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

.hero-highlight {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 8px 0;
}

.hero-highlight .role {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: #5a73e8;
}

.hero-highlight .skills {
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    color: #666;
}

.btn {
    display: inline-flex;
    justify-content: center;
    width: 100%;
    max-width: 640px;

    padding: 12px 30px;
    background: #5a73e8;
    color: white;

    text-decoration: none;
    border-radius: 30px;
    text-align: center;
    font-weight: bold;
    transition: 0.3s;
}

.btn:hover {
    background: #f58c8c;
    font-weight: bold;
}

.hero-img {
    justify-self: center;
    align-self: center;
    max-width: 460px;
    width: 100%;
    transform: translate(8px, 0px);
}

.hero-img img {
    width: 100%;
    height: auto;
    object-fit: contain;
    margin-top: 15px;
}

footer {
    padding: 12px clamp(20px, 4vw, 50px) 16px;
    text-align: center;
    color: rgba(34, 34, 34, 0.72);
    font-size: 13px;
    margin-top: auto;
    width: 100%;
}

/* PAGE GENERAL */
.page-section {
    padding: 50px 100px 0px;
}

.page-section .page-title {
    font-family: 'Brasika';
    font-size: 60px;
    margin-bottom: 16px;
    color: #5a73e8;
    transform: translateY(-28px);
    margin-top: 0px;
}

.contact-page {
    padding: 50px 100px 12px;
}

.contact-page .page-title {
    margin-bottom: 16px;
    transform: translateY(-28px);
}

.about-page {
    padding: 50px 100px 12px;
}

.about-page .page-title {
    margin-bottom: 16px;
    transform: translateY(-28px);
}

/* ABOUT */
.about-container {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 36px;
    align-items: start;
}

.about-text p {
    margin-bottom: 20px;
}

.about-highlight {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 24px;
}

.about-highlight .role {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: #5a73e8;
}

.about-highlight .skills {
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    color: #666;
}

.skills ul {
    list-style: none;
    padding: 0;
}

.skills li {
    margin-bottom: 10px;
    background: #f58c8c;
    color: white;
    padding: 8px 15px;
    display: inline-block;
    border-radius: 20px;
    margin-right: 10px;
}

.about-img img {
    width: min(100%, 840px);
    border-radius: 0;
    box-shadow: none;
    filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.10));
    height: auto;
    object-fit: contain;
    transform: translate(-30px, -150px) scale(1.18);
    transform-origin: top center;
}

/* PROJECTS */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.project-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    transition: 0.3s;
}

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

.project-card h3 {
    color: #f58c8c;
}

/* CONTACT */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info h2 {
    margin-bottom: 20px;
}

.info-item {
    margin-bottom: 20px;
}

.social-links a {
    display: inline-block;
    margin-right: 15px;
    text-decoration: none;
    color: #5a73e8;
    font-weight: 500;
}

.social-links a:hover {
    color: #f58c8c;
}

.email-link {
    text-decoration: none;
    color: #5a73e8;
    font-weight: 500;
    transition: color 0.3s ease;
}

.email-link:hover {
    color: #f58c8c;
}

/* FORM */
.contact-form form {
    display: flex;
    flex-direction: column;
}

.contact-form input,
.contact-form textarea {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 15px;
    border: 1px solid #ddd;
    font-family: 'Poppins', sans-serif;
}

html[data-language="vi"] .contact-form input,
html[data-language="vi"] .contact-form textarea,
html[lang="vi"] .contact-form input,
html[lang="vi"] .contact-form textarea {
    font-family: 'Roboto', sans-serif !important;
}

.contact-form button {
    padding: 15px;
    border: none;
    border-radius: 30px;
    background: #5a73e8;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
}

.contact-form button:hover {
    background: #f58c8c;
}

@media (max-width: 1024px) {
    .hero {
        min-height: auto;
        padding: 0 clamp(20px, 3vw, 40px) 36px;
        gap: 28px;
    }

    .hero-text {
        max-width: 100%;
        gap: 20px;
        transform: none;
    }

    .hero-img img {
        width: min(100%, 460px);
    }

    .page-section {
        padding: 64px clamp(20px, 4vw, 48px);
    }

    .contact-page {
        padding: 24px clamp(20px, 4vw, 48px) 12px;
    }

    .contact-page .page-title {
        margin-bottom: 14px;
        transform: translateY(-22px);
    }

    .about-page {
        padding: 24px clamp(20px, 4vw, 48px) 12px;
    }

    .about-page .page-title {
        margin-bottom: 14px;
        transform: translateY(-22px);
    }

    .about-container,
    .contact-container {
        gap: 40px;
    }

    .projects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    header {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 14px;
        padding: 22px 16px;
    }

    nav {
        justify-content: center;
        gap: 14px 22px;
    }

    .logo {
        font-size: 24px;
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 24px 16px 44px;
        text-align: center;
    }

    .hero-text {
        width: 100%;
        align-items: center;
        text-align: center;
        margin: 0 auto;
        transform: none;
    }

    .portfolio-stack {
        align-items: center;
        text-align: center;
    }

    .portfolio-stack h1,
    .portfolio-stack h2,
    .portfolio-stack h3 {
        font-size: clamp(40px, 12vw, 72px);
        white-space: normal;
        width: 100%;
        text-align: center;
    }

    .description {
        max-width: 36ch;
    }

    .btn {
        align-self: center;
        width: 100%;
        max-width: 360px;
    }

    .hero-img {
        justify-self: center;
        transform: none;
    }

    .hero-img img {
        width: min(92vw, 420px);
    }

    .page-section {
        padding: 16px 16px;
    }

    .contact-page {
        padding: 16px 16px 10px;
    }

    .page-title {
        font-size: clamp(34px, 8vw, 52px);
        margin-bottom: 28px;
    }

    .contact-page .page-title {
        margin-bottom: 12px;
        transform: translateY(-16px);
    }

    .about-page {
        padding: 16px 16px 10px;
    }

    .about-page .page-title {
        margin-bottom: 12px;
        transform: translateY(-16px);
    }

    .about-container,
    .contact-container,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .about-img {
        justify-self: center;
    }

    .about-img img {
        width: min(100%, 560px);
        transform: translateY(-30px) scale(1.02);
    }

    .skills li {
        margin-right: 8px;
        margin-bottom: 8px;
    }

    .social-links {
        display: flex;
        flex-wrap: wrap;
        gap: 12px 18px;
    }

    .social-links a {
        margin-right: 0;
    }

    .project-card {
        padding: 24px;
    }
}

/* CORE EXPERTISE */
.core-expertise {
    margin-top: 60px;
    margin-bottom: 60px;
}

.core-expertise h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 40px;
    letter-spacing: -0.5px;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
}

.expertise-card {
    padding: 32px;
    border: none;
    border-radius: 12px;
    background: #ffffff;
    border-left: 4px solid #5a73e8;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.expertise-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.expertise-card h4 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 16px 0;
    color: #2d2d2d;
    letter-spacing: -0.3px;
}

.expertise-card p {
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
    color: #555;
}

/* HOW I WORK */
.how-i-work {
    margin-top: 60px;
    margin-bottom: 60px;
}

.how-i-work h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 40px;
    letter-spacing: -0.5px;
}

.how-i-work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 28px;
}

.how-i-work-card {
    padding: 32px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.how-i-work-card:hover {
    box-shadow: 0 8px 16px rgba(90, 115, 232, 0.12);
    border-color: #5a73e8;
}

.how-i-work-card h4 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: #5a73e8;
    letter-spacing: -0.3px;
}

.how-i-work-card p {
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
    color: #555;
    text-align: left;
}

/* CAREER ASPIRATION */
.career-aspiration {
    margin-top: 60px;
    margin-bottom: 60px;
    padding: 40px;
    background: linear-gradient(135deg, #f5f5f5 0%, #fafafa 100%);
    border-left: 4px solid #5a73e8;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 250px;
}

.career-aspiration h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
    color: #5a73e8;
}

.career-aspiration p {
    font-size: 16px;
    line-height: 1.8;
    margin: 0;
    color: #555;
}

.education {
    margin-top: 60px;
    margin-bottom: 60px;
}

.education h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 40px;
    letter-spacing: -0.5px;
}

.education-row {
    display: grid;
    /* <-- DÒNG QUAN TRỌNG NHẤT */
    grid-template-columns: 1fr 160px;
    gap: 24px;
    align-items: center;
    margin-bottom: 24px;
}

.education-row.reverse {
    grid-template-columns: 160px 1fr;
    /* cột logo (160px) ra trước */
}

.education-row.reverse .education-content {
    grid-column: 2;
    /* đẩy nội dung sang cột 2 (bên phải) */
}

.education-row.reverse .education-logo {
    grid-column: 1;
    /* đẩy logo sang cột 1 (bên trái) */
    grid-row: 1;
}

.education-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.education-logo img {
    width: 140px;
    /* trước là 180px -> thu nhỏ cho cân đối */
    height: auto;
    /* chiều cao tự co theo chiều rộng, không méo ảnh */
    object-fit: contain;
}

.education-content {
    background: #fff;
    padding: 28px 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    width: 100%;
}

.education-content h4 {
    font-weight: bold;
    font-size: 18px;
}
.education h3 {
    font-size: 40px;
    font-weight: 700;
}
/* Mobile */
@media (max-width: 768px) {

    .education-row,
    .education-row.reverse {
        display: flex;
        flex-direction: column;
        /* xếp dọc: logo trên, chữ dưới */
        align-items: center;
        /* căn giữa theo chiều ngang */
        gap: 16px;
        text-align: center;

        /* Biến cả hàng thành 1 thẻ trắng */
        background: #fff;
        /* nền trắng */
        padding: 28px 24px;
        /* đệm bên trong cho thoáng */
        border-radius: 20px;
        /* bo góc tròn */
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
        /* đổ bóng nhẹ */
    }

    .education-logo {
        order: 1 !important;
    }

    .education-content {
        order: 2 !important;
        /* nội dung xuống dưới logo */
        width: 100%;

        background: none;
        /* bỏ nền trắng riêng */
        padding: 0;
        /* bỏ đệm riêng */
        border-radius: 0;
        /* bỏ bo góc riêng */
        box-shadow: none;
        /* bỏ bóng riêng */
    }

    .education-logo img {
        width: 110px;
        /* trước là 90px */
        height: auto;
        /* trước là 90px cố định -> gây méo ảnh */
    }

    .education-content h4 {
        font-weight: bold;
        font-size: 18px;
    }
    .education h3 { font-size: 30px; font-weight: 700; }
}

/* ===================================
   SKILLS SECTION
=================================== */

.skills-section {
    margin-top: 60px;
}

.skills-section h3 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #111;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.skills-block {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.04);
}

.skills-block h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #111;
}

.skills-block ul {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.skills-block li {
    background: #ffe5ee;
    color: #c24b78;
    border: 1px solid #ffd0df;
    border-radius: 999px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    transition: all .3s ease;
}

.skills-block li:hover {
    transform: translateY(-2px);
    background: #ffd9e8;
}


/* ===================================
   SOFTWARE SECTION
=================================== */

.software {
    margin-top: 60px;
    margin-bottom: 60px;
}

.software h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 40px;
    color: #111;
    letter-spacing: -0.5px;
}

.software-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 28px;
}

.software-category {
    padding: 0;
}

.software-category h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #5a73e8;
    letter-spacing: -0.3px;
}

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

.tool-tag {
    display: inline-block;
    padding: 8px 14px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    font-size: 14px;
    color: #555;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tool-tag:hover {
    background: #f58c8c;
    color: #2d2d2d;
    border-color: #f58c8c;
}

.software-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.software-list li {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 18px;
    padding: 20px;
    min-height: 120px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
    transition: .3s ease;
}

.software-list li:hover {
    transform: translateY(-4px);
}

.software-list img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-bottom: 12px;
}

.software-list span {
    display: block;
    width: 100%;

    font-size: 15px;
    font-weight: 500;
    color: #333;

    white-space: normal;
    word-break: break-word;
    overflow: visible;
}


/* ===================================
   EXPERIENCE
=================================== */

.experience {
    margin-top: 60px;
    margin-bottom: 60px;
}

.experience h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 40px;
    letter-spacing: -0.5px;
}

.experience-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.exp-row {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 30px;
}

.exp-time {
    font-weight: 600;
    color: #888;
}

.exp-info h4 {
    margin: 0 0 8px;
    font-size: 18px;
    color: #111;
}

.exp-info p {
    margin: 0;
    color: #666;
    line-height: 1.7;
}
.skills-block h4 {
        margin-top:0px;
    }

/* ===================================
   MOBILE
=================================== */

@media (max-width: 768px) {

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .skills-block h4 {
        margin-top:0px;
    }

    .software-list {
        grid-template-columns: repeat(3, 1fr);
    }

    .exp-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .skills-section h3,
    .software h3,
    .experience h3 {
        font-size: 30px;
    }

    .skills-block {
        padding: 22px;
    }

    .skills-block li {
        font-size: 13px;
        padding: 8px 14px;
    }

    .software-list img {
        width: 40px;
        height: 40px;
    }
}
/*=========================
      EXPERIENCE
=========================*/

.experience{
    margin-top:90px;
}

.experience h3{
    font-size:40px;
    margin-bottom:45px;
    color: #000;
}

.experience-list{
    display:flex;
    flex-direction:column;
    gap:35px;
}

.experience-card{

    display:grid;
    grid-template-columns:240px 1fr;

    gap:40px;

    background:#fff;

    padding:40px;

    border-radius:28px;

    box-shadow:0 10px 35px rgba(0,0,0,.06);
}

.experience-date{

    color:#f48c8c;

    font-weight:600;

    font-size:18px;

    line-height:1.6;
}

.experience-content h4{

    font-size:30px;

    color:#5a73e8;

    margin-bottom:8px;
    margin-top: 0px;
}

.experience-content h5{

    font-size:22px;

    margin-bottom:18px;

    color:#222;
}

.experience-content p{

    font-size:18px;

    line-height:1.8;

    margin-bottom:20px;
}

.experience-content ul{

    display:flex;

    flex-wrap:wrap;

    gap:12px;

    list-style:none;

    padding:0;
}

.experience-content li{

    background:#fde6e6;

    color:#444;

    padding:10px 18px;

    border-radius:999px;

    font-size:15px;

    font-weight:500;
}

/*=========================
        MOBILE
=========================*/

@media (max-width:768px){

.experience{

    margin-top:70px;
}

.experience h3{

    font-size:30px;

    margin-bottom:30px;
}

.experience-card{

    grid-template-columns:1fr;

    gap:18px;

    padding:28px;
}

.experience-date{

    font-size:16px;
}

.experience-content h4{

    font-size:24px;
    margin-top: 0px;
}

.experience-content h5{

    font-size:18px;
}

.experience-content p{

    font-size:16px;
}

.experience-content li{

    font-size:14px;

    padding:8px 14px;
}

}
/*========================
        WORK PAGE
========================*/

.page-subtitle{

    margin:0 auto 30px;
    text-align:center;
    color:#666;
    line-height:1.8;
    font-size:18px;
}

/*========================
    COMPANY SECTION
========================*/

.company-section{
    margin-bottom:100px;
}

.company-header{
    margin-bottom:40px;
    padding-bottom:20px;
    border-bottom:2px solid #ececec;
}

.company-header h2{

    font-family:'Poppins', sans-serif;

    font-size:40px;

    font-weight:700;

    color: #ed908b;

    margin:0 0 10px;

    letter-spacing:0.5px;

}

html[data-language="vi"] .company-header h2,
html[lang="vi"] .company-header h2 {
    font-family: 'Roboto', sans-serif !important;
}

.company-header span{

    display:block;

    font-size:18px;

    font-weight:500;

    color:#888;

}

/*========================
        GRID
========================*/

.work-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));

    gap:35px;

}

/*========================
        CARD
========================*/

.work-card{

    background:#fff;

    border-radius:28px;

    padding:38px;

    box-shadow:0 12px 30px rgba(0,0,0,.05);

    display:flex;

    flex-direction:column;

    justify-content:space-between;

    transition:.3s;

}

.work-card:hover{

    transform:translateY(-8px);

}

.work-card h3{

    font-size:30px;

    color:#5a73e8;

    margin:0 0 20px;

    line-height:1.35;

    font-weight:700;

}

.work-card p{

    color:#555;

    line-height:1.9;

    margin-bottom:35px;

    flex:1;

}

.work-card a{

    text-decoration:none;

    color:#5a73e8;

    font-weight:600;

    transition:.3s;

}

.work-card a:hover{

    color:#f28a8a;

    padding-left:8px;

}

.work-card .capabilities{

    display:flex;

    flex-wrap:wrap;

    gap:8px;

    margin:24px 0;

}

.work-card .capabilities span{

    display:inline-block;

    font-size:12px;

    background:#f0f2ff;

    color:#5a73e8;

    padding:6px 12px;

    border-radius:6px;

    font-weight:500;

}

/*========================
        MOBILE
========================*/

@media (max-width:768px){


.page-subtitle{

    font-size:16px;

    margin-bottom:30px;

}

.company-section{

    margin-bottom:70px;

}

.company-header{

    margin-bottom:30px;

    padding-bottom:15px;
    

}

.company-header h2{

    font-size:30px;
    color: #ed908b;
}

.company-header span{

    font-size:15px;

}

.work-grid{

    grid-template-columns:1fr;

    gap:20px;

}

.work-card{

    padding:28px;

}

.work-card h3{

    font-size:24px;

}

.work-card p{

    font-size:15px;

}

}
/*==========================
CASE STUDY
==========================*/

.case-hero{

max-width:1400px;

margin:auto;

padding:80px 40px;

display:grid;

grid-template-columns:1fr 1fr;

gap:70px;

align-items:center;

}

.case-company{

display:inline-block;

font-size:18px;

font-weight:600;

color:#f28a8a;

margin-bottom:15px;

}

.case-info h1{

font-size:60px;

margin-bottom:25px;

}

.case-info p{

line-height:2;

color:#666;

}

.case-image img{

width:100%;

border-radius:25px;

box-shadow:0 20px 50px rgba(0,0,0,.08);

}

.case-section{

max-width:1400px;

margin:90px auto;

padding:0 40px;

}

.case-section h2{

font-size:40px;

margin-bottom:40px;

}

.responsibility-grid{

display:grid;

grid-template-columns:repeat(auto-fit,minmax(260px,1fr));

gap:30px;

}

.responsibility-card{

background:white;

padding:35px;

border-radius:25px;

box-shadow:0 10px 30px rgba(0,0,0,.05);

}

.responsibility-card h3{

color:#5a73e8;

margin-bottom:15px;

}

.tool-list{

display:flex;

flex-wrap:wrap;

gap:15px;

}

.tool-list span{

padding:10px 22px;

border-radius:999px;

background:#fde8e8;

}

.gallery{

display:grid;

grid-template-columns:repeat(3,1fr);

gap:25px;

}

.gallery img{

width:100%;

border-radius:20px;

}

.next-project{

text-align:center;

margin:100px 0;

}

.next-project a{

font-size:22px;

font-weight:600;

text-decoration:none;

color:#5a73e8;

}

.next-project a:hover{

color:#f28a8a;

}



/*==========================
MOBILE
==========================*/

@media(max-width:768px){

.case-hero{

grid-template-columns:1fr;

padding:40px 25px;

}

.case-info h1{

font-size:42px;

}

.case-section{

padding:0 25px;

margin:60px auto;

}

.case-section h2{

font-size:30px;

}

.gallery{

grid-template-columns:1fr;

}

}

/* ================= LANGUAGE TOGGLE ================= */

.language-toggle {
    display: flex;
    gap: 0;
    background: #fff;
    border-radius: 6px;
    padding: 2px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.language-toggle button {
    background: transparent;
    border: none;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #888;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.language-toggle button.active {
    background: #5a73e8;
    color: #fff;
    border-radius: 4px;
}

.language-toggle button:hover:not(.active) {
    color: #5a73e8;
}

@media (max-width: 768px) {
    .language-toggle {
        gap: 4px;
        padding: 3px;
    }

    .language-toggle button {
        padding: 4px 10px;
        font-size: 11px;
    }
}
.tool-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border: 1px solid #e8e1d7;
    border-radius: 999px;
    background: #faf9f7;
    color: #181615;
    font-size: 15px;
    font-weight: 500;
    transition: all .3s ease;
}

.tool-tag:hover {
    background: #f4d6dc;
    border-color: #f4d6dc;
    box-shadow: 0 8px 20px rgba(244, 214, 220, 0.35);
    transform: translateY(-2px);
}

/* ================= LIGHTBOX ================= */

.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
    display: flex;
    opacity: 1;
}

.lightbox-container {
    position: relative;
    background: white;
    border-radius: 12px;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.lightbox-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    border-radius: 8px;
    cursor: grab;
    user-select: none;
}

.lightbox-img:active {
    cursor: grabbing;
}

.lightbox-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 12px;
    z-index: 10001;
}

.lightbox-btn {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.95);
    color: #222;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.lightbox-btn:hover {
    background: white;
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.lightbox-info {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
    z-index: 10001;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #222;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10001;
}

.lightbox-nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.lightbox-nav.prev {
    left: 20px;
}

.lightbox-nav.next {
    right: 20px;
}

.clickable-img {
    cursor: pointer;
    transition: all 0.3s ease;
}

.clickable-img:hover {
    opacity: 0.85;
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .lightbox-container {
        max-width: 95vw;
        max-height: 85vh;
    }

    .lightbox-controls {
        top: 10px;
        right: 10px;
        gap: 8px;
    }

    .lightbox-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .lightbox-nav.prev {
        left: 10px;
    }

    .lightbox-nav.next {
        right: 10px;
    }

    .lightbox-info {
        bottom: 10px;
        padding: 6px 12px;
        font-size: 12px;
    }

    /* Mobile - Core Expertise */
    .core-expertise {
        margin-top: 40px;
        margin-bottom: 40px;
    }

    .core-expertise h3 {
        font-size: 22px;
    }

    .expertise-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .expertise-card {
        padding: 24px;
    }

    .expertise-card h4 {
        font-size: 16px;
    }

    .expertise-card p {
        font-size: 14px;
    }

    /* Mobile - How I Work */
    .how-i-work {
        margin-top: 40px;
        margin-bottom: 40px;
    }

    .how-i-work h3 {
        font-size: 22px;
    }

    .how-i-work-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .how-i-work-card {
        padding: 24px;
    }

    .how-i-work-card h4 {
        font-size: 16px;
    }

    .how-i-work-card p {
        font-size: 14px;
    }

    /* Mobile - Career Aspiration */
    .career-aspiration {
        margin-top: 40px;
        margin-bottom: 40px;
        padding: 24px;
    }

    .career-aspiration h3 {
        font-size: 22px;
        margin-bottom: 16px;
    }

    .career-aspiration p {
        font-size: 14px;
        line-height: 1.7;
    }
}