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

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

.scroll-wrapper {
    height: 100%;
    width: 100%;
    overflow: hidden;
}

span{
    line-height: 1.9;
}

:root{
    --title-color: #424242;
    --subTittle-color: #545454;
    --text: #4d4c50;
}

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

.container {
    width: 100%;
    height: fit-content;
    display: flex;
    justify-content: center;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    flex-direction: column;
}

.instaContainer{
    background-image: url('public/assets/project1/bg.png');
}

.musicContainer{
    background-image: url('public/assets/project2/bg.jpg');
}

.layout {
    width: 100%;
    height: 100%;
    display: flex;    
    padding: 0 10rem;
    flex-direction: column;
    justify-content: start;
    position: relative;
}

.instaLayout{
    background: linear-gradient(90deg,rgba(255, 87, 132, 0.855) 0%, rgba(255, 117, 154, 0.2) 100%);
}

.musicLayout{
    background: linear-gradient(90deg,rgba(45, 45, 45, 0.495) 0%,rgba(60, 60, 60, 0.188) 100%);
}

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

.header__name {
    font-size: 1.3rem;
    text-transform: uppercase;
    text-decoration: none;
    color: white;
    position: relative;
    z-index: 99;
    background-color: rgba(0, 0, 0, 0.115); 
}

.header__name::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;     
    height: 300%;    
    transform: translate(-50%, -50%);
    background: transparent;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: -1;    
    
    mask: radial-gradient(ellipse at center,
        black 0%,
        black 20%,
        transparent 80%);
    -webkit-mask: radial-gradient(ellipse at center,
        black 0%,
        black 20%,
        transparent 80%);
}

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

.header .header_list li a {
    cursor: pointer;
    text-decoration: none;
    color: #fff;
}

/* Icon toggle menu ẩn trên desktop */
.menu-toggle {
    display: none;
    font-size: 1.75rem;
    color: white;
    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;
    height: 100dvh;
    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.5rem;
    right: 4.5rem;
    cursor: pointer;
}


.title-wrapper{
    display: flex;
    width: 100%;
    height: 100vh; 
    height: 100dvh;
}

.title {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
    gap: 2rem;
}   

hr{
    width: 50%;
    height: 1px;
    border: none;
    border-radius: 3px;
    background: linear-gradient(90deg, #ffb1b1 0%, #ff6b86 100%);
    opacity: 1;
}

.title_content{
    display: flex;
    flex-direction: column;
}

.title_content span:first-child{
    font-weight: 550;
    font-size: 0.9rem;
}

.title_content a{
    font-size: 1.05rem;
    max-width: 25rem;
    text-decoration: none;
    color: white;
}

.title__name{
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 3rem;
}

.title_icon {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.project-image{
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pm{
    width: 35rem;
    aspect-ratio: 1/1;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.insta{
    background-image: url("/public/assets/project1/project.png");
}

.gravitar{
    background-image: url("/public/assets/project2/project.svg");
}

.button{
    position: absolute;
    bottom: 4rem;
    transform: translateX(-50%);
    left: 50%;
    text-decoration: none;
    text-transform: uppercase;
    padding: 0.8rem 2.5rem;
    border: 2px solid white;
    font-size: 0.9rem;
    color: white;
    font-weight: 550;
    white-space: nowrap;
}

.scroll-dots{
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 18px;
    justify-content: center;
    align-items: center;
}

.dot{
    width: 0.4rem;
    aspect-ratio: 1/1;
    border-radius: 100%;
    background-color: #ffffffb5;
    transition: 0.5s linear;
    cursor: pointer;
}

.dot.active{
    background-color: #ffffff;
    width: 0.6rem;
}

::-webkit-scrollbar {
    background: #181818;
}

::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
    background: #666;
}

* {
    scrollbar-width: thin;
    scrollbar-color: #444 #181818;
}


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

    .menu-toggle {
        display: block;
    }

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

@media (max-width: 1200px) {
}

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

    .header{
        padding: 2rem 6rem;
    }
}

@media (max-width: 900px) {
    .layout{
        padding: 0 4rem;
    }
    .header{
        padding: 2rem 4rem;
    }
    .exit-menu-mobile{
        right: 4rem;
    }
}

@media (max-width: 768px) {
    .pm{
        width: 25rem;
    }
}

@media (max-width: 600px) {
    .layout{
        padding: 0 2rem;
    }
    .title-wrapper{
        gap: 0rem;
    }
    .title__name{
        margin-bottom: 0;
    }
    .project-image{
        flex: 0;
        margin-top: 4rem;
    }
    .pm{
        display: none;
    }
    .exit-menu-mobile{
        right: 2rem;
    }
    .header{
        padding: 2rem;
    }
}

@media (max-width: 500px) {
    .header__name{
        font-size: 1rem;
    }
}

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

@keyframes slideInUp {
    from {
        opacity: 0;
    }
    to {
        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;
}