@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:ital,wght@0,100..900;1,100..900&family=Geist:wght@100..900&family=Outfit:wght@100..900&display=swap');

/* ===== FONT ===== */
@font-face {
    font-family: ClashDisplay;
    src: url(font/ClashDisplay.ttf);
    font-display: swap; /* Show text immediately with fallback while font loads */
}

/* ===== ROOT & RESET ===== */
:root {
    font-family: Geist, sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    line-height: 1.5;
    scroll-behavior: smooth;
    color-scheme: light dark;
    color: #eae5ec;
    background-color: var(--backgroundColor);
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    user-select: none;
    --accentColor: #c2a4ff;
    --backgroundColor: #050405;
    --vh: 100vh;
    --vh: 100svh;
    --cWidth: calc(100% - 30px);
    --cMaxWidth: 1920px;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: ClashDisplay, sans-serif;
}

body {
    margin: 0;
    height: auto;
    background-color: #000;
    flex-grow: 1;
    max-width: 100vw;
    overflow-x: hidden;
    /* NOTE: overflow:hidden removed – it blocks scroll on mobile */
}

a {
    color: inherit;
    text-decoration: inherit;
}

a:hover {
    color: var(--accentColor);
}

main {
    opacity: 1;
    transition: .3s;
}

.main-active {
    opacity: 0;
    animation: fadeIn 1s 1 forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.main-body {
    max-width: 100vw;
    overflow-x: hidden;
}

.container-main {
    width: 100%;
    margin: auto;
    position: relative;
}

.section-container {
    width: 1300px;
    max-width: calc(100% - 30px);
    margin-left: auto;
    margin-right: auto;
}

.title, .para {
    font-kerning: none;
    text-rendering: optimizeSpeed;
    transform: translateZ(0);
}

/* ===== PERFORMANCE: reduced-motion ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ===== PERFORMANCE: skip rendering off-screen sections ===== */
.about-section,
.whatIDO,
.work-section,
.career-section,
.contact-section {
    content-visibility: auto;
    contain-intrinsic-size: auto 800px; /* Estimated height so scrollbar stays stable */
}

.split-line {
    overflow: hidden;
}

.split-h2 {
    overflow: hidden;
    display: flex;
    white-space: nowrap;
    flex-wrap: nowrap;
}

@media screen and (min-width: 768px) {
    body { --cWidth: 94%; }
}

@media only screen and (max-width: 1600px) {
    .section-container {
        width: 1200px;
        max-width: calc(100% - 160px);
    }
}

@media only screen and (max-width: 1400px) {
    .section-container { width: 900px; }
}

@media only screen and (max-width: 900px) {
    .section-container {
        width: 500px;
        max-width: var(--cWidth);
    }
}

/* ===== LOADING SCREEN ===== */
.loading-screen {
    position: fixed;
    width: 100vw;
    height: var(--vh);
    background-color: #eae5ec;
    z-index: 999999999;
    display: flex;
    place-items: center;
    justify-content: center;
    transition: opacity 0.8s ease;
}

.loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-wrap {
    --Lsize: 145px;
    padding: 6px;
    position: relative;
    min-width: 0px;
    min-height: 0px;
    border-radius: 100px;
    background-color: #000;
    overflow: hidden;
    transition: .8s ease-in-out;
    transition-delay: .2s;
    box-shadow: 0 15px 15px #0003;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loading-clicked {
    transition-delay: 0ms;
    transition-timing-function: cubic-bezier(.33, .11, 1, .72);
    transform: scale(1);
    min-width: calc(100vw + 5000px);
    border-radius: 5000px;
    min-height: calc(100vh + 500px);
    box-shadow: none;
}

.loading-hover {
    background-color: #a87cff;
    width: 250px;
    height: 120px;
    position: absolute;
    top: var(--mouse-y);
    left: var(--mouse-x);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    filter: blur(30px);
    opacity: 0;
    transition: opacity .5s;
}

.loading-wrap:hover .loading-hover {
    opacity: 1;
}

.loading-clicked .loading-hover {
    opacity: 0;
}

.loading-button {
    padding: 20px 50px;
    border-radius: 100px;
    background-color: #000;
    overflow: hidden;
    font-size: 18px;
    font-weight: 500;
    position: relative;
    z-index: 9;
    cursor: pointer;
    border: none;
    color: #eae5ec;
    font-family: Geist, sans-serif;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.loading-button:before {
    content: "";
    background-color: #fff;
    top: var(--mouse-y);
    left: var(--mouse-x);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    position: absolute;
    z-index: 99;
    filter: blur(60px);
    opacity: 0;
    transform: translate(-50%, -50%);
}

.loading-button:hover:before {
    opacity: 1;
}

.loading-clicked .loading-button:before {
    opacity: 0;
}

.loading-content2 {
    position: relative;
    letter-spacing: 2px;
    text-transform: uppercase;
    width: var(--Lsize);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    column-gap: 10px;
    text-align: center;
    transition: 1s;
    max-width: var(--Lsize);
}

.loading-clicked .loading-content2 {
    opacity: 0;
    transition: .5s;
    overflow: visible;
}

.loading-header {
    width: var(--cWidth);
    max-width: var(--cMaxWidth);
    position: fixed;
    z-index: 9999999999;
    display: flex;
    justify-content: space-between;
    box-sizing: border-box;
    padding: 20px 0;
    left: 50%;
    transform: translate(-50%);
    top: 0;
    color: var(--backgroundColor);
}

.loader-title {
    font-weight: 700;
    font-size: 14px;
    letter-spacing: .2px;
}

.loading-marquee {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    color: var(--backgroundColor);
    font-size: 60px;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
}

.loading-marquee-track {
    display: inline-flex;
    animation: marqueeScroll 15s linear infinite;
}

.loading-marquee span {
    padding: 0 50px;
    position: relative;
}

.loading-marquee span:before {
    content: "";
    width: 20px;
    height: 20px;
    background-color: var(--backgroundColor);
    position: absolute;
    top: 50%;
    border-radius: 50px;
    left: 0;
    transform: translate(-50%, -50%);
}

@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media only screen and (min-width: 1400px) {
    .loading-wrap { --Lsize: 210px; }
    .loading-button { padding: 30px 70px; font-size: 25px; }
    .loading-marquee { font-size: 100px; }
}

@media only screen and (min-width: 500px) {
    .loading-header { padding: 20px 0; }
    .loader-title { font-size: 16px; }
}

@media only screen and (min-width: 1200px) {
    .loading-header { padding: 35px 0; }
    .loader-title { font-size: 18px; }
}

/* ===== NAVBAR ===== */
.header {
    display: flex;
    max-width: var(--cMaxWidth);
    width: var(--cWidth);
    justify-content: space-between;
    padding: 20px 0;
    margin-bottom: -100px;
    box-sizing: border-box;
    position: fixed;
    left: 50%;
    transform: translate(-50%);
    top: 0;
    z-index: 9999;
}

.navbar-title {
    font-weight: 700;
    font-size: 14px;
    letter-spacing: .2px;
}

.navbar-connect {
    position: absolute;
    display: none;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 15px;
    letter-spacing: 1px;
    font-weight: 500;
}

.header ul {
    font-size: 12px;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    list-style: none;
    column-gap: 40px;
    row-gap: 8px;
    align-items: end;
}

.header ul li {
    margin-left: 0;
    letter-spacing: 1px;
    color: #ccc;
    font-weight: 600;
    cursor: pointer;
}

.hover-link {
    position: relative;
    display: flex;
    text-wrap: nowrap;
    overflow: hidden;
}

.hover-in {
    position: relative;
    transition: .3s;
}

.hover-in span {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
}

.hover-link:hover .hover-in {
    transform: translateY(-100%);
    color: var(--accentColor);
}

.nav-fade {
    position: fixed;
    top: 0;
    width: 100%;
    height: 130px;
    background-image: linear-gradient(0deg, transparent, var(--backgroundColor) 70%);
    pointer-events: none;
    z-index: 12;
    opacity: 0;
    left: 0;
}

@media only screen and (min-width: 500px) {
    .header { padding: 20px 0; }
    .header ul {
        flex-direction: row;
        align-items: center;
        font-size: 14px;
    }
    .header ul li { color: #eae5ec; }
    .navbar-title { font-size: 16px; }
}

@media only screen and (min-width: 900px) {
    .navbar-connect { display: block; }
}

@media only screen and (min-width: 1200px) {
    .header { padding: 35px 0; }
    .header ul { column-gap: 80px; font-size: 16px; }
    .navbar-connect { font-size: 16px; }
    .navbar-title { font-size: 18px; }
}

/* ===== LANGUAGE SWITCHER ===== */
.lang-switch-item {
    margin-left: 0px;
    display: flex;
    align-items: center;
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    font-family: ClashDisplay, sans-serif;
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 1px;
    color: #888;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.03);
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    user-select: none;
}

.lang-switch:hover {
    border-color: rgba(194, 164, 255, 0.3);
    background: rgba(255, 255, 255, 0.06);
    color: #bbb;
}

.lang-opt {
    transition: color 0.3s ease, text-shadow 0.3s ease;
    padding: 0 4px;
}

.lang-opt.active {
    color: var(--accentColor);
    font-weight: 700;
    text-shadow: 0 0 8px rgba(194, 164, 255, 0.5);
}

.lang-divider {
    color: rgba(255, 255, 255, 0.15);
    margin: 0 2px;
    font-weight: 300;
}

@media only screen and (min-width: 500px) {
    .lang-switch {
        font-size: 13px;
        padding: 4px 12px;
    }
}

/* ===== CUSTOM CURSOR ===== */
.cursor-main {
    --size: 0px;
    position: fixed;
    top: 0;
    left: 0;
    width: var(--size);
    height: var(--size);
    border-radius: 50%;
    pointer-events: none;
    z-index: 999999;
    background-color: #e6c3ff;
    box-shadow: 0 0 30px #af83ff;
    mix-blend-mode: difference;
    transform: translate3d(var(--x, 0px), var(--y, 0px), 0) translate(-50%, -50%);
    transition: width 0.3s cubic-bezier(0.25, 1, 0.5, 1), 
                height 0.3s cubic-bezier(0.25, 1, 0.5, 1), 
                background-color 0.3s ease, 
                border 0.3s ease, 
                box-shadow 0.3s ease;
    will-change: transform;
    /* Hide on touch devices – cursor not needed */
}
@media (hover: none) and (pointer: coarse) {
    .cursor-main { display: none !important; }
}

.cursor-disable {
    --size: 0px !important;
}

@media only screen and (min-width: 600px) {
    .cursor-main { --size: 50px; }
    .cursor-disable { --size: 0px !important; }
}

/* ===== LANDING SECTION ===== */
.landing-section {
    width: 100%;
    max-width: var(--cMaxWidth);
    margin: auto;
    position: relative;
    height: var(--vh);
}

.landing-container {
    width: var(--cWidth);
    margin: auto;
    height: 100%;
    position: relative;
    max-width: var(--cMaxWidth);
    z-index: 20;
}

.landing-circle1 {
    top: 0%;
    left: 0%;
    z-index: 15;
    position: fixed;
    width: 300px;
    height: 300px;
    background-color: #fb8dff;
    box-shadow: inset -50px 40px 50px #5400ff99;
    filter: blur(60px);
    border-radius: 50%;
    animation: loadingCircle 5s linear infinite;
    will-change: transform;
    contain: layout style;
}

.landing-circle2 {
    top: 50%;
    right: 0%;
    transform: translate(calc(100% - 2px), -50%);
    z-index: 9;
    position: fixed;
    display: none;
    width: 300px;
    height: 300px;
    background-color: #fb8dff;
    box-shadow: inset -50px 40px 50px #5400ff99;
    filter: blur(50px);
    border-radius: 50%;
    animation: loadingCircle2 5s linear infinite;
    will-change: transform;
    contain: layout style;
}

@keyframes loadingCircle {
    0% { transform: translate(-95%, -75%) rotate(0); }
    to { transform: translate(-95%, -75%) rotate(360deg); }
}

@keyframes loadingCircle2 {
    to { transform: translate(calc(100% - 2px), -50%) rotate(360deg); }
}

.character-rim {
    position: absolute;
    width: 400px;
    height: 400px;
    z-index: 1;
    background-color: #f59bf8;
    box-shadow: inset 66px 35px 85px #5500ffa6;
    filter: blur(50px);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, 100%) scale(1.4);
    opacity: 0;
}

.character-model {
    height: 80%;
    height: 80vh;
    position: absolute;
    max-width: 1920px;
    max-height: 1080px;
    transform: translate(-50%);
    width: 100%;
    left: 50%;
    z-index: 0;
    bottom: 50px;
    pointer-events: inherit;
}

.character-model:after {
    content: "";
    width: 100vw;
    height: 250px;
    background-image: linear-gradient(to bottom, transparent, var(--backgroundColor) 70%);
    bottom: -50px;
    left: 50%;
    transform: translate(-50%);
    z-index: 9;
    position: absolute;
}

.character-model:before {
    content: "";
    width: 100vw;
    height: 700px;
    background-color: var(--backgroundColor);
    top: 100%;
    left: 50%;
    transform: translate(-50%);
    z-index: 9;
    position: absolute;
}

.character-model canvas {
    position: relative;
    pointer-events: none;
    z-index: 2;
}

.character-hover {
    position: absolute;
    width: 280px;
    height: 280px;
    top: 50%;
    left: 50%;
    z-index: 3;
    transform: translate(-50%, -50%);
    border-radius: 50%;
}

.landing-intro {
    position: absolute;
    z-index: 9;
    top: 12%;
    left: 0;
}

.landing-intro h2 {
    margin: 0;
    color: var(--accentColor);
    font-size: 22px;
    font-weight: 300;
    letter-spacing: 2px;
}

.landing-intro h1 {
    margin: 0;
    letter-spacing: 2px;
    font-size: 28px;
    line-height: 28px;
    font-weight: 500;
    font-family: ClashDisplay, sans-serif;
}

.landing-info {
    position: absolute;
    right: 50%;
    transform: translate(50%);
    bottom: 40px;
    top: inherit;
    z-index: 9;
}

.landing-info h3 {
    font-size: 22px;
    letter-spacing: 2px;
    font-weight: 300;
    color: var(--accentColor);
    margin: 0;
}

.landing-info h2 {
    margin: -20px 0 0 20px;
    font-family: ClashDisplay, sans-serif;
    font-weight: 600;
    font-size: 32px;
    line-height: 40px;
    position: relative;
    display: flex;
    flex-wrap: nowrap;
    text-transform: uppercase;
    letter-spacing: 2px;
}

h2.landing-info-h2 {
    color: #c481ff;
    font-size: 42px;
    width: 120%;
    font-family: ClashDisplay, sans-serif;
    font-weight: 600;
    position: relative;
    margin: 0 0 0 -5px;
}

.landing-h2-1,
.landing-h2-2 {
    position: absolute;
    top: 0;
    left: 0;
    width: max-content;
}

.landing-h2-1 .char,
.landing-h2-2 .char {
    position: relative;
    background: linear-gradient(to top, #8a41f7 10%, #d8b4ff 90%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    color: transparent !important;
    text-shadow: 0px 4px 8px rgba(0, 0, 0, 0.95), 
                 0px 2px 10px rgba(107, 38, 179, 0.5) !important;
}

@media screen and (min-width: 500px) {
    .landing-circle2 { display: block; }
    .character-model { z-index: 0; }
    .character-rim { width: 300px; height: 300px; }
    .landing-info h3, .landing-intro h2 { font-size: 18px; }
    .landing-intro h1 { font-size: 30px; line-height: 30px; }
    .landing-info h2 { font-size: 35px; line-height: 40px; }
    h2.landing-info-h2 { font-size: 38px; }
}

@media screen and (min-width: 768px) {
    .character-model { height: 80vh; }
    .landing-intro h2 { font-size: 25px; }
    .landing-intro h1 { font-size: 40px; line-height: 35px; }
    .landing-info h3 { font-size: 25px; }
    .landing-info h2 { font-size: 45px; line-height: 42px; }
    h2.landing-info-h2 { font-size: 55px; height: 65px; }
}

@media screen and (min-width: 1025px) {
    .character-model {
        height: 100vh;
        bottom: 0;
        z-index: 11;
        position: fixed;
    }
    .character-model:after, .character-model:before { display: none; }
    .character-rim { width: 400px; height: 400px; }
    .landing-intro {
        top: 50%;
        left: auto;
        right: 66%;
        transform: translateY(-50%);
    }
    .landing-info {
        bottom: auto;
        top: 51%;
        z-index: inherit;
        text-align: left;
        transform: translateY(-50%);
        right: auto;
        left: 66%;
    }

}

@media screen and (min-width: 1200px) {
    .landing-intro { right: 70%; }
    .landing-info { left: 70%; }
}

@media screen and (min-width: 1600px) {
    .landing-intro h2 { font-size: 35px; }
    .landing-intro h1 { font-size: 60px; line-height: 55px; }
    .landing-info h3 { font-size: 35px; }
    .landing-info h2 { font-size: 65px; line-height: 62px; }
    h2.landing-info-h2 { font-size: 75px; height: 85px; }

}

/* ===== SOCIAL ICONS (fixed sidebar) ===== */
.icons-section {
    position: fixed;
    max-width: var(--cMaxWidth);
    width: var(--cWidth);
    bottom: 0;
    z-index: 99;
    left: 50%;
    transform: translate(-50%);
}

.social-icons {
    position: absolute;
    left: -20px;
    bottom: 20px;
    display: none;
    flex-direction: column;
    gap: 8px;
    z-index: 999;
    padding: 10px;
}

.social-icons a {
    position: relative;
    display: flex;
    font-size: 23px;
    transition: transform .3s ease-out;
    color: inherit;
}

.social-icons a:hover {
    color: var(--accentColor);
    transform: scale(1.2);
}

.social-icons a svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.resume-button {
    position: absolute;
    z-index: 99;
    display: flex;
    gap: 5px;
    bottom: 40px;
    right: 0;
    width: auto;
    text-wrap: nowrap;
    letter-spacing: 4px;
    font-size: 15px;
    line-height: 15px;
    font-weight: 600;
    color: #5e5e5e;
    cursor: pointer;
    transition: .5s;
    transform-origin: left bottom;
    transform: translate(100%) rotate(-90deg);
}

.resume-button:hover {
    color: #fff;
}

.resume-button span {
    color: #fff;
    font-size: 17px;
    margin-top: -1px;
    display: flex;
    align-items: center;
}

@media only screen and (min-width: 900px) {
    .social-icons {
        display: flex;
        gap: 20px;
    }
    .social-icons a { font-size: 28px; }
    .social-icons a svg { width: 28px; height: 28px; }
}

@media only screen and (min-width: 768px) {
    .resume-button {
        transform: none;
        font-size: 20px;
        line-height: 20px;
    }
    .resume-button span { font-size: 23px; margin-top: -1.5px; }
}

/* ===== ABOUT SECTION ===== */
.about-section {
    display: flex;
    align-items: center;
    justify-content: left;
    place-items: center;
    position: relative;
    opacity: 1;
    height: auto;
    width: var(--cWidth);
    margin: auto;
}

.about-me {
    padding: 50px 0 0;
    width: 500px;
    max-width: calc(100% - 15px);
}

.about-me h3 {
    font-size: 25px;
    text-transform: uppercase;
    letter-spacing: 7px;
    font-weight: 400;
    color: var(--accentColor);
}

.about-me p {
    font-size: 33px;
    font-weight: 600;
    line-height: 36px;
    letter-spacing: 1px;
}

@media only screen and (min-width: 600px) {
    .about-section { justify-content: center; }
}

@media only screen and (min-width: 768px) {
    .about-me { width: 500px; max-width: calc(100% - 70px); }
    .about-section { opacity: 1; }
}

@media only screen and (min-width: 1025px) {
    .about-section {
        width: var(--cWidth);
        justify-content: right;
        max-width: 1920px;
        height: var(--vh);
        padding: 0;
    }
    .about-me { padding: 0; width: 50%; }
    .about-me p { font-size: 1.9vw; line-height: 2.3vw; }
}

@media only screen and (min-width: 1950px) {
    .about-me p { font-size: 2.5rem; line-height: 2.7rem; }
}

/* ===== WHAT I DO SECTION ===== */
.whatIDO {
    display: flex;
    align-items: center;
    justify-content: center;
    place-items: center;
    position: relative;
    opacity: 1;
    height: 100vh;
    width: var(--cWidth);
    max-width: 1920px;
    margin: auto;
    z-index: 9;
}

.what-box {
    width: 50%;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 9;
}

.what-box h2 {
    font-size: calc(4vw + 25px);
    line-height: calc(4vw + 20px);
    font-weight: 600;
    margin-right: 10%;
    margin-bottom: 100px;
}

.hat-h2 { font-style: italic; }
.do-h2 { color: var(--accentColor); }

.what-box-in {
    flex-direction: column;
    height: 500px;
    margin-left: 200px;
    position: relative;
    display: none;
}

.what-content {
    width: 450px;
    height: 33%;
    min-height: 50%;
    transition: .5s;
    position: relative;
    padding: 50px;
    box-sizing: border-box;
}

.what-noTouch:hover, .what-content-active {
    min-height: 67%;
    padding: 40px 50px;
}

.what-noTouch:hover ~ .what-content,
.what-box-in:hover .what-noTouch:not(:hover),
.what-content.what-sibling {
    min-height: 33%;
    padding: 10px 50px;
}

.what-content h3 {
    font-size: 35px;
    letter-spacing: 1px;
    margin: 0;
}

.what-content p {
    font-size: 14px;
    line-height: 18px;
    font-weight: 200;
    letter-spacing: .7px;
}

.what-content h4 {
    font-weight: 300;
    letter-spacing: 1px;
    margin: 0;
    font-size: 14px;
    opacity: .3;
}

.what-content-in {
    height: 100%;
    overflow: hidden;
    opacity: 0;
    animation: whatFlicker .5s 1 forwards;
    animation-delay: 1s;
}

@keyframes whatFlicker {
    0%, 25%, 35%, 60% { opacity: 0; }
    30%, 50%, 40%, to { opacity: 1; }
}

.what-content:before,
.what-corner:before,
.what-content:after,
.what-corner:after {
    content: "";
    width: 10px;
    height: 10px;
    position: absolute;
    border: 4px solid #fff;
    opacity: 0;
    animation: whatCorners .2s 1 forwards;
    animation-delay: .5s;
}

@keyframes whatCorners { to { opacity: 1; } }

.what-content:before { top: -2px; left: -2px; border-right: none; border-bottom: none; }
.what-corner:before { top: -2px; right: -2px; border-left: none; border-bottom: none; }
.what-content:after { bottom: -2px; left: -2px; border-top: none; border-right: none; }
.what-corner:after { bottom: -2px; right: -2px; border-left: none; border-top: none; }

.what-content-in h5 {
    font-weight: 300;
    opacity: .5;
    font-size: 12px;
    letter-spacing: 1px;
    font-family: Geist, sans-serif;
    margin-bottom: 5px;
}

.what-content-flex {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.what-tags {
    font-size: 13px;
    font-weight: 400;
    padding: 2px 7px;
    background-color: #ffffff26;
    border: 1px solid #ffffff50;
    border-radius: 30px;
}

.what-arrow {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 25px;
    height: 25px;
    border: 1px solid #fff;
}

.what-arrow:before {
    content: "";
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    border-left: 1px solid #fff;
    border-bottom: 1px solid #fff;
    transition: .5s;
    width: 10px;
    height: 10px;
}

.what-noTouch:hover .what-arrow:before,
.what-content-active .what-arrow:before {
    transform: translate(-50%, -20%) rotate(-225deg);
}

.what-border1 {
    position: absolute;
    top: 0;
    width: 100%;
    left: 50%;
    transform: translate(-50%);
    height: 100%;
    transition: .5s;
    max-width: 0%;
    overflow: hidden;
    opacity: .8;
    animation: whatBorders 1.2s 1 forwards;
}

.what-border1 svg {
    position: absolute;
    left: 50%;
    transform: translate(-50%);
    width: 450px;
}

.what-border2 {
    position: absolute;
    top: 50%;
    width: 100%;
    left: 0;
    transform: translateY(-50%);
    height: 100%;
    max-height: 0%;
    overflow: hidden;
    transition: .5s;
    opacity: .8;
    animation: whatBorders 1.2s 1 forwards;
}

.what-border2 svg {
    height: 500px;
    top: 50%;
    transform: translateY(-50%);
    position: absolute;
}

@keyframes whatBorders {
    80% { opacity: .8; }
    to { max-height: 100%; max-width: 100%; opacity: .2; }
}

@media only screen and (max-width: 1600px) {
    .what-box h2 { margin-right: 18%; }
}

@media only screen and (max-width: 1400px) {
    .what-box h2 { margin-right: 20%; }
    .what-box-in { height: 400px; margin-left: 50px; }
    .what-content h3 { font-size: 28px; }
    .what-content { padding: 30px; width: 400px; }
    .what-content p { font-size: 13px; }
    .what-noTouch:hover, .what-content-active { padding: 20px 30px; }
    .what-noTouch:hover ~ .what-content,
    .what-box-in:hover .what-noTouch:not(:hover),
    .what-content.what-sibling { padding: 10px 30px; }
    .what-tags { font-size: 12px; }
    .what-content { width: 380px; }
}

@media only screen and (max-width: 1024px) {
    .whatIDO { height: auto; padding: 50px 0; }
    .what-box-in { height: 500px; margin-left: -50px; }
    .what-content { padding: 50px; width: 500px; }
    .what-content p { font-size: 14px; }
}

@media only screen and (max-width: 900px) {
    .whatIDO { flex-direction: column; }
    .what-box h2 { margin: 50px 0; font-size: 55px; line-height: 53px; }
    .what-box:first-child { justify-content: left; }
    .what-box:last-child { height: 500px; }
    .what-box { width: 500px; max-width: calc(100% - 50px); margin: auto; }
    .what-content { width: 100%; }
    .what-box-in { margin-left: 0; height: 450px; }
    .what-content h5, .what-content-flex { opacity: 0; transition: .3s; }
    .what-noTouch:hover h5, .what-content-active h5,
    .what-noTouch:hover .what-content-flex, .what-content-active .what-content-flex { opacity: 1; }
    .what-content { padding: 30px; }
    .what-content p { font-size: 11px; }
    .what-noTouch:hover, .what-content-active { padding: 10px 30px; }
    .what-tags { font-size: 11px; }
    .what-noTouch:hover ~ .what-content,
    .what-box-in:hover .what-noTouch:not(:hover),
    .what-content.what-sibling { padding: 5px 30px; }
    .what-content h3 { font-size: 25px; }
}

@media only screen and (max-width: 550px) {
    .whatIDO { place-items: inherit; align-items: start; justify-content: left; }
    .what-box { max-width: calc(100% - 25px); margin: 0; }
}

@media only screen and (min-width: 1950px) {
    .what-box h2 { font-size: 7rem; line-height: 6.8rem; }
}

/* ===== CAREER SECTION ===== */
.career-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    place-items: center;
    justify-content: center;
    position: relative;
    opacity: 1;
    height: auto;
    margin: auto auto 250px;
    padding: 120px 0;
}

.career-section h2 {
    font-size: 70px;
    line-height: 70px;
    font-weight: 400;
    text-align: center;
    background: linear-gradient(0deg, #7f40ff, #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    margin-top: 50px;
    margin-bottom: 90px;
}

.career-section h2 > span {
    font-family: Geist, sans-serif;
    font-weight: 300;
}

.career-info {
    position: relative;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
}

.career-info-box {
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
}

.career-info-box p {
    width: 40%;
    font-size: 18px;
    font-weight: 300;
    margin: 0;
}

.career-info-in {
    display: flex;
    width: 40%;
    justify-content: space-between;
    gap: 50px;
}

.career-info h3 {
    font-size: 48px;
    margin: 0;
    font-weight: 500;
    line-height: 45px;
}

.career-info h4 {
    font-size: 33px;
    line-height: 30px;
    letter-spacing: .8px;
    font-weight: 500;
    margin: 0;
}

.career-info h5 {
    font-weight: 400;
    letter-spacing: .7px;
    font-size: 20px;
    text-transform: capitalize;
    margin: 10px 0;
    color: var(--accentColor);
}

.career-timeline {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translate(-50%);
    width: 3px;
    height: 100%;
    background-image: linear-gradient(to top, #aa42ff 20%, var(--accentColor) 50%, transparent 95%);
    max-height: 0%;
}

.career-dot {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 50%);
    background-color: #aa42ff;
    width: 10px;
    height: 10px;
    border-radius: 50px;
    box-shadow: 0 0 5px 2px #d29bff, 0 0 15px 8px #d097ff, 0 0 110px 20px #f2c0ff;
    animation: timeline .8s linear infinite forwards;
}

@keyframes timeline {
    10%, 20%, 50%, 70%, 90% { box-shadow: 0 0 5px 2px #d29bff; }
    10%, 30%, 0%, to, 64%, 80% { box-shadow: 0 0 5px 2px #d29bff, 0 0 15px 5px #d097ff, 0 0 110px 20px #f2c0ff; }
}

@media only screen and (max-width: 1400px) {
    .career-section h2 { font-size: 50px; line-height: 50px; }
    .career-info h4 { font-size: 22px; line-height: 24px; width: 180px; }
    .career-info h5 { font-size: 17px; }
    .career-info h3 { font-size: 40px; }
    .career-info-box p { font-size: 14px; width: 45%; }
    .career-info-in { width: 45%; gap: 20px; }
}

@media only screen and (max-width: 1025px) {
    .career-section { padding: 220px 0 70px; margin-top: -200px; margin-bottom: 0; }
}

@media only screen and (max-width: 900px) {
    .career-info-box { flex-direction: column; gap: 10px; margin-bottom: 70px; }
    .career-info-in, .career-info-box p { width: 100%; padding-left: 10%; box-sizing: border-box; }
    .career-timeline { left: 0%; }
    .career-container { width: calc(100% - 25px); }
}

@media only screen and (max-width: 600px) {
    .career-info { margin: 0; }
    .career-section h2 { width: 100%; font-size: 45px; line-height: 45px; margin-top: 0; }
    .career-info-in { gap: 0px; }
    .career-info h3 { font-size: 33px; }
    .career-info-in, .career-info-box p { padding-left: 5%; }
    .career-section { padding-top: 90px; margin-top: -70px; align-items: start; place-items: inherit; justify-content: left; }
}

/* ===== WORK SECTION ===== */
.work-section {
    transition: 0s;
    height: 100vh;
    box-sizing: border-box;
}

.work-section h2 {
    margin-top: 100px;
    font-size: 70px;
    font-weight: 500;
}

.work-section h2 > span {
    color: var(--accentColor);
}

.work-container {
    margin: auto;
    display: flex;
    flex-direction: column;
    height: 100%;
    align-content: stretch;
}

.work-flex {
    width: 100%;
    display: flex;
    height: 100%;
    margin-left: -80px;
    padding-right: 120px;
    position: relative;
}

.work-flex:before, .work-flex:after {
    content: "";
    width: 50000vw;
    height: 1px;
    background-color: #363636;
    position: absolute;
    left: 50%;
    top: 0;
    transform: translate(-50%);
}

.work-flex:after { top: 100%; }

.work-box {
    padding: 80px;
    display: flex;
    flex-direction: column;
    width: 600px;
    box-sizing: border-box;
    border-right: 1px solid #363636;
    flex-shrink: 0;
    gap: 50px;
    justify-content: start;
}


.work-title {
    justify-content: space-between;
    display: flex;
    width: 100%;
    margin-bottom: 20px;
}

.work-title > div { text-align: right; }

.work-title h3 {
    font-size: 50px;
    line-height: 50px;
    margin: 0;
    font-weight: 600;
}

.work-info h4 { font-size: 18px; font-weight: 400; margin: 0; }
.work-info p { font-weight: 200; color: #adacac; margin: 3px 0 0; }
.work-info > p { width: 90%; }

.work-image {
    display: flex;
    width: 100%;
    justify-content: center;
}

.work-image-in {
    position: relative;
    display: block;
}

.work-link {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: var(--backgroundColor);
    width: 50px;
    border-radius: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 25px;
    box-shadow: 0 0 10px #ffffff80, inset 0 0 10px #393939;
    transition: .3s;
    opacity: 0;
}

.work-image a:hover { color: inherit; }
.work-image a:hover .work-link { opacity: 1; }

.work-image img {
    max-width: 100%;
    max-height: 350px;
}

@media only screen and (max-height: 900px) {
    .work-image img { max-height: 250px; }
    .work-box { padding-top: 40px; padding-bottom: 40px; }
    .work-section h2 { font-size: 60px; margin-bottom: 30px; margin-top: 70px; }
}

@media only screen and (max-width: 1400px) {
    .work-title h3 { font-size: 35px; }
    .work-info p { font-size: 13px; }
    .work-info h4 { font-size: 15px; }
    .work-box { width: 350px; padding: 30px; }
    .work-flex { margin-left: -30px; padding-right: 45px; }
    .work-section h2 { font-size: 50px; }
}

@media only screen and (max-height: 650px) {
    .work-image img { max-height: 200px; }
    .work-section h2 { font-size: 40px; margin-bottom: 20px; }
    .work-box { gap: 20px; }
}

@media only screen and (max-width: 1025px) {
    .work-container { align-content: normal; }
    .work-flex { height: auto; }
}

/* ===== TECHSTACK SECTION ===== */
.techstack {
    width: 100%;
    position: relative;
    height: var(--vh);
    margin: 50px auto -100px;
}

.techstack h2 {
    font-size: 80px;
    text-align: center;
    position: absolute;
    width: 100%;
    top: 120px;
    left: 0;
    font-weight: 400;
    text-transform: uppercase;
}

@media screen and (max-width: 900px) {
    .techstack h2 { font-size: 40px; }
}

.techstack-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px;
    padding-top: 250px;
    max-width: 800px;
    margin: 0 auto;
}

.tech-ball {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, rgba(255,255,255,0.15), transparent 60%);
    box-shadow: inset -8px -8px 20px rgba(0,0,0,0.4), inset 4px 4px 10px rgba(255,255,255,0.1), 0 0 20px rgba(168,85,247,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: techFloat 4s ease-in-out infinite;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.08);
    will-change: transform;
}

.tech-ball::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 20%;
    width: 30%;
    height: 20%;
    background: radial-gradient(ellipse, rgba(255,255,255,0.25), transparent);
    border-radius: 50%;
    filter: blur(3px);
}

.tech-ball img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    position: relative;
    z-index: 1;
}

.tech-ball:nth-child(1) { animation-delay: 0s; }
.tech-ball:nth-child(2) { animation-delay: 0.3s; }
.tech-ball:nth-child(3) { animation-delay: 0.6s; }
.tech-ball:nth-child(4) { animation-delay: 0.9s; }
.tech-ball:nth-child(5) { animation-delay: 1.2s; }
.tech-ball:nth-child(6) { animation-delay: 1.5s; }
.tech-ball:nth-child(7) { animation-delay: 1.8s; }
.tech-ball:nth-child(8) { animation-delay: 2.1s; }

@keyframes techFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-15px) rotate(2deg); }
    50% { transform: translateY(0) rotate(0deg); }
    75% { transform: translateY(10px) rotate(-2deg); }
}

