:root {
    --color-bg-dark: #040407;
    --color-primary: #6e6e8a;
    --color-secondary: #dbdef5;
    --color-accent: #494c57;
    --color-text-main: #dfdbff;
    --color-scrollbar-thumb: #706e8a;
    --color-scrollbar-track: #dbdef5;
    --color-button-bg: rgba(83, 83, 177, 0.25);
    --color-button-bg-hover: rgba(99, 64, 139, 0.08);
    --color-border: #8b33ff;
}


html {
    scroll-behavior: smooth;
}

@import url('https://fonts.googleapis.com/css2?family=Lexend+Deca:wght@100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Shadows+Into+Light&display=swap');

body {
    background-color: var(--color-bg-dark);
    font-family: "Lexend Deca", sans-serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
    min-height: 100vh;
    margin: auto;
    color: rgb(223, 219, 255);
    /* margin: 0; */
    font-size: 1rem;
    scroll-behavior: smooth;
}

* {
    padding: 0;
}

a {
    text-decoration: none;
    /* color: white; */
    cursor: pointer;
}


body::-webkit-scrollbar {
    width: 3px;
}

body::-webkit-scrollbar-track {
    background-color: #ffffff;
}

body::-webkit-scrollbar-thumb {
    background-color: #6e6e8a;
}

body::-webkit-scrollbar-thumb:hover {
    background-color: #4b4957;
}


div *::-webkit-scrollbar {
    width: 10px;
}

div *::-webkit-scrollbar-track {
    background-color: #dbdef5;
}

div *::-webkit-scrollbar-thumb {
    background-color: #706e8a;
}

div *::-webkit-scrollbar-thumb:hover {
    background-color: #494c57;
}



canvas {
    width: 100%;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
}

.main {
    height: 400vh;
    width: 100%;
    overflow: hidden;
}





/* navbar */
.nav {
    width: 100%;
    height: fit-content;
    position: fixed;
    top: 0;
    left: 0;
    backdrop-filter: blur(12px);
    box-shadow: 0 6px 18px 0 rgba(110, 110, 138, 0.10);
    background: linear-gradient(180deg, rgba(40, 40, 60, 0.18) 0%, rgba(40, 40, 60, 0.08) 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 100;
}

.nav .logo {
    width: 200px;
    height: 100%;
    display: flex;
    align-items: center;
    margin-left: 30px;
}

.nav a {
    display: block;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;

}

.nav .logo a img {
    width: auto;
    height: 100%;
}

.nav .logo a span {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-text-main);
    border-radius: 15px;
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 5px;
    padding-bottom: 5px;
    margin-left: 10px;
    font-family: "Shadows Into Light", cursive;
    font-weight: 400;
    font-style: normal;
}

