@import url(./reset.css);
@import url(./variables.css);

/* ============ HEADER ============ */
body {
    color: white;
    background-color: var(--bg);
    font-family: var(--font-display);
}

.high-light {
    color: var(--pastel-purple);
}

header {
    margin: 50px 50px 0 50px;
    background-color: black;
    color: white;
    display: flex;
    height: 40px;
}

.decoration {
    flex: 1;
    background-color: var(--gray);
    border-radius: 20px 20px 0 0;
}

nav {
    position: relative;
    isolation: isolate;
    background-color: var(--gray);
}

nav ul {
    display: flex;
    gap: 73px;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0 50px 0 50px;
}

nav::before {
    content: '';
    position: absolute;
    inset: 0;
    background: black;
    z-index: -1;
    border-radius: 0 0 32px 32px;
}

nav>* {
    position: relative;
    z-index: 1;
}

/* ============ HERO ============ */

.hero {
    position: relative;
    background-color: var(--gray);
    margin: 0 50px 50px 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 0 0 20px 20px;
    text-align: center;
    height: calc(100vh - 140px);
    justify-content: space-between;
}

/* ============ Chevron animation ============ */
.chevron-anim {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    pointer-events: none;
}

.chevron {
    position: absolute;
    width: 1.4rem;
    height: 0.32rem;
    opacity: 0;
    transform: scale(0.3);
    animation: move-chevron 3s ease-out infinite;
}

.chevron:first-child {
    animation: move-chevron 3s ease-out 1s infinite;
}

.chevron:nth-child(2) {
    animation: move-chevron 3s ease-out 2s infinite;
}

.chevron:before,
.chevron:after {
    content: '';
    position: absolute;
    top: 0;
    height: 100%;
    width: 50%;
    background: var(--pastel-purple);
}

.chevron:before {
    left: 0;
    transform: skewY(30deg);
}

.chevron:after {
    right: 0;
    width: 50%;
    transform: skewY(-30deg);
}

@keyframes move-chevron {
    25% {
        opacity: 1;
    }

    33.3% {
        opacity: 1;
        transform: translateY(1.52rem);
    }

    66.6% {
        opacity: 1;
        transform: translateY(2.08rem);
    }

    100% {
        opacity: 0;
        transform: translateY(3.2rem) scale(0.5);
    }
}

h1 {
    margin-top: 150px;
    font-size: 100px;
}

.hero h2 {
    font-size: var(--section-title);
}

.cv-button {
    background-color: var(--pastel-purple);
    height: 45px;
    width: 200px;
    border-radius: 7px;
    border: none;
    cursor: pointer;
    transition: 1s;
    color: var(--bg);
}

.hero h3 {
    margin-bottom: 100px;
    color: var(--pastel-purple);
}

/* ============ Main Content ============ */
main {
    margin: 0 70px 0 70px;
}

/* ============ Présentation ============ */
.presentation-section {
    margin-top: 100px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
    padding-bottom: 50px;
    border-bottom: solid 4px var(--gray);
}

.presentation-text {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-bottom: 100px;
}

.presentation-text h2 {
    font-size: 44px;

}

.presentation-text h3 {
    font-size: 17px;

}

.presentation-text p {
    line-height: 25px;
}

.window {
    position: relative;
    height: 400px;
    border-radius: 20px;
    border: solid #858585 0.5px;
    display: flex;
    flex-direction: column;
    background-image: url(./assets/images/Joe.png);
    background-size: cover;
    background-position: center;
}

.window-header {
    position: relative;
    background-color: var(--gray);
    display: flex;
    height: 50px;
    align-items: center;
    justify-content: center;
    border-radius: 20px 20px 0 0;
}

.window-buttons {
    position: absolute;
    left: 20px;
    display: flex;
    gap: 10px;
}

.window-buttons button {
    height: 15px;
    width: 15px;
    border-radius: 100px;
    border: none;
}

.window-buttons button:nth-child(1) {
    background-color: #FF4F4F;
}

.window-buttons button:nth-child(2) {
    background-color: #74FF6A;
}

.window-buttons button:nth-child(3) {
    background-color: #FFEA48;
}

.insta-button {
    position: absolute;
    background-color: var(--bg);
    border-radius: 10px;
    border: solid 2px var(--pastel-purple);
    color: var(--pastel-purple);
    padding: 15px 50px 15px 50px;
    right: -50px;
    top: 100px;
    cursor: pointer;
}

.socami-web-page {
    position: absolute;
    background-color: var(--bg);
    border-radius: 10px;
    border: solid 2px var(--pastel-purple);
    color: var(--pastel-purple);
    padding: 15px 50px 15px 50px;
    left: -50px;
    bottom: 50px;
    cursor: pointer;
}

/* ============ SKILLS ============ */

.skills-section {
    margin-top: 100px;
    padding-bottom: 50px;
    border-bottom: solid 4px var(--gray);
}

.skills-section h2 {
    font-size: var(--section-title);
}

.decoration {
    flex: 1;
    background-color: var(--gray);
    border-radius: 20px 20px 0 0;
}





