@font-face {
    font-family: ginger;
    src: url(../font/Ginger.ttf);
}

:root {
    --bg-color: #090909;
    --bg-color-var-I: #191919;
    --bg-color-var-II: #020202;
    --bg-color-transparent: rgba(9, 9, 9, .6);
    --bg-color-transparent-var: rgba(9, 9, 9, .6);
    --on-bg-color: #ffffff;
    --on-bg-color-var: #505050;
    --primary-color: #00E995;
    --primary-color-var: #20B46A;
}

::selection {
    color: var(--on-bg-color);
    background: var(--on-bg-color-var);
}

::-moz-selection {
    color: var(--on-bg-color);
    background: var(--on-bg-color-var);
}


::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background-color: transparent;
    margin-block: 4px;
}

::-webkit-scrollbar-thumb {
    background-color: var(--on-bg-color-var);
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--primary-color);
}

@supports(scrollbar-color: var(--on-bg-color-var) transparent) {
    * {
        scrollbar-color: var(--on-bg-color-var) transparent;
        scrollbar-width: thin;
    }
}

* {
    scroll-behavior: smooth;
    box-sizing: border-box;

}

html,
body {
    box-sizing: border-box;
}

p,
h1,
h2,
h3 {
    margin: 0;
}

p {
    line-height: 150%;
}

body {
    margin: 0;

    position: relative;

    background-color: var(--bg-color);

    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 20px;
    color: var(--on-bg-color);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    /* transition: .2s ease; */
}

.m0 {
    margin: 0!important;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;

    z-index: 99;

    background-color: var(--bg-color-transparent);
    backdrop-filter: blur(5px);
}

.desktop-navbar {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    
    height: 80px;
    width: 100%;
}

.current-menu-item {
    font-weight: 500;
    color: var(--on-bg-color);
    transition: .2s ease;
}

.current-menu-item:hover {
    opacity: 75%;
}

.nav-logo {
    justify-self: left;
    align-self: center;
}

.nav-logo img {
    width: 270px;
}

.nav-cta {
    justify-self: right;
    align-self: center;

    font-weight: 500;
}

.nav-cta > div {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;

    transition: 0.2s ease;
}

.arrow {
    transition: .1s ease;
}

.nav-cta:hover * {
    fill: var(--primary-color-var);
    color: var(--primary-color-var);
}

.nav-cta:hover > div {
    gap: 10px;
}

.desktop-navbar > ul {
    margin: 0;
    padding: 0;

    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 20px;

    list-style: none;

    font-size: 18px;
}

[class^='menu-item'] {
    transition: .2s ease;
}

[class^='menu-item']:hover {
    color: var(--primary-color-var);
}

.mobile-topbar {
    visibility: hidden;

    padding: 16px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;

    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;

    z-index: 90;
}

.mobile-topbar::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;

    background-color: var(--bg-color-transparent);
    backdrop-filter: blur(5px);
}

.hamburger {
    position: relative;
    z-index: 99;
    display: block;
    flex-shrink: 0;
    top: 0;
    left: 0;

    height: 36px;
    width: 36px;

    cursor: pointer;

}

.slice {
    display: block;
    position: absolute;
    width: 100%;
    height: 4px;
    background-color: var(--primary-color);

    transition: .2s ease;
}

.slice:nth-child(1) {
    top: 5px;
    left: 0;
}

.slice:nth-child(2) {
    top: calc(50% - 2px);
    left: 0;
}

.slice:nth-child(3) {
    top: calc(100% - 9px);
    left: 0;
}

.mobile-topbar img {
    max-height: 40px;
    max-width: 100%;
    padding: 0 1rem;
}

.nav-icon {
    width: 40px;
    height: 40px;
}

.nav-icon path {
    fill: var(--primary-color);

    transition: .2s ease;
}

.nav-icon:hover > path {
    fill: var(--on-bg-color-var);
}


.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}

.hero {
    min-height: 600px;
    height: 100vh;

    display: grid;
    grid-template-columns: 1.7fr 1fr;
    justify-content: space-between;
    gap: 50px;
}

.hero-left {
    display: flex;
    flex-direction: column;
}

.hero-description {
    padding-left: 50px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 2;
    gap: 20px;
}

.section-cta {
    margin-top: 120px;
    padding: 16px 0;

    display: flex;
    flex-direction: row;
    gap: 10px;

    font-weight: 500;
}

.section-cta a {
    transition: all .2s ease;
}

.cta-arrow path {
    transition: .1s ease;
}

