/*Costum HTML*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html {
    overflow-x: hidden;
    overflow-x: clip;
}

body {
    font-family: globalFont;
    overflow-x: hidden;
    overflow-x: clip;
}

a {
    text-decoration: none;
}

@font-face {
    font-family: globalFont;
    src: url(assets/font/Afacad-VariableFont_wght.ttf);
}

.up {
    transition: transform 0.25s ease, color 0.25s ease;
    display: inline-block;
    cursor: default;
    color: inherit;
    will-change: transform;
}

.up:hover {
    transform: translateY(-10px);
    color: #FFD700;
}

/*Loading Page*/

#loader {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: #FEFACD;
    color: #5B0E14;
    z-index: 9999;
    transition: opacity 0.5s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    order: 1;
}

#loader::after {
    content: "";
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    border: 0.4rem solid #FEFACD;
    border-top: 0.4rem solid #5B0E14;
    animation: spin 1s linear infinite;
}

.loadingtext {
    order: 2;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/*Page*/

#wraps {
    min-height: 100vh;
    background-color: #FEFACD;
}


/*Navbar*/

.header-list {
    text-align: center;
    justify-content: center;
}

.nav-menu {
    display: none;
    color: #FEFACD;
    cursor: default;
    transition: color 0.3s;
}

/*Header*/

.header {
    display: flex;
    justify-content: space-between;
    background-color: #5B0E14;
    height: 6vh;
    align-items: center;
    padding: 2.5rem 2rem 2.5rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.fqzxstudio {
    color: #FEFACD;
    transition: color 0.3s;
}

.fqzxstudio:hover {
    color: #FFD700;
    transition: color 0.3s;
}

.header-logo {
    height: 50px;
    background-color: #FEFACD;
    border-radius: 50%;
}

ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

ul a {
    color: #FEFACD;
    transition: color 0.3s;
}

ul a:hover {
    color: #FFD700;
    transition: color 0.3s;
}

.header h1 {
    color: #FEFACD;
}

.landing-page {
    cursor: default;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 18vh;
    background-color: #5B0E14;
    min-height: calc(100vh - 6vh);
    padding-left: 1rem;
    padding-right: 1rem;
    text-align: center;
    margin: auto;
    gap: 1rem;
}

.landing-page a {
    width: fit-content;
    margin: 0 auto;
    cursor: default;
}

.opening {
    color: #FEFACD;
    font-size: 3rem;
}

.opening-2 {
    color: #FEFACD;
    padding-top: 2vh;
    font-size: 1.5rem;
}

.mywork-button {
    background-color: #FEFACD;
    color: #5B0E14;
    width: fit-content;
    margin: 0 auto;
    margin-top: 10vh;
    padding: 1rem 2rem;
    border: 2px solid transparent;
    border-radius: 10px;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.mywork-button:hover {
    transform: translateY(-10px);
    background-color: #5B0E14;
    border-color: #FEFACD;
    color: #FEFACD;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.landing-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 5rem;
    text-align: center;
    padding-top: 10vh;
    justify-content: center;
    color: #FEFACD;
}

/*About*/

#about-page {
    min-height: 100vh;
    text-align: center;
    color: #5B0E14;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
}

.about-photo {
    height: 250px;
    border-radius: 50%;
    margin: 2rem auto 1rem auto;
    border: 2px solid transparent;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.about-photo:hover {
    transform: scale(1.1);
    border-color: #5B0E14;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.faiz {
    opacity: 0;
    transform: translateY(-10px);
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out, border 0.3s ease-in-out;
}

.faiz.active {
    opacity: 1;
    transform: translateX(0px);
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out, border 0.3s ease-in-out;
}

.about-text {
    max-width: 60vw;
    padding-top: 2vh;
    margin: 0 auto;
    font-size: 1.1rem;

}

.skills {
    margin: 2rem auto 0;
}

.box {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
    max-width: 40rem;
    margin: 1rem auto 0;
    justify-content: center;
}

.point {
    margin: 0.5rem 0rem 0rem 0rem;
    padding: 0.5rem 0.5rem 0.5rem 0.5rem;
    font-size: 1rem;
    color: #FEFACD;
    background-color: #5B0E14;
    border-radius: 20px;
    border: 2px solid transparent;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease, border 0.3s ease, transform 0.3s ease;
}

.point:hover {
    cursor: default;
    background-color: #FEFACD;
    color: #5B0E14;
    border-color: #5B0E14;
    transform: translateY(-10px);
    transition: background-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease, border 0.3s ease, transform 0.3s ease;
}

/*Projects*/

.projects-element {
    text-align: center;
    padding-top: 8rem;
    padding-bottom: 5rem;
    max-width: 70rem;
    margin: auto;
    color: #FEFACD;
    overflow-x: auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#view-button {
    margin-top: 1rem;
    padding: 1rem;
    border: #FEFACD solid 1px;
    border-radius: 10px;
    cursor: default;
    position: relative;
    overflow: hidden;
    z-index: 1;
    color: #FEFACD;
    background-color: transparent;
    transition: color 2s ease, transform 0.3s ease-in-out, box-shadow 1s ease;
}

#view-button:hover {
    color: #5B0E14;
    transition: color 2s ease, transform 0.3s ease-in-out, box-shadow 1s ease;
    box-shadow: 0 20px 30px -6px black;
    transform: translateY(-5px);
}

#view-button::before {
    content: '';
    width: 0;
    height: 100%;
    border-radius: 5px;
    position: absolute;
    top: 0;
    left: 0;
    background-color: #FEFACD;
    transition: 1s ease;
    display: block;
    z-index: -1;
}

