/* ----- POPPINS FONT Link ----- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* ----- VARIABLES ----- */
:root{
    --body-color: rgb(250, 250, 250);
    --color-white: rgb(255, 255, 255);

    --text-color-second: rgb(68, 68, 68);
    --text-color-third: rgb(30, 159, 171);

    --first-color: rgb(110, 87, 224);
    --first-color-hover: rgb(40, 91, 212);

    --second-color: rgb(0, 201, 255);
    --third-color: rgb(192, 166, 49);
    --first-shadow-color: rgba(0, 0, 0, 0.1);

}

/* ----- BASE ----- */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* ----- SMOOTH SCROLL ----- */
html{
    scroll-behavior: smooth;
}

/* ----- CHANGE THE SCROLL BAR DESIGN ----- */
::-webkit-scrollbar{
    width: 10px;
    border-radius: 25px;
}
::-webkit-scrollbar-track{
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb{
    background: #ccc;
    border-radius: 30px;
}
::-webkit-scrollbar-thumb:hover{
    background: #bbb;
}


/* ---##-- REUSABLE CSS --##--- */

/* ----- GLOBAL BUTTON DESIGN ----- */
.btn{
    font-weight: 500;
    padding: 12px 20px;
    background: #efefef;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: .4s;
}
.btn>i{
    margin-left: 10px;
}
.btn:hover{
    background: var(--second-color);
    color: var(--color-white);
}

/* ----- GLOBAL ICONS DESIGN ----- */
i{
    font-size: 16px;
}

/* ------- BASE -------- */
body{
    background: var(--body-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.container{
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

/* Centrage global et suppression du scroll horizontal */
body, html {
    width: 100vw;
    min-width: 0;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* Centrage du conteneur principal */
.container {
    margin: 0 auto;
    padding-left: 12px;
    padding-right: 12px;
    max-width: 100vw;
    box-sizing: border-box;
}

/* Wrapper bien centré */
.wrapper {
    margin: 0 auto;
    width: 100%;
    max-width: 1400px;
    box-sizing: border-box;
    padding-left: 0;
    padding-right: 0;
}

/* Sections bien centrées */
.section {
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
}

/* ----- NAVIGATION BAR ----- */
nav{
    position: fixed;
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 1400px;
    left: 50%;
    transform: translateX(-50%);
    height: 90px;
    line-height: 90px;
    background: var(--body-color);
    padding-inline: 9vw;
    transition: .3s;
    z-index: 100;
}
.nav-logo{
   position: relative;
}
.nav-name{
    font-size: 30px;
    font-weight: 600;
    color: var(--text-color-third);
}
.nav-logo span{
    position: absolute;
    top: -15px;
    right: -20px;
    font-size: 5em;
    color: var(--text-color-second);
}
.nav-menu, .nav_menu_list{
    display: flex;
}
.nav-menu .nav_list{
    list-style: none;
    position: relative;
}
.nav-link{
    text-decoration: none;
    color: var(--text-color-second);
    font-weight: 500;
    padding-inline: 15px;
    margin-inline: 20px;
}
.nav-menu-btn{
    display: none;
}
.nav-menu-btn i{
    font-size: 28px;
    cursor: pointer;
}
.active-link{
    position: relative;
    color: var(--first-color);
    transition: .3;
}
.active-link::after{
    content: '';
    position: absolute;
    left: 50%;
    bottom: -15px;
    transform: translate(-50%, -50%);
    width: 5px;
    height: 5px;
    background: var(--first-color);
    border-radius: 50%;
}


/* ----- WRAPPER DESIGN ----- */
.wrapper{
    padding-inline: 6vw;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* ----- FEATURED BOX ----- */
.featured-box{
    position: relative;
    display: flex;
    height: 100vh;
    min-height: 700px;
}

/* ----- FEATURED TEXT BOX ----- */
.featured-text{
    position: relative;
    display: flex;
    justify-content: center;
    align-content: center;
    min-height: 80vh;
    flex-direction: column;
    width: 50%;
    padding: 0 2rem;
}
.featured-text-card span{
    background: var(--third-color);
    color: var(--color-white);
    padding: 3px 8px;
    font-size: 12px;
    border-radius: 5px;
}
.featured-name{
    font-size: 50px;
    font-weight: 600;
    color: var(--text-color-second);
    margin-block: 20px;
}
.typedText{
    text-transform: capitalize;
    color: var(--text-color-third);
}
.featured-text-info{
    font-size: 15px;
    margin-bottom: 30px;
    color: var(--text-color-second);
}
.featured-text-btn{
    display: flex;
    gap: 20px;
}
.featured-text-btn>.blue-btn{
    background: var(--first-color);
    color: var(--color-white);
}
.featured-text-btn>.blue-btn:hover{
    background: var(--first-color-hover);
}
.social_icons{
    display: flex;
    margin-top: 5em;
    gap: 30px;
}
.icon{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.25);
    cursor: pointer;
}
.icon:hover{
    color: var(--first-color);
}

/* ----- FEATURED IMAGE BOX ----- */
.featured-image{
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    width: 50%;
}
.image{
    margin: auto 0;
    width: 380px;
    height: 380px;
    border-radius: 55% 45% 55% 45%;
    overflow: hidden;
    animation: imgFloat 7s ease-in-out infinite;
}
.image img{
    width: 380px;
    height: 380px;
    object-fit: cover;
}
@keyframes imgFloat {
    50%{
        transform: translateY(10px);
        border-radius: 45% 55% 45% 55%;
    }
}
.scroll-btn{
   position: absolute;
   bottom: 0;
   left: 50%;
   translate: -50%;
   display: flex;
   justify-content: center;
   align-items: center;
   width: 150px;
   height: 50px;
   gap: 5px;
   text-decoration: none;
   color: var(--text-color-second);
   background: var(--color-white);
   border-radius: 30px;
   box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.25);
}
.scroll-btn i{
    font-size: 20px;
}

/* ----- MAIN BOX ----- */
.section{
    padding-block: 5em;
}
.row{
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 50px;
}
.col{
    display: flex;
    width: 50%;
}

/* -- ## --- RESUABLE CSS -- ## -- */
.top-header{
    text-align: center;
    margin-bottom: 5em;
}
.top-header h1{
    font-weight: 600;
    color: var(--text-color-second);
    margin-bottom: 10px;
}
.top-header span{
    color: #999;
}
h3{
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color-second);
    margin-bottom: 15px;
}

/* ----- ABOUT INFO ----- */
.about-info{
    position: relative;
    display: flex;
    align-items: center;
    flex-direction: column;
    padding-block: 30px 70px;
    padding-inline: 20px;
    width: 100%;
    background: var(--color-white);
    box-shadow: 1px 8px 10px 2px var(--first-shadow-color);
    border-radius: 20px;
}
.about-info p{
    text-align: center;
    font-size: 15px;
    color: #777;
}
.about-btn button{
    position: absolute;
    right: 20px;
    bottom: 20px;
    background: var(--first-color);
    color: var(--color-white);
    border-radius: 30px;
}
.about-btn button:hover{
    background: var(--first-color-hover);
}

/* ----- ABOUT / SKILLS BOX ----- */
.skills-box{
    margin: 10px;
}
.skills-header{
    margin-bottom: 30px;
}
.skills-list{
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.skills-list span{
    font-size: 14px;
    background: var(--first-color);
    color: var(--color-white);
    padding: 2px 10px;
    border-radius: 5px;
}

/* ----- PROJECTS BOX ----- */
.project-container{
    display: flex;
    width: 100%;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.project-box{
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 30%;
    height: 250px;
    background: var(--color-white);
    border-radius: 20px;
    box-shadow: 1px 8px 10px 2px var(--first-shadow-color);
    overflow: hidden;
}
.project-box>i{
    font-size: 50px;
    color: #00B5E7;
    margin-bottom: 25px;
}
.project-box label{
    font-size: 15px;
    color: #777;
}
.project-box::after, .contact-info::after{
    content: "";
    position: absolute;
    bottom: -100%;
    background: var(--second-color);
    width: 100%;
    height: 100%;
    transition: .4s;
    z-index: 1;
}
.project-box:hover.project-box::after,
.contact-info:hover.contact-info::after{
    bottom: 0;
}
.project-box:hover.project-box i,
.project-box:hover.project-box>h3,
.project-box:hover.project-box>label{
    color: var(--color-white);
    z-index: 2;
}

.projects-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  justify-content: center;
  margin-top: 2rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.project-item {
  background: var(--color-white);
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  overflow: hidden;
  position: relative;
  width: 100%;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.project-item:hover {
  box-shadow: 0 8px 32px rgba(0,181,231,0.12);
  border: 2px solid var(--second-color);
  transform: translateY(-4px) scale(1.02);
}

.project-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s;
}

.project-item:hover img {
  transform: scale(1.04);
}

.project-overlay {
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.project-overlay h3 {
  color: var(--second-color);
  margin-bottom: 0.5rem;
  text-align: center;
}

.project-overlay p {
  color: var(--text-color-second);
  margin-bottom: 1rem;
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.4;
}

.project-tags {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.7rem;
  flex-wrap: wrap;
  justify-content: center;
}
.project-tags span {
  background: var(--first-color);
  color: var(--color-white);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 5px;
  font-weight: 500;
}
.project-links {
  display: flex;
  gap: 0.7rem;
  margin-top: 0.7rem;
  flex-wrap: wrap;
  justify-content: center;
}
.project-btn {
  background: var(--second-color);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.85rem;
  transition: all 0.2s ease;
  border: none;
}

.project-btn:hover {
  background: #00B5E7;
  transform: translateY(-2px) scale(1.04);
}

/* Filter Buttons */
.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 10px 18px;
    border: 2px solid var(--first-color);
    border-radius: 25px;
    background-color: var(--color-white);
    color: var(--first-color);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
}

.filter-btn:hover {
    background-color: var(--first-color);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(110, 87, 224, 0.3);
}

.filter-btn.active {
    background-color: var(--first-color);
    color: var(--color-white);
    box-shadow: 0 4px 12px rgba(110, 87, 224, 0.3);
}

/* View All Projects Button */
.view-all-projects-btn {
    display: block;
    margin: 3rem auto 0;
    background: var(--first-color);
    color: var(--color-white);
    padding: 12px 25px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.view-all-projects-btn:hover {
    background: var(--first-color-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(110, 87, 224, 0.3);
}

/* ----- TESTIMONIALS SECTION ----- */
.testimonials-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: var(--color-white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    position: relative;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    opacity: 1;
    transform: translateY(0);
}
.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 32px rgba(0,181,231,0.12);
    border: 2px solid var(--second-color);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--second-color);
    flex-shrink: 0;
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-info h4 {
    color: var(--second-color);
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.testimonial-info p {
    color: var(--text-color-second);
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 0;
}

.testimonial-content {
    color: var(--text-color-second);
    line-height: 1.6;
    font-style: italic;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.testimonial-rating {
    display: flex;
    gap: 0.3rem;
    margin-bottom: 1rem;
}

.star {
    color: #FFD700;
    font-size: 1.1rem;
}

.testimonial-date {
    color: var(--text-color-second);
    font-size: 0.8rem;
    opacity: 0.7;
    text-align: right;
}

.testimonial-quote {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    color: var(--second-color);
    opacity: 0.3;
    font-family: serif;
}

/* Testimonials Filter */
.testimonials-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.testimonial-filter-btn {
    padding: 8px 16px;
    border: 2px solid var(--first-color);
    border-radius: 20px;
    background: var(--color-white);
    color: var(--first-color);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
}

.testimonial-filter-btn:hover,
.testimonial-filter-btn.active {
    background: var(--first-color);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(110, 87, 224, 0.3);
}

/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1001; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0, 0, 0, 0.8); /* Black w/ opacity */
    backdrop-filter: blur(5px); /* Blur effect */
    animation: fadeIn 0.3s ease-in-out;
    justify-content: center;
    align-items: center;
}

/* Ajoute cette classe pour afficher le modal */
.modal.open {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: var(--color-white);
    padding: 2rem;
    border: none;
    border-radius: 20px;
    width: 90%;
    max-width: 1000px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease-out;
    margin: 0; /* Remove auto margin since we're using flexbox */
}

@keyframes slideIn {
    from { 
        transform: translateY(-50px) scale(0.9);
        opacity: 0;
    }
    to { 
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.close-button {
    color: var(--text-color-second);
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1002;
    background: var(--body-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    border: 2px solid #e0e0e0;
}

.close-button:hover,
.close-button:focus {
    color: var(--color-white);
    background: var(--first-color);
    border-color: var(--first-color);
    transform: scale(1.1);
    text-decoration: none;
    cursor: pointer;
}

.modal-title {
    text-align: center;
    color: var(--text-color-second);
    margin-bottom: 2rem;
    font-size: 2.2em;
    margin-top: 1rem;
}

.modal-projects-gallery {
    margin-top: 2rem;
    gap: 2rem;
    justify-content: center;
}

.modal-projects-gallery .project-item {
    width: 300px;
    min-height: 320px;
}

/* ----- CONTACT BOX ----- */
.contact-info{
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px 30px;
    width: 100%;
    height: 315px;
    background: var(--second-color);
    border-radius: 10px;
    box-shadow: 1px 8px 10px 2px var(--first-shadow-color);
    overflow: hidden;
    
}
.contact-info>h2{
    color: var(--color-white);
    margin-bottom: 20px;
}
.contact-info>p{
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-white);
    margin-block: 5px;
}
.contact-info p>i{
    font-size: 18px;
}
.contact-info::after{
    background: var(--color-white);
}
.contact-info:hover.contact-info h2,
.contact-info:hover.contact-info p,
.contact-info:hover.contact-info i{
    color: #777;
    z-index: 2;
}

/* ----- CONTACT FORM ----- */
.form-control{
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}
.form-inputs{
    display: flex;
    gap: 10px;
    width: 100%;
    margin-left: 1px;

}
.input-field{
    width: 50%;
    height: 55px;
    background: transparent;
    border: 2px solid #AAA;
    border-radius: 10px;
    padding-inline: 20px;
    outline: none;
    margin-left: 20px;

}
textarea{
    width: 100%;
    height: 250px;
    background: transparent;
    border: 2px solid #AAA;
    border-radius: 10px;
    padding: 15px 20px;
    outline: none;
    resize: none;
    margin-left: 20px;
}
.form-button>.btn{
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--second-color);
    color: var(--color-white);
    margin-left: 20px;  ;
}
.form-button>.btn:hover{
    background: #00B5E7;
}
.form-button i{
    font-size: 18px;
    rotate: -45deg;
}

/* ----- FOOTER BOX ----- */
footer{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    row-gap: 30px;
    background: #F8F8F8;
    margin: 0;
    padding-block: 40px 60px;
}
.top-footer p{
    font-size: 25px;
    font-weight: 600;
}
.middle-footer .footer-menu{
    display: flex;
}
.footer_menu_list{
    list-style: none;
}
.footer_menu_list a{
    text-decoration: none;
    color: var(--text-color-second);
    font-weight: 500;
    margin-inline: 10px;
    margin-left: 15px;
}
.footer-social-icons{
    display: flex;
    gap: 30px;   
}
.bottom-footer{
    font-size: 14px;
    margin-top: 10px;
}

/* ----- SCROLL PROGRESS BAR ----- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.scroll-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--first-color), var(--second-color));
    width: 0%;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px rgba(110, 87, 224, 0.5);
}

/* ----- MEDIA QUERY == 1024px / RESPONSIVE ----- */
@media only screen and (max-width: 1024px){
    .featured-text{
        padding: 0;
    }
    .image, .image img{
        width: 320px;
        height: 320px;
    }
    .modal-content {
        width: 95%; /* Adjust modal width for smaller screens */
        padding: 20px;
    }
    .modal-projects-gallery .project-item {
        width: 280px;
    }
}

/* ----- MEDIA QUERY == 900px / RESPONSIVE ----- */
@media only screen and (max-width: 900px) {
    .nav-button{
        display: none;
    }
    .nav-menu.responsive{
        left: 0;
    }
    .nav-menu{
        position: fixed;
        top: 80px;
        left: -100%;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(20px);
        width: 100%;
        min-height: 450px;
        height: 90vh;
        transition: .3s;
    }
    .nav_menu_list{
        flex-direction: column;
        gap: 1rem;
    }
    .nav-menu-btn{
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .wrapper {
        padding-inline: 4vw;
    }
    .featured-box{
        flex-direction: column;
        justify-content: center;
        height: 100vh;
        gap: 2rem;
    }
    .featured-text{
        width: 100%;
        order: 2;
        justify-content: center;
        align-items: center;
        text-align: center;
        min-height: 60vh;
        padding: 0 1rem;
    }
    .featured-text-btn {
        justify-content: center;
        flex-wrap: wrap;
    }
    .social_icons{
        margin-top: 2em;
        justify-content: center;
    }
    .featured-image{
        order: 1;
        justify-content: center;
        min-height: 200px;
        width: 100%;
        margin-top: 65px;
    }
    .image, .image img{
        width: 200px;
        height: 200px;
    }
    .row{
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
    }
    .col{
        display: flex;
        justify-content: center;
        width: 100%;
    }
    .about-info, .contact-info{
        width: 100%;
        margin: 0 auto;
    }
    .project-container{
        justify-content: center;
    }
    .project-box{
        width: 80%;
        margin: 0 auto;
    }
    .projects-gallery {
        gap: 2rem;
        grid-template-columns: repeat(2, 1fr);
    }
    .project-item {
        width: 100%;
        max-width: 400px;
    }
    .project-btn {
        padding: 0.5rem 1rem;
        font-size: 14px;
    }
    .form-inputs {
        gap: 1rem;
    }
    .input-field, textarea {
        margin-left: 0;
    }
    .modal-content {
        padding: 15px;
    }
    .modal-projects-gallery .project-item {
        width: 90%;
        max-width: 380px;
    }
    .filter-buttons {
        gap: 8px;
    }
    .filter-btn {
        padding: 6px 12px;
        font-size: 14px;
    }
    /* Testimonials responsive */
    .testimonials-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    .testimonial-card {
        padding: 1.5rem;
    }
    .testimonial-header {
        gap: 0.8rem;
    }
    .testimonial-avatar {
        width: 50px;
        height: 50px;
    }
    .testimonials-filter {
        gap: 0.8rem;
    }
    .testimonial-filter-btn {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
}

/* ----- MEDIA QUERY == 768px / RESPONSIVE ----- */
@media only screen and (max-width: 768px) {
    .projects-gallery {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        padding: 0 1rem;
    }
    .project-item {
        min-height: 260px;
        max-width: 100%;
        margin: 0 auto;
    }
    .project-item img {
        height: 140px;
    }
    .filter-buttons {
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 8px;
        padding-bottom: 8px;
        margin-bottom: 2rem;
    }
    .filter-btn {
        min-width: 110px;
        font-size: 13px;
        padding: 8px 10px;
    }
}

/* ----- MEDIA QUERY == 540px / RESPONSIVE ----- */
@media only screen and (max-width: 540px){
    .wrapper {
        padding-inline: 2vw;
    }
    .featured-name{
        font-size: 32px;
    }
    .featured-text-info {
        font-size: 13px;
    }
    .project-box{
        width: 100%;
    }
    .form-inputs{
        flex-direction: column;
        gap: 0.5rem;
    }
    .input-field{
        width: 100%;
        margin-left: 0;
    }
    .textarea {
        margin-left: 0;
    }
    .form-button > .btn {
        margin-left: 0;
    }
    .image, .image img {
        width: 150px;
        height: 150px;
    }
    .social_icons {
        gap: 20px;
    }
    .icon {
        width: 35px;
        height: 35px;
    }
    .projects-gallery {
        gap: 1rem;
    }
    .project-item {
        width: 100%;
        max-width: 300px;
    }
    .edu-exp-box {
        min-width: 200px;
        padding: 1.5rem 1rem;
    }
    .filter-buttons {
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 10px;
        padding-bottom: 8px;
        margin-bottom: 2rem;
        scrollbar-width: thin;
        scrollbar-color: var(--first-color) #eee;
    }
    .filter-btn {
        min-width: 120px;
        padding: 10px 0;
        border-radius: 30px;
        font-size: 15px;
        border: 2px solid var(--first-color);
        background: var(--color-white);
        color: var(--first-color);
        box-shadow: 0 2px 8px rgba(110,87,224,0.08);
        transition: all 0.3s;
        margin-bottom: 0;
        text-align: center;
        white-space: nowrap;
    }
    .filter-btn.active {
        background: var(--first-color);
        color: var(--color-white);
        box-shadow: 0 4px 16px rgba(110,87,224,0.18);
        transform: scale(1.05);
    }
    .modal-projects-gallery .project-item {
        width: 100%;
        max-width: 280px;
    }
    /* Testimonials responsive */
    .testimonials-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .testimonial-card {
        padding: 1rem;
    }
    .testimonial-header {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    .testimonial-avatar {
        width: 45px;
        height: 45px;
    }
    .testimonials-filter {
        flex-direction: column;
        align-items: center;
    }
    .testimonial-filter-btn {
        width: 80%;
        max-width: 180px;
    }
}

/* ----- ADD PROJECT FORM ----- */
.add-project-form {
  background: var(--color-white);
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  padding: 2rem 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.add-project-form h3 {
  color: var(--second-color);
  margin-bottom: 0.5rem;
  text-align: center;
}
.add-project-form .input-field, .add-project-form textarea {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 0.7rem 1rem;
  font-size: 1rem;
  background: #fafbfc;
  color: var(--text-color-second);
  resize: none;
}
.add-project-form .btn {
  align-self: center;
  margin-top: 0.5rem;
}
.edu-exp-container {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 2rem;
}
.edu-exp-box {
  background: var(--color-white);
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  padding: 2rem 1.5rem;
  min-width: 280px;
  max-width: 400px;
  flex: 1 1 320px;
}
.edu-exp-box h3 {
  color: var(--second-color);
  margin-bottom: 1rem;
}
.edu-exp-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.edu-exp-box li {
  margin-bottom: 1.2rem;
  color: var(--text-color-second);
}
.edu-date {
  color: #888;
  font-size: 0.95em;
}

/* ----- CERTIFICATIONS SECTION ----- */
.certifications-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: flex-start;
  align-items: stretch;
  margin-top: 2rem;
}
.certification-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(110,87,224,0.08);
  padding: 1.5rem 1rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  min-width: 260px;
  max-width: 350px;
  flex: 1 1 260px;
}
.certif-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 8px;
  background: #f8f8f8;
  border: 1px solid #eee;
}
.certification-card h3 {
  margin: 0 0 0.3rem 0;
  font-size: 1.1rem;
  color: var(--first-color);
}
.certification-card p {
  margin: 0 0 0.2rem 0;
  font-size: 0.98rem;
  color: #444;
}
.certif-date {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 0.5rem;
  display: block;
}
.certification-card .project-btn {
  margin-top: 0.5rem;
  padding: 6px 14px;
  font-size: 0.95rem;
}
/* Responsive */
@media (max-width: 768px) {
  .certifications-container {
    flex-direction: column;
    align-items: center;
  }
  .certification-card {
    width: 100%;
    max-width: 400px;
  }
}

/* Filtrage projets : scroll horizontal sur mobile */
.filter-buttons,
.modal-filter-buttons {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 10px;
    padding: 0.5rem 0.5rem 0.5rem 0.5rem;
    margin-bottom: 1.5rem;
    justify-content: flex-start;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}
.filter-buttons::-webkit-scrollbar,
.modal-filter-buttons::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}
.filter-btn {
    min-width: 120px;
    padding: 10px 0;
    border-radius: 30px;
    font-size: 15px;
    border: 2px solid var(--first-color);
    background: var(--color-white);
    color: var(--first-color);
    box-shadow: 0 2px 8px rgba(110,87,224,0.08);
    transition: all 0.3s;
    margin-bottom: 0;
    text-align: center;
    white-space: nowrap;
    font-weight: 500;
}
.filter-btn.active {
    background: var(--first-color);
    color: var(--color-white);
    box-shadow: 0 4px 16px rgba(110,87,224,0.18);
    transform: scale(1.05);
}

/* Empêche le débordement horizontal global */
body, html {
    overflow-x: hidden;
}

/* ...existing code... */
.cyber-profiles-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
  margin: 2rem 0 1rem 0;
}
.cyber-profile-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(110,87,224,0.08);
  padding: 1.2rem 1.5rem;
  min-width: 120px;
  max-width: 160px;
  text-decoration: none;
  transition: transform 0.18s, box-shadow 0.18s;
  border: 2px solid transparent;
}
.cyber-profile-card:hover {
  transform: translateY(-6px) scale(1.04);
  box-shadow: 0 8px 32px rgba(110,87,224,0.18);
  border-color: var(--first-color);
}
.cyber-profile-card img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin-bottom: 0.7rem;
}
.cyber-profile-card span {
  font-weight: 600;
  color: var(--first-color);
  font-size: 1rem;
  text-align: center;
}
@media (max-width: 600px) {
  .cyber-profiles-container {
    gap: 0.8rem;
  }
  .cyber-profile-card {
    padding: 0.8rem 0.7rem;
    min-width: 90px;
    max-width: 120px;
  }
  .cyber-profile-card img {
    width: 36px;
    height: 36px;
  }
}
/* ...existing code... */