.skills::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #000000 0%, #00000000 10%, rgba(19, 19, 19, 0) 50%, rgba(0, 0, 0, 0) 90%, rgb(0, 0, 0) 100%);
    z-index: 1;
    pointer-events: none;
}


.skills {
    position: relative;
    margin-top: 37px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 30px;
    overflow: hidden;
}

.skill-line-one,
.skill-line-two {
    display: flex;
    width: 100%;
    flex-wrap: nowrap;
}

@keyframes scrollLeft {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@keyframes scrollRight {
    from {
        transform: translateX(-50%);
    }

    to {
        transform: translateX(0);
    }
}



.skill {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--gray);
    flex: 0 0 auto;
    min-width: 130px;
    padding: 0 20px;
    text-align: center;
    height: 50px;
    border-radius: 10px;
    white-space: nowrap;
    margin-right: 30px;
}

/* ============ Projects section ============ */

.project-section {
    margin-top: 100px;
}

.project-section h2 {
    font-size: var(--section-title);
}

.frontend-projects {
    margin-top: 30px;
}

.frontend-projects h3 {
    color: var(--light-gray);
    font-size: 20px;
}

.frontend-project {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 100px;
    padding-left: 20px;
    border-left: solid 3px var(--gray);

}

.project-name {
    font-size: 25px;
    ;
}

.project-description p {
    margin-top: 30px;
    line-height: 25px;
}

.project-illustration-container {
    display: flex;
    align-items: center;
}

.project-illustration {
    border: solid 2px hsla(0, 0%, 100%, 0.200);
    border-radius: 30px;
    width: 100%;
}

.backend-projects {
    margin-top: 30px;
}

.backend-projects h3 {
    color: var(--light-gray);
    font-size: 20px;
}

.coming-soon-container {
    margin-top: 30px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.coming-soon {
    height: 300px;
}


/* ============ FOOTER ============ */



/* ============ HOVER ============ */
.insta-button:hover,
.socami-web-page:hover,
.cv-button:hover {
    background-color: var(--pastel-purple);
    color: var(--bg);
    scale: 1.05;

    box-shadow: 0px 0px 27px 0px rgba(195, 107, 255, 0.75);
}

.insta-button,
.socami-web-page {
    transition: 0.75s;
}

/* ============ RESPONSIVE - TABLETTE ============ */

@media (max-width: 1024px) {
    h1 {}

    header {}

    .hero {}

    nav ul {}

    main {}

    .insta-button {}

    .socami-web-page {}

    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============ RESPONSIVE - MOBILE ============ */

@media (max-width: 767px) {
    body {
        overflow-x: hidden;
    }

    .decoration {
        border-radius: 15px 15px 0 0;
    }

    nav::before {
        border-radius: 0 0 25px 25px;
    }



    header {
        margin: 10px 10px 0 10px;
    }

    nav ul {
        gap: 20px;
        padding: 0 15px;
        font-size:10px;
    }

    .hero {
        margin: 0 10px 10px 10px;
        height: auto;
        min-height: calc(100vh - 80px);
        padding: 40px 20px;
    }

    .chevron-anim {
        position: absolute;
        bottom: 15px;
    }

    h1 {
        font-size: 50px;
        margin-top: 60px;
    }

    .hero h2 {
        margin-top: 10px;
        font-size: 18px;
    }

    .subtitle {
        font-size: 13px;
        ;
    }

    .hero h3 {
        font-size: 13px;
        margin-bottom: 40px;
    }

    .cv-button {
        font-size: 13px;
    }

    main {
        margin: 0 30px;
    }

    /* — Présentation — */

    .presentation-section {
        grid-template-columns: 1fr;
        margin-top: 60px;
        gap: 60px;
    }

    .presentation-text {
        justify-content: flex-start;
        gap: 20px;
        margin-bottom: 0;
    }

    .presentation-text h2 {
        font-size: 30px;
    }

    .window-header {
        justify-content: right;
        border-radius: 20px 20px 0 0;
        font-size: 13px;
    }

    .window-header h2{
        margin-right: 5px;
    }

    .window-buttons {
        position: absolute;
        left: 20px;
        display: flex;
        gap: 5px;
    }

    .window-buttons button {
        height: 12px;
        width: 10px;
        border-radius: 1000px;
        border: none;

    }

    .insta-button {
        right: -15px;
        top: 70px;
    }

    .socami-web-page {
        left: -15px;
        bottom: 30px;
    }

    /* — Skills — */

    .skills-section {
        margin-top: 60px;
    }

    /* — Projects — */

    .project-section {
        margin-top: 60px;
        padding-bottom: 60px;
    }

    .frontend-project {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .coming-soon-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .coming-soon {
        height: 180px;
    }

    /* — Contact — */

    .contact-hero {
        margin: 0 10px 10px 10px;
        padding: 60px 20px 60px 20px;
    }

    .contact-hero h1 {
        font-size: 50px;
    }

    .contact-hero h3 {
        font-size: 13px;
    }

    .contact-section {
        margin-top: 60px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}