#view-button:hover::before {
    width: 100%;
}

#projects-page {
    background-color: #5B0E14;
}

.project {
    color: #FEFACD;
    font-size: 2rem;
}

.last {
    margin-bottom: 5rem;
}

/*scrool infinite*/

.container {
    background-color: #FEFACD;
    padding: 1rem;
    color: #5B0E14;
    border-radius: 25px;
    height: 18rem;
    width: 15rem;
    text-align: center;
    text-align-last: center;
    cursor: default;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid transparent;
    transform: scale(1);
    transition: 0.5s ease-in-out, border 0.5s ease-in-out, color 0.5s ease-in-out;
}

.container:hover {
    background-color: #5B0E14;
    border-color: #FEFACD;
    color: #FEFACD;
    transition: 0.5s ease-in-out, border 0.5s ease-in-out, color 0.5s ease-in-out;
}


.pic {
    height: 100px;
    border-radius: 10px;
}

.title {
    margin-bottom: 1rem;
}

.explain {
    font-size: 0.8rem;
    padding-left: 1rem;
    padding-right: 1rem;
    text-align: center;
    text-align-last: center;
}

.flexbox {
    padding-top: 1rem;
    padding-bottom: 3rem;
    display: flex;
    width: 100%;
    margin: auto;
    margin-top: 2rem;
    margin-bottom: 2rem;
    overflow-x: auto;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.flexbox::-webkit-scrollbar {
    display: none;
}

.spin {
    flex: 0 0 5rem;
    gap: 5rem;
    padding-right: 5rem;
    padding-top: 2rem;
    display: flex;
    justify-content: center;
    animation: scroll 35s linear infinite;
}

.flexbox:hover .spin {
    animation-play-state: paused;
}

/*Animate*/

@keyframes scroll {
    from {
        translate: 0%;
    }

    to {
        translate: -100%;
    }
}

.anim-container {
    transform: translateY(0px) scale(1);
    transition: transform 0.3s ease-in-out;
}

.anim-container:hover {
    transform: translateY(-10px) scale(1.1);
    transition: transform 0.3s ease-in-out;
}

/*Contact*/

#contact {
    scroll-margin: 5rem;
    transform: translateY(0px) !important;
    transition: trasnform 0.3s ease-in-out !important;
}

#contact.active {
    transform: translateY(-10px) !important;
    transition: trasnform 0.3s ease-in-out !important;

}

.contact-element {
    max-width: clamp(350px, 90vw, 80rem);
    margin: auto;
}

#contact-page {
    color: #5B0E14;
    padding-top: 5rem;
    padding-left: clamp(2rem, 5vw, 8rem);
    padding-right: clamp(2rem, 5vw, 8rem);
    padding-bottom: 5rem;
    background-color: #FEFACD;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-info {
    padding-top: 1rem;
    width: 100%;
    max-width: 20rem;
}

.info {
    font-size: x-large;
}

.icons {
    margin-top: 1rem;
}

.icon1 {
    height: 40px;
    transform: translateY(0px);
    transition: transform 0.3s ease-in-out, border-color 0.3s ease-in-out, background-color 0.3s ease-in-out;
    background-color: #5B0E14;
    border: 3px solid transparent;
    border-radius: 50%;
}

.icon1:hover {
    cursor: pointer;
    transform: translateY(-8px);
    background-color: gray;
    border-color: #5B0E14;
    transition: transform 0.3s ease-in-out, border-color 0.3s ease-in-out, background-color 0.3s ease-in-out;
}

.icon2 {
    padding: 7px;
    height: 40px;
    margin-left: 0.6rem;
    transform: translateY(0px);
    border: 3px solid transparent;
    transition: transform 0.3s ease-in-out, border-color 0.3s ease-in-out, background-color 0.3s ease-in-out;
    background-color: #5B0E14;
    border-radius: 50%;
}

.icon2:hover {
    cursor: pointer;
    transform: translateY(-8px);
    background-color: gray;
    border-color: #5B0E14;
    transition: transform 0.3s ease-in-out, border-color 0.3s ease-in-out, background-color 0.3s ease-in-out;
}

