body {
    font-size: 16px;
    min-height: 100vh;
    max-width: 65vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 0px;
    margin: 0 auto;
    box-sizing: border-box;
    font-family: Rubik, sans-serif;
    color: #454545;
    background-color: #f7f5ed;
    position: relative;
    overflow-x: hidden;
    transition: background-color 0.8s ease, color 0.8s ease;
}

h1 {
    font-size: clamp(65px, 10vw, 140px);
    font-weight: 800;
    font-family: Rubik, sans-serif;
    text-align: center;
    color: #454545;
    margin-top: 70px;
    margin-bottom: 0;
    transition: background-color 0.8s ease, color 0.8s ease;
}

h2 {
    font-size: clamp(50px, 10vw, 85px);
    font-weight: 800;
    font-family: Rubik, sans-serif;
    text-align: center;
    color: #454545;
    margin-top: 0;
    margin-bottom: 0;
    transition: background-color 0.8s ease, color 0.8s ease;
}

h3 {
    font-size: clamp(35px, 8vw, 60px);
    font-weight: 300;
    font-family: Rubik, sans-serif;
    text-align: center;
    color: #454545;
    margin-top: 0;
    margin-bottom: 0;
    transition: background-color 0.8s ease, color 0.8s ease;
}

h4 {
    font-size: clamp(25px, 6vw, 40px);
    font-weight: 300;
    font-family: Rubik, sans-serif;
    text-align: center;
    color: #454545;
    margin-top: 0;
    margin-bottom: 0;
    transition: background-color 0.8s ease, color 0.8s ease;
}

h5 {
    font-size: clamp(15px, 4vw, 30px);
    font-weight: 300;
    font-family: Rubik, sans-serif;
    text-align: center;
    color: #454545;
    margin-top: 0;
    margin-bottom: 0;
    transition: background-color 0.8s ease, color 0.8s ease;
}

p {
    font-size: 16px;
    margin-bottom: 15px;
}

.spacer {
    height: 50px;
}

.insa-logo {
    width: clamp(300px, 30vw, 550px);
    aspect-ratio: 3 / 1;
    background-image: url("../img/insa.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: background-image 0.8s ease, transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.insa-logo:hover {
    transform: scale(1.1);
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}
.insa-logo-little {
    width: clamp(200px, 25vw, 450px);
    aspect-ratio: 3 / 1;
    background-image: url("../img/insa.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.ulaval-logo {
    width: clamp(200px, 25vw, 450px);
    margin-top: 20px;
    aspect-ratio: 3 / 1;
    background-image: url("../img/ulaval.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.pepper-container {
    margin-top: 35px;
    margin-bottom: 15px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.pepper-frame {
  height: clamp(340px, 60vw, 850px);
  object-fit: contain;
  transform: rotateY(30deg);
  will-change: transform;
}

.lyon-skyline {
    width: clamp(400px, 50vw, 1000px);
    aspect-ratio: 3 / 1;
    background-image: url("../img/lyon-skyline.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;  
}

.mail-link {
    color: inherit;
    text-decoration: none;
    border: 3px solid currentColor;
    border-radius: 15px; 
    padding: 8px 16px;
    display: inline-block;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1); 
}

.mail-link:hover {
    text-decoration: none;
    transform: scale(1.2);
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1); 
}

.cv-link {
    text-decoration: none;
    margin-top: 15px;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1); 
}

.cv-link:hover {
    text-decoration: none;
    transform: scale(1.2);
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1); 
}

.linkedin-img {
    margin-top: 30px;
    width: clamp(100px, 20vw, 180px);
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1); 
}

.linkedin-img:hover {
    text-decoration: none;
    transform: scale(1.15);
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1); 
}

.more-button {
    padding: 15px 30px;
    margin-bottom: 40px;
    font-size: 23px;
    font-family: Rubik, sans-serif;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgb(255, 255, 255);
    cursor: pointer;
    text-decoration: none;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), background-color 0.8s ease, color 0.8s ease;
}

.more-button.visible:hover {
    transform: translateY(0) scale(1.2);
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.more-button.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.project-title, .project-subtitle {
    font-family: Rubik, sans-serif;
    transition: background-color 0.8s ease, color 0.8s ease;
}

.switch {
    position: fixed;
    top: 30px;
    left: 30px;
    width: 90px;
    height: 50px;
    z-index: 9999;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.switch:hover {
    transform: scale(1.2);
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ffce00;
    border-radius: 34px;
    transition: background-color 0.5s ease;
}

.slider::before {
    content: "";
    position: absolute;
    height: 42px;
    width: 42px;
    left: 4px;
    bottom: 4px;
    border-radius: 50%;
    background-color: white;
    background-image: url("../img/sun.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1), background-image 0.5s ease;
}

input:checked + .slider {
    background-color: #b5b9ff;
}

input:checked + .slider::before {
    transform: translateX(40px);
    background-image: url("../img/moon.png");
}

body.dark-mode {
    background-color: #1e2545;
    color: #ebe6d3;
}

body.dark-mode h1, body.dark-mode h2, body.dark-mode h3, body.dark-mode h4, body.dark-mode h5, body.dark-mode p {
    color: #ebe6d3;
}

body.dark-mode .insa-logo, body.dark-mode .insa-logo-little {
    background-image: url("../img/insa-dark.png");
}

body.dark-mode .ulaval-logo {
    background-image: url("../img/ulaval-dark.png");
}

body.dark-mode .lyon-skyline {
    background-image: url("../img/lyon-skyline-dark.png");
}

@media (max-width: 800px) {
    body {
        max-width: 96vw;
    }

    p {
        font-size: 12px;
    }

    .switch:hover {
        transform: none;
    }

    .mail-link {
        border: 1.8px solid currentColor;
    }

    .more-button {
        padding: 8px 16px;
        font-size: 18px;
    }

    .pepper-container {
        margin-top: 20px;
        margin-bottom: 0px;
    }

    .switch {
        top: 10px;
        left: 15px;
        width: 63px;
        height: 35px;
    }

    .slider::before {
        height: 27px;
        width: 27px;
    }

    input:checked + .slider::before {
        transform: translateX(28px);
    }
}
