
/* 40% 60% 70% 30% / 50% 20% 30% 40% */

/* 90% 60% 100% 50% / 100% 60% 100% 60% */

/* landing-header */
@media (max-width: 768px) {
    #landing-header > .container > .row {
        gap: 40px;
    }
}

#landing-header {
    min-height: 660px;
}

#landing-header .figure-wrapper > figure, #message-section .figure-wrapper > figure {
    border-radius: 500px;
    width: 100%;
    max-width: 260px;
    overflow: hidden;
    z-index: 1;
}

#landing-header .figure-wrapper {
    display: flex;
    justify-content: center;
    max-width: 260px;
}

#landing-header .figure-wrapper.blub.blob:before {
    left: unset;
    bottom: unset;
    top: -20px;
    right: 0px;
}
#landing-header .figure-wrapper.blub.blob:after {
    left: unset;
    bottom: unset;
    top: -80px;
    right: 20px;
}

@media (max-width: 769px) {
    #landing-header .figure-wrapper.blub.blob:before {
        bottom: -20px;
        top: unset;
    }
    #landing-header .figure-wrapper.blub.blob:after {
        bottom: -80px;
        top: unset;
    }
}

#landing-header .heading-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#landing-header .heading-wrapper .subtitle {
    line-height: initial;
}

.blub:before {
    content: "";
    position: absolute;
    left: 300px;
    right: 0;
    top: -80px;
    bottom: 0;
    width: 40px;
    height: 40px;
    border-radius: 80% 80% 60% 60% / 90% 50% 100% 80%;
    margin: 0 10px;
    background-color: var(--color-one);
    z-index: 0;
}

@media (max-width: 768px) {
    .blub:before {
        left: 60%;
        top: 1%;
    }
}
.blub:after {
    content: "";
    position: absolute;
    left: -100px;
    right: 0;
    top: 300px;
    bottom: 0;
    width: 60px;
    height: 60px;
    border-radius: 80% 60% 80% 60% / 90% 100% 50% 80%;
    margin: 0 10px;
    background-color: var(--color-two);
    z-index: 0;
}
.blub.two:before {
    left: unset;
    top: 20px;
    left: 0px;
    width: 60px;
    height: 60px;
    border-radius: 60% 50% 100% 60% / 80% 80% 50% 60%;
    background-color: var(--color-three);
    z-index: 0;
}

.blub.two:after {
    content: "";
    position: absolute;
    left: unset;
    top: 150px;
    left: -150px;
    width: 50px;
    height: 50px;
    border-radius: 80% 80% 50% 60% / 60% 50% 100% 60%;
    background-color: var(--color-four);
    z-index: 0;
}

#intro-section .container > .row {
    justify-content: space-between;
    z-index: 3;
}

#intro-section .subject-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: 60px 0;
}

#intro-section .subject-wrapper .subject {
    display: flex;
    align-items: center;
    max-width: 600px;
    text-decoration: none;
    gap: 1.5rem;
    background-color: var(--color-light);
    border: 1px solid var(--color-grey);
    border-radius: 0.5rem;
    box-shadow: 4px 4px 10px var(--color-shadow);
    padding: 20px 50px;
}
@media (max-width: 768px) {
    #intro-section .subject-wrapper .subject {
        padding: 20px;
    }
}

#intro-section .subject-wrapper .subject figure {
    width: 50px;
    height: auto;
}

.skill-item svg {
    width: 3.5rem;
    height: 3.5rem;
}

#intro-section .info-box {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 40px 40px;
    max-width: 600px;
    height: 100%;
    justify-content: space-between;
}
@media (max-width: 768px) {
    #intro-section .info-box {
        padding: 20px;
    }
}

#intro-section .info-box > .wrapper {
    gap: 1rem;
    display: flex;
    flex-direction: column;
}

#intro-section .info-box .buttons {
    padding: 10px 0;
}

#intro-section .info-box .graph {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

#intro-section .info-box .graph a {
    text-decoration: none;
}

/* Portfolio section */
#portfolio-section .card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    padding: 10px;
    border-radius: 2.65rem;
    overflow: hidden;
    z-index: 3;
    -webkit-transform: translate3d(0,0,1px);
    transform: translate3d(0,0,1px);
}
#portfolio-section .card:after {
    content: "";
    background-color: var(--color-three);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: 80%;
    z-index: -1;
}
#portfolio-section .card:hover:after {
    bottom: 0;
    left: 0;
    right: 80%;
    top: 0;
    transition: ease-in-out 0.2s;
}

#portfolio-section .card span .subtitle {
    color: var(--color-light);
}

#portfolio-section .container > .row:first-child > .col {
    gap: 1rem;
}

#portfolio-section .items {
    padding: 0 0 60px;
    gap: 15px 0;
}

#portfolio-section .portfolio-subject {
    border-radius: 2rem;
    overflow: hidden;
}
#portfolio-section a:hover > .portfolio-subject {
    background-color: var(--color-three);
}

#portfolio-section .card .portfolio-subject img {
    z-index: 3;
    opacity: 1;
}
#portfolio-section .card .portfolio-subject img:hover {
    z-index: 3;
    opacity: 0.5;
}

#portfolio-section .card figure {
    aspect-ratio: 1/1;
}

#portfolio-section .card span {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    text-align: center;
    padding: 0 30px;
    color: var(--color-light);
    height: 100px;
    width: 100%;
    pointer-events: none;
    z-index: 4;
}

#portfolio-section .card svg {
    position: absolute;
    bottom: 0;
    right: 0;
    height: 100px;
    width: 100px;
    border-radius: 100%;
    z-index: 3;
}

#portfolio-section .card svg circle {
    transform: translate(-150px, 0px);
}

/* Skills section */

#skills-section {
    background-color: var(--color-light);
}

#skills-section .skills-wrapper {
    display: flex;
    flex-direction: column;
    gap: 5rem;
    height: 100%;
}

#skills-section .skills-wrapper .skill-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
}

#skills-section .skills-wrapper .skill-item svg circle {
    fill: var(--color-three);
}

#skills-section .subject-wrapper {
    aspect-ratio: 7/10;
    overflow: hidden;
    border-radius: 90% 60% 100% 50% / 100% 60% 100% 60%;
    width: 100%;
    height: 100%;
    margin: auto;
    position: relative;
    z-index: 3;
}

#skills-section .subject-wrapper figure {
    overflow: hidden;
    border-radius: 90% 60% 100% 50% / 100% 60% 100% 60%;
    width: calc(100% - 20px);
    margin: auto;
    height: calc(100% - 20px);
    margin-top: 10px;
    z-index: 3;
}

#skills-section .subject-wrapper:after {
    content: "";
    background-color: var(--color-three);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    z-index: 0;
}

/* Message section */
#message-section{
    background-color: var(--color-grey);
}

#message-section .message-wrapper {
    padding: 40px;
    box-shadow: 4px 4px 10px var(--color-shadow);
    border-radius: 20px;
    background-color: var(--color-light);
    -webkit-transform: translate3d(0,0,1px);
    transform: translate3d(0,0,1px);
}

#message-section .blub:before {
    left: 100%;
    top: -60px;
    background-color: var(--color-two);
}

#message-section .blub:after {
    left: -140px;
    top: 60px;
    background-color: var(--color-three);
}

@media (max-width: 768px) {
    #message-section .blub:after {
    left: -80px;
    }

    #message-section .blub:before {
        left: 200px;
    }

    #message-section .figure-wrapper {
        margin: 20px;
    }
}

#message-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px; 
}

.field {
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
}