@media screen and (max-width: 600px) {
    .tech-ball { width: 75px; height: 75px; }
    .tech-ball img { width: 38px; height: 38px; }
    .techstack-grid { gap: 25px; padding-top: 180px; }
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    margin: 100px auto auto;
    padding-bottom: 100px;
}

.contact-section h3 {
    font-size: 60px;
    font-weight: 400;
    text-transform: uppercase;
    margin: 0;
}

.contact-flex {
    display: flex;
    justify-content: space-between;
}

.contact-flex h4 {
    font-weight: 500;
    margin: 0;
    opacity: .6;
}

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

.contact-flex p {
    margin-top: 10px;
    margin-bottom: 20px;
}

a.contact-social {
    font-size: 25px;
    border-bottom: 1px solid #ccc;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 0;
}

a.contact-social svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.contact-box h2 {
    font-weight: 400;
    font-size: 23px;
    margin: 0;
}

.contact-box h2 > span {
    color: var(--accentColor);
}

.contact-box h5 {
    font-size: 20px;
    font-weight: 500;
    line-height: 20px;
    display: flex;
    gap: 10px;
    opacity: .5;
    align-items: center;
}

.contact-box h5 svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

@media only screen and (max-width: 1600px) {
    .contact-section h3 { font-size: 50px; }
    .contact-box h2 { font-size: 20px; }
    a.contact-social { font-size: 22px; }
}

