/* styles.css */

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

header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
}
canvas {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

:root {
    --primary-color: #140036;
    --secondary-color: #444851;
    --background-color: #000000;
    --text-color: #ffffff;
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
  }
  
  header {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem;
  }
  
  header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  header nav ul {
    display: flex;
    list-style: none;
  }
  
  header nav ul li {
    margin: 0 1rem;
  }
  
  header nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
  }
  
  main {
    padding: 3rem;
  }
  
  section {
    margin-bottom: 3rem;
  }
  
  h2 {
    margin-bottom: 1rem;
    color: var(--text-color);
  }
  
  .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
  }
  
  .card {
    background: white;
    border: 1px solid var(--secondary-color);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
  
  .card img {
    width: 100%;
    height: auto;
  }
  
  .card h3 {
    margin: 1rem;
    color: var(--primary-color);
  }
  
  .card a {
    display: block;
    text-align: center;
    padding: 0.5rem 0;
    color: white;
    background: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
  }
  
  .card a:hover {
    background: var(--secondary-color);
  }
  
  .card:hover {
    transform: translateY(-5px);
  }
  
  form {
    background: rgba(255, 255, 255, 0.1); /* Légère transparence pour le fond */
    padding: 2rem;
    border: 1px solid var(--secondary-color);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    color: white; /* Couleur du texte en blanc */
}

form label {
    display: flex;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: white; /* Couleur des labels en blanc */
}

form input,
form textarea,
form button {
    width: 100%;
    margin-bottom: 1rem;
    padding: 0.75rem;
    border: 1px solid var(--secondary-color);
    border-radius: 4px;
    color: white; /* Couleur du texte dans les champs en blanc */
    background: rgba(0, 0, 0, 0.5); /* Fond semi-transparent pour les champs */
}

form input::placeholder,
form textarea::placeholder {
    color: rgba(255, 255, 255, 0.7); /* Couleur des placeholders en blanc avec transparence */
}

form button {
    background: var(--primary-color);
    color: white; /* Couleur du texte du bouton en blanc */
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

form button:hover {
    background: var(--secondary-color);
}
  footer {
    text-align: center;
    padding: 1rem;
    background: var(--primary-color);
    color: rgb(255, 255, 255);
  }


.social-links {
  display: flex;
  justify-content: center;
  margin-top: 5rem;
  flex-wrap: wrap; /* Make the social links responsive */
}

.social-links a {
  color: white;
  background: var(--primary-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 4rem; /* Adjusted margin for better spacing */
  transition: background 0.3s;
  margin-bottom: 8rem; /* Adjusted margin-bottom for better spacing */
}

.social-links a:hover {
  background: var(--secondary-color);
}

.social-links a i {
  font-size: 1.2rem;
}

/* Style pour supprimer les marges et remplissages par défaut */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  height: 100%;
  font-family: Arial, sans-serif;
}

/* Container principal */
.container {
  background: url('https://diveng.rosselcdn.net/sites/default/files/dpistyles_v2/diverto_16_9_749w/2024/11/07/node_16106/37046/public/2024/11/07/ac3f2e38a9bef43134d6aae267bcefe8.jpg?itok=vsIQBeeT1733747557') no-repeat center center/cover;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Cadre descriptif */
.description {
  background-color: rgba(255, 255, 255, 0.8); /* Couleur blanche avec opacité */
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  max-width: 600px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Ombre pour donner un effet de profondeur */
}

.description h1 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: #333;
}

.description p {
  font-size: 1rem;
  color: #ffffff;
  line-height: 1.5;
}

.home-button {
  position: absolute;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-color);
  color: rgb(0, 0, 0);
  background: rgb(255, 255, 255);
  border-radius: 50%;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  opacity: 0.7;
  cursor: pointer;
  transition: background 0.3s;
}

.home-button:hover {
  background: var(--secondary-color);
}

@font-face {
  font-family: 'Marker Felt';
  src: url('https://example.com/path-to-marker-felt.woff2') format('woff2');
}

.felt-text {
  font-family: 'Marker Felt', cursive;
}

header h1,
.projects-grid h3 {
  font-family: 'Marker Felt', cursive;
}

.home-button {
  font-family: 'Marker Felt', cursive;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Marker Felt', cursive;
}

/* style.css */



.animation-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 1000;
  animation: fadeOut 2s ease 3s forwards;
}

.portal {
  position: relative;
  width: 200px;
  height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: portalPulse 1.5s infinite;
}

.portal .ring {
  position: absolute;
  width: 200px;
  height: 200px;
  border: 5px solid rgba(0, 255, 255, 0.5);
  border-radius: 50%;
  animation: spin 2s linear infinite;
}

.portal .ring:nth-child(2) {
  animation: spinReverse 2s linear infinite;
  border-color: rgba(255, 0, 255, 0.5);
}

