body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    margin: 0;
    padding: 0;
    min-height:100vh
}

/* Adjust header styles to align content to the left */
header {
    background-color: #55828B;
    color: white;
    padding: 20px;
    text-align: left; /* Changed to align left */
}

header nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    align-items: center; /* Center items vertically */
}

header nav ul li {
    margin: 0 10px;
}

header nav ul li:first-child {
    margin-right: auto; /* Pushes the first item to the left */
}

/* Adjust floating-ul to display as a column */
.floating-ul {
    position: fixed;
    top: 40%; /* Adjust the value as needed */
    left: 10px; /* Adjust the value as needed */
    transform: translateY(-40%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px;
    border-radius: 5px;
    display: flex;
    flex-direction: column; /* Display items in a column */
}

/* Fix contact link issue */
.floating-ul li {
    margin: 10px 0; /* Adjust spacing between items */
    text-align: center; /* Center text */
}

header h1 {
    margin: 0;
    font-size: 2.5em;
}



header nav ul li a {
    color: white;
    text-decoration: none;
}

header nav ul li a:hover {
    text-decoration: underline;
}

section {
    padding: 20px;
    margin: 20px auto;
    max-width: 800px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

h2 {
    color: #55828B;
}

.work-item {
    margin-bottom: 20px;
}
/* Ensure the section has a proper layout */
#about1 {
    display: flex;
    align-items: center;
    justify-content: space-between; /* To create spacing between text and image */
    margin-top: 50px;
}

#about1 .text {
    flex: 2;
    padding-right: 20px; /* Add padding for better spacing */
}

#about1 .image {
    flex: 1;
    text-align: center;
    max-width: 40%;
}

#about1 .image img {
     /* Adjust this if you want smaller size */
    max-width: 90%;
    height: auto;
    border-radius: 50%; /* Round image */
}


.topline {
   
    color: #2c3e50; /* A dark, professional color */
    
}

.topline i {
    color: #2980b9; /* A blue color representing AI/tech */
}

.highlight {
    color: #55828B; /* Highlight key terms with a blue tech-inspired color */
    font-weight: bold; /* Make the key terms stand out */
}

footer {
    background-color: #323031;
    color: white;
    text-align: center;
    padding: 20px;
}

footer h2 {
    margin: 0 0 10px;
    font-size: 1.8em;
}

footer p {
    margin: 5px 0;
}

footer .socials a {
    color: #F6AE2D;
    margin: 0 10px;
    text-decoration: none;
}

footer .socials a:hover {
    text-decoration: underline;
}



.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    max-width: 300px;
    margin: 20px;
    overflow: hidden;
    transition: transform 0.3s;
}

.card:hover {
    transform: scale(1.05);
}

.card img {
    max-width: 100%;
    height: auto;
}

.card-content {
    padding: 20px;
}

.card h3 {
    margin-top: 0;
    color: #55828B;
}

footer {
    background-color: #323031;
    color: white;
    text-align: center;
    padding: 20px;
}

footer h2 {
    margin: 0 0 10px;
    font-size: 1.8em;
}

footer p {
    margin: 5px 0;
}

footer .socials a {
    color: #F6AE2D;
    margin: 0 10px;
    text-decoration: none;
}

footer .socials a:hover {
    text-decoration: underline;
}

#education-list {
    list-style: none;
    padding: 0;
}

#education-list li {
    margin: 15px 0;
    padding: 15px;
    background-color: #f9f9f9;
    border-left: 5px solid #55828B;
    position: relative;
    padding-left: 25px;
    transition: all 0.3s;
}

#education-list li:hover {
    background-color: #f1f1f1;
    border-left-color: #F6AE2D;
}

#education-list li .degree {
    font-weight: bold;
    color: #323031;
}

#education-list li .duration {
    color: #55828B;
}

#education-list li::before {
    content: '🎓';
    position: absolute;
    left: -30px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5em;
    color: #55828B;
}

#certifications {
    margin-top: 40px;
}

.cert-category {
    margin-bottom: 30px;
}

.cert-category h3 {
    color: #55828B;
    margin-bottom: 15px;
    text-align: center;
    position: relative;
}

.cert-category h3::after {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background-color: #F6AE2D;
    margin: 10px auto 0;
}