@media only screen and (max-width: 1300px) {
    .contact-section h3 { font-size: 40px; }
    .contact-box h2 { font-size: 18px; }
    a.contact-social { font-size: 20px; }
    .contact-flex p { margin-top: 0; }
}

@media only screen and (max-width: 900px) {
    .contact-flex { flex-direction: column; gap: 40px; }
    .contact-flex p { margin-bottom: 0; }
    .contact-flex h4 { margin-top: 20px; }
    .contact-section { margin-top: 50px; padding-bottom: 50px; }
    .contact-container { width: calc(100% - 25px); }
}

/* ===== SCROLLBAR ===== */
html {
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: #c2a4ff #050405; /* Firefox thumb & track */
}
body {
    -webkit-overflow-scrolling: touch;
}
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #050405;
}
::-webkit-scrollbar-thumb {
    background: #c2a4ff;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #aa42ff;
}

/* ===== 100% LIKENESS UPGRADE STYLES ===== */

/* Loader Progress, Blinking Cursor, and welcome transitions */
/* NOTE: loading-button and loading-wrap full rules are already declared above;
   only add/override what's truly new here to avoid duplicate-rule bloat. */

.loading-clicked .loading-button {
    overflow: visible;
}

.loading-content {
    position: relative;
    background-color: #000;
    width: 100%;
    overflow: hidden;
    transition: .6s;
    text-transform: uppercase;
}

