@font-face {
    font-family: 'Futurism';
    src: url(../assets/fonts/Futurism.otf);
}

@font-face {
    font-family: 'General Sans';
    src: url(../assets/fonts//GeneralSans-Regular.otf);
}


:root {
    --primary-color: #0075ff;
    --primary-color-hover: #2867de;
    --secondary-color: #f5f5f5;
    --secondary-color-hover: #ffffff;
    --text-color: #444;
    --text-color-hover: #0075ff;
    --color-blue-dark: #182135;

    --padding-container: 80px 0;

}

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

body {
    font-family: 'General Sans', sans-serif;
    background-color: #0C101B;
    color: #f5f5f5;
    position: relative;
}

body::before,
body::after {
    position: absolute;
    width: 100%;
    left: 0;
    top: 0;
    content: '';
    z-index: -1;
    opacity: 5%;
}

body::before {
    filter: url('#noiseFilter');
}

#noise {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.container {
    max-width: 1000px;
    width: 90%;
    margin: 0 auto;
    padding: var(--padding-container);
}

.btn {
    display: inline-block;
    width: 100%;
    text-align: center;
    text-decoration: none;
    color: #fff;
    padding: 10px 20px;
    border-radius: 24px;
    border: 1px solid var(--primary-color);
    background: radial-gradient(231.94% 231.94% at 50% 100%, var(--color-three) 0, rgba(53, 41, 128, 0) 25.24%), linear-gradient(180deg, rgba(243, 238, 255, 0), rgba(243, 238, 255, .04)), rgba(147, 130, 255, .01);
    box-shadow: 0 0 0 0 rgba(16, 0, 51, .4), 0 2px 5px 0 rgba(16, 0, 51, .39),
        0 8px 8px 0 rgba(16, 0, 51, .34), 0 19px 11px 0 rgba(16, 0, 51, .2),
        0 34px 14px 0 rgba(16, 0, 51, .06), 0 53px 15px 0 rgba(16, 0, 51, .01),
        inset 0 0 12px 0 hsla(0, 0%, 100%, .08), inset 0 -2px 32px 0 #1e0d49;
}

.btn:hover {
    background: radial-gradient(231.94% 231.94% at 50% 100%, var(--color-three) 0, rgba(53, 41, 128, 0) 25.24%), linear-gradient(180deg, rgba(243, 238, 255, 0), rgba(243, 238, 255, .04)), rgba(147, 130, 255, .6);
    box-shadow: inset 0 0 12px 0 hsla(0, 0%, 100%, .08), inset 0 -8px 32px 0 #1e0d49, 0 0 0 0 rgba(16, 0, 51, .4), 0 2px 5px 0 rgba(16, 0, 51, .39), 0 8px 8px 0 rgba(16, 0, 51, .34), 0 19px 11px 0 rgba(16, 0, 51, .2), 0 34px 14px 0 rgba(16, 0, 51, .06), 0 53px 15px 0 rgba(16, 0, 51, .01)
}

/* Header */
.header {
    width: 100%;
}

.menu {
    height: 56px;
    display: flex;
    justify-content: space-between;
    background-color: rgba(24, 24, 51, 0.722);
    padding: 1rem;
    margin: 0 auto;
    width: 100%;
    align-items: center;

    --opacity-menu: 0;
    --transform-menu: translate(-120%);
    --pointer-menu: none;

    z-index: 4;

    &:has([id="menu"]:checked) {
        --opacity-menu: 1;
        --transform-menu: translate(0);
        --pointer-menu: unset;
    }
}

.menu__logo {
    color: #fff;
    font-size: 20px;
    font-family: 'Futurism', sans-serif;
}

.menu__links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: absolute;
    top: 57px;
    inset-inline: 0;
    padding: 30px 5%;
    background-color: rgba(24, 24, 51, 0.8);
    backdrop-filter: blur(20px);
    box-shadow: 1px 1px 3px #0c101b;
    z-index: 1;

    pointer-events: var(--pointer-menu);
    transform: var(--transform-menu);
    opacity: var(--opacity-menu);

    transition: .8s opacity, .8s transform;
}

.menu__item a {
    text-transform: uppercase;
    display: block;
    font-size: .8rem;
    transition: color .3s ease-in-out,
        transform .3s ease-in-out;

    &:hover:not(:last-child) {
        color: var(--text-color-hover);
    }
}

