@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500&display=swap');
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.3.0/font/bootstrap-icons.css");
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.3.0/font/bootstrap-icons.css");
*, ::before, ::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
:root {
    /* COLORS */
    --main-bg-color: #031927;
    --main-content-bg-color: #fff;
    --main-primary-text-color: #fff;
    --main-secondary-text-color: #333;

    /* FONTS SIZES */

    /* Responsive */
    --font-size-header-title-responsive: max(1.5em, 3vw);
    --font-size-header-subtitle-responsive: max(1.0em, 1.5vw);

    --font-size-content-title-responsive: max(2.4em, 6.3vw);
    --font-size-content-subtitle-responsive: 40px;
    --font-size-content-text-and-links-responsive: max(1em, 1.25vw);

    /* FONTS WEIGHTS */
    
    /* General */
    --font-weight-general: 300;
    --font-weight-content-title: 500;
    --font-weight-content-subtitle: 400;
    
}
body {
    font-family: 'Montserrat', sans-serif;
    background: var(--main-bg-color);
    display: flex;
    padding: 30px;
    justify-content: center;
    align-items: center;
}
.banner {
    background: var(--main-content-bg-color);
    position: absolute;
    height: 155%;
    width: 150%;
    transform: rotate(-50deg);
    z-index: 1;
}
.container {
    box-sizing: border-box;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    overflow-y: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: calc(4px + 1.3vw);
    overflow: hidden;
}
.content {
    width: 100%;
    height: 100%;
    background: var(--main-content-bg-color);
    padding: calc(6px + 0.8vw);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 2;
    gap: 20px;
    overflow: hidden;
    position: relative;
}
.content header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;
}
/* HEADER */
.header-text h1, .header-text h2{
    font-weight: var(--font-weight-general);
    line-height: 115%; 
}
.header-text h1{
    font-size: var(--font-size-header-title-responsive);
}
.header-text h2 {
    font-size: var(--font-size-header-subtitle-responsive);
}
.header-social {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}
.header-social a {
    padding: 10px;
}
.header-social a:hover svg {
    transform: scale(1.15);
    transition: transform .1s ease-out;
}
.header-social svg {
    width: 40px;
    height: 41px;
}
/* END HEADER */
/* MAIN */
main {
    display: flex;
    padding: 20px;
    gap: 20px;
    align-self: stretch;
    border-radius: 10px;
    background: var(--main-bg-color);
    flex: 1 0 0;
    position: relative;
}
.content > a {
    color: var(--main-primary-text-color);
    font-size: var(--font-size-content-text-and-links-responsive);
    font-weight: var(--font-weight-general);
    position: absolute;
    bottom: 30px;
    right: 35px;
    text-decoration: none;
    z-index: 3;
}
.main-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    width: 70%;
    gap: 20px;
}
.main-info h2 {
    color: var(--main-primary-text-color);
    font-size: var(--font-size-content-title-responsive);
    font-weight: var(--font-weight-content-title);
    position: relative;
    right: 20px;
    bottom: 20px;
    letter-spacing: 2.4px; 
}
.main-description {
    overflow: hidden;
    position: relative;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    border-radius: 10px;
    height: 100%;
    background: rgb(255,255,255);
    background: linear-gradient(160deg, rgba(255,255,255,1) 0%, rgba(255,255,255,1) 10%, rgba(3,25,39,1) 35%);
    z-index: 1;
}
.main-description::before, .project-nav nav::before {
    content: '';
    background: var(--main-bg-color);
    border-radius: 10px;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 2px;
    left: 2px;
    z-index: -1;
 }
.main-description p {
    color: var(--main-primary-text-color);
    font-size: max(1em, 1.25vw);
    font-weight: var(--font-weight-general);
    line-height: 170%;
    margin-right: 20px;
}
/* DESCRIPTION PROJECT */
    .main-project {
        display: flex;
        gap: 30px;
    }
    .img-container {
        position: relative;
        height: fit-content;
    }
    .img-container img {
        max-width: 300px;
        max-height: 400px;
        border-radius: 10px;
        object-fit: cover;
        cursor: pointer;
    }
    .img-container img:hover {
        opacity: 70%;
    }
    .img-container .info-img {
        position: absolute;
        right: 5px;
        bottom: 10px;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 10px;
        color: var(--main-primary-text-color);
        font-size: var(--font-size-content-text-and-links-responsive);
        font-weight: var(--font-weight-content-title);
        text-shadow: var(--main-bg-color) 0 0 0.8vw;
        z-index: 8;
        user-select: none;
    }
    .img-container img:hover {
        opacity: 70%;
    }
    .img-container .info-img {
        position: absolute;
        right: 5px;
        bottom: 10px;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 10px;
        color: var(--main-primary-text-color);
        font-size: var(--font-size-content-text-and-links-responsive);
        font-weight: var(--font-weight-content-title);
        text-shadow: var(--main-bg-color) 0 0 0.8vw;
        z-index: 8;
        user-select: none;
    }
    .description-project {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }
    .project-links {
        display: flex;
        align-items: center;
        gap: 30px;
    }
    .project-links a {
        text-decoration: none;
        position: relative;
        font-size: var(--font-size-content-text-and-links-responsive);
        font-weight: var(--font-weight-content-title);
        color: var(--main-primary-text-color);
    }
    .project-links a::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: -5px;
        background: var(--main-content-bg-color);
        width: 100%;
        height: 1px;
    }
