 :root {
        --header-height: 3.5rem;
        --hue-color: 230;
        --base-color-dark: #0a192f;
        --base-color-light: #f8fafc;
        --panel-color-dark: #112240;
        --accent-color: hsl(230, 80%, 65%);
        --accent-color-light: hsl(190, 80%, 70%); 
        --text-color-dark: hsl(210, 15%, 75%);
        --text-color-light: hsl(210, 15%, 95%);
        --text-color-primary: hsl(210, 20%, 25%);
        --body-font: 'Poppins', sans-serif;
        --heading-font: 'Be Vietnam Pro', sans-serif;
        --big-font-size: 2.5rem;
        --h2-font-size: 1.75rem;
        --normal-font-size: 1rem;
        --shadow-color: hsla(230, 80%, 5%, 0.4);
        --timing-function: cubic-bezier(0.165, 0.84, 0.44, 1);
    }

    @media screen and (min-width: 968px) {
        :root {
            --big-font-size: 4rem;
            --h2-font-size: 2.25rem;
            --normal-font-size: 1.1rem;
        }
    }

    *, ::before, ::after { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
        margin: 0;
        font-family: var(--body-font);
        font-size: var(--normal-font-size);
        background-color: var(--base-color-light);
        color: var(--text-color-primary);
        position: relative;
    }
    h1, h2 { font-family: var(--heading-font); font-weight: 800; }
    ul { margin: 0; padding: 0; list-style: none; }
    a { text-decoration: none; color: var(--accent-color); }
    img { max-width: 100%; height: auto; display: block; }

   
    .section { padding: 6rem 0 2rem; position: relative; overflow-x: hidden; }
    .bd-container { max-width: 1024px; width: calc(100% - 3rem); margin-left: auto; margin-right: auto; }
    .bd-grid { display: grid; gap: 1.5rem; }
    .section-subtitle { display: block; text-align: center; color: #555; margin-bottom: 3rem; max-width: 600px; margin-left: auto; margin-right: auto; }
    .dark-theme .section-subtitle { color: var(--text-color-dark); }


    .section-title {
        font-size: var(--h2-font-size);
        text-align: center;
        position: relative;
        padding-bottom: 1.5rem;
        margin-bottom: 1rem;
        color: var(--text-color-primary);
    }
    .section-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        width: 80px;
        height: 4px;
        background: var(--accent-color);
        border-radius: 2px;
        transform: translateX(-50%) scaleX(0);
        transform-origin: center;
        transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1) 0.2s;
    }
    .animate-on-scroll.visible .section-title::after {
        transform: translateX(-50%) scaleX(1);
    }
    .dark-theme .section-title { color: var(--accent-color-light); }
    .dark-theme .section-title::after { background: var(--accent-color-light); }

   
    #preloader { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--base-color-light); z-index: 1001; display: flex; justify-content: center; align-items: center; transition: opacity .5s ease; }
    .loader-name { font-family: var(--heading-font); font-size: 2rem; color: var(--accent-color); animation: pulse 1.5s infinite ease-in-out; }
    @keyframes pulse-loader { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }

   
    .l-header {
        width: 100%; position: fixed; top: 0; left: 0; z-index: 100;
        background-color: var(--base-color-light); box-shadow: 0 2px 10px hsla(230, 80%, 5%, 0.1);
        transition: all .3s var(--timing-function);
    }
    .l-header.scrolled { background-color: hsla(0, 0%, 100%, 0.8); backdrop-filter: blur(10px); height: calc(var(--header-height) - 0.5rem); }
    .nav { height: var(--header-height); display: flex; justify-content: space-between; align-items: center; transition: height .3s; }
    .nav__logo { color: var(--text-color-primary); font-family: var(--heading-font); font-weight: 700; font-size: 1.2rem; }
    .nav__toggle { font-size: 1.5rem; cursor: pointer; color: var(--text-color-primary); }
    .nav__link { color: #555; font-weight: 600; position: relative; padding: .5rem 0; transition: color .25s ease; }
    .nav__link:hover, .nav__link.active-link { color: var(--accent-color); }
    .nav__link::after { content: ""; position: absolute; left: 50%; transform: translateX(-50%); bottom: 0; height: 2px; background: var(--accent-color); width: 0; transition: width .3s var(--timing-function); }
    .nav__link:hover::after, .nav__link.active-link::after { width: 100%; }

    @media screen and (max-width: 767px) {
        .nav__menu { position: fixed; top: -100%; left: 0; width: 100%; padding: 1.5rem 0; text-align: center; background-color: var(--base-color-light); box-shadow: 0 4px 10px hsla(230, 80%, 5%, 0.1); border-radius: 0 0 1rem 1rem; transition: .4s; }
        .nav__list { display: flex; flex-direction: column; }
        .nav__item { margin-bottom: 2rem; }
        .show-menu { top: var(--header-height); }
    }
    @media screen and (min-width: 768px) {
        body { margin: 0; }
        .nav { height: calc(var(--header-height) + 1rem); }
        .l-header.scrolled .nav { height: var(--header-height); }
        .nav__list { display: flex; flex-direction: row; gap: 2rem; align-items: center; }
        .nav__item { margin-left: 2rem; margin-bottom: 0; }
        .nav__toggle { display: none; }
    }

    
    .home {
        min-height: 100vh; display: flex; align-items: center; position: relative;
        padding-top: calc(var(--header-height) + 2rem); background-color: var(--base-color-light);
    }
    .home::before { content: ''; position: absolute; top: -10%; left: -10%; width: 400px; height: 400px; background: radial-gradient(circle, hsla(230, 80%, 80%, 0.3), transparent 70%); border-radius: 50%; animation: blob-move 15s infinite alternate; z-index: 0; }
    .home::after { content: ''; position: absolute; bottom: 0%; right: -5%; width: 300px; height: 300px; background: radial-gradient(circle, hsla(190, 80%, 80%, 0.3), transparent 70%); border-radius: 50%; animation: blob-move-2 20s infinite alternate; z-index: 0; }
    @keyframes blob-move { from { transform: translate(0, 0) scale(1); } to { transform: translate(100px, 50px) scale(1.2); } }
    @keyframes blob-move-2 { from { transform: translate(0, 0) scale(1.2); } to { transform: translate(-80px, -40px) scale(1); } }
    
    .home__container { align-items: center; position: relative; z-index: 1; }
    .home__data { max-width: 600px; }
    .home__greeting { font-size: 1.5rem; font-weight: 700; color: var(--accent-color); margin-bottom: 1rem; }
    .home__title { font-size: var(--big-font-size); line-height: 1.1; margin-bottom: 2rem; min-height: 2.2em; }
    .typing-cursor { border-right: 4px solid var(--accent-color); animation: blink .7s infinite; margin-left: 4px; }
    @keyframes blink { 50% { border-color: transparent; } }
    .home__description { max-width: 500px; line-height: 1.7; }
    
    .home__img-frame-wrapper { justify-self: center; position: relative; width: 300px; height: 380px; }
    .home__img-frame-wrapper::before {
        content: ''; position: absolute;
        width: 100%; height: 100%;
        border: 3px solid var(--accent-color-light);
        border-radius: 1.5rem;
        top: 20px; left: -20px;
        z-index: 1;
        transition: all 0.3s var(--timing-function);
    }
    .home__img-frame-wrapper:hover::before { transform: translate(5px, -5px); }
    .home__img-container {
        width: 100%; height: 100%; border-radius: 1.5rem;
        position: relative; z-index: 2; overflow: hidden;
        box-shadow: 0 15px 35px hsla(230, 80%, 10%, 0.2);
    }
    .home__img { width: 100%; height: 100%; object-fit: cover; }
    
   
    .section-divider { position: relative; line-height: 0; }
    .section-divider svg { width: 100%; height: auto; }
    .fill-dark { fill: var(--base-color-dark); }
    .fill-light { fill: var(--base-color-light); }

   
    .dark-theme { background-color: var(--base-color-dark); }
    .about {
        padding-top: 8rem; margin-top: -1px;
    }
    .about__container { align-items: center; }
    .about__data { color: var(--text-color-dark); }
    .about__text { line-height: 1.8; }
    .about__img-container {
        position: relative; justify-self: center;
        width: 300px; height: 380px;
    }
    .about__img-container::after {
        content: ''; position: absolute;
        width: 100%; height: 100%;
        border: 3px solid var(--accent-color);
        border-radius: 1.5rem;
        top: 20px; right: -20px;
        z-index: 1; transition: all 0.3s var(--timing-function);
    }
    .about__img-container:hover::after { transform: translate(-5px, -5px); }
    .about__img {
        width: 100%; height: 100%; border-radius: 1.5rem;
        overflow: hidden; position: relative; z-index: 2;
        box-shadow: 0 15px 35px hsla(230, 80%, 5%, 0.5);
    }
    .about__img img { width: 100%; height: 100%; object-fit: cover; }
    .about__data .section-title { color: var(--text-color-light); text-align: left;}
    .about__data .section-title::after { left: 0; transform: translateX(0) scaleX(0); transform-origin: left; }
    .animate-on-scroll.visible .about__data .section-title::after { transform: translateX(0) scaleX(1); }

    
    .personalities__timeline {
        position: relative;
        max-width: 100%;
        margin: 0 auto;
    }
    .personalities__timeline::after {
        content: '';
        position: absolute;
        width: 4px;
        background-color: #e2e8f0;
        top: 0;
        bottom: 0;
        left: 50%;
        margin-left: -2px;
        border-radius: 2px;
    }
    .personality-item {
        padding: 10px 40px;
        position: relative;
        width: 50%;
    }
    .personality-item:nth-child(odd) {
        left: 0;
        padding-right: 70px; /* Thêm khoảng cách cho vòng tròn */
        text-align: right;
    }
    .personality-item:nth-child(even) {
        left: 50%;
        padding-left: 70px;
    }
    .personality-item::after { /* The circle on the timeline */
        content: '';
        position: absolute;
        width: 20px;
        height: 20px;
        right: -10px;
        background-color: white;
        border: 4px solid var(--accent-color);
        top: 50%;
        transform: translateY(-50%);
        border-radius: 50%;
        z-index: 1;
        transition: all .3s ease;
    }
    .personality-item:nth-child(even)::after {
        left: -10px;
    }
    .personality-item:hover::after {
        transform: translateY(-50%) scale(1.2);
        box-shadow: 0 0 15px var(--accent-color);
    }
    .personality-item__content {
        padding: 2rem 1.5rem;
        background-color: white;
        position: relative;
        border-radius: 1rem;
        box-shadow: 0 4px 15px hsla(230, 50%, 50%, 0.08);
        transition: transform .3s var(--timing-function), box-shadow .3s ease;
    }
    .personality-item:hover .personality-item__content {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px hsla(230, 50%, 50%, 0.15);
    }
    .personality-item__icon {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        background: linear-gradient(145deg, var(--accent-color), var(--accent-color-light));
        color: white;
        font-size: 1.8rem;
        display: inline-flex;
        justify-content: center;
        align-items: center;
        margin-bottom: 1rem;
    }
    .personality-item__title {
        font-size: 1.3rem;
        font-weight: 700;
        margin-bottom: .5rem;
        color: var(--text-color-primary);
    }
    .personality-item__description {
        color: #555;
        line-height: 1.6;
    }

   
    @media screen and (max-width: 767px) {
        .personalities__timeline::after {
            left: 31px;
        }
        .personality-item {
            width: 100%;
            padding-left: 70px;
            padding-right: 25px;
        }
        .personality-item:nth-child(odd),
        .personality-item:nth-child(even) {
            left: 0;
            text-align: left;
            padding-left: 70px;
        }
        .personality-item::after {
            left: 21px;
        }
    }


   
    .awards { overflow: hidden; }
    .awards__scroller { width: 100%; overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent); mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent); }
    .awards__rail { display: flex; gap: 1.5rem; width: fit-content; animation: scroll 40s linear infinite; }
    @keyframes scroll { to { transform: translateX(calc(-50% - 0.75rem)); } }
    .award-card { background: var(--panel-color-dark); border-radius: 1rem; border: 1px solid hsla(210, 15%, 75%, 0.1); overflow: hidden; box-shadow: 0 4px 15px var(--shadow-color); width: 280px; flex-shrink: 0; cursor: pointer; transition: transform .3s, box-shadow .3s; }
    .award-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px var(--shadow-color); }
    .award-card img { width: 100%; height: 200px; object-fit: cover; }
    .award-card__content { padding: 1rem; }
    .award-card__title { font-size: 1.1rem; font-weight: 600; margin-bottom: .5rem; color: var(--text-color-light); }
    .award-card__meta { font-size: 0.9rem; margin-bottom: .5rem; color: var(--text-color-dark); }
    .award-card__ribbon { font-size: 0.9rem; font-weight: 600; color: var(--accent-color); }

    
    .skills__slider-wrapper { display: flex; justify-content: center; padding: 2rem 0; overflow-x: auto; }
    .skills__container { height: 400px; display: flex; flex-wrap: nowrap; justify-content: center; max-width: 100%; gap: 10px; }
    .card { width: 80px; border-radius: 0.5rem; background-size: cover; background-position: center; cursor: pointer; overflow: hidden; margin: 0; display: flex; align-items: flex-end; transition: .6s var(--timing-function); box-shadow: 0px 10px 30px -5px rgba(0,0,0,0.4); }
    input[type="radio"] { display: none; }
    input:checked + label { width: 500px; }
    .card:nth-of-type(1) { background-image: url('image/FZ/42607070.JPEG'); }
    .card:nth-of-type(2) { background-image: url('image/FZ/IMG_8293.JPG'); }
    .card:nth-of-type(3) { background-image: url('image/FZ/DUO-338.JPEG'); }
    .card:nth-of-type(4) { background-image: url('image/FZ/att.eb6yNKnosCWJGdb8_ONSkp1UxqJMlbtnzn5HmxWT-9Y.JPG'); }
    .card:nth-of-type(5) { background-image: url('image/FZ/att.f0qB5xM74eudvd1Oam_7urON5JqIZpnYSxA6cqG2YYI.JPG'); }
    .card:nth-of-type(6) { background-image: url('image/FZ/FZ KG 25.JPEG'); }
    
    
    .inspire-quote { text-align: center; padding: 6rem 1.5rem; background-color: var(--base-color-light); }
    .inspire-quote p { font-size: 1.25rem; font-style: italic; max-width: 700px; margin: 0 auto; position: relative; color: var(--text-color-primary); }
    .inspire-quote p::before, .inspire-quote p::after { content: '"'; font-size: 3rem; color: var(--accent-color); opacity: 0.3; position: absolute; line-height: 1; }
    .inspire-quote p::before { top: -1rem; left: -1rem; }
    .inspire-quote p::after { bottom: -2rem; right: -1rem; }

    
    .contact { background-color: var(--base-color-light); padding-top: 0; }
    .contact__container { 
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
        gap: 2rem; 
        justify-content: center; 
    }
    .contact__item {
        display: flex;           
        flex-direction: column; 
        align-items: center;    
        justify-content: center; 
        text-align: center; 
        padding: 2rem;
        background: #fff; 
        border: 1px solid #e2e8f0; 
        border-radius: 1rem;
        transition: transform .3s, box-shadow .3s;
        box-shadow: 0 4px 15px hsla(230, 50%, 50%, 0.05);
    }
    .contact__item a {
        display: block;          
        word-break: break-all;   
        margin-top: 0.25rem;
    }

   
    .footer { background-color: var(--base-color-dark); color: var(--text-color-light); text-align: center; border-top: 1px solid hsla(210, 15%, 75%, 0.1); }
    .footer__container { padding: 2rem 0; }
    .footer__title { font-family: var(--heading-font); font-size: 1.5rem; margin-bottom: 1rem; }
    .footer__social { margin-bottom: 1rem; }
    .footer__icon { font-size: 1.5rem; color: var(--text-color-light); margin: 0 1rem; transition: color .3s; }
    .footer__icon:hover { color: var(--accent-color); }

    
    .lightbox { display: none; position: fixed; z-index: 1000; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); backdrop-filter: blur(5px); justify-content: center; align-items: center; }
    .lightbox.show { display: flex; }
    .lightbox-img { max-width: 90vw; max-height: 85vh; border-radius: .5rem; animation: zoomIn .3s ease; }
    @keyframes zoomIn { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }
    .lightbox-close { position: absolute; top: 20px; right: 35px; color: #fff; font-size: 2.5rem; cursor: pointer; }
    
    
    .animate-on-scroll { opacity: 0; transform: translateY(30px); transition: opacity .6s ease-out, transform .6s ease-out; transition-delay: calc(0.1s * var(--delay, 0)); }
    .animate-on-scroll.visible { opacity: 1; transform: translateY(0); }

   
    @media screen and (min-width: 768px) {
        .home__container, .about__container { grid-template-columns: repeat(2, 1fr); gap: 3rem; }
        .home__data { order: 0; }
        .home__img-frame-wrapper, .about__img-container { width: 350px; height: 440px; }
    }
    @media screen and (min-width: 1024px) {
        .bd-container { margin-left: auto; margin-right: auto; }
        .home { min-height: 100vh; }
        .home__container { padding-top: 0; }
        .home__img-frame-wrapper { width: 380px; height: 480px; }
        .about__img-container { width: 380px; height: 480px; }
    }

  

   
:root {
    --header-height: 4.5rem; 
    --brand-blue: #00adef;   
    --text-dark: #1e293b;
    --text-gray: #64748b;
}

.main-header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background: transparent;
    transition: all 0.3s ease;
}