.menu__mail {
    color: #fff;
    font-size: 14px;
    font-weight: 400;
}

.menu a {
    text-decoration: none;
    color: #fff;
    font-weight: 400;
}

.menu__logo {
    font-size: 1.5rem;
}

.menu__item .menu__btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
}

input[id='menu'] {
    display: none;
    width: 20px;
    height: 20px;
}


/* Burger */

.menu__burger {
    background: rgb(255 255 255 / 16%);
    border: 0;
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    cursor: pointer;
    padding: 0;
    opacity: 0.6;
    scale: 0.7;
    border-radius: 8px;
    overflow: hidden;
    transition: 0.175s;
    margin-right: -6px;
}

.menu__burger:hover {
    opacity: 1;
    background: var(--primary-color);
}

.burger-icon {
    scale: 1.3;
    height: 34px;
}

.burger-icon svg {
    height: 36px;
    transform: translate(-1px, -1px);
    transition: transform 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

.burger-icon .line {
    fill: none;
    stroke: white;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.75;
    transition: stroke-dasharray 500ms cubic-bezier(0.4, 0, 0.2, 1),
        stroke-dashoffset 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

.burger-icon .line-top-bottom {
    stroke-dasharray: 12 63;
}

.menu:has(#menu:checked) .burger-icon svg {
    transform: rotate(-45deg) translate(0);
}

.menu:has(#menu:checked) .burger-icon svg .line-top-bottom {
    stroke-dasharray: 20 300;
    stroke-dashoffset: -32.42;
}

/* Hero */

.hero__image {
    width: 98px;
    border-radius: 50%;
    background-color: transparent;
    aspect-ratio: 1 / 1;

}

.hero__image img {
    width: 100%;
    object-fit: cover;
    object-position: center;

}

.hero__container {
    padding: 16px 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hero__info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hero__title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    color: #0075ff;

    & strong {
        color: #fff;
    }

}

.hero__subtitle {
    font-size: 1.8rem;
    line-height: 1.2;
    background: linear-gradient(to right, #ffffff, #0075ff, #801372);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero__paragraph {
    font-size: 1.2rem;
    text-wrap: balance;
    line-height: 1.5;
    color: #f5f5f5;
    opacity: .7;
}

.hero__cta-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.hero__cta {
    max-width: max-content;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
    gap: .3rem;
    border: 1px solid #ffffffa8;
    transition: color .3s ease-in-out;
    box-shadow: none;

    &:hover {
        border-color: var(--text-color-hover);
        box-shadow: none;

    }

    & img {
        width: 20px;
    }
}

/* Projects */
.projects {
    margin-top: 2rem;
    margin-bottom: 2rem;

    padding: 16px 0;
    height: 100%;
    background-color: transparent;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.projects__title {

    font-size: 2rem;
    color: #fff;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: .5rem;

    & img {
        width: 40px;
    }
}

.projects__container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
}

.project {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));

    backdrop-filter: blur(10px);
    gap: 1rem;
    border: 1px solid #c2c0c02b;
    border-radius: 8px;
    background-color: #0c101b;

    color: #fff;
    transition: all .3s ease-in-out;
}

.project__image {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 8px 8px 0 0;
    /* aspect-ratio: 3 / 2; */
}


.project__image img {
    transition: all .3s ease-in-out;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;

    &:hover {
        transform: scale(1.2) rotate(10deg);
    }
}

.project__info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
}

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

.project__tag {
    list-style: none;
    background-color: #0007;
    color: #fff;
    padding: 5px 10px;
    border-radius: 20px;
    transition: all .3s ease-in-out;
    display: flex;
    align-items: center;
    gap: .3rem;
    font-size: 14px;

    & img {
        width: 20px;
    }

    &:hover {
        border-color: var(--text-color-hover);
        box-shadow: none;
    }
}

.project__title {
    text-transform: uppercase;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-color);
}

.project__description {
    font-size: 1rem;
    line-height: 1.5;
    color: #f5f5f5;
    opacity: .7;
}

.project__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    gap: .7rem;
}

.project__link {
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    transition: all .3s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ffffffa8;
    gap: .5rem;
    box-shadow: none;

    & img {
        width: 20px;
    }

    &:hover {
        border-color: var(--text-color-hover);
        box-shadow: none;
    }
}

