*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: "Quicksand", sans-serif;
    scroll-behavior: smooth;
}

html{
    scroll-snap-type: y mandatory;
}

body{
    overflow-x: hidden;
}

section{
    min-height: 100vh;
    scroll-snap-align: start;
}

.sectionTitle{
    padding: 80px 0 30px 0 ;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: black;
}

/* NAVBAR */
.hamburger{
    opacity: 0; 
    z-index: 100; 
}

.navMain{
    padding: 0 20px;
    min-height: 60px;
    width: 100%;
    z-index: 99;
    position: fixed;
    background-color: #A0522D;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo{
    height: 50px;
    transition: all .2s;
}

.logo:hover{
    scale: 1.08;
}

.navUl{
    display: flex;
    list-style: none;
}

.navLi{
    display: inline-flex;
    align-items: center;
    padding-bottom: 5px;
    margin-right: 20px;
    gap: 5px;
    color: beige;
    border-bottom: 2px solid transparent;
    text-decoration: none;
    transition: all .2s ease;
}

.navLi:hover{
    transform: translateY(-2px);
    /* text-decoration: underline; */
    text-underline-offset: 5px;
    border-bottom: 2px solid white;
}
/* NAVBAR END */

/* HOME */
.home{
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-image: url(img/home_bg.webp);
    background-repeat: repeat-x;
    background-position: center center;
}

.homeMain{
    padding: 0 30px;
    width: 100%;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: left;
    justify-content: center;
    gap: 20px;
    animation: disappear-left linear both;
    animation-timeline: view();
    animation-range: exit 30% exit 100%;
}

.hello{
    font-size: clamp(1.5rem, 5vw, 3rem);
    color: White;
    text-shadow: 5px 5px 3px black;
    width: 100%;
    max-width: 500px;
}

.about{
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    padding: 10px 0;
    gap: 20px;
    font-size: clamp(.8rem, 2.5vw, 1.2rem);
    color: white;
    border-top: 1px solid white;
    text-shadow: 3px 3px 10px black;
}

.aboutBtnContainer{
    min-height: 40px;
    width: 100%;
    max-width: 140px;
}

.aboutBtn{ 
    min-height: 40px;
    width: 100%;
    max-width: 140px;
    border: none;
    border-radius: 5px;
    background-color: #A0522D;
    color: bisque;
    transition: all .2s;
}

.aboutBtn:hover{
    cursor: pointer;
    background-color: #8B4513;
    border-radius: 7px;
    scale: 1.1;
}
/* HOME END */

/* SKILL */
.skillsMain{
    min-height: 110vh;
    background-color: transparent;
}

.skillsRow{
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 30px 0;
    animation: appear-bottom linear both;
    animation-timeline: view();
    animation-range :entry 0% cover 12%; 
}

.skills{
    border-bottom: 1px solid black ;
}

.tags{
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 25px;
    margin: 20px 0 ;
    flex-wrap: wrap;
}

.tag{
    padding-bottom: 10px;
    display: inline-block;
    align-content: end;
    text-align: center;
    min-height: 100px;
    width: 100%;
    max-width: clamp(150px, 1vw, 500px);
    color: transparent;
    font-weight: 500;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
    transition: all .2s;
}

.tag:hover{
    color: beige;
    text-shadow: 0 0 5px black;
    background-color: #777;
    border-radius: 10px;
    scale: 1.1;
    bottom: 5px;
}

.tag2{
    display: inline-block;
    flex-wrap: wrap;
    text-align: center;
    font-weight: 500;
    background-color: rgb(179, 111, 79);
    color: beige;
    line-height: 50px;
    min-height: 50px;
    min-width: 80px;
    width: 150px;
    border-radius: 8px;
    box-shadow: 3px 5px 8px rgb(0, 0, 0, 0.4);
    transition: all .2s;
}

.tag2:hover{
    cursor: default;
    background-color: peru;
    border-radius: 11px;
    scale: 1.1;
    
}
/* SKILL END */

/* PROJECT */
.projectMain{
    min-height: 100vh;
    background-color: bisque;
}

.project{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 60px;
    padding: 0 40px;
}

.card{
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 240px;
    min-height: 300px;
    background-color: beige;
    border-radius: 15px;
    border: 1px solid black;
    transition: all .5s;

    animation: appear-bottom linear both;
    animation-timeline: view();
    animation-range :entry 0% cover 15%; 
}

.card:hover{
    transform: scale(1.05);
    box-shadow: 8px 16px 15px rgb(0, 0, 0, .5);
}

.cardImg{
    position: relative;
    width: 100%;
    min-height: 180px;
    align-items: center;
    color: transparent;
    background-image: url(img/porto.jpg);
    background-position: top;
    background-size: cover;
    background-repeat: no-repeat;
    border-radius: 10px;
    border: 1px solid black ;
    transform: translateY(-15px) scale(.95);
    transition: all .4s;
}

.cardImg:hover{
    transform: scale(1);
    border-radius: 15px;
    border: none;
    border-bottom: 1px solid black;
    box-shadow: 2px 5px 5px rgb(0, 0, 0, 0.3);
    cursor: pointer;
}