.loading-content-in {
    position: relative;
    width: var(--Lsize);
    overflow: hidden;
}

.loading-content2 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, calc(-50% + 30px));
    letter-spacing: 2px;
    text-transform: uppercase;
    width: var(--Lsize);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    column-gap: 10px;
    text-align: center;
    transition: 1s;
    max-width: var(--Lsize);
    opacity: 0;
}

.loading-complete .loading-content2 {
    opacity: 1;
    transform: translate(-50%, -50%);
}

.loading-complete .loading-container {
    opacity: 0;
    transform: translateY(-30px);
    pointer-events: none;
    transition: 0.6s ease-in-out;
}

.loading-clicked .loading-content2 {
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: .5s;
}

.loading-box {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translate(100%, -50%);
    width: 15px;
    height: 25px;
    background-color: #fff;
    animation: blink 1s linear infinite;
}

@keyframes blink {
    0%, 100% { opacity: 0; }
    25%, 75% { opacity: 1; }
}

.loading-complete .loading-box {
    animation: blinkDone .3s forwards;
    animation-delay: 1s;
    opacity: 1;
}

@keyframes blinkDone {
    to { opacity: 0; }
}

/* Loader Game Bouncing Ball */
.loaderGame {
    display: flex;
    align-items: center;
}

.loaderGame.loader-out {
    opacity: 0;
    transition: 0.5s ease-out;
}

