@font-face {
  font-family: mars;
  src: url(./assets/Mars/Mars.ttf);
}
@font-face {
  font-family: stalysta;
  src: url(./assets/Stalysta_personal%20use.ttf);
}

:root {
    --primary: #040999;
    --secondary: #03a7d3;
    --dark: #19232e;
    --light: #ecf0f1;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--light);
    color: var(--dark);
    overflow-x: hidden;
}



.nav-container {
    position: fixed;
    top: 0;
    width: 100%;  
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav{
    background-color: white;
    box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.1);
  }
  nav ul{
    width: 100%;
    list-style: none;
    display: flex;
    justify-content: flex-end;
    align-items: center;
  }
  nav li{
    height: 50px;
  }
  nav a{
    height: 100%;
    padding: 0 30px;
    text-decoration: none;
    display: flex;
    align-items: center;
    color: black;
  }
  nav a:hover{
    background-color: #f0f0f0;
  }
  nav li:first-child{
    margin-right: auto;
  }
  .sidebar{
    position: fixed;
    top: 0; 
    right: 0;
    height: 100vh;
    width: 250px;
    background-color: rgba(255, 255, 255, 0.753);
    backdrop-filter: blur(2px);
    box-shadow: -10px 0 10px rgba(0, 0, 0, 0.1);
    list-style: none;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
  }
  .sidebar li{
    width: 100%;
  }
  .sidebar a{
    width: 100%;
  }
  .menu-button{
    display: none;
  }
  @media(max-width: 800px){
    .hideOnMobile{
      display: none;
    }
    .menu-button{
      display: block;
    }
  }
  @media(max-width: 400px){
    .sidebar{
      width: 100%;
    }
  }
 /* 
nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
}
*/
.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary);
}

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: slideUp 1s ease;
    font-family: mars;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    animation: slideUp 1s ease 0.2s forwards;
    opacity: 0;
    font-family: mars;
}
.container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.cta-button {
    padding: 1rem 2rem;
    background: linear-gradient(45deg, #040999,#006aff);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    cursor:pointer;
    transition: transform 0.3s ease;
    animation: slideUp 1s ease 0.4s forwards;
    opacity: 0;
}

.cta-button:hover {
    background: #00059c;

}
.float {
  opacity: 0;
  animation:  float 2s ease-in-out infinite;
  animation-delay: 2s, 2s;
}
@keyframes float {
  0% {
    transform: translateY(0);
    }

    50% {
        transform: translateY(-25PX);
    }
    100% {
        transform: translateY(0);
    }
}

section {
    padding: 2.5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.project-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    transition: transform 0.3s ease;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
}
.project-card h3 p {
    display: flex;
    flex-direction: column;
}
.project-card:hover {
    transform: translateY(-10px);
}
.project-card a svg{
    height: 24px;
}

.whatsapp_float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 1000;
}
.whatsapp_icon {
  width: 50px;
  height: 50px;
  border-radius: 50px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s;
}
.whatsapp_icon:hover {
  transform: scale(1.1);
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.skill-item {
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);

        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }
}
/* Dark Mode Styles */
body[data-theme="dark"] {
--dark: #151515;
--light: #191919;
background-color: var(--light);
color: var(--dark);
  h1, h2, h3,p, a {
  color: #fff;
  }
  .project-card {
    background-color: #151515;
  }
  .project-card a svg {
    color: #fff;
  }
}

