@font-face {
    font-family: MonumentExtendedRegular;
    src: url(../fonts/MonumentExtended-Regular.woff2);
}

@font-face {
    font-family: MonumentExtendedUltraBold;
    src: url(../fonts/MonumentExtended-Ultrabold.woff2);
}

@keyframes up-arrow-form-link {
    to {
        transform: translate(0, 40px);
    }
}

@keyframes rotate-element {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes rotate-element2 {

    0%,
    7% {
        transform: rotate(0deg);
    }

    45%,
    55% {
        transform: rotate(360deg);
    }

    93%,
    100% {
        transform: rotate(0deg);
    }
}

@keyframes left-arrow {
    to {
        transform: translate(-52px, 0);
    }
}

/* ------------------------------ RESET ------------------------------ */

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    padding: 0;
    font-size: inherit;
    font-weight: inherit;
}

p {
    margin: 0;
}

ul, ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

blockquote, q {
    margin: 0;
    padding: 0;
}

a {
    color: inherit;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

button, input, select, textarea {
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    font: inherit;
    -webkit-tap-highlight-color: transparent;
}

textarea {
    resize: none;
    -webkit-tap-highlight-color: transparent;
}

:focus {
    outline: none;
}

*, *::before, *::after {
    box-sizing: border-box;
}

img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ------------------------------ ---- ------------------------------ */



/* ----------------------------- GLOBAL ----------------------------- */


html {
    scroll-padding: 8rem;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background-color: black;
    color: white;

    background-image: url(../../images/backgrounds/2.webp);
    background-repeat: repeat no-repeat;
    background-position: bottom left;
    background-size: auto;

    font-family: 'MonumentExtendedRegular';
}

main {
    margin-left: 5rem;
    margin-right: 5rem;
}

h2 {
    margin: 3rem 0;
    padding: 0.4rem 1rem;
    width: fit-content;
    
    color: black;

    font-family: 'MonumentExtendedUltraBold';
    font-size: 4rem;
}

section:nth-child(even) h2 {
    background-color: #ff7b2f;
}

section:nth-child(odd) h2 {
    background-color: #f71354;
}

strong {
    color: #f71354;
}

section:not(:first-child) {
    margin-bottom: 8rem;
}

section:last-child {
    margin-bottom: 10rem;
}

/* ------------------------------ ---- ------------------------------ */



/* ----------------------------- HEADER ----------------------------- */

header {
    padding: 1rem;
    font-size: large;

    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    backdrop-filter: blur(20px);
    background-color: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

nav ul {
    display: flex;
    align-items: center;
    gap: 1rem;
}

nav a {
    padding: 1rem;

    border-radius: 50px;
    transition: border-radius .3s, background-color .2s;

}

nav li:not(.form-link) a:hover {
    border-radius: 10px;
    color: black;
    background-color: transparent;
}

.form-link {
    margin-left: auto;
}

.form-link a {
    padding-top: 0.2rem;
    padding-bottom: 0.2rem;
    padding-left: 0.2rem;
    padding-right: 0.7rem;

    border: 2px solid white;
    border-radius: 10px;

    display: flex;
    align-items: center;
    gap: 0.3rem;

    font-size: 1rem;
}

.form-link:hover path {
    animation: up-arrow-form-link 1.5s ease-in-out infinite;
}

nav li:first-child:hover path{
    animation: left-arrow 1.5s ease-in-out infinite;
}

/* ------------------------------ ---- ------------------------------ */



/* ------------------------------ PAGE ------------------------------ */


.work-section .work {
    margin-top: 4rem;
    margin-bottom: 6rem;
    display: flex;
    gap: 3rem;
}

.work-section figure {
    margin: 0;
    width: 30%;
    position: relative;
    aspect-ratio: 1/1;
}

.work-section figure div {
    position: relative;
}

.work-section figcaption {
    font-size: 1rem;
    margin-left: 2rem;
}

.work-section figure img {
    width: 100%;
    height: auto;
    border-radius: 25px;
}

.work-section figure div::before {
    content: url(../images/icons/spark-icon.svg);
    position: absolute;
    z-index: 1;
    left: -2rem;
    top: -2rem;
    width: 4rem;
    height: auto;
}

.work-section figure div::after {
    content: url(../images/icons/spark-icon.svg);
    position: absolute;
    z-index: 1;
    right: -2rem;
    bottom: -1rem;
    width: 4rem;
    height: auto;
}

.work-description {
    width: 70%;
}

.work-tag {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.work-tag p {
    padding: 0.7rem 1.7rem;
    margin-bottom: 2rem;
    
    display: flex;
    align-items: center;
    gap: 1rem;
    
    width: fit-content;

    border: 3px solid white;
    border-radius: 50px;
    font-size: 1.3rem;
}

.work-tag img {
    width: 2rem;
    height: auto;
    animation: rotate-element 10s linear infinite;
}

.work-description>p {
    font-size: 2rem;
}

.work-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-bottom: 8rem;
}

.work-gallery img {
    border-radius: 20px;
    object-fit: contain;
}

/* ------------------------------ ---- ------------------------------ */


/* --------------------------- FORMULAIRE --------------------------- */


form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 3rem;
}

.input-field {
    position: relative;
}

.input-field {
    margin-bottom: 2rem;

}

.input-field input{
    padding: 1rem 0rem;
    width: 100%;

    font-size: 1.5rem;
    color: white;
    border-top: none;
    border-bottom: 4px solid ;
    border-left: none;
    border-right: none;
    transition: all .2s ease-in-out;
}

.input-field label {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    pointer-events: none;

    font-size: 1.5rem;
}

.input-field label:has(+ input:focus) {
    opacity: 0;
}

.input-field label:has(+ input:not(:placeholder-shown)) {
    opacity: 0;
}

.input-field input:focus {
    background-color: white;
    border-radius: 20px;
    border: none;
    color: black;
    padding-left: 2rem;
}


.chat-field {
    position: relative;
    grid-area: 1/2/6/3;
}

.chat-field textarea {
    padding-top: 2rem;
    padding-left: 1.8rem;
    width: 100%;
    height: 100%;
    
    color: white;
    border: 4px solid white;
    border-radius: 20px;
    font-size: 1.5rem;
    transition: all .2s ease-in-out;
}

.chat-field label {
    position: absolute;
    top: 2rem;
    left: 2rem;
    pointer-events: none;

    font-size: 1.5rem;
}

.chat-field textarea:focus {
    background-color: white;
    color: black;
}

.chat-field label:has(+ textarea:focus) {
    opacity: 0;
}

.chat-field label:has(+ textarea:not(:placeholder-shown)) {
    opacity: 0;
}

form button {
    margin-top: 1rem;
    height: 4rem;

    font-family: 'MonumentExtendedRegular';
    font-size: 1.5rem;

    background: linear-gradient(27deg,  #ff7b2f 0%, #f71354 30%, #f71354 60%, #ff7b2f 100%);
    border-radius: 20px;
    border: none;
    
    cursor: pointer;
}

/* ------------------------------ ---- ------------------------------ */



/* ----------------------------- FOOTER ----------------------------- */


footer {
    margin-top: 15rem;
    padding-bottom: 1rem;
    padding-left: 2rem;
    padding-right: 2rem;

    display: flex;
    justify-content: space-between;

    font-size: 1.2rem;
    color: black;
}

footer ul {
    display: flex;
    gap: 2rem;
}

/* ------------------------------ ---- ------------------------------ */