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

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

.scroll-wrapper {
    height: 100%;
    width: 100%;
    overflow-y: auto;  
    scroll-behavior: smooth;
}

span{
    line-height: 1.9;
}

:root{
    --title-color: #424242;
    --subTittle-color: #545454;
    --white: #faf8ff;
    --white-text: #1b1b1b;
}

.container {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.layout {
    width: 100%;
    height: 100%;
    display: flex;    
    padding: 0 10rem;
    flex-direction: column;
    justify-content: start;
    position: relative;
    background: linear-gradient(90deg,rgba(45, 45, 45, 0.495) 0%,rgba(60, 60, 60, 0.188) 100%);
    background-image: url('public/assets/project2/bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; 
}

.header {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 0;
    height: 5rem;
    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(--white);
}

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

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

.title-wrapper{
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    height: 85vh; 
}

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

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

.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: var(--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{
    display: flex;
    justify-content: center;
    align-items: center;
}

.pm{
    width: 35rem;
    aspect-ratio: 1/1;
    background-image: url("/public/assets/project2/project.svg");
    filter: drop-shadow(0 0 4rem rgb(0, 0, 0));
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.material-symbols-outlined {
    font-size: 3rem !important;
    cursor: pointer;
}


.introduce{
    width: 100%;
    padding: 6rem 10rem;
    display: flex;
    color: var(--title-color);
    z-index: 50;
}

.intro-title{
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.intro-title span:first-child{
    font-size: 3.5rem;
    font-weight: 550;
    color: var(--title-color);
}

.intro-title span:nth-child(2){
    font-size: 1.25rem;
    color: var(--subTittle-color);
}

.intro-content{
    flex: 3;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.intro-content span{
    font-size: 0.9rem; 
}

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

.technical{
    width: 100%;
    padding: 4rem 10rem 4rem 10rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    color: var(--white-text);
}

.technical .title{
    font-size: 3.5rem;
    font-weight: 550;
    color: var(--title-color);
}

.skills{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 2rem;
    position: relative;
}

.icon:hover .name{
    display: block;
}

.icon{
    height: 7rem;
    aspect-ratio: 1/1;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #00000056;
    transition: all 0.5s ease;
}

.icon i{
    font-size: 3rem;
}
.container-typing {
    position: absolute;
}

.name {
    display: inline-block;
    font-size: 1rem;
    font-family: monospace;
    border-right: 2px solid;
    white-space: nowrap;
    overflow: hidden;
    width: 0;
    opacity: 0;
}

.icon:hover{
    background-color: #f7f7f7;
}

.icon:hover .name {
    animation: 
        typing 1s steps(20, end) forwards,
        cursor 0.5s step-end infinite;
    opacity: 1;
}

.content{
    width: 100%;
    color: #181818;
    padding: 4rem 18rem;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

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

.content-title{
    font-size: 2rem;
    font-weight: 600;
}

.context-content{
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.para{
    display: flex;
    flex-direction: column;
    gap: 1rem;
    color: var(--text);
    font-size: 0.9rem;
}

.para ul{
    margin-left: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-size: 0.9rem;
}

.content-subtitle{
    font-size: 1.3rem;
    font-weight: 600;
}

.challenge{
    color: var(--text);
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.challenge-box{
    width: 100%;
    height: fit-content;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #eaeaea;
    padding: 0.5rem 2rem;
    color: var(--text);
}

.image-gif{
    display: flex;
    width: 100%;
    padding: 4rem 18rem;
}

.gif{
    width: 100%;
    height: 70vh;
    background-image: url('public/assets/project2/gif.gif');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;

    animation: appear linear;
    animation-timeline: view();
    animation-range: entry 0 cover 50%;
}

.project-image-grid{
    display: flex;
    width: 100%;
    padding: 4rem 18rem;
    background-color: #ebebeb;
}

.project-image-grid div{
    width: 100%;
    height: 70vh;
    background-image: url('public/assets/project2/project2.svg');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;

    animation: appear linear;
    animation-timeline: view();
    animation-range: entry 0 cover 50%;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes cursor {
    50% { border-color: transparent; }
}

.top {
    bottom: 105%;
}

.bot {
    top: 105%;
}

.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: #aaaaaa;
}

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

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

.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 40px;
    width: 50px;
    height: 50px;
    color: rgb(0, 0, 0);          
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 4rem;
    opacity: 0;              
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 9999;
}

.scroll-to-top.show {
    opacity: 1;               
    pointer-events: auto;
}

@keyframes appear {
    0% {
        opacity: 0;
        scale: 0.8;
    }

    100% {
        opacity: 1;
        scale: 1;
    }
}

::-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;
}

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

.menu-toggle {
    display: none;
    font-size: 1.75rem;
    color: white;
    cursor: pointer;
}

.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;
}

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


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

    .menu-toggle {
        display: block;
    }

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

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

    .footer{
        padding: 4rem 8rem;
    }

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

    .project-image-grid{
        padding: 4rem 10rem;
    }

    .image-gif{
        padding: 4rem 10rem;
    }
}

@media (max-width: 1024px) {
    .layout{
        padding: 0 6rem;
    }

    .introduce{
        padding: 7rem 6rem;
    }

    .project-images {
        flex-direction: column;
        align-items: center;
    }

    .footer{
        padding: 4rem 6rem;
    }

    .footer__content_1{
        gap: 4rem;
    }

    .content{
        padding: 8rem 8rem;
    }
    
    .project-image-grid{
        padding: 4rem 8rem;
    }

    .image-gif{
        padding: 4rem 8rem;
    }
}

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

    .footer{
        padding: 4rem;
    }

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

    .f1{
        gap: 0rem;
    }

    .content{
        padding: 4rem;
    }

    .context{
        display: flex;
        flex-direction: column;
    }
    
    .project-image-grid{
        padding: 4rem 4rem;
    }

    .image-gif{
        padding: 4rem 4rem;
    }

    .gif{
        height: 50vh;
    }

    .title{
        flex: 0;
        gap: 1rem;
    }

    .introduce{
        padding: 4rem;
        flex-direction: column;
        gap: 2rem;
    }

    .intro-title{
        gap: 0rem;
    }

    .technical{
        padding: 4rem;
    }

    .technical .title{
        font-size: 2.5rem;
    }

    .icon{
        height: 5rem;
    }

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

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

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

    .footer{
        padding: 4rem 2rem;
    }

    .content{
        padding: 3rem 2rem;
    }

    .intro-title{
        gap: 0rem;
    }

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

    .project-image-grid{
        padding: 0rem 2rem;
    }

    .image-gif{
        padding: 0rem 2rem;
    }

    .title-wrapper{
        gap: 0rem;
    }
    .title__name{
        margin-bottom: 0;
    }
    .project-image{
        flex: 0;
        margin-top: 4rem;
    }
    .pm{
        display: none;
    }
    .title{
        flex: 0;
        gap: 1rem;
    }

    .technical{
        padding: 4rem 2rem;
    }

    .technical .title{
        font-size: 1.5rem;
    }

    .icon{
        height: 5rem;
    }

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

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

    .intro-title span:first-child{
        font-size: 2rem;
    }

    .intro-title span:nth-child(2){
        font-size: 1rem;
    }

    .intro-content span{
        font-size: 1.05rem;
    }

    .technical{
        padding: 2rem;
    }

    .skills{
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr 1fr;
    }

    .content{
        padding: 2rem 2rem 4rem 2rem;
    }

    .project-image-grid div{
        width: 100%;
        height: 50vh;
    }
}

@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;
}