/* Custom Fonts */
@font-face {
    font-family: 'quantum';
    src: url('/quantum') format('truetype');
}

@font-face {
    font-family: 'capitana';
    src: url('/capitana') format('truetype');
}

/* Base Styles */
html {
    height: 100%;
    width: 100%;
    font-family: Roboto, sans-serif;
    background-color: #FBFBFB;
}

body {
    overflow-x: hidden;
}

a {
    text-decoration: underline;
    color: #000000;
    position: relative;
    font-size: 1.5rem;
    cursor: none;
}


.black-line {
    margin: 75px 10%;
    width: 80%;
    height: 5px;
    border-radius: 5px;
    background-color: black;
    display: flex;
    justify-content: end;
    align-items: center;

    .text {
        translate: 7vw 0;
        font-size: 2.5rem;
        font-family: Arial, sans-serif;
        margin-right: 2vw;
    }
}


.black-line-projects {
    margin: 75px 10%;
    width: 80%;
    height: 5px;
    border-radius: 5px;
    background-color: black;
    display: flex;
    justify-content: end;
    align-items: center;

    .text {
        translate: 7vw 0;
        font-size: 2.5rem;
        font-family: Arial, sans-serif;
        margin-right: 2vw;
    }
}

/* Loading Screen */
#loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: black;
    opacity: 1;
    transition: background-color 1s ease, opacity 1s ease;
    z-index: 1050;
}

#loading-video {
    width: 100%;
    height: 100%;
}

/* Portfolio Section */
#portfolio {
    display: none;
}

/* Navigation */
#navbar {
    padding: 1rem 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#navbar .navbar-toggler {
    border: none;
    padding: 0.25rem 0;
    cursor: pointer;
}

#navbar .navbar-toggler:focus {
    box-shadow: none;
}

#navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

#left-side-navbar {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

#left-side-navbar a img {
    height: 5vh;
    width: 5vh;
}

#right-side-navbar {
    display: flex;
    align-items: center;
    gap: 10vw;
}

#navbar .nav-link {
    position: relative;
    color: black;
    padding: 0.5rem 0;
}

#navbar .nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background-color: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

#navbar .nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: right;
}

/* Main Section */
#main-section {
    min-height: 100vh;
    padding-top: 2rem;
}

#main-section-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5vh;
}

#main-section-content img {
    width: 35vw;
    height: 35vw;
    border-radius: 10px;
    max-width: 500px;
}

#main-section h2 {
    font-family: capitana, sans-serif;
    font-size: 2.5rem;
}

#main-section h1 {
    font-family: quantum, sans-serif;
    font-size: 5rem;
}

/* Projects Section */


/* Projects Section */
#projets {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5vh 2.5vh;
    min-height: 100vh;
}

/* Card Base Styles */
.card {
    background: transparent !important;
    border: none !important;
    margin-bottom: 3rem;
    transition: all 0.5s ease;
    width: 100%;
    opacity: 0;
    transform: translateY(50px);
    will-change: opacity, transform;
}

.card.visible {
    opacity: 1;
    transform: translateY(0);
}

.card-left {
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    height: 100%;
    min-height: 40vw;
    background-color: darkgray;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.card-left img {
    height: 60vh;
    width: auto;

    border-radius: 10px;
}

.card-right {
    border-radius: 10px;
    background-color: darkgray;
    height: 100%;
    min-height: 40vw;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);;
}

.top-lane {
    width: 80%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.top-lane-left, .top-lane-right {
    font-size: 1.5rem;
    font-weight: 500;
}

.bottom-lane {
    font-size: 1.5rem;
    margin-top: auto;
    padding-top: 15px;
}

/* Desktop Overlapping Cards */
@media (min-width: 992px) {
    #projets {
        position: relative;
        gap: 50vh;
    }

    #projets .card {
        position: sticky;
        top: 100px;
        margin-bottom: 45vh; /* Increased for more overlapping space */
    }

    /* Reversed z-index so last card is on top */
    #projets .card:nth-child(1) {
        z-index: 1;
    }

    #projets .card:nth-child(2) {
        z-index: 2;
    }

    #projets .card:nth-child(3) {
        z-index: 3;
    }

    #projets .card:nth-child(4) {
        z-index: 4;
    }
}

/* Mobile and Tablet Styles */
@media (max-width: 991px) {
    .card {
        opacity: 1;
        transform: none;
        margin-bottom: 2rem;
    }

    #projets {
        gap: 50vh;
    }

    .card-left, .card-right {
        min-height: 25vw; /* Increased from 20vw */
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }
}

/* Curriculum Section */
#curiculum {
    min-height: 100vh;
    padding: 2.5vh;
}

#CV-left img {
    width: 100%;
    object-fit: contain;
}

/* Contact Section */
#contact {
    min-height: 100vh;
    padding: 4rem 0;
}

#talk {
    font-size: 2rem;
    font-family: capitana, sans-serif;
    margin-bottom: 2rem;
}

#talk-logo {
    margin: 2rem 0;
}

#talk-logo img {
    max-width: 150px;
}

#talk-mail {
    font-size: 2rem;
    margin-bottom: 3rem;
}

#reseaux {
    gap: 2.5vh;
    margin-right: 5vw;
    margin-bottom: 3rem;
}

.reseaux-link {
    width: 5vw;
    height: 5vw;
    max-width: 50px;
    max-height: 50px;
}

.reseaux-link a img {
    width: 100%;
    height: 100%;
}

#model-container {
    width: 100%;
    height: 400px;
    background-color: rgba(0, 0, 0, 0.05); /* Light background to see container boundaries */
    border: 1px solid #ddd;
}

/* Footer */
#footer {
    background-color: #3F3F3F;
    height: 10vh;
    font-family: capitana, sans-serif;
    font-weight: bold;
    color: white;
}

#footer a {
    color: white;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    #navbar {
        flex-wrap: wrap;
    }

    #right-side-navbar {
        flex-basis: 100%;
        justify-content: space-around;
        margin-top: 1rem;
        gap: 5vw;
    }
}

@media (max-width: 768px) {
    #main-section h1 {
        font-size: 4rem;
    }

    #main-section h2 {
        font-size: 2.5rem;
    }

    #main-section-content img {
        width: 60vw;
        height: 60vw;
    }

    .reseaux-link {
        width: 10vw;
        height: 10vw;
    }

    #navbar .nav-link {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    #main-section h1 {
        font-size: 3rem;
    }

    #main-section h2 {
        font-size: 2rem;
    }

    #right-side-navbar {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .black-line {
        margin: 40px 10%;
    }

    #talk-mail {
        font-size: 1.5rem;
    }
}