#darkModeToggle {
position: fixed;
bottom: 2rem;
right: 2rem;
width: 40px;
height: 40px;
border-radius: 50%;
background: var(--primary);
border: none;
cursor: pointer;
z-index: 1000;
box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.toggle-icon {
display: block;
width: 24px;
height: 24px;
margin: auto;
background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="white" d="M12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9 9-4.03 9-9c0-.46-.04-.92-.1-1.36-.65.1-1.32.16-2.02.16-3.42 0-6.44-1.73-8.19-4.33-.38-.5-.99-.69-1.56-.47-.56.22-.91.78-.89 1.38.12 3.01 2.55 5.42 5.57 5.42 3.06 0 5.54-2.48 5.54-5.54 0-1.97-1.04-3.72-2.63-4.74-.47-.28-1.05-.25-1.49.1-.43.34-.68.86-.68 1.41 0 .88.72 1.6 1.6 1.6.35 0 .68-.11.96-.3.56-.37 1.28-.42 1.87-.15.6.28 1.05.81 1.23 1.43.18.62.07 1.29-.28 1.82-.35.53-.89.88-1.49.98-.6.1-1.21-.05-1.68-.41-.47-.36-.75-.9-.75-1.48 0-1.07.86-1.94 1.94-1.94.24 0 .47.05.68.14.52.22.83.75.83 1.31 0 .56-.34 1.04-.83 1.26-.24.1-.51.15-.78.15-.62 0-1.12-.5-1.12-1.12 0-.31.13-.6.34-.81.21-.21.5-.34.81-.34.24 0 .46.07.65.19.19.12.35.28.46.48.11.2.17.42.17.66 0 .52-.34.96-.82 1.12-.48.16-1.02.04-1.38-.31-.36-.35-.5-.89-.36-1.38.14-.49.54-.85 1.03-.97.49-.12 1.01.04 1.35.39.34.35.47.83.36 1.3-.11.47-.46.84-.92.97-.46.13-.96.01-1.3-.28-.34-.29-.5-.73-.44-1.17.06-.44.33-.81.71-1.02.38-.21.84-.23 1.23-.06.39.17.7.47.85.85.15.38.13.81-.06 1.17-.19.36-.53.62-.93.71-.4.09-.82-.01-1.14-.25-.32-.24-.51-.61-.51-1.02 0-.41.19-.78.51-1.02.32-.24.74-.34 1.14-.25.4.09.74.35.93.71.19.36.21.79.06 1.17-.15.38-.46.68-.85.85-.39.17-.85.15-1.23-.06-.38-.21-.65-.58-.71-1.02-.06-.44.1-.88.44-1.17.34-.29.76-.41 1.17-.34.41.07.78.29 1.03.62.25.33.34.74.25 1.14-.09.4-.35.75-.71.96-.36.21-.8.25-1.19.1-.39-.15-.69-.45-.85-.85-.16-.4-.12-.85.1-1.21.22-.36.6-.6 1.02-.66.42-.06.84.06 1.17.31.33.25.52.63.52 1.04 0 .41-.19.79-.52 1.04-.33.25-.75.37-1.17.31-.42-.06-.8-.3-1.02-.66-.22-.36-.26-.8-.1-1.21.16-.4.46-.7.85-.85.39-.15.83-.1 1.19.1.36.2.62.55.71.96.09.41 0 .81-.25 1.14-.25.33-.62.55-1.03.62-.41.07-.83-.05-1.17-.34-.34-.29-.5-.73-.44-1.17.06-.44.33-.81.71-1.02.38-.21.84-.23 1.23-.06.39.17.7.47.85.85.15.38.13.81-.06 1.17-.19.36-.53.62-.93.71-.4.09-.82-.01-1.14-.25-.32-.24-.51-.61-.51-1.02z"/></svg>');
}

/* Contact Form Styles */
#contact {
padding: 5rem 2rem;
}

.form-group {
position: relative;
margin: 2rem 0;
}

.form-group input,
.form-group textarea {
width: 100%;
padding: 1rem;
border: 2px solid var(--primary);
border-radius: 8px;
background: transparent;
color: var(--dark);
transition: all 0.3s ease;
}

.form-group label {
position: absolute;
left: 1rem;
top: 1rem;
padding: 0 0.5rem;
background: var(--light);
transition: all 0.3s ease;
pointer-events: none;
}

.form-group input:focus ~ label,
.form-group input:valid ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:valid ~ label {
top: -0.6rem;
font-size: 0.8rem;
color: var(--primary);
}

scrl {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: transparent;
    flex-direction: column;
}

.scroll {
    position: relative;
    display: flex;
    width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #fff 20%, #fff 80%, transparent)
}

.scroll div {
    white-space: nowrap;
    animation: scroll var(--time) linear infinite;
    animation-delay: calc(var(--time)*-1);

}

.scroll div:nth-child(2) {
    animation: scroll2 var(--time) linear infinite;
    animation-delay: calc(var(--time)/-2);
}

@keyframes scroll {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

@keyframes scroll2 {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-200%);
    }
}

.scroll div span {
    display: inline-flex;
    margin: 10px;
    letter-spacing: 0.2em;
    background: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    transition: 0.5s;
}

.scroll div span:hover {
    background: #3fd2f9;
    cursor: pointer;
}

.imgBox div {
    display: flex;
    align-items: center;
    justify-content: center;
}

.imgBox img {
    max-width: 100px;
    scale: 0.6;
}
#back svg{
  margin: 25px;
}