.loaderGame-container {
    width: 200px;
    transition: .3s;
    height: 100px;
    overflow: hidden;
    position: relative;
    transform: scale(.4);
    transform-origin: top right;
}

.loaderGame-in {
    width: 1200px;
    position: absolute;
    overflow: hidden;
    left: 0;
    animation: loaderGame 7s linear infinite;
    display: flex;
    height: 100%;
    align-items: center;
}

@keyframes loaderGame {
    0% { transform: translateX(0); }
    to { transform: translateX(-1000px); }
}

.loaderGame-line {
    width: 4px;
    height: 60px;
    background-color: #000;
    margin-right: 40px;
    flex-shrink: 0;
    border-radius: 5px;
}

.loaderGame-line:nth-child(2n) {
    height: 30px;
}

.loaderGame-ball {
    width: 25px;
    height: 25px;
    background-color: #aa42ff;
    position: absolute;
    left: 30px;
    top: 38px;
    border-radius: 50%;
    animation: loaderGame-ball 0.7s ease-in-out infinite alternate;
}

@keyframes loaderGame-ball {
    0% { transform: translateY(-25px); }
    100% { transform: translateY(25px); }
}

/* Magnetic Sidebar Icons span Container overrides */
.social-icons span {
    width: 50px;
    height: 50px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.social-icons a {
    --siLeft: 25px;
    --siTop: 25px;
    position: absolute;
    left: var(--siLeft, 25px);
    top: var(--siTop, 25px);
    transform: translate(-50%, -50%);
    display: flex;
    will-change: left, top;
    transition: transform .3s ease-out;
    margin: 0 !important;
}

.social-icons a:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

/* Custom Cursor Large Icons Morph Mode */
.cursor-main.cursor-icons {
    --size: 80px !important;
    background-color: transparent;
    border: 1.5px solid #fff;
    mix-blend-mode: normal;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

/* Custom Letters (SplitText replacement) styling */
.char {
    display: inline-block;
    will-change: transform, filter;
}

.split-line {
    overflow: hidden;
    display: block;
}

.split-h2 {
    overflow: hidden;
    display: inline-block;
}

/* Three.js Techstack responsive canvases styles */

#techstack-canvas-container {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 5;
    outline: none;
    padding-top: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
}

/* Fix navbar z-index so character doesn't hover on top */
#navbar {
    z-index: 999999 !important;
}

