#bio-intro-root {
    position: relative;
    box-sizing: border-box; /* fix: padding 24px làm section rộng hơn viewport trên mobile → chữ bị cắt mép phải */
    width: 100%;
    background: #000;
    color: #fff;
    font-family: var(--primary-font);
    -webkit-font-smoothing: antialiased;
    overflow: hidden;
    padding: 100px 24px 120px;
}

/* Edge gradients for smooth transition */
#bio-intro-root::before,
#bio-intro-root::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 22%;
    z-index: 10;
    pointer-events: none;
}

#bio-intro-root::before {
    top: 0;
    background: linear-gradient(to bottom, #000 0%, transparent 100%);
}

#bio-intro-root::after {
    bottom: 0;
    background: linear-gradient(to top, #000 0%, transparent 100%);
}

/* Dynamic Background */
#bio-intro-root .bio-bg-effect {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

/* Blob nền: bỏ filter blur(80px) (rất tốn GPU khi animate) — dùng gradient
   mềm sẵn, kết quả nhìn tương đương, chi phí render gần bằng 0 */
#bio-intro-root .bio-blob {
    position: absolute;
    border-radius: 50%;
    opacity: 0.28;
    animation: bioBlobFloat 20s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

#bio-intro-root .bio-blob-1 {
    width: 600px;
    height: 600px;
    top: -10%;
    left: -10%;
    background: radial-gradient(circle, #1e3a8a 0%, rgba(30, 58, 138, 0.55) 25%, rgba(30, 58, 138, 0.18) 48%, transparent 70%);
    /* Deep Blue */
}

#bio-intro-root .bio-blob-2 {
    width: 500px;
    height: 500px;
    bottom: 0%;
    right: -5%;
    background: radial-gradient(circle, #06b6d4 0%, rgba(6, 182, 212, 0.55) 25%, rgba(6, 182, 212, 0.18) 48%, transparent 70%);
    /* Cyan */
    animation-delay: -5s;
    animation-duration: 25s;
}

#bio-intro-root .bio-blob-3 {
    width: 400px;
    height: 400px;
    top: 40%;
    left: 40%;
    background: radial-gradient(circle, #3b82f6 0%, rgba(59, 130, 246, 0.55) 25%, rgba(59, 130, 246, 0.18) 48%, transparent 70%);
    /* Blue */
    animation-delay: -10s;
    animation-duration: 28s;
    opacity: 0.15;
}

@keyframes bioBlobFloat {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }

    100% {
        transform: translate(20px, 30px) scale(1.05);
    }
}

#bio-intro-root *,
#bio-intro-root *::before,
#bio-intro-root *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

#bio-intro-root .bio-container {
    position: relative;
    z-index: 2;
    /* Ensure content is above bg */
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Text Column */
#bio-intro-root .bio-text-col {
    opacity: 0;
    transform: translateX(-120px) scale(0.92);
}

#bio-intro-root .bio-name {
    /* Dấu tiếng Việt: nền gradient (background-clip:text) chỉ tô trong hộp nội dung,
       dấu chồng (Ố, Ệ, Ậ…) vượt lên trên hộp nên bị mất màu → trông như bị cắt.
       Nới hộp bằng padding rồi bù margin âm: chữ đủ chỗ, bố cục không đổi. */
    padding-block: 0.22em 0.14em;
    margin-block-start: -0.22em;

    font-family: var(--primary-font);
    font-size: clamp(24px, 4.4vw, 42px);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.15;
    margin-bottom: calc(24px - 0.14em);
    background: linear-gradient(180deg, #fff 30%, rgba(160, 195, 255, 0.7) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

#bio-intro-root .bio-credentials {
    font-size: clamp(16px, 2.8vw, 22px);
    font-weight: 600;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.7) !important;
    margin-bottom: 20px;
}

#bio-intro-root .bio-mission {
    font-size: clamp(15px, 2.5vw, 20px);
    font-weight: 400;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.55) !important;
}

#bio-intro-root .bio-highlight {
    color: rgba(160, 195, 255, 1);
    font-weight: 700;
}

/* Image Column */
#bio-intro-root .bio-image-col {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translateX(120px) scale(0.92);
}

