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

html,
body {
    width: 100%;
    height: 100%;
    font-family: "Inter", sans-serif;
    color: #fff;
    overflow: hidden; 
}

:root{
    --title-color: #424242;
    --subTittle-color: #7e7e7e;
    --text: #5f5f5f;
}

.active{
    text-decoration: underline;
    text-underline-offset: 4px;
}

.bold {
    font-weight: 600 !important;
}

.italic{
    font-style: italic;
}

.scroll-wrapper {
    height: 100%;
    width: 100%;
    overflow-y: auto; 
    overflow-x: hidden;
    color: var(--text);
    display: flex;
    flex-direction: column;
}

.header {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 10rem;
    height: fit-content;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
}

.header__name {
    font-size: 1.3rem;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text);
}

.header .header_list {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.header .header_list li a {
    cursor: pointer;
    text-decoration: none;
    color: var(--text);
}

main{
    display: flex;
    height: fit-content;
    padding: 0 10rem;
    margin-top: 4rem;
    gap: 8rem;
}

.description{
    flex: 1;
    display: flex;
    gap: 2rem;
    flex-direction: column;
}

.avatar{
    width: 9rem;
    aspect-ratio: 1/1;
    background-color: #bababa;
    border-radius: 100%;
    position: relative;
    background-image: url('/public/avatar.svg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    border: 1px solid black;
}

.sticker{
    position: absolute;
    left: -15%;
    bottom: -13%;
    height: 4rem;
    aspect-ratio: 1/1;
    background-image: url('/public/assets/sticker.gif');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.subText{
    text-transform: uppercase;
    color: var(--subTittle-color);
    font-size: 1.05rem;
    font-weight: 550;
}

.description-title{
    color: var(--title-color);
    font-weight: 600;
    font-size: 2rem;
}

.content{
    line-height: 1.5rem;
    color: var(--text);
}

.edu{
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.edu-box{
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.box{
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.box-title{
    color: var(--title-color);
    font-weight: 600;
    font-size: 1.25rem;
}

.project{
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.pj{
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pj a{
    text-decoration: none;
    color: var(--title-color);
}

.gif{
    width: 100%;
    height: 13rem;
    background-image: url('https://i.pinimg.com/originals/15/8e/0d/158e0d16771ceb8cab18b1cd2206595c.gif');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    border-radius: 18px;
}

.resume{
    color: #000000;
}

.footer {
    background: #f6f6f6b1;
    height: fit-content;
    color: rgb(83, 83, 83);
    padding: 4rem 10rem;

    margin-top: 48px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.footer__content {
    margin-bottom: 12px;
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.footer__content_1 {
    width: 100%;
    display: flex;
    gap: 8rem;
}

.f1 {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    white-space: nowrap;
}

.f_title {
    font-weight: 350;
    font-size: 1.2rem;
    text-transform: uppercase;
    color: #757575;
}

.f_icon {
    display: flex;
    gap: 1.5rem;
    font-size: 1.75rem;
}

.f_icon a {
    color: #000000;
    text-decoration: none;
}


::-webkit-scrollbar {
    background: #181818;
    /* Nền đen */
}

::-webkit-scrollbar-thumb {
    background: #444;
    /* Thanh trượt xám */
    border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
    background: #666;
    /* Xám sáng hơn khi hover */
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #444 #181818;
    /* thumb #444, track #181818 */
}


/* Icon toggle menu ẩn trên desktop */
.menu-toggle {
    display: none;
    font-size: 1.75rem;
    color: var(--title-color);
    cursor: pointer;
}

/* Menu xổ xuống */
.mobile-menu {
    display: none;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.767);
    position: fixed;
    top: 0rem;
    left: 0rem;
    height: 100vh;
    width: 100vw;
    padding: 1rem 2rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    z-index: 1000;
    overflow: hidden;

    justify-content: center;
    align-items: center;
}

.mobile-menu ul {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    list-style: none;
    font-size: 2rem;
}

.mobile-menu a {
    color: #e8e8e8;
    text-decoration: none;
    font-weight: 300;
}

.exit-menu-mobile{
    position: absolute;
    font-size: 2rem;
    top: 1.8rem;
    right: 4.5rem;
    cursor: pointer;
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .header .header_list {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .mobile-menu.show {
        display: flex;
    }
}


@media (max-width: 1200px) {
    .header {
        padding: 2rem 8rem;
    }

    main{
        padding: 0 8rem;
    }

    .footer{
        padding: 4rem 8rem;
    }

    .footer__content_1{
        grid-template-columns: 2fr 2fr 1fr;
    }
}

/* Responsive cho carousel và layout */
@media (max-width: 1024px) {
    .header {
        padding: 2rem 6rem;
    }

    .edu-box{
        flex-direction: column;
    }

    main{
        padding: 0 6rem;
    }

    .footer{
        padding: 4rem 6rem;
    }

    .footer__content_1{
        gap: 4rem;
    }
}

@media (max-width: 900px) {
    .header {
        padding: 2rem 4rem;
    }

    main{
        padding: 0 4rem;
    }

    .description{
        flex: 1;
    }

    .footer{
        padding: 4rem 4rem;
    }

    .footer__content_1{
        flex-direction: column;
        gap: 2rem;
    }

    .f1{
        gap: 0rem;
    }

    .exit-menu-mobile{
        right: 4rem;
    }
}

@media (max-width: 768px) {
    main{
        flex-direction: column;
    }
}


@media (max-width: 600px) {
    .header {
        padding: 2rem 2rem;
    }

    main{
        padding: 0 2rem;
    }

    .footer{
        padding: 4rem 2rem;
    }

    .exit-menu-mobile{
        right: 2rem;
    }
}

.slide-in-up {
    animation: slideInUp 0.6s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.moveLeft{
    animation: moveToLeft 1s ease-in-out;
}
.moveRight{
    animation: moveToRight 1s ease-in-out;
}

@keyframes moveToLeft{
    from{
        transform: translateX(50%);
        opacity: 0;
    }
    to{
        transform: translateX(0);
        opacity: 1;
    }
}
@keyframes moveToRight{
    from{
        transform: translateX(-50%);
        opacity: 0;
    }
    to{
        transform: translateX(0);
        opacity: 1;
    }
}

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

.mobile-menu.show ul.header_list_mb li {
    opacity: 0;
    animation: menuItemFadeIn 0.5s forwards;
}

.mobile-menu.show ul.header_list_mb li:nth-child(1) {
    animation-delay: 0.1s;
}
.mobile-menu.show ul.header_list_mb li:nth-child(2) {
    animation-delay: 0.25s;
}
.mobile-menu.show ul.header_list_mb li:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes exitBtnFadeIn {
    from {
        opacity: 0;
        transform: scale(0.7) rotate(-30deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0);
    }
}

.mobile-menu.show .exit-menu-mobile {
    opacity: 0;
    animation: exitBtnFadeIn 0.5s 0.15s forwards;
}