/* Mobile Responsiveness for horizontal gallery stack */
@media only screen and (max-width: 1024px) {
    .work-section {
        height: auto !important;
    }
    .work-container {
        width: var(--cWidth);
        margin: 0 auto;
    }
    .work-flex {
        flex-direction: column !important;
        transform: none !important;
        margin-left: 0 !important;
        padding-right: 0 !important;
        width: 100% !important;
        height: auto !important;
        overflow: visible !important;
    }
    .work-flex:before, .work-flex:after {
        display: none !important;
    }
    .work-box {
        width: 100% !important;
        border-right: none !important;
        border-bottom: 1px solid #363636 !important;
        padding: 40px 0 !important;
        flex-direction: column !important;
        gap: 30px !important;
    }
    .work-image img {
        max-height: 300px !important;
        width: 100%;
        object-fit: cover;
        border-radius: 8px;
    }
    .work-title h3 { font-size: 30px !important; }
}

/* Small mobile (<480px) work section */
@media only screen and (max-width: 480px) {
    .work-box { padding: 25px 0 !important; }
    .work-section h2 { font-size: 38px !important; margin-top: 60px !important; }
    .work-image img { max-height: 220px !important; }
}

/* ===== MOBILE LOADING SCREEN ===== */
@media only screen and (max-width: 500px) {
    .loading-marquee { font-size: 36px; }
    .loading-button { padding: 14px 35px; font-size: 15px; letter-spacing: 1px; }
    .loading-wrap { --Lsize: 120px; }
    .loaderGame-container { width: 140px; }
}