#bio-intro-root .bio-image-wrap {
    position: relative;
    z-index: 10;
    /* Above marquee */
    width: 85%;
    max-width: 550px;
    border-radius: 20px;
    overflow: hidden;
    border: 0px solid rgba(255, 255, 255, 0.06);
    /* Transparent card: the photo is a true alpha-cutout (webp), so the
       background is see-through (marquee text visible around) while the
       person sits on the TOP layer — text never overlaps the figure.
       z-index: 10 keeps the wrap above the marquee. */
    background: transparent;
    box-shadow: none;
}

#bio-intro-root .bio-photo {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    filter: grayscale(0.3) contrast(1.05);
    transition: filter 0.5s ease, transform 0.5s ease;
}

#bio-intro-root .bio-image-wrap:hover .bio-photo {
    filter: grayscale(0) contrast(1.1);
    transform: scale(1.03);
}

/* Responsive */
@media (max-width: 768px) {
    #bio-intro-root {
        padding: 60px 20px 80px;
    }

    #bio-intro-root .bio-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    #bio-intro-root .bio-name {
        font-size: 32px;
        margin-bottom: 20px;
    }

    #bio-intro-root .bio-credentials {
        font-size: 18px;
        line-height: 1.5;
        margin-bottom: 16px;
    }

    #bio-intro-root .bio-mission {
        font-size: 16px;
        line-height: 1.6;
    }

    #bio-intro-root .bio-image-col {
        order: -1;
        max-width: 100%;
        margin: 0 auto;
        width: 100%;
    }

    #bio-intro-root .bio-image-wrap {
        max-width: 320px;
    }

    #bio-intro-root .bio-text-col,
    #bio-intro-root .bio-image-col {
        transform: translateY(50px) scale(0.96);
    }

    #bio-intro-root .bio-marquee-container {
        /* Simplified for mobile if needed, or keep as is */
        opacity: 0.3;
    }
}

/* Marquee Styles */
#bio-intro-root .bio-marquee-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-5deg);
    /* Slight tilt for dynamism */
    width: 150%;
    height: 140%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    z-index: 1;
    /* Below image */
    pointer-events: none;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 20%, black 80%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 20%, black 80%, transparent 100%);
    opacity: 0.4;
    mix-blend-mode: color-dodge;
}

#bio-intro-root .bio-marquee-row {
    display: flex;
    width: max-content;
}

#bio-intro-root .bio-marquee-row.scroll-left {
    animation: bioMarqueeScrollLeft 30s linear infinite;
}

#bio-intro-root .bio-marquee-row.scroll-right {
    animation: bioMarqueeScrollRight 30s linear infinite;
}

#bio-intro-root .bio-marquee-content {
    display: flex;
    align-items: center;
    gap: 60px;
    /* Spacing between words */
    padding-right: 60px;
}

#bio-intro-root .bio-marquee-content span {
    font-size: clamp(3rem, 6vw, 5rem);
    /* Much larger text */
    font-weight: 900;
    text-transform: uppercase;
    white-space: nowrap;
    letter-spacing: -0.02em;
    line-height: 0.9;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.15);
    /* Outline effect */
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(160, 195, 255, 0.05) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    transition: all 0.3s ease;
}

/* Optional: Fill on hover or periodic effect */
#bio-intro-root .bio-marquee-content span.highlight {
    -webkit-text-stroke: 0;
    color: rgba(255, 255, 255, 0.1);
}

@keyframes bioMarqueeScrollLeft {
    0% {
        transform: translateX(0);
    }

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

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

    100% {
        transform: translateX(0);
    }
}
    

/* Professional links — hàng link xác thực bên thứ ba dưới phần giới thiệu */
#bio-intro-root .bio-links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 26px 0 0;
    padding: 0;
}

#bio-intro-root .bio-links a {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.75);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    text-decoration: none;
    transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

#bio-intro-root .bio-links a:hover {
    color: #fff;
    border-color: rgba(160, 195, 255, 0.6);
    background: rgba(160, 195, 255, 0.12);
}

@media (max-width: 768px) {
    #bio-intro-root .bio-links {
        justify-content: center;
    }
}