/* Experience */

.experience {
    margin-top: 2rem;
    padding: 16px 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.experience__title {
    font-size: 2rem;
    color: #fff;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: .5rem;

    & img {
        width: 40px;
    }
}

.experience__container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0 1rem;
    height: 100%;
}

.experience__info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 2px solid #c2c0c02b;
    /* gap: 1rem; */
    padding: 1rem 0 1rem 2rem;
}

.experience__title--job {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: .5rem;
}

.experience__company {
    margin-bottom: .5rem;
    opacity: .9px;
}

.experience__date {
    font-style: italic;
    margin-bottom: .5rem;
    opacity: .5px;
    color: var(--primary-color);
}

.experience__description {
    text-wrap: balance;
    line-height: 1.5;
    color: #f5f5f5;
    opacity: .7;
}

/* About*/

.about {
    padding: 20px 0;
    margin-top: 2rem;
    margin-bottom: 1rem;
    height: 100%;
    color: #fff;
    font-weight: 700;
}

.about__title {
    font-size: 2rem;
    color: #fff;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: .5rem;

    & img {
        width: 40px;
    }
}

.about__info {
    display: flex;
    flex-direction: column;
    padding: 0 1rem;
    height: 100%;
}

.about__description p {
    font-size: 1.1rem;
    /* text-wrap: balance; */
    font-weight: 400;
    line-height: 1.5;
    color: #f5f5f5;
    opacity: .7;
    margin-bottom: 1rem;

    & strong {
        color: var(--primary-color);
    }
}

.about__profile {
    margin-top: 2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;

    width: 200px;
    background-color: transparent;
    /* transform: rotate(8deg); */
    border-radius: 4px;
    border: 1px solid #09f;
    /* margin-left: 3rem; */
    margin-inline: auto;
    padding: 1rem;

    & img {
        width: 100%;
        aspect-ratio: 1/1;
        object-fit: cover;
        object-position: center
    }
}

/* Contact Footer */

.footer {
    margin-top: 2rem;
    margin-bottom: 1rem;
    height: 100%;
    color: #fff;
    font-weight: 700;
}