.cert-grid {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.cert-card {
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    overflow: hidden;
    max-width: 200px;
    text-align: center;
    transition: transform 0.3s;
}

.cert-card:hover {
    transform: translateY(-10px);
}

.cert-card img {
    width: 100%;
    height: auto;
}

.cert-info {
    padding: 10px;
}

.cert-info .cert-name {
    font-weight: bold;
    color: #323031;
}

.cert-info .issuer {
    color: #55828B;
}

.section-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2em 1em;
    background-color: white;
    margin-bottom: 2em;
}

.section-container h2 {
    text-align: center;
    color: #333;
}

.section-container p, .section-container ul {
    text-align: justify;
    color: #333;
}

.cert-category {
    margin-bottom: 2em;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1em;
}

.cert-card {
    background-color: #f8f8f8;
    padding: 1em;
    text-align: center;
    border-radius: 8px;
}

.cert-info {
    margin-top: 0.5em;
}

.volunteer-experience, .award {
    background-color: #f8f8f8;
    padding: 1em;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 2em;
}

.volunteer-card, .award {
    margin-bottom: 2em;
}

.volunteer-info, .award p {
    text-align: left;
    margin: 0.5em 0;
}

.volunteer-card img, .award img {
    width: 100px;
    margin: 0 auto;
}

.row{
    width: 100vw;
    background-color: #1E1E1E;
   
}

ul .nav-item .nav-link{
    color: #ECDBBA;
    margin-top: 10px;
}

.string{
   
    color: #F2921D;
    
}
.number{
    color: #B5CEA8;
}

.variable{
    color: #4EC9B0;
}
.fonction{
    color: #DCDCAA;
}
.keyword{
    color: #569CD6;
}
.box1 {
    transition: all ease 0.2s;
    border: 1px solid #333;
    box-shadow: 0px 5px 10px 0px rgba(0,255,255,0.7);            
  }
  .box1:hover{
    transform: translateY(-5px);
    box-shadow: 0px 10px 20px 2px rgba(0,255,255,0.7);
  }

  .box2{
    box-shadow: inset 0px 5px 10px 0px rgba(0,255,255,0.7);
  }
.nav-item a:hover{
 
 border: 1.2px solid gray;
}
.clt{
    margin-left: 20%;
    margin-top: 50%;
    
}
.clt, .clt ul, .clt li {
   
    position: relative;
    font-size: small;
    margin-top: 12px;
    
}

.clt ul {
   list-style: none;
  /* padding-left: 32px;*/
}



/* Font size for screens up to 576px width (e.g., phones) */
@media (max-width: 576px) {
    .clt ul li {
        font-size: 14px;
    }
}

/* Font size for screens between 577px and 992px width (e.g., tablets) */
@media (min-width: 577px) and (max-width: 992px) {
    .clt ul li {
        font-size: 18px;
    }
}

/* Font size for screens larger than 992px width (e.g., desktops) */
@media (min-width: 993px) {
    .clt ul li {
        font-size: 20px;
    }
}

.clt li::before, .clt li::after {
   content: "";
   position: absolute;
   left: -12px;
   
}

.clt li::before {
   border-top: 1px solid #000;
   top: 9px;
   width: 8px;
   height: 0;
}

.clt li::after {
   border-left: 1px solid #000;
   height: 100%;
   width: 0px;
   top: 2px;
}

.clt ul > li:last-child::after {
   height: 8px;
}