/* END DESCRIPTION PROJECT */
.project-nav {
    width: 30%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
}
.project-nav h3 {
    color: var(--main-primary-text-color);
    font-size: max(2em, 1.25vw);
    font-weight: var(--font-weight-content-subtitle);
}
.project-nav nav {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    background: rgb(255,255,255);
    background: linear-gradient(160deg, rgba(255,255,255,1) 0%, rgba(255,255,255,1) 10%, rgba(3,25,39,1) 35%);
    z-index: 2;
}
.project-nav nav a {
    color: var(--main-primary-text-color);
    font-size: var(--font-size-content-text-and-links-responsive);
    font-weight: var(--font-weight-content-subtitle);
    position: relative;
    text-decoration: none;
    transition: letter-spacing .3s ease-out;
    cursor: pointer;
    user-select: none;
}
.project-nav nav a:hover, .nav-active {
    letter-spacing: 1px;
}
.project-nav nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    background: var(--main-content-bg-color);
    width: 100%;
    height: 1px;
}
/* END MAIN */
/* CAROUSEL */
.bg-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #01080df0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}
.bg-carousel img {
    width: 100%;
}
.quit-carousel {
    position: fixed;
    right: 2vw;
    top: 2vw;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 999;
}
.quit-carousel i {
    font-size: calc(var(--font-size-header-title-responsive) + 20px);
    color: var(--main-content-bg-color);
    text-shadow: var(--main-bg-color) 0 0 0.8vw;
}
.quit-carousel span:first-of-type {
    transform: rotate(45deg);
}
.quit-carousel span:last-of-type {
    transform: rotate(-45deg);
}
.toggle-carousel {
    width: 15%;
    height: 100%;
    position: fixed;
    top: 0;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}
.toggle-carousel:nth-of-type(2) {
    left: 0;
}

.toggle-carousel:nth-of-type(3) {
    right: 0;
}
.toggle-carousel i {
    font-size: var(--font-size-header-title-responsive);
    color: var(--main-content-bg-color);
    text-shadow: var(--main-bg-color) 0 0 0.8vw;

}
.nav-indicator {
    position: fixed;
    bottom: 20px;
    display: flex;
    z-index: 99;
    gap: 10px;
    max-width: 200px;
    width: 50%;
}
.nav-indicator span {
    width: 100%;
    height: 4px;
    border-radius: 999px;
    background: var(--main-bg-color);
    box-shadow: 0 0 5px var(--main-bg-color);
    opacity: 60%;
}
.nav-indicator span.active {
    background: var(--main-content-bg-color);
    opacity: 100%;
}
/* FIN CAROUSEL */
/* RESPONSIVE */
@media (max-width: 1100px) {
    .header-social a {
        padding: 5px;
    }
    .header-social a:hover svg {
        transform: scale(1.15);
        transition: transform .1s ease-out;
    }
    .header-social svg {
        width: 30px;
        height: 29px;
    }
    .content {
        gap: 10px;
    }
    .content > a {
        position: static;
        color: #000;
        align-self: flex-end;
    }
    main {
        flex-direction: column;
        overflow: scroll;
    }
    .main-info {
        width: 100%;
        padding: 0;
    }
    .main-info h2 {
        position: static;         
    }
    .main-description {
        padding: 20px;
    }
    .main-description p{
        margin-right: 0;
    }
    .main-project {
        flex-direction: column;
    }
    .main-project img {
        max-width: 100%;        
    }
    .project-nav {
        width: 100%;
    }
    .project-nav nav{
        padding: 20px;
    }

}
/* END RESPONSIVE */
/* ANIMATION */
.fade-on-load {
    animation: fadein 2s;
    -moz-animation: fadein 2s; 
    -webkit-animation: fadein 2s;
    -o-animation: fadein 2s;
}
.fade {
    
    animation: fadein 1s;
    -moz-animation: fadein 1s; 
    -webkit-animation: fadein 1s;
    -o-animation: fadein 1s;
}
@keyframes fadein {
    from {
        opacity:0;
    }
    to {
        opacity:1;
    }
}
@-moz-keyframes fadein { /* sur Firefox */
    from {
        opacity:0;
    }
    to {
        opacity:1;
    }
}
@-webkit-keyframes fadein { /* sur Safari et Chrome */
    from {
        opacity:0;
    }
    to {
        opacity:1;
    }
}
@-o-keyframes fadein { /* sur Opera */
    from {
        opacity:0;
    }
    to {
        opacity: 1;
    }
}
/* END ANIMATION */