.cardImg:hover .viewBtn{
    opacity: 1;
}

.cardImg2{
    width: 100%;
    min-height: 180px;
    background-color: #bd673fee;
    border-radius: 15px;
}

.cardImg3{
    width: 100%;
    min-height: 180px;
    background-color: #bd673fee;
    border-radius: 15px;
}

.viewBtn{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    color: beige;
    background-color: rgb(0, 0, 0, 0.3);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 600;
    transition: all .2s;
    border-radius: 10px;
}

.cardInfo{
    padding: 15px 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    font-size: 1rem;
}
/* PROJECT END */

/* CONTACT */
.contactMain{
    background-color: bisque;
    min-height: 100vh;
    overflow-x: hidden;
}

.contact{
    background-color: #FFF8DC;
    display: flex;
    min-height: 450px;
    font-size: clamp(.7rem, 1vw, 1rem);
}

.contactTitle{
    font-size: 1.2rem;
    color: #8B4513;
    padding-bottom: 20px;
    text-align: left;
}

.subContainer1{
    padding: 40px 30px;
    flex: 6;
    flex-direction: column;
    text-align: center;
    animation: fade linear both;
    animation-timeline: view();
    animation-range :entry 0% cover 40%;
}

input::placeholder, textarea::placeholder{
    color: #888;
    opacity: 1;
    font-size: .8rem;
}

#userName, #email, #subject, #message{
    width: 100%;
    margin: 4px 0;
    padding-bottom: 10px;
    background-color: transparent;
    color: #8B4513;
    font-weight: 500;
    font-size: 1rem;
    border: none;
    border-bottom: 1px solid #777;
    outline: none;
    transition: all .2s;
}

#message{
    height: 150px;
}

#userName:focus, #email:focus, #subject:focus, #message:focus{
    border-bottom: 2px solid peru;
    color: #8B4513;
}

#submitBtn{
    text-transform: uppercase;
    align-items: center;
    margin: 10px 0; 
    width: 100%;
    height: 40px;
    border: none;
    border-radius: 3px;
    background :#A0522D;
    color: white;
    transition: all .25s; 
}

#submitBtn:hover{
    background: #8B4513;
    cursor: pointer;
}

.subContainer2{
    padding: 40px 30px;
    background-color: #222;
    flex: 4;
    color: #888;
    animation: appear-right linear both;
    animation-timeline: view();
    animation-range :entry 0% cover 15%;
}

.contactSub{
    padding: 5px 0;
    color: bisque
}

.description, .contactInfo{
    list-style: none;
    padding-bottom: 15px;
}

.ulMedsos{
    list-style: none;
    display: flex;
    align-items: center;
    gap :20px;
}

.liMedsos{
    font-size: 1rem;
    transition: all .2s;
}

.liMedsos:hover{
    transform: scale(1.15);
    text-shadow: 0 0 10px rgba(255, 228, 196, 0.7);
}

.fa-whatsapp{
    color: green;
}

.fa-discord{
    scale: .85;
    color: rgb(80, 80, 220);
}

.fa-github{
    color: white;
}
/* CONTACT END */

footer{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 50px;
    font-size: .8rem;
    color: #FFF8DC;
    background-color: #A0522D;
    border-top: 1px solid black;
}

/* THANKS */
.thanksMain{
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 30px;
    background-color: cadetblue;
}

.thanksMessage{
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    padding: 20px;
    height: auto;
    width: 100%;
    max-width: 600px;
    background-color: beige;
    color: #8B4513;
    border-radius: 15px;
    box-shadow: 6px 10px 10px #8B4513;
    font-size: 1rem;
}
/* THANKS END */

/* ANIMATION */
@keyframes fade{
    from{
        opacity: 0;
    } to{
        opacity: 1;
    }
}
@keyframes appear-bottom{
    from{
        scale: .5;
        opacity: 0;
    } to{
        scale: 1;
        opacity: 1;
    }
}

@keyframes appear-right{
    from{
        transform: translateX(100px);
        opacity: 0;
        
    } to{
        transform: translateX(0px);
        opacity: 1;
        
    }
}

@keyframes appear-top{
    from{
        transform: translateY(100px);
        opacity: 0;
        
    } to{
        transform: translateY(0px);
        opacity: 1;
        
    }
}

@keyframes disappear-left{
    from{
        transform: translateX(0);
        opacity: 1;
        
    } to{
        transform: translateX(-100px);
        opacity: 0;
        
    }
}

/* TAMPILAN HP */
@media (max-width: 650px){
    .contact{
        flex-direction: column;
        height: auto;
    }

    .homeMain{
        padding: 0 20px;
    }

    .navUl{
        padding: 15px;
        gap: 20px;
        position: fixed;
        top: 60px;
        min-height: 100px;
        width: 100%;
        max-width: 150px;
        right: -50%;
        transition: right .5s ease-in-out;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        background-color: peru;
        border-radius: 5px;
        border: 1px solid #8B4513;
        
    }

    .navUl.active{
        right: 0%;
        
    }

    .hamburger{
        opacity: 1;
    }

    .hamburger.active i{
        color: white;
    }

}