.me {
  position: relative;
  margin-top: -100px;
  padding: 1.5em;
  max-width: 600px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  color: #000;
  border-radius: 10px;
  font: 1.25em ubuntu, sans-serif;
  margin: 0 auto;
  background: #fff !important;
  background: linear-gradient(150deg, rgb(0, 162, 255) 12%, rgb(25, 0, 255) 77%);
  background-blend-mode: "";
  box-shadow: 0px 0px 0px 0px rgb(0 0 0 / 61%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.me img{
  height:40px;
  width:40px;
  color: #040999;
  margin: auto 20px;
}
.infox {
  margin-top: 25px;
}
.infos {
  display: flex;
      gap: 30px;
      flex-direction: column;
      align-content: center;
      flex-wrap: wrap;
      align-items: flex-start
}
.infos a img {
  width: 22px;
  height: 22px;
  color: #040999;
}
.infos a {
  text-decoration: none;
  color: #060606;
  font-size: 18px;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  gap: 10px;
}
/* 3D Container */
#threejs-container {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
z-index: -1;
}

.social-links {
display: flex;
justify-content: center;
gap: 1rem;
padding: 1rem;
background-color: #f1f1f1;
}

.social-links a {
text-decoration: none;
color: var(--dark);
font-size: 1.2rem;
transition: color 0.3s ease;
display: flex;
align-items: center;
gap: 0.5rem;
}

.social-links a:hover {
color: var(--primary);
}

.social-links i {
font-size: 1.5rem;
}

.bg {
  background: url(./assets/IMG/plan.png);
  background-position: center;
  background-repeat: repeat;
  background-size: cover;
  color: #fff;
  height:200vh;
}
/*z(thhhhhhhhhhhhhh*/


.msk { 
  position: relative; 
  width: 100vw; 
  height: 100vh; 
  background: #fff; 
  overflow: hidden; }

/* Animation des sections */
.msk {

}
.split-section {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 2rem;
    transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1);
}

.left {
    left: 0;
    justify-content: flex-end;
    transform: translateX(-100%);
}

.right {
    right: 0;
    background: #f5f5f5;
    transform: translateX(100%);
}

/* Ligne centrale */
.line {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 2px;
    background: #333;
    transform: translate(-50%, -50%);
    transition: width 0.8s ease-in-out;
}

/* Conteneur des salutations */
.greetings-container {
    position: relative;
    width: 100%;
    height: 100px;
    overflow: hidden;
}

.greetings-container div {
    position: absolute;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    font-size: 4rem;
    text-align: right;
    will-change: transform, opacity;
}

/* Animation des textes */
@keyframes cycleGreetings {
    0% { 
      opacity: 0; 
      transform: translateY(20px); 
    }
    10% { 
      opacity: 1; 
      transform: translateY(0); 
    }
    20% { 
      opacity: 1; 
      transform: translateY(0); 
    }
    30% { 
      opacity: 0; 
      transform: translateY(-20px); 
    }
    100% {
       opacity: 0; 
       transform: translateY(-20px);
  }
}

.greetings-container div:nth-child(1) { 
  animation: cycleGreetings 8s infinite; 
}
.greetings-container div:nth-child(2) { 
  animation: cycleGreetings 8s infinite 1.14s; 
}
.greetings-container div:nth-child(3) { 
  animation: cycleGreetings 8s infinite 2.28s; 
}
.greetings-container div:nth-child(4) { 
  animation: cycleGreetings 8s infinite 3.42s; 
}
.greetings-container div:nth-child(5) { 
  animation: cycleGreetings 8s infinite 4.56s; 
}
.greetings-container div:nth-child(6) {
   animation: cycleGreetings 8s infinite 5.7s; 
  }
.greetings-container div:nth-child(7) { 
  animation: cycleGreetings 8s infinite 6.84s; 
}

/* État animé */
.animate .left,
.animate .right {
   transform: translateX(0); 
  }
.animate .line { 
  width: 80%; 
}

.animate .left::after, .animate .right::after {
  opacity: 0;
  animation: ease-in .0,5s;
  transform: translateX(-0);
}
/*errrrrrrrrrrrrrrrrrrr* */