.icon3 {
    padding: 6px;
    height: 40px;
    margin-left: 1rem;
    transform: translateY(0px);
    border: 3px solid transparent;
    transition: transform 0.3s ease-in-out, border-color 0.3s ease-in-out, background-color 0.3s ease-in-out;
    background-color: #5B0E14;
    border-radius: 50%;
}

.icon3:hover {
    cursor: pointer;
    transform: translateY(-8px);
    background-color: gray;
    border-color: #5B0E14;
    transition: transform 0.3s ease-in-out, border-color 0.3s ease-in-out, background-color 0.3s ease-in-out;
}

/*EmailMe*/

.form-main-title {
    font-size: 25px;
    color: #FEFACD;
}

.contact-flex {
    display: flex;
    align-items: center;
    gap: 5rem;
}

#contacts {
    transform: scale(1);
}

.form-subtitle {
    color: #FEFACD;
}

.form-container {
    max-width: 600px;
    padding: 30px;
    background: #5B0E14;
    border-radius: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    margin: auto;
    margin-top: 80px;
    text-align: center;
}

.contact-form label {
    display: block;
    margin-top: 15px;
    margin-bottom: 5px;
    font-size: 1.1em;
    color: #FEFACD;
    font-weight: 500;
    text-align: left;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    border: 1px solid #FEFACD;
    border-radius: 25px;
    box-sizing: border-box;
    font-size: 10px;
    background-color: rgba(0, 0, 0, 0.3);
    color: #FEFACD;
    transition: border-color 0.3s ease;
}

.contact-form input[type="text"],
.contact-form input[type="email"] {
    height: 50px !important;
    padding: 0 12px !important;
    display: flex !important;
    align-items: center !important;
    line-height: normal !important;
}

.contact-form textarea {
    padding: 12px;
    resize: vertical;
}

.contact-form ::placeholder {
    color: #FEFACD;
    opacity: 0.8;
    text-align: left;
}

.submit-button {
    display: block;
    width: 100%;
    padding: 15px;
    margin-top: 30px;
    background-color: #FEFACD;
    color: #5B0E14;
    font-size: 1.1em;
    font-weight: bold;
    border: 2px solid transparent;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s ease, border 0.3s ease, color 0.3s ease;
    will-change: background-color;
}

.submit-button:hover {
    background-color: #5B0E14;
    color: #FEFACD;
    border-color: #FEFACD;
    transition: background-color 0.3s ease, border 0.3s ease, color 0.3s ease;
}

/*Copyright*/

.copyright {
    margin: auto;
    text-align: center;
    color: #FEFACD;
    background-color: #5B0E14;
    width: 100%;
    padding: 1rem;
}


@media screen and (max-width: 35em) {
    html {
        font-size: 10px
    }

    .landing-skills {
        flex-wrap: wrap;
        margin: 0 auto;
        max-width: 70vw;
        gap: 3rem;
    }

    @media screen and (max-width: 35em) {

        .nav-menu {
            display: flex;
            font-size: 20px;
            color: #FEFACD;
            font-size: 20px;
            margin-left: auto;
            margin-right: 0;
        }

        .header-menu {
            display: flex;
            flex-direction: column;
            transition: opacity 0.3s ease, visibility 0.3s, transform 0.3s ease, background-color 0.3s ease;
            transition-delay: 0s, 0.3s, 0s, 0s;
            will-change: transform, opacity;
            opacity: 0;
            visibility: hidden;
            transform: translateY(-20px);
            position: absolute;
            right: 2rem;
            top: 8rem;
            width: 20rem;
            height: fit-content;
            font-size: 20px;
            z-index: 10;
            border-radius: 10px;
            padding-bottom: 1rem;
        }

        .header-menu.active {
            transition-delay: 0s, 0s, 0s, 0s;
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
            background-color: #5B0E14;
            border: 2px solid #FEFACD;
            padding: 1rem;
            border-radius: 10px;
        }

        .header-menu li {
            list-style: none;
        }
    }

    /*Header*/
    .fqzxstudio {
        font-size: 1.5rem;
    }

    .header-logo {
        height: 35px;
    }

    /*Landing*/
    .landing-page .opening {
        font-size: 18px;
    }

    /*About-Page*/
    .about-photo {
        height: 180px;
    }

    /*Project-Page*/
    .pic {
        height: 80px;
    }

    .container {
        height: 210px;
        width: 200px;
    }

    #view-button {
        transform: scale(0.9);
    }

    /*Contact-Page*/

    #contact {
        text-align: center;
        padding: 0;
        margin: 0;
        margin-bottom: 1rem;
    }

    .contact-flex {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .info {
        font-size: 18px;
    }

    .contact-info {
        order: 2;
        width: 100%;
        max-width: none;
    }

    .contacts {
        margin: 0 auto;
        order: 1;
    }

}