/* ===== TOUCH DEVICE: disable hover-only tricks ===== */
@media (hover: none) and (pointer: coarse) {
    /* what-content accordion: always show content hint */
    .what-content-in { opacity: 1 !important; animation: none !important; }
    /* Disable expensive backdrop-filter on weak GPUs */
    .tech-ball { backdrop-filter: none; }
    /* Disable magnetic cursor completely */
    .social-icons a {
        position: relative !important;
        left: auto !important;
        top: auto !important;
        transform: none !important;
    }
    .social-icons span {
        justify-content: center;
        align-items: center;
    }
}

/* ===== VIETNAMESE FONT FIXES ===== */
body.lang-vi h1,
body.lang-vi h2,
body.lang-vi h3,
body.lang-vi h4,
body.lang-vi h5,
body.lang-vi h6,
body.lang-vi .navbar-title,
body.lang-vi .lang-switch,
body.lang-vi .resume-button,
body.lang-vi .work-title h3,
body.lang-vi .contact-social,
body.lang-vi .char {
    font-family: 'Outfit', 'Be Vietnam Pro', sans-serif !important;
}

/* Fix overlapping/spacing in Vietnamese for all split texts */
body.lang-vi .char {
    letter-spacing: 0px !important;
    display: inline-block !important;
    margin-right: 0.05em !important; /* Spacing between characters */
}