.color-gradiant {
    background: linear-gradient(90deg, #7746ff 0%, #4430ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}


.nav .menu {
    display: flex;
    align-items: center;
    flex-direction: row;
    width: fit-content;
    background: linear-gradient(90deg, rgba(83, 83, 177, 0.25) 0%, rgba(99, 64, 139, 0.08) 100%);
    border-radius: 24px;
}

.nav .menu a {
    padding: 0 32px;
    height: 48px;
    color: var(--color-text-main);
    font-size: 1.08rem;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
    margin: 0 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 74px;
}

.nav .menu a:hover {
    color: #e4d3ff;
}


.nav .socials {
    display: flex;
    align-items: center;
    flex-direction: row;
    margin-right: 30px;
}

.nav .socials a {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 30px;
}

.nav .socials a img {
    width: 100%;
    height: 100%;
    filter: invert(1);
}

.nav .btn-menu {
    display: none;
}

.nav .menu .socials {
    display: none;
}

@media (max-width: 999px) {
    .nav .socials {
        display: none;
    }

    .nav .btn-menu {
        display: block;
        width: 40px;
        height: 40px;
        margin-right: 30px;
        filter: invert(1);
    }

    .nav .menu .socials {
        display: flex;
        align-items: center;
        flex-direction: row;
    }

    .nav .menu {
        width: 100%;
        height: 100vh;
        background-color: #040407;
        position: fixed;
        top: 53px;
        border-radius: 0px;
        display: flex;
        flex-direction: column;
        transition: .7s;
        transform: translateY(-200vh);
    }
}








/* main */
.u-max {
    width: 100%;
    height: 80vh;
    display: flex;
    transition: .6s;
}

.space {
    width: 100%;
    height: 150px;
}

.u-half {
    width: 50%;
    min-height: 100%;
}


.u-info {
    width: 80%;
    height: 60%;
    margin-left: 13%;
    margin-top: 15%;

}



.bar {
    width: 300px;
    height: 50px;
    border: rgb(103, 7, 167) 2px solid;
    border-radius: 30px;
    color: #ccaefd;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.8);
    animation: opacity_show 2s ease-in-out forwards;
}

@keyframes opacity_show {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.bar img {
    height: 80%;
    width: auto;
    filter: brightness(5) saturate(2);
}

.bar span {
    background: linear-gradient(90deg, #ccaefd 0%, #8d46ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}




.title {
    margin-top: 20px;
    font-size: 3.5rem;
    animation: anim_up 1.5s ease-in-out forwards;
}

.title span {
    background: linear-gradient(90deg, #5133ff 0%, #8b33ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.description {
    font-size: 0.9rem;
    margin-top: 30px;
    width: 80%;
    color: #b8b8d6;
    animation: anim_left 2s ease-in-out forwards;
}

@media (max-width: 530px) {
    .u-half {
        width: 100%;
    }

    .u-half:nth-child(2) {
        display: none;
    }
}

@media (max-width: 999px) {
    .u-info {
        width: 99%;
        height: 60%;
        margin-left: 3%;
        margin-top: 15%;

    }

    .title {
        margin-top: 20px;
        font-size: 2.5rem;
    }

    .description {
        font-size: 0.9rem;
        margin-top: 30px;
        width: 90%;
        color: #b8b8d6;
    }
}


.u-half:nth-child(2) {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ilustration_img {
    width: 80%;
    height: auto;
    opacity: 0.5;
    animation: anim_right 1s ease-in-out forwards;
}



@keyframes anim_up {
    0% {
        transform: translateY(50px);
        opacity: 0;
    }

    50% {
        transform: translateY(50px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes anim_left {
    0% {
        transform: translateX(-50px);
        opacity: 0;
    }

    50% {
        transform: translateX(-50px);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes anim_right {
    0% {
        transform: translateX(50px);
        opacity: 0;
    }

    50% {
        transform: translateX(50px);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes anim_down {
    0% {
        transform: translateY(-50px);
        opacity: 0;
    }

    50% {
        transform: translateY(-50px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

#scroll-index-2 {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.skills {
    width: 50vw;
    height: fit-content;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: anim_left 2s ease-in-out forwards;

}

.row {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.skills img {
    width: 100px;
    height: 100px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

@media (max-width: 999px) {
    .skills {
        width: 80vw;
        height: fit-content;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        animation: anim_left 2s ease-in-out forwards;
    }

    .skills img {
        width: 48px;
        height: 48px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        margin-bottom: 20px;
    }

}



#scroll-index-3 {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.contact {
    width: 60vw;
    height: fit-content;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.contact .u-half .title {
    width: 400px;
    height: fit-content;
}

.contact .u-half {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.contact .u-half:last-child {
    flex-direction: row;
    gap: 32px;
    margin-top: 24px;
}

.lane-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border: 2px solid #8b33ff;
    border-radius: 20px;
    background: linear-gradient(90deg, rgba(83, 83, 177, 0.15) 0%, rgba(99, 64, 139, 0.08) 100%);
    transition: box-shadow 0.2s, transform 0.2s;
    margin: 0 8px;
}

.lane-bar img {
    width: 48px;
    height: 48px;
    filter: invert(1) brightness(1.2) saturate(1.2);
    transition: filter 0.2s;
}

.lane-bar:hover {
    box-shadow: 0 4px 16px rgba(139, 51, 255, 0.18);
    transform: scale(1.08);
}

.lane-bar:hover img {
    filter: invert(0) drop-shadow(0 0 8px #8b33ff);
}

.contact .u-half:first-child {
    border-left: 3px solid #8b33ff;
}

@media (max-width: 999px) {
    .contact {
        width: 95vw;
        flex-direction: column;
    }

    .contact .u-half:first-child {
        border-left: 3px solid transparent;
        border-top: 3px solid #8b33ff;
    }

    .contact .u-half .title {
        width: 100%;
        font-size: 1.5rem;
        text-align: center;
    }

    .contact .u-half:last-child {
        gap: 16px;
    }

    .lane-bar {
        width: 56px;
        height: 56px;
        border-radius: 14px;
    }

    .lane-bar img {
        width: 32px;
        height: 32px;
    }
}




#scroll-index-4 {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

#projects {
    position: absolute;
    top: 2300px;
}

.projects {
    width: 90%;
    height: fit-content;
    padding-bottom: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    animation: anim_up 2s ease-in-out forwards;
}

.p-box {
    width: 520px;
    height: fit-content;
    border-radius: 12px;
    border: 1px solid #412564;
    margin: 20px;
    filter: brightness(1.2) saturate(1.1);
    padding-bottom: 15px;
}

.p-box img {
    width: 100%;
    height: fit-content;
    object-fit: cover;
    border-radius: 13px 13px 0 0;
    z-index: 1;
}

.p-content {
    margin-top: -20px;
    width: 100%;
    height: auto;
}

.p-content .p-title {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--color-text-main);
    padding: 8px;
    z-index: 3;
    margin-top: 15px;
}

.p-content .p-description {
    font-size: 0.9rem;
    font-weight: 600;
    color: #b8b8d6;
    padding: 8px;
    line-height: 1.6rem;
    height: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 8px;
}

.p-content a {
    color: var(--color-text-main);
    width: fit-content;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 20px;
    display: block;
    padding: 10px;
    margin-right: 10px;
    margin-left: auto;
    border-bottom: 2px solid var(--color-border);
    position: relative;
    overflow: hidden;
    transition: color .4s;
    z-index: 2;
}

.p-content a::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 0%;
    height: 100%;
    background: var(--color-border);
    transition: width .4s;
    z-index: 1;
    pointer-events: none;
}

.p-content a:hover::after {
    width: 100%;
}

.p-content a span {
    position: relative;
    z-index: 2;
}

.p-content a:hover {
    color: #fff;
}

.p-content a:hover img {
    filter: invert(0) contrast(0) brightness(0);
}

.p-content a img {
    transition: .4s;
    width: 16px;
    height: 16px;
    filter: invert(1);
    margin-left: 8px;
    vertical-align: middle;
    z-index: 3;
    position: relative;
}

@media (max-width: 999px) {
    .projects {
        width: 90%;
        height: fit-content;
        min-height: 1600px;
        padding-bottom: 50px;
        display: flex;
        align-items: unset;
        align-content: start;
        justify-content: unset;
        flex-wrap: wrap;
        animation: anim_up 2s ease-in-out forwards;
    }

    #scroll-index-4 {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        margin-top: 300px;
        padding-bottom: 800px;
    }
}

.footer {
    width: 100%;
    background: linear-gradient(180deg, rgba(40, 40, 60, 0.18) 0%, rgba(40, 40, 60, 0.08) 100%);
    box-shadow: 0 -6px 18px 0 rgba(110, 110, 138, 0.10);
    padding: 32px 0 16px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 64px;
}

.footer-content {
    width: 90%;
    max-width: 1200px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.footer .logo a {
    display: flex;
    align-items: center;
    font-size: 1.3rem;
    font-weight: 700;
}

.footer .logo span {
    padding: 8px 18px;
    border-radius: 15px;
    font-family: "Shadows Into Light", cursive;
    font-weight: 400;
    font-style: normal;
}

.footer .socials {
    display: flex;
    align-items: center;
    gap: 24px;
}

.footer .socials a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer .socials a img {
    width: 100%;
    height: 100%;
    filter: invert(1);
    transition: filter 0.2s;
}

.footer .socials a:hover img {
    filter: invert(0) drop-shadow(0 0 8px var(--color-border));
}

.footer .collaborations {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    color: #b8b8d6;
}

.footer .collaborations a {
    color: var(--color-border);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.footer .collaborations a:hover {
    color: #ccaefd;
    text-decoration: underline;
}

.footer-bottom {
    width: 90%;
    max-width: 1200px;
    text-align: center;
    color: #b8b8d6;
    font-size: 0.95rem;
    margin-top: 8px;
    border-top: 1px solid #412564;
    padding-top: 12px;
}

@media (max-width: 999px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
        gap: 18px;
    }

    .footer .logo a {
        font-size: 1.1rem;
    }

    .footer .socials {
        gap: 16px;
    }

    .footer .socials a {
        width: 28px;
        height: 28px;
    }

    .footer .collaborations {
        font-size: 0.95rem;
        gap: 6px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-bottom {
        font-size: 0.85rem;
        padding-top: 8px;
    }
}

@media (max-width: 530px) {
    .footer-content {
        width: 98%;
        gap: 12px;
    }

    .footer .logo span {
        padding: 6px 12px;
        font-size: 1rem;
    }

    .footer .socials a {
        width: 22px;
        height: 22px;
    }

    .footer .collaborations {
        font-size: 0.85rem;
        gap: 4px;
    }

    .footer-bottom {
        font-size: 0.8rem;
        padding-top: 6px;
    }
}