.contact {
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact__title {
    font-size: 2rem;
    color: #fff;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: .5rem;

    & img {
        width: 60px;
    }
}

.contact__description {
    font-size: 1.1rem;
    font-weight: 400;
    text-wrap: balance;
    line-height: 1.5;
    color: #f5f5f5;
    opacity: .7;
}

.contact__list {
    display: flex;
    flex-direction: column;
    padding: 2rem 0;
    gap: 2rem;
}

.contact__item {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    padding: 1rem 2rem;
    background-color: #0c101b;
    backdrop-filter: blur(10px);
    border: 1px solid #c2c0c02b;
    border-radius: 8px;
    box-shadow: 1px 1px 1px 1px rgba(0, 0, 0, 0.2);
    gap: 1rem;
    font-size: 1.1rem;
    color: #f5f5f5;
    opacity: .7;
    transition: all .3s ease-in-out;

    & img {
        width: 20px;
    }

    & a {
        color: #f5f5f5;
        text-decoration: none;
        font-weight: 400;
    }

    &:hover {
        border-color: #fff;
        box-shadow: none;
    }
}

.contact__social {
    display: flex;
    gap: 1rem;

    & a {
        text-decoration: none;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: .5rem;
        padding: 1rem;
        background-color: #0C101B;
        color: #f5f5f5;
        opacity: .7;
        font-weight: 400;
        backdrop-filter: blur(10px);
        border: 1px solid #c2c0c02b;
        border-radius: 8px;
        box-shadow: 1px 1px 1px 1px rgba(0, 0, 0, 0.2);
        transition: all .3s ease-in-out;
        filter: brightness(1.5);

        & img {
            width: 20px;
        }

        &:hover {
            border-color: var(--text-color-hover);
            box-shadow: none;
        }
    }

}



.contact__form {
    padding: 2rem;
    background-color: #0C101B;
    backdrop-filter: blur(10px);
    border: 1px solid #c2c0c02b;
    border-radius: 8px;
    box-shadow: 1px 1px 1px 1px rgba(0, 0, 0, 0.2);

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

.form input,
.form textarea {
    width: 100%;
    font-size: 1.1rem;
    padding: 1rem;
    background-color: #0C101B;
    backdrop-filter: blur(10px);
    outline: none;
    border: 1px solid #c2c0c02b;
    border-radius: 8px;
    background-color: #0C101B;
    backdrop-filter: blur(10px);
    color: #f5f5f5;
    opacity: .7;
    transition: all .3s ease-in-out;

    &::placeholder {
        opacity: .7;
        font-family: 'General Sans', sans-serif;
    }

    &:focus {
        border-color: var(--text-color-hover);
    }


}

.form textarea {
    field-sizing: border-box;
    height: 200px;
    resize: none;
}

.form__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: max-content;
    gap: .5rem;
    font-weight: 400;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 1rem;
    background-color: #0C101B;
    backdrop-filter: blur(10px);
    border-radius: 8px;
    outline: none;
    color: #f5f5f5;
    opacity: .7;
    transition: all .3s ease-in-out;
    /* margin-top: 1rem; */

    &:hover {
        filter: brightness(1.75);
    }

    & img {
        width: 20px;
    }
}

.form__error {
    display: none;
    gap: .5rem;
    color: #ff0000;
    font-size: 1rem;
    font-weight: 400;
    opacity: .7;

    & img {
        width: 20px;
    }
}

.footer__copyright {
    text-align: center;
    font-size: .8rem;
    opacity: .7;
    padding: 3rem 1rem;
}

/* Media queries */

@media (width > 768px) {

    .header {
        padding-inline: 1rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .menu {
        width: 95%;
        height: 120px;
        --opacity-menu: 1;
        --transform-menu: unset;
        --pointer-menu: unset;

        position: fixed;
        top: 10px;
        z-index: 1000;

        height: 60px;
        background-color: rgba(24, 24, 51, 0.722);
        backdrop-filter: blur(10px);
        border: 1px solid #c2c0c02b;
        padding: 1rem .5rem;
        border-radius: 80px;

    }

    .menu__links {
        position: static;
        backdrop-filter: none;
        display: flex;
        flex-direction: row;
        gap: 2rem;
        align-items: center;
        padding: 0;
        background-color: transparent;
        box-shadow: none;
    }

    .menu__burger {
        display: none;
    }

    .menu__item a {
        transition: all .3s ease-in-out;

        &:hover {
            scale: 1.2;
        }
    }

    .menu__item .menu__btn:hover {
        scale: 1;
        filter: brightness(1.2);

    }

    /* Hero */

    .hero__container {
        
        height: 100%;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 2rem;
        padding: 200px 0 100px 0;
    }

    .hero__info {
        order: 1;
    }

    .hero__image {
        order: 2;
        width: 600px;
    }

    .hero__title {
        font-size: 3rem;
    }

    .hero__subtitle {
        font-size: 2rem;
    }

    /* Projects */

    .project__info {
        padding: 2rem;
    }

    /* About */
    .about {
        padding: var(--padding-container);
    }

    .about__info {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 2rem;
    }

    .about__description {
        max-width: 500px;
    }

    .about__profile {
        margin-top: 0;
        margin-bottom: 0;
        transform: rotate(8deg);
    }

    /* Contact Footer*/
    .contact {
        flex-direction: row;
    }

    .contact__info {
        width: 40%;
    }

    .contact__form {
        margin-top: 3rem;
        width: 60%;
    }

    .project__image {
        border-radius: 8px 0 0 8px;
    }
}

@media (width > 1200px) {
    .hero__container {
        width: 100%;
        padding-inline: 1rem;
    }

    .hero__image {
        width: 500px;
        margin-right: 4rem;
    }
}

/* Background effects */

.circle {
    height: 150px;
    width: 150px;
    position: fixed;
    background-color: #AD9BFF;
    background-attachment: fixed;
    filter: blur(150px);
    border-radius: 100px;
    z-index: -1;
}

.one {
    left: 0;
    top: 0;
}

.two {
    bottom: 0;
    right: 0;
}

.experience__links {
    padding-inline: 1rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}


.experience__link {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: .3rem;
    color: #fff;
    opacity: .7;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;

    & img {
        width: 13px;
    }

    &:hover {
        opacity: 1;
    }
}