.portal .center-light {
  width: 40px;
  height: 40px;
  background: radial-gradient(circle, #fff, rgba(255, 255, 255, 0));
  border-radius: 50%;
}

.welcome-text {
  color: white;
  font-size: 2em;
  margin-top: 20px;
  opacity: 1;
  animation: fadeOutText 2s ease 3s forwards;
}

.main-content {
  text-align: center;
  display: none;
  opacity: 0;
}

@keyframes spin {
  from {
      transform: rotate(0deg);
  }
  to {
      transform: rotate(360deg);
  }
}

@keyframes spinReverse {
  from {
      transform: rotate(360deg);
  }
  to {
      transform: rotate(0deg);
  }
}

@keyframes portalPulse {
  0%, 100% {
      transform: scale(1);
  }
  50% {
      transform: scale(1.2);
  }
}

@keyframes fadeOut {
  to {
      opacity: 0;
      pointer-events: none;
  }
}

@keyframes fadeOutText {
  to {
      opacity: 0;
  }
}

/* style.css */
 
  

  .skills-container {
    width: 80%;
    max-width: 600px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin: 0 auto; /* Center the container */
  }

  .skills-container h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
  }

  .skill {
    margin-bottom: 20px;
  }

  .skill h3 {
    margin-bottom: 10px;
    color: #555;
  }

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

  .skill-fill {
    height: 100%;
    background: linear-gradient(90deg, #6a11cb, #2575fc);
    width: 100%; /* Set all skill bars to 100% width */
    border-radius: 10px;
    transition: width 2s ease;
  }


/* style.css */



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

.background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url(''); /* Remplace par l'URL de ta photo */
  background-size: cover;
  background-position: center;
  filter: brightness(70%);
  z-index: 1;
}

.content {
  position: relative;
  text-align: center;
  color: white;
  z-index: 2;
  padding: 20px;
}
.name {
  font-size: 8em;
  font-weight: bold;
  margin-bottom: 10px;
  animation: shimmer 5s infinite;
}

@keyframes shimmer {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}
@keyframes sparkle {
  0%, 100% {
    text-shadow: 0 0 2px rgb(255, 255, 255), 0 0 4px rgba(255, 255, 255, 0.3), 0 0 8px rgba(255, 255, 255, 0.3), 0 0 16px rgba(255, 255, 255, 0.3);
  }
  50% {
    text-shadow: 0 0 4px rgba(255, 255, 255, 0.6), 0 0 8px rgba(255, 255, 255, 0.6), 0 0 16px rgba(255, 255, 255, 0.6), 0 0 32px rgba(255, 255, 255, 0.6);
  }
}

.name {
  font-size: 8em;
  font-weight: bold;
  margin-bottom: 10px;
  animation: shimmer 2s infinite, sparkle 2s infinite;
}

.summary {
  font-size: 1.2em;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.5em;
}

/* Hide the nav bar for 5 seconds after page load and then show it with a transition */
header {
  opacity: 0;
  pointer-events: none;
  animation: showNavBar 1s ease 8s forwards;
}

@keyframes showNavBar {
  to {
    opacity: 1;
    pointer-events: auto;
  }
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.card {
  perspective: 1000px; /* Nécessaire pour l'effet 3D */
}

.card-inner {
  position: relative;
  width: 100%;
  height: 300px;
  transform-style: preserve-3d;
  transition: transform 0.6s;
}

.card:hover .card-inner {
  transform: rotateY(180deg); /* Retourne la carte */
}

.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden; /* Cache l'autre face */
  border: 1px solid var(--secondary-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card-front {
  background: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.card-front img {
  width: 100%;
  height: 70%;
  object-fit: cover;
}

.card-front h3 {
  margin: 1rem 0;
  color: var(--primary-color);
}

.card-back {
  background: var(--primary-color);
  color: white;
  transform: rotateY(180deg); /* Positionne la face arrière */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
}

.card-back p {
  margin-bottom: 1rem;
}

.card-back .btn {
  background: var(--secondary-color);
  color: white;
  padding: 0.5rem 1rem;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.3s;
}

.card-back .btn:hover {
  background: var(--primary-color);
}
/* Effet hover pour le bouton "En savoir plus" comme la navbar */
/* Style de base pour les boutons */
.more-info-btn, .close-details-btn {
  background: var(--primary-color);
  color: white;
  border: none;
  font-weight: bold;
  cursor: pointer;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  transition: color 0.3s, background-color 0.3s, transform 0.3s;
  font-size: 1em;
  margin-top: 20px;
  margin-bottom: 10px;
  display: inline-block;
  position: relative;
  overflow: hidden;
}

/* Effet hover similaire à la navbar */
.more-info-btn:hover, .close-details-btn:hover {
  background-color: #ff6347;
  color: #fff;
  transform: scale(1.05);
}

/* Soulignement animé comme la navbar */
.more-info-btn::after, .close-details-btn::after {
  content: '';
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 8px;
  height: 2px;
  background-color: #ff6347;
  width: 0;
  transition: width 0.3s ease;
  pointer-events: none;
}

.more-info-btn:hover::after, .close-details-btn:hover::after {
  width: calc(100% - 40px);
}

/* Responsive for the about section */
@media (max-width: 1100px) {
  #about img[alt="MONOGRAMME"] {
    width: 250px !important;
    height: 250px !important;
  }
}
@media (max-width: 900px) {
  #about img[alt="MONOGRAMME"] {
    width: 180px !important;
    height: 180px !important;
    top: 20px !important;
  }
  #about div {
    margin-left: 1rem !important;
  }
}
@media (max-width: 700px) {
  #about {
    min-height: 0 !important;
    padding-bottom: 2rem !important;
  }
  #about img[alt="MONOGRAMME"] {
    position: static !important;
    display: block !important;
    margin: 2rem auto 1rem auto !important;
    width: 120px !important;
    height: 120px !important;
  }
  #about div {
    margin-left: 0 !important;
    max-width: 95vw !important;
  }
}

/* Responsive navbar */
@media (max-width: 700px) {
  nav ul {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5em;
    padding-left: 0;
    margin: 0;
  }
  nav ul li {
    margin: 0;
  }
  nav {
    flex-direction: column;
    align-items: flex-start;
  }
  nav h1 {
    font-size: 1.2em;
  }
}