/* Adjust line-height and letter-spacing for headings to look geometric and super premium */
body.lang-vi h1,
body.lang-vi h2,
body.lang-vi h3,
body.lang-vi h4,
body.lang-vi h5,
body.lang-vi h6,
body.lang-vi p,
body.lang-vi span,
body.lang-vi a {
    letter-spacing: 0px !important; /* Disable letter-spacing to fix Chrome's combining diacritics shift bug */
}

body.lang-vi .about-me p {
    font-family: 'Geist', sans-serif !important;
    letter-spacing: 0px !important;
    line-height: 1.4 !important;
}

/* Fix navbar overlap in Vietnamese */
@media only screen and (min-width: 1200px) {
    body.lang-vi .header ul {
        column-gap: 35px !important; /* Closer menu items in Vietnamese to prevent central block collision */
    }
}
@media only screen and (max-width: 1300px) {
    body.lang-vi .navbar-connect {
        display: none !important; /* Hide 'Kết nối ngay' below 1300px on Vietnamese to clear wide translations */
    }
}

/* Override ClashDisplay specifically for landing name in Vietnamese - ClashDisplay lacks Vietnamese glyphs (Ễ, Ấ etc.) */
body.lang-vi .landing-intro h1,
body.lang-vi .landing-intro h1 span,
body.lang-vi .landing-intro h1 .char,
body.lang-vi .landing-intro h1 .split-line,
body.lang-vi .landing-intro h2,
body.lang-vi .landing-intro h2 .char,
body.lang-vi .landing-info h3,
body.lang-vi .landing-info h3 .char,
body.lang-vi .landing-h2-1,
body.lang-vi .landing-h2-1 .char,
body.lang-vi .landing-h2-2,
body.lang-vi .landing-h2-2 .char {
    font-family: 'Outfit', 'Be Vietnam Pro', sans-serif !important;
}

/* Prevent Vietnamese diacritics from being clipped by overflow:hidden on split-line */
body.lang-vi .landing-intro .split-line,
body.lang-vi .landing-info .split-line {
    overflow: visible !important;
    padding-top: 0.15em; /* Extra space above for diacritics */
}

body.lang-vi .landing-intro h1 {
    line-height: 1.15 !important; /* Slightly more line-height for Vietnamese diacritics */
}