hr {
    border: 0;
    height: 1px;
    background: #333;
    background-image: linear-gradient(to right, #ccc, #333, #ccc);
  }
  
  .contact{
    text-align: center;
  
  }
  .contact i {
    color: #333;
}
.fa-brands, .fab {
    font-family: "Font Awesome 6 Brands";
    font-weight: 400;
}
.fa, .fa-brands, .fa-duotone, .fa-light, .fa-regular, .fa-solid, .fa-thin, .fab, .fad, .fal, .far, .fas, .fat {
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    display: var(--fa-display,inline-block);
    font-style: normal;
    font-variant: normal;
    line-height: 1;
    text-rendering: auto;
}

i {
    font-size: 25px;
    margin: 12px;
}

div.carousel-item  {
    align-items: center;
    align-content: center;
    align-self: center;
   padding-left: 25%;
   height: auto;
   margin-bottom: 10px;
   padding-bottom: 40px;
 
} 
@media (max-width: 576px) {
div.carousel-item  img {
 
    padding-left: 0;
    margin-bottom: 10px;
    width: 40vw;
 }

}

 div.carousel-item  img {
   
    margin-right: 0;
    margin-bottom: 10px;
    width: 40vw;
 }


 .floating-ul {
    position: fixed;
    top: 40%; /* Adjust the value as needed */
    left: 10px; /* Adjust the value as needed */
    transform: translateY(-40%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px;
    border-radius: 5px;
 }
 .floating-ul li {
    margin-left: 10px;
    text-align: center;
 }


    /* Default font size */
.code-container {
    font-size: 16px;
}

/* Font size for screens up to 576px width (e.g., phones) */
@media (max-width: 576px) {
    .code-container {
        font-size: 12px; /* Adjust this value as needed */
    }
}

.cd {
    height: 27rem;
     text-align: justify;
}
@media (max-width: 576px) {
.cd {
    height: 30rem;
     text-align: justify;
}
}

@media (max-width: 576px) {
    header nav ul {
        display: block; /* Display as a list */
        text-align: center; /* Center the list items */
    }

    header nav ul li {
        display: block;
        margin: 10px 0; /* Adjust margin for better spacing */
    }
}

/* Hide desktop navigation on phones */
.desktop-nav {
    display: none;
}

/* Media query for screens up to 576px (phones) */
@media (max-width: 576px) {
    .desktop-nav {
        display: none; /* Hide desktop navigation */
    }

    .mobile-nav {
        display: block; /* Show mobile navigation */
    }
}

/* Media query for screens larger than 576px (other devices) */
@media (min-width: 577px) {
    .desktop-nav {
        display: block; /* Show desktop navigation */
    }

    .mobile-nav {
        display: none; /* Hide mobile navigation */
    }
}

/* Center the list items horizontally */
.mobile-nav ul {
    list-style: none;
    padding: 0;
    text-align: center; /* Center align text */
}

.mobile-nav ul li {
    display: inline-block;
    margin: 0 10px;
}

.mobile-nav ul li a {
    color: white;
    text-decoration: none;
}

.mobile-nav ul li a:hover {
    text-decoration: underline;
}



.project-link {
    display: inline-block;
    padding: 8px 16px;
    background-color: #55828B;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;

    text-align: center;
    margin-top: auto; /* Space above the button */

    position: absolute;
    bottom: 20px; /* Position the button from the bottom */
    left: 20px; /* Set distance from the left side */
    right: 20px; /* Ensure it doesn't overflow */
}

.project-link:hover {
    background-color: #F6AE2D;
    transform: translateY(-3px);
}
/* Styling for project categories */
.project-category {
    margin-bottom: 30px;
}

.project-category h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333333;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* Styling for project cards */
.project-card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease-in-out;

      display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    margin: 20px;
    transition: transform 0.3s;
min-height: 100%; 
    position: relative;
}

.project-card img {
    width: 100%;
    height: 200px; /* Adjust height as needed */
    object-fit: cover;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-info {
    padding: 20px;
    flex-grow: 1;
}

.project-info h4 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333333;
}

.project-info p {
    font-size: 16px;
    color: #666666;
    line-height: 1.5;
}




/* Styling for product categories */
.product-category {
    margin-bottom: 30px;
}

.product-category h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333333;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* Styling for product cards */
.product-card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%; /* Assurez-vous que la carte a une hauteur pour que l'espace-between fonctionne */

}


.product-card a {
    align-self: center;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    margin: 20px 20px; /* Ajoutez un peu de marge au-dessus et en dessous du bouton */
}

/* Optionnel: Ajoutez un effet au survol pour le bouton */
.product-card a:hover {
    background-color: #F6AE2D;
    transform: translateY(-3px);
}

.product-card img {
    width: 100%;
    height: 200px; /* Adjust height as needed */
    object-fit: cover;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-info {
    padding: 20px;
}

.product-info h4 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333333;
}

.product-info p {
    font-size: 16px;
    color: #666666;
    line-height: 1.5;
}


/* Modal styles */
/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9); /* Dark background */
}

.modal-content {
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.modal img {
    max-width: 80%;
    max-height: 80%;
    margin: auto;
    display: block;
}

#loom-companion-mv3 {
    display: none;
    visibility: hidden;
}