.info_section {
    background-color: transparent;
    color: #010d35;
  }
  
  .container{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
  }
  .info_section .info_logo {
    width: 80%;
    margin: 30px auto 45px auto;
    padding-bottom: 10px;
    text-align: center;
    border-bottom: 2.5px solid #2e3192;
  }
  
  .info_section .info_logo h2 {
    color: #191919;
    text-transform: uppercase;
    font-weight: bold;
  }
  
  .info_section h5 {
    color: #191919;
    margin-left: 15px;
    margin-bottom: 25px;
    font-size: 20px;
  }
  
  .info_section .info_insta .insta_container > div {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
  }
  
  .info_section .info_insta .insta_container img {
    width: 100%;
  }
  
  .info_section .info_insta .insta_container .insta-box {
    margin: 5px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: stretch;
        -ms-flex-align: stretch;
            align-items: stretch;
  }
  
  .info_section .info_contact .img-box svg{
    width: 30px;
    height: 30px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
            color: transparent;
            background-color: #040999;
            border-radius: 10px;
            padding: 5px;
  }
  
  .info_section .info_contact p {
    color: #191919;
    margin-left: 10px;
    text-align: center;
  }
  .info_section .info_contact a {
    text-decoration: none;
    color: #1e288f;
  }

  .info_section .info_info p {
    color: #191919;
    margin-left: 10px;
  }

  .info_section .info_contact > div {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    margin: 20px 0;
    flex-direction: row;
  }
  
  .info_section .info_contact > div svg {
    padding:2.5px;
    background-color: #bcbdc9;
    border-radius: 10px;
    height: 30px;
    margin-left: 0;
    margin-right: 12px;
  }
  
  .info_section .info_form form input {
    outline: none;
    width: 60%;
    border-radius: 10px 10px 10px 10px;
    margin-left:10px ;
    padding: 7px 5px;
  }
  .info_section .info_form p{
    text-align: center;
    margin-bottom: 20px;
  }
  .info_section .info_form form button {
    display: inline-block;
    padding: 8px 15px;
    background-color: #2e3192;
    color: white;
    -webkit-transition: all 0.3s;
    transition: all 0.3s;
    border: 2px solid transparent;
    box-shadow: 0 0 10px rgb(7, 0, 0);
    border-radius: 15px 10px 15px 10px;
    margin-top: 15px;
    text-transform: uppercase;
    font-size: 12px;
  }
  
  .info_section .info_form form button:hover {
    background-color: transparent;
    border-color: none;
    color: #101010;
  }
  
  .info_section .info_form .social_box {
     margin-top: 20px;
    width: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    justify-content: center;
    align-content: center;
    align-items: center;
  }
  
  .info_section .info_form .social_box a {
    margin-right: 25px;
}
.info_section .info_form .social_box a img , svg#git{
  background-color: #040999;
  padding: 5px;
  border-radius: 10px;
  width: 30px;
  
}

.socials-container{
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content:center;
  }
  .socials-container a{
    background-color: white;
    border-radius: 50%;
    height: 45px;
    width: 45px;
    box-sizing: border-box;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    box-shadow:0px 0px 10px 0px rgb(0 0 0 / 15%);
  }
  .socials-container a svg{
    height: 22px;
  }
  .socials-container a::before{
    content: attr(data-social);
    position: absolute;
    background-color: var(--accent-color);
    color: white;
    text-decoration: none;
    padding: 0.5em 1em;
    border-radius: 100px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
    transform: translateY(-30px) rotate(25deg);
    opacity: 0;
    transition: 200ms cubic-bezier(.42,0,.44,1.68);
  }
  .socials-container a:hover{
    background-color: var(--accent-color);
    fill: white;
  }
  .socials-container a::after{
    content: '';
    position: absolute;
    height: 0;
    width: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 10px solid var(--accent-color);
    transform: translateY(0) rotate(25deg);
    opacity: 0;
    transition: 200ms cubic-bezier(.42,0,.44,1.68);
  }
  .socials-container a:hover::before{
    transform: translateY(-65px) rotate(0);
    opacity: 1;
  }
  .socials-container a:hover::after{
    transform: translateY(-42px) rotate(0);
    opacity: 1;
  }

  .footer_section {
    
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    position: absolute;
  /*  -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;*/
    background-color: transparent;
    display: flex;
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
}

.container-fluid {
    background-color: transparent;
    width: 100%;
    height: -15px;
    margin-top: 70px;
    padding-right: 0;
    padding-left: 0;
    margin-right: auto;
    margin-left: auto;
    display: flex ;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}
 /*
  .container-fluid {
    background-color: #050404;
    width: 100%;
    height: -15px;
 /*   border-top: 5px solid #ffe900;          */
  /*  border-top-left-radius: 0px ;
    border-top-right-radius: 35px ;
    box-shadow:0px 2px 4px 2px rgb(6 6 6 / 32%);*/
 /*   margin-top: 70px;
    padding-right: 0;
    padding-left: 0;
    margin-right: auto;
    margin-left: auto;
  }

  .footer_section {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    position: absolute;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    background-color: transparent;
  }
  */
  .footer_section p {
    color: #000;
    margin-top: 10px;
    padding: 10px 0;
    margin: 0 auto;
    text-align: center;
  }
  
  .footer_section a {
    color: #fff;
    text-decoration: none;
  }


  @media only screen and (max-width: 600px) {
    .hero-content h1{
      font-size: 27px;
    }
    .scroll span {
      font-size: 43px !important;
    }
    .infos {
    display: flex;
    justify-content: space-evenly;
    align-items: flex-start;
    gap: 30px;
    flex-direction: column;
    margin-left: 40px;
    }
  }

  @media only screen and (min-width: 601px) {
    .infos {
      display: flex;
      justify-content: space-evenly;
      align-items: flex-start;
      gap: 30px;
      flex-direction: column;
      margin-left: 40px;
      }
  }

  @media only screen and (min-width:1025px) {

  }