* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: "Radio Canada", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-variation-settings: "wdth" 100;
    color: white;
    background-color: #111;
    overflow-x: hidden;
}
/*COOKIES*/
#cookiePopup {
    background-color: #ffffff;
    position: absolute;
    font-size: 14px;
    width: 70vw;
    max-width: 42.85em;
    box-shadow: 0 0 2em rgba(5, 0, 31, 0.15);
    font-family: "Poppins", sans-serif;
    text-align: justify;
    line-height: 1.8em;
    padding: 2em 1.4em;
    border-radius: 6px;
    transition: all 0.5s ease-in;
}
#cookiePopup img {
    display: block;
    width: 3.75em;
    transform: translateZ(0);
    position: relative;
    margin: auto;
}
#cookiePopup p {
    text-align: center;
    margin: 1.4em 0;
}
#cookiePopup button {
    background-color: #6859fe;
    border: none;
    color: #ffffff;
    font-size: 1.2em;
    padding: 1em 1.4em;
    display: block;
    position: relative;
    margin: auto;
    border-radius: 5px;
}
#cookiePopup a {
    color: #6859fe;
}
.hide {
    visibility: hidden;
    bottom: 0;
    right: 2em;
}
.show {
    visibility: visible;
    bottom: 2em;
    right: 2em;
}
@media only screen and (max-width: 37.5em) {
    #cookiePopup {
        width: 100%;
    }
    .hide {
        bottom: 2em;
        right: 0;
    }
    .show {
        right: 0;
        bottom: 0;
    }
}
.section {
    min-height: 100vh;
    padding: 100px 20px;
    max-width: 1000px;
    margin: auto;
}

/* Top Section */
.top-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 100px 20px;
}

.top-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1200px;
    width: 100%;
}

.top-text {
    flex: 1;
    min-width: 250px;
}

.top-text h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.top-text h2 {
    font-size: 2rem;
    color: #ccc;
}

.top-image {
    flex: 1;
    text-align: right;
}

.top-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}
.scroll_icon {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: auto;
    opacity: 0.6;
    animation: bounce 2s infinite;
    z-index: 999;
    transition: opacity 0.3s ease;
    filter: invert(1);
}


/* About Section */
.about-title {
    font-size:  2.5rem;
    margin-bottom: 2rem;
}

.about-container {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    width: 100%;
}

.about-text {
    flex: 1 1 60%;
    min-width: 300px;
}

.about-text p {
    font-size: 1rem;
    line-height: 1.6;
}

/* Carousel */
.carousel-container {
    flex: 0 0 35%;
    min-width: 280px;
    max-width: 400px;
    height: 400px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.carousel-image {
    display: none;
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    transition: opacity 0.5s ease;
}

.carousel-image.active {
    display: block;
}

.carousel-buttons {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}

.carousel-buttons button {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 1.5rem;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 50%;
}

.carousel-buttons button:hover {
    background: rgba(255, 255, 255, 0.2);
}
/*Project Page*/
.section {
    padding: 2rem;
    max-width: 1000px;
    margin: auto;
}

.section h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.section p {
    margin-bottom: 2rem;
}

.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.project {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 2rem;
}
.project-image1{
    width: 100%;
    height: 280px;
}
.project-image2{
    width: 100%;
    height: 270px;
}
.project-image3{
    width: 100%;
    height: 280px;
}
.button-more-info {
    display: inline-block;
    padding: 12px 28px;
    font-family: "Radio Canada", sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: #fff;
    background-color: #222; /* darker tone */
    border: 1px solid #444;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
    letter-spacing: 0.5px;
}

.button-more-info:hover {
    background-color: #333;
    border-color: #666;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.button-more-info:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}



.row-reverse {
    flex-direction: row-reverse;
}

.project-image {
    background-color: #d3d3d3;
    width: 100%;
    height: 200px;
}

.project-text p {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Responsive design */
@media (max-width: 768px) {
    .project {
        grid-template-columns: 1fr;
    }

    .row-reverse {
        flex-direction: column;
    }
}


/* Responsive */
@media (max-width: 768px) {
    .project {
        grid-template-columns: 1fr;
    }

    .project:nth-child(even),
    .project:nth-child(even) .project-text {
        direction: ltr;
    }
}
/*SKILLS PAGE*/
.skills-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 600px;
    margin-top: 2rem;
}

.skill {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.skill span {
    font-weight: 500;
}

.skill-bar {
    width: 100%;
    height: 20px;
    background-color: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.skill-level {
    height: 100%;
    background-color: #656e91;
    border-radius: 10px 0 0 10px;
    transition: width 0.6s ease;
}
/*CONTACT PAGE*/
.contact-info {
    margin-top: 1.5rem;
    font-size: 1.1rem;
}

.contact-info a {
    color: #656e91;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

.thank-you {
    margin-top: 2rem;
    font-style: italic;
    color: #666;
}

/* Navigation Bar */
.vertical-nav {
    position: fixed;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    z-index: 1000;
}

.nav-line {
    width: 2px;
    height: 250px;
    background: rgba(255, 255, 255, 0.3);
    position: relative;
}

.nav-indicator {
    width: 12px;
    height: 12px;
    border: 2px solid white;
    border-radius: 50%;
    background: #111;
    position: absolute;
    left: -5px;
    transition: top 0.3s ease;
}

.nav-list {
    list-style: none;
    margin-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.nav-list a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.nav-list a.active,
.nav-list a:hover {
    color: white;
}