.section-cta-reverse {
    flex-direction: row-reverse;
}

.cta-arrow {
    transform: rotate(90deg);
    animation: bounce 1.5s infinite;
}

.section-cta:hover * {
    color: var(--primary-color-var);
    fill: var(--primary-color-var);
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(5px) rotate(90deg);
    }
    50% {
        transform: translateY(-5px) rotate(90deg);
    }
    
}

.hero-left h1 {
    font-size: 50px;
    font-weight: 500;
    color: var(--primary-color);
}

.hero-left p {
    margin-bottom: 48px;
}

.hero-cta {
    padding: .6em 1.2em;
    width: fit-content;
    font-size: 24px;    
    font-weight: 500;

    background-color: var(--primary-color);

    color: var(--bg-color);

    border: 2px solid var(--primary-color);

    transition: .2s ease;
}

.hero-cta:hover {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.hero-cta svg {
    width: 35px;
    height: 35px;
}

.hero-right {
    padding-right: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-img {
    position: relative;

    height: 500px;
    width: 400px;

    background-color: #ffffff;

    box-shadow: inset 16px 16px 16px rgba(9, 9, 9, .4);

    transition: .2s ease;
}

.portrait {
    content: '';

    display: block;

    position: absolute;

    height: 100%;
    width: 100%;

    transform: rotate(12deg);

    pointer-events: none;

    box-shadow: 16px 16px 16px rgba(9, 9, 9, .4);

    
    background: center center no-repeat url(/images/RM-hero_img.png);
    background-size: cover;
    background-color: var(--bg-color-var-I);
    
    border: 4px solid var(--primary-color-var);

    transition: .2s ease;
}

.hero-img:hover .portrait {
    transform: rotate(0deg);
}

.section-title {
    padding: 300px 0;
    /* height: 100vh; */

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.section-title h2 {
    position: relative;

    margin: 0;

    font-family: 'ginger', serif;
    color: var(--primary-color);
    font-size: 48px;
    font-weight: lighter;
}

.section-title h2:before {
    position: absolute;
    bottom: 0px;
    content: '';
    background-color: var(--primary-color);
    width: 50px;
    height: 0.5px;
}

.section-title h2:after {
    position: absolute;
    right: 0;
    content: '';
    background-color: var(--primary-color);
    width: 50px;
    height: 0.5px;
}

.featured-projects {
    position: relative;

    padding: 20px;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10vh;
}

.displayed-project {
    position: sticky;

    top: 5vh;

    height: 90vh;
    width: 95%;

    display: flex;
    flex-direction: column;
    justify-content: end;
    align-items: center;

    background-color: var(--bg-color-var-I);

    overflow: hidden;

    /* box-shadow: 0px -30px 100px #020202; */
}

.displayed-project::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;

    z-index: -1;
    transition: filter .2s ease,
                transform .2s ease;
    filter: grayscale(100%);  
}

.displayed-project:hover::after {
    filter: grayscale(0%);  
    transform: scale(1.01);
}

/* displayed projects cover images */

[name='petitstream']::after {
    background: url('/images/projects/petitstream_cover.png') center right no-repeat;
    background-size: cover;

}

[name='acile']::after {
    background: url('/images/projects/acile_cover.png') center right no-repeat;
    background-size: cover;

}

[name='guitabs']::after {
    background: url('/images/projects/guitabs_cover.png') center right no-repeat;
    background-size: cover;

}


/* ------- */


.displayed-project-infos-container {
    width: 100%;
    padding-top: 32px;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, rgba(2, 2, 2, 0) 0%,
                                rgba(2, 2, 2, 0.8396) 50%,
                                #020202 90%);
    backdrop-filter: blur(1px);
}

.displayed-project-name {
    display: block;
    width: fit-content;

    margin: 0;
    padding-left: 32px;
    padding-right: 8px;

    background-color: var(--primary-color);

    font-family: 'ginger',serif;
    font-weight: lighter;
    font-size: 38px;
    color: var(--bg-color);
}

.displayed-project-infos {
    padding: 32px;

    display: flex;
    flex-direction: row;
    align-items: start;
    gap: 32px;
}

.d-project-info-container {
    width: 50%;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.displayed-project h4 {
    margin: 0;

    font-size: 22px;
    font-weight: 500;
    color: var(--primary-color);
}

.displayed-project p {
    font-size: 18px;
}

.displayed-project-roles {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
}

.displayed-project-roles li {
    display: inline-block;
    padding: 10px;
    background-color: var(--bg-color-var-I);
    width: fit-content;

    color: var(--primary-color);
    list-style: none;
    font-size: 18px;

    transition: .2s ease;
}

.more-projects-desktop {
    display: flex;
    flex-direction: column;
}

.project {
    margin: 0 auto;
    max-width: 1600px;
    position: relative;

    padding: 20px 20px;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 40px;

    transition: background-color .2s ease;

    z-index: 0;
}

.project::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    z-index: -1;

    box-sizing: border-box;

    border-top: var(--primary-color) 0.5px solid;
    box-shadow: 0px 1px var(--primary-color);

    transition: .2s ease;
}

.project:hover::after {
    background-color: var(--bg-color-transparent);

    backdrop-filter: blur(5px);
}

.project:hover {
    z-index: 2;
}

.project-name {
    font-size: 20px;
    color: var(--primary-color);
    font-weight: 500;
}

.project-description {
    font-size: 16px;
    font-weight: 400;
}

.role-tag {
    font-size: 16px;
    color: var(--primary-color);

    transition: color .2s ease;
}

.role-tag:not(:last-child)::after {
    display: inline;
    content: ',';
}

.role-tag:hover {
    color: var(--on-bg-color);
}

.project-thumb {
    visibility: visible;

    opacity: 0%;

    position: absolute;
    top: 60%;
    right: 10%;
    
    transform: translate(10%, -60%);

    height: 450px;
    width: 720px;

    /* a sup */

    background-size: cover!important;
    background-repeat: no-repeat!important;

    /* ------ */

    transition: all .2s ease;

    pointer-events: none;

    z-index: -1;
}

/* cover imgs */

[name='sfa13'] {
    background: url('/images/projects/sfa13_cover.png') center center no-repeat;
    background-size: cover;
}

[name='guitabslp'] {
    background: url('/images/projects/guitabs-Landing_Page_cover.png') center center no-repeat;
    background-size: cover;
}

[name='ap'] {
    background: url('/images/projects/ap_cover.png') center center no-repeat;
    background-size: cover;
}

[name='drakkapp'] {
    background: url('/images/projects/drakkapp_cover.png') center center no-repeat;
    background-size: cover;
}

[name='drakkappschool'] {
    background: url('/images/projects/drakkappschool_cover.png') center center no-repeat;
    background-size: cover;
}

[name='optimdoc'] {
    background: url('/images/projects/optimdoc_cover.png') center center no-repeat;
    background-size: cover;
}

[name='battleforglory'] {
    background: url('/images/projects/battleforglory_cover.png') center center no-repeat;
    background-size: cover;
}

[name='neyon'] {
    background: url('/images/projects/neyon_cover.png') center center no-repeat;
    background-size: cover;
}

[name='domodz'] {
    background: url('/images/projects/domodz_cover.png') center center no-repeat;
    background-size: cover;
}

[name='ducaltf4'] {
    background: url('/images/projects/ducaltf4_cover.png') center center no-repeat;
    background-size: cover;
}




/* ------- */

.project:hover  .project-thumb{
    visibility: visible;

    opacity: 100%;

    transform: translate(10%, -60%) rotate(10deg);
}

.project:hover:nth-child(2n)  .project-thumb {
    transform: translate(10%, -60%) rotate(-5deg);
}

.project:hover:nth-child(3n)  .project-thumb {
    transform: translate(10%, -60%) rotate(4deg);
}

.more-projects-mob {
    display: none;
    padding-bottom: 48px;
}

.project-accordion {
    border-top: var(--primary-color) 0.5px solid;
    box-shadow: 0px 1px var(--primary-color);
}

.accordion-header {
    position: relative;

    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 20px;

    cursor: pointer;
}

.accordion-header .project-name {
    max-width: 90%;
}

.accordion-state-icon {
    position: relative;
    display: block;
    height: 24px;
    width: 24px;
}

.accordion-state-icon span {
    display: block;

    position: absolute;
    top: 11px;

    background-color: var(--primary-color);

    height: 2px;
    width: 24px;

    transition: .2s ease;
}

.vertical-line {
    transform: rotate(-90deg);
}

.opened {
    transform: rotate(0deg);
}

.accordion-content {
    padding: 0 20px 20px;

    display: none;
    flex-direction: column;
    gap: 20px;
}

.accordion-content-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.accordion-content-body h4 {
    margin: 0;
    font-weight: 500;
    color: var(--primary-color);
}

.project-mob-img {
    width: 100%;
    /* min-height: 600px; */
}



.skills {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.skill-item {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.skill-title {
    flex-grow: 1;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.skill-title h1 {
    font-family: 'ginger', serif;
    font-size: 72px;
    font-weight: 400;
    color: var(--primary-color);
}

.skill-title img {
    width: 62px;
}

.skill-card-container {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.skill-card {
    position: relative;
    padding: 20px;
    height: 400px;
    width: 300px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    border: solid 0.5px var(--primary-color);

    transition: all .2s ease;

    overflow: hidden;
}

.skill-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;

    height: 100%;
    width: 100%;

    background-color: var(--bg-color-var-I);

    transition: .2s ease;

    z-index: -1;
}

.skill-card h2 {
    color: var(--primary-color);
    font-size: 54px;
    font-weight: 500;
}

.skill-card span {
    display: block;
    font-size: 28px;
}

.skill-card p {
    font-size: 16px;
}

.skill-card:hover::after {
    transform: translateX(100%);
}

.contact {
    min-height: 40vh;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

}

.contact > p {
    text-align: center;
    margin-bottom: 140px;
}

.contact-cta-container {
    position: relative;
}

.contact-cta {
    position: relative;

    font-family: 'ginger', serif;
    font-size: min( 15vw, 300px) ;
    line-height: 80%;
}

.contact-cta::before {
    position: absolute;
    top: 50%;
    right: 0px;
    
    transform: translate(0%, -46%);
    
    content: '';
    display: block;
    background-color: var(--bg-color);
    opacity: 100%;

    width: 100%;
    height: 72%;

    z-index: -1;
}

.contact-cta:nth-child(2),
.contact-cta:nth-child(3) {
    position: absolute;
    top: 0;

    color: #04794F;

    z-index: -2;
}

.contact-cta a {
    color: var(--primary-color-var);
    transition: .2s ease;
}

.contact-cta:hover a {
    color: var(--primary-color);
}

.contact-cta:nth-child(4),
.contact-cta:nth-child(5) {
    position: absolute;
    top: 0;

    color: #07412C;

    z-index: -3;
}

.contact-cta:nth-child(6),
.contact-cta:nth-child(7) {
    position: absolute;
    top: 0;

    color: #08251A;

    z-index: -4;
}

.contact-cta:nth-child(2) {
    transform: translateY(40%);
    top: -40%;
}

.contact-cta:nth-child(3) {
    transform: translateY(-40%);
    top: 40%;
}

.contact-cta:nth-child(4) {
    transform: translateY(60%);
    top: -60%;
    transition-delay: .05s!important;

}

.contact-cta:nth-child(5) {
    transform: translateY(-60%);
    top: 60%;
    transition-delay: .05s!important;
}

.contact-cta:nth-child(6) {
    transform: translateY(70%);
    top: -70%;
    transition-delay: .1s!important;

}

.contact-cta:nth-child(7) {
    transform: translateY(-70%);
    top: 70%;
    transition-delay: .1s!important;
}

.contact-cta:not(:first-child) {
    transition: .5s ease;
}

.main:hover ~ .wm {
    transform: translateY(0%)!important;
}


.about-container {
    display: flex;
    flex-direction: column;
    gap: 10px;

    background-color: var(--bg-color-var-II);
}

.about {
    display: grid;
    grid-template-columns: minmax(470px , 32vw) 1fr;

    min-height: 650px;
}

.about a {
    transition: color .2s ease;
}

.about a:hover {
    color: var(--primary-color-var);
}

.about-img {
    height: 100%;
    min-height: 650px;
    width: 100%;

    filter: grayscale(100%);

    transition: filter .2s ease;

    background: url('/images/RM-about_img.jpg') center top no-repeat; 
    background-size: cover;
}

.about-img:hover {
    filter: grayscale(0%);
}

.about-description {
    width: 100%;
    height: 100%;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-description > div {
    padding: 100px;
    /* max-width: 600px; */
}

.about-description h2 {
    margin-bottom: 20px;

    font-family: 'ginger', serif;
    font-size: 72px;
    color: var(--primary-color);
    font-weight: lighter;
}

.about-description p {
    max-width: 700px;
}

.about-hobbies {
    /* height: 300px; */

    min-height: 300px;

    display: flex;
    flex-direction: column;
}

.hobby {
    margin-right: 10px;

    display: flex!important;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-height: 300px!important;
    width: 230px;

    filter: grayscale(100%);

    transition: filter .2s ease;
}

.hobby:hover {
    filter: grayscale(0%);
}

.divider {
    margin: 20px 0px;
    width: 100%;
    height: 0.5px;

    background-color: var(--primary-color);
}

footer {
    padding-top: 150px;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
}

.footer-logo {
    width: 100%;
    max-width: 270px;
}

.footer-nav {
    margin: 0;
    padding: 0;

    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 20px;

    list-style: none;

    font-size: 18px;
}

footer a {
    transition: .2s ease;
}

footer a:hover {
    color: var(--primary-color-var);
}

.footer-social {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.footer-social-icon {
    width: 40px;
    height: 40px;

}

.footer-social-icon path {
    fill: var(--on-bg-color-var);

    transition: .2s ease;

}

.footer-social-icon:hover > path {
    fill: var(--primary-color);
}

.footer-bottom {
    margin-top: 40px;
    padding: 10px 0px;

    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;

    font-size: 18px;
    color: var(--on-bg-color-var);
}

.contact-form {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 100;

    height: 100vh;
    width: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;

    padding: 24px;

    background-color: var(--bg-color-transparent-var);
    backdrop-filter: blur(10px);

    overflow-y: auto;
}

.hidden-form {
    top: -100%;
    display: none;

    transition: .2s ease;
}

.form-wrapper {
    width: 55%;
    max-width: 900px;
}

.contact-desc {
    margin-bottom: 30px;
}

.form-btn {
    cursor: pointer;
}

.form-header {
    margin-bottom: 32px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.form-header h2 {
    font-family: 'ginger', serif;
    font-size: 48px;
    font-weight: lighter;
    color: var(--primary-color);
}

#contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: right;
}

.form-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-item input,
.form-item textarea {
    padding: 10px 16px;

    border: none;
    outline: none;

    background-color: var(--bg-color-var-I);

    font-size: 20px;
    line-height: 150%;
    color: var(--primary-color);
}

.form-item input:focus,
.form-item textarea:focus {
    border: var(--primary-color) solid 1px}

.form-item textarea {
    resize: vertical;

    min-height: 100px;
    max-height: 200px;
}

.form-submit-btn {
    margin-top: 24px;
    margin-left: auto;
    margin-right: 0;

    padding: .6em 1.2em;

    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 500;

    background-color: var(--primary-color);

    cursor: pointer;

    transition: background-color .2s ease;
}

.form-submit-btn:hover {
    background-color: var(--primary-color-var);
}

.contact-section-form {
    display: none;
}

.footer-note {
    width: 100%;
    padding: .8rem 0;
    background-color: var(--bg-color-var-II);
    
    font-size: .825rem;
    text-align: center;
}

.footer-note p {
    opacity: .5;
}

/* Thanks page */

.thnks {
    max-width: 600px;
    width: 80%;
    margin: 0 auto;
    height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 4rem 0;

}

.thnks h1 {
    font-family: 'ginger';
    color: var(--primary-color);
    font-weight: lighter;

    font-size: clamp(24px, 10vw, 64px);
}

.thnks p {
    margin: 2rem 0;

    font-size: clamp(18, 10vw, 22px);
}

.thnks li {
    margin-bottom: .5rem;
}

.dbg {
    background-color: var(--bg-color-var-II);
}

@media screen and (min-width:1600px) {
    .hero {
        gap: 100px;
        min-height: 800px;
        max-height: 1000px;
    }
    .hero-img {
        height: 600px;
        width: 500px;
    }
    .container {
        max-width: 1800px;
    }
    .hero-left h1 {
        font-size: 60px;
    }
    .hero-description p {
        font-size: 24px;
    }

    .section-title h2 {
        font-size: 64px;
    }

    .displayed-project {
        max-width: 1600px;
        max-height: 900px;

         top: 10vh;
    }

    .about {
        grid-template-columns: 1fr 1fr;
        height: 80vh;
    }
    .about-hobbies {
        height: 450px;
    }
    .hobby {
        height: 450px!important;
        width: 350px;
    }
}

@media screen and (max-width:1200px) {

    .skill-item {
        flex-direction: column;
    }
    .skill-title {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    .skill-card {
        width: 100%;
    }
    .skill-card p {
        font-size: 18px;
    }
    .about {
        grid-template-columns: minmax(470px , 32vw) 1fr;
    }
    .about-hobbies {
        height: 300px;
    }
    .hobby {
        height: 300px!important;
    }
    .form-wrapper {
        width: 70%;
    }
}

@media screen and (max-width:1000px) {
    .hero {
        height: auto;
        grid-template-columns: none;
        grid-template-rows: 1fr auto;
    }

    .hero-description {
        margin-top: 68px;
        padding: 68px 24px;
    }

    .hero-right {
        padding: 0 0 48px 0;
    }

    .section-cta {
        margin: 48px 0;
    }

    .container {
        overflow-x: hidden;
    }

    .section-title {
        height: 100vh;
    }

    .more-projects-desktop {
        display: none;
    }

    .more-projects-mob {
        display: block;
        overflow-y: hidden;
        min-height: 600px;
    }

    .contact-section-form {
        display: block;
    }

    .contact {
        
        padding: 4em 0;
        background-color: var(--bg-color-var-II);
    }
    .navbar {
        visibility: hidden;
    }
    .mobile-topbar {
        visibility: visible;
    }

    .menu__mob {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        position: fixed;
        z-index: 50;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
    
        padding: 6em 0;
    
        background-color: var(--bg-color-transparent-var);
        backdrop-filter: blur(10px);
        transform: translateY(-100%);
    
        transition: transform .4s ease;
    }


    .menu__mob ul {
        padding: 0;
    }

    .menu__mob li {
        padding: 1rem 0;
        list-style: none;
        text-align: center;
        font-size: 2rem;
    }

    .about {
        display: flex;
        flex-direction: column;
    }
    .about-img {
        width: 100%;
    }
    .about-description > div {
        max-width: 700px;
        padding: 96px 24px;
        margin: 0 auto;
    }
    .displayed-project-infos-container {
        padding-top: 24px;
    }
    .displayed-project-infos {
        flex-direction: column;
    }
    .d-project-info-container {
        width: 100%;
    }
    .displayed-project-name {
        font-size: 30px;
        padding-left: 24px;
    }
    .displayed-project h4 {
        font-size: 18px;
    }
    .displayed-project p {
        font-size: 16px;
    }
    .displayed-project-roles li {
        font-size: 16px;
    }
    .displayed-project-infos {
        padding: 24px;
        gap: 24px;
    }
    .d-project-info-container {
        gap: 16px;
    }
    .displayed-project::after {
        filter: grayscale(0%);
    }
    .contact-cta-container {
        display: none;
    }
    .contact-text {
        margin-bottom: 64px;
    }
    
    .contact-text h3 {
        color: var(--primary-color);
        font-family: 'ginger', serif;
        font-weight: lighter;
        margin-bottom: 48px;
        font-size: 48px;
    }
}

@media screen and (max-width:840px) {
    .skill-title {
        flex-direction: column;
        gap: 20px;
    }
    .contact-form {
        padding: 24px;
    }
    .form-wrapper {
        width: 100%;
    }
}

@media screen and (max-width:740px) {
    .skill-card-container {
        flex-direction: column;
        gap: 20px;
    }

    .contact-cta {
        font-size: 19vw;
    }

    .form-submit-btn {
        width: 100%;
    }
}

@media screen and (max-width:560px) {

    body {
        font-size: 18px;
    }
    .section-title h2 {
        font-size: 32px;
    }
    .hero-description {
        margin-top: 68px;
        padding: 68px 0;
    }
    .hero-left h1 {
        font-size: 32px;
    }
    .hero-left p {
        margin-bottom: 24px;
    }
    .hero-cta {
        font-size: 18px;
    }
    .hero-img {
        width: 80%;
        height: auto;
        aspect-ratio: 3/4;
        /* width: 300px;
        height: 400px; */
    }
    .featured-projects {
        gap: 50px;
    }
    .displayed-project-roles li {
        font-size: 14px;
    }
    .accordion-content {
        padding: 0 0 20px 0
    }
    .skill-title h1 {
        font-size: 48px;
    }
    .skill-title img {
        width: 48px;
    }
    .skill-card h2 {
        font-size: 38px;
    }
    .skill-card span {
        font-size: 24px;
    } 
    .footer-bottom {
        flex-direction: column;
        justify-content: center;
    }
    .footer-bottom span {
        display: none;
    }
    .displayed-project {
        width: 100%;
    }
    .footer-nav {
        flex-direction: column;
    }
    .contact-form {
        padding-bottom: 32px;
    }
    .form-header h2 {
        font-size: 32px;
    }
    .form-item input,
    .form-item textarea {
        font-size: 18px;
    }
    .form-submit-btn {
        margin-bottom: 48px;
    }

}