.main-header.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    height: 4rem;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 100%;
    padding: 0 3rem; 
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.nav-logo {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-dark);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.brand-blue {
    color: var(--brand-blue);
}


.nav-list {
    display: flex;
    column-gap: 2.5rem;
    list-style: none;
}

.nav-link {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem; 
    font-weight: 600;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    position: relative;
    transition: 0.3s;
}

.nav-link:hover, .active-link {
    color: var(--brand-blue);
}


.nav-link::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--brand-blue);
    transition: width 0.3s ease;
}

.nav-link:hover::after, .active-link::after {
    width: 100%;
}


@media screen and (max-width: 767px) {
    .nav-container { padding: 0 1.5rem; }
    
    .nav-menu {
        position: fixed;
        top: -100%;
        left: 0;
        width: 100%;
        background: white;
        padding: 4rem 0;
        text-align: center;
        transition: 0.4s;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }
    
    .nav-list { flex-direction: column; row-gap: 2rem; }
    .nav-toggle { font-size: 1.5rem; color: var(--text-dark); cursor: pointer; }
    .nav-close { position: absolute; top: 1rem; right: 1.5rem; font-size: 2rem; cursor: pointer; }
    .show-menu { top: 0 !important; }
}

@media screen and (min-width: 768px) {
    .nav-toggle, .nav-close { display: none; }
}