/* Variables CSS personnalisées */
:root{
  --ink:  #282A2A; /* noir/gris très sombre */
  --cyan: #00B3F6; /* bleu clair */
  --blue: #1868C8; /* bleu moyen */
  --text: #c6c7c6 ;
  --accent-color: #f0fbff;
  --bs-body-color: var(--text);
  --accent-green: #00b894;
  font-size: 20px;
}

.background-gradient {
  background:
    /* top-left sharp cyan/teal glow */
    radial-gradient(
      circle at top left,
      rgba(0,179,246,0.6) 0%,    /* bright cyan */
      rgba(0,184,148,0.5) 15%,   /* teal */
      transparent 35%            /* sharp fade */
    ),
    /* bottom-right sharp teal/cyan/blue glow */
    radial-gradient(
      circle at bottom right,
      rgba(0,184,148,0.55) 0%,   /* teal */
      rgba(0,179,246,0.65) 12%,  /* cyan highlight */
      rgba(24,104,200,0.55) 22%, /* blue */
      transparent 40%            /* sharp fade */
    ),
    /* deep dark base with a subtle ink tint */
    radial-gradient(
      circle at center,
      #000 0%,
      #282A2A 60%,
      #000 100%
    );

  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
}

/* https://huemint.com/website-2/#palette=f5f5f5-111111-d60000-004f7c */

/* Styles de base */
html {
    scroll-behavior: smooth;
    font-family: "Inter", sans-serif;
    color: var(--text) !important;
}

body {
  width: 100%;
  margin: 0 auto;

  a {
    text-decoration: none;
  }
}

h1 {
  font-size: 4rem;
  margin: 1.5rem 0;
  font-weight: 500;
  letter-spacing: -2px;
  line-height: 4rem;
  color: var(--accent-color);
}

h2 {
  font-size: 3rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 2px;
  padding: 2rem 0 2rem 0;;
}

h3 {
  margin-top: 0.5rem;;
  color: var(--accent-color);
  font-size: 1.2rem;
  letter-spacing: 2px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Montserrat", sans-serif;
}

span{
  color: var(--accent-color);
  font-weight: 500;
  font-family: "Montserrat", sans-serif;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.sidebar {
  width: 220px;
  color: var(--accent-color);
  padding: 0 1rem;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  font-family: "Montserrat", sans-serif;
  font-size: 0.9rem;
  margin-top: 60px;
  letter-spacing: 2px;
}

.sidebar ul {
  list-style: none;
  padding: 0;
}

.sidebar li {
  padding: 1.2rem 0;
}

.sidebar a {
  color: inherit;
  text-decoration: none;
}

.sidebar a:hover {
  color: var(--cyan);
  text-shadow: 1px 1px 4px var(--blue);
}

.sidebar a.active {
  color: #00b894;
  text-shadow: 1px 1px 10px var(--cyan);
  border-left: 3px solid #00b894;
  padding-left: 8px;
}

.container {
  margin-left: 300px;
  min-width: 800px;

  gap: 4rem;
  flex-wrap: wrap;
}
.intro {
  display: flex;
}

#typewriter {
  padding: 0;
}

.header {
  width: 40%;
  margin-top: 5rem;
}

.about {
  width: 40%;
  margin: auto 0;
  line-height: 1.5rem;
  margin-top: 5rem;
}


.skills {
  color: var(--text);
  width: 80%;
  margin: 200px 0 0 0;
}

#skills {
  margin-top: 18rem;
}


.skill {
  margin: 1rem 0;
}

.skill span {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 500;
  color: var(--text);
}

.bar {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  overflow: hidden;
  height: 16px;
}

.bar div {
  height: 100%;
  width: 0;
  background: linear-gradient(to right, #1868C8, #00b894 40%, #00B3F6 80%);
  border-radius: 8px;
  transition: width 1.5s ease-out;
}

.project-card {
  background: rgba(40, 42, 42, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1rem 2rem 1rem 2rem;
  color: var(--text);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); /* Safari support */
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 500px;
  width: 450px;
  perspective: 1000px;

  img {
    max-height: 350px;
    padding: 1rem;
    object-fit: contain;
    border-radius: 12px;
  }


}

.btn-custom a {
  color: var(--accent-color);
}

.btn-custom {
  display: inline-block;
  padding: 0.3rem 1rem;
  margin-top: 1.5rem;
  border: 1px solid var(--accent-green);
  border-radius: 8px;
  background-color: #1868C8;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s, color 0.3s;
}

.btn-custom:hover {
  background-color: var(--accent-green);
  border: 1px solid var(--accent-color);

  a {
    text-shadow: 1px 1px 10px var(--accent-color);
    color: var(--accent-color);
  }
}



.project-inner {
  transition: transform 1s;
  transform-style: preserve-3d;
}

.project-card:hover .project-inner {
  transform: rotateY(180deg);
}

.project-front, .project-back {
  position: absolute;
  backface-visibility: hidden;
  width: 100%;
  height: 100%;
}

.project-back {
  transform: rotateY(180deg);
}


.cards {
  gap: 4rem;
}


.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.6);
  border-color: var(--cyan);
}

.job {
  background: rgba(40, 42, 42, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1rem;
  color: var(--text);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); /* Safari support */
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 2rem;
}

.socials ul {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: space-around;
}

.socials li {
  padding: 1.2rem 0;

}

.socials a {
  color: inherit;
  text-decoration: none;
}

.socials {
  font-size: 5rem;
  color: var(--cyan);
}

.socials a:hover {
  color: var(--accent-green);
  text-shadow: 1px 1px 10px var(--cyan);
  transform: translateY(-6px);
}


/* js classes */
/* Add this to your CSS */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}



/* Responsiveness */
@media (max-width: 1200px) {
  :root {
    font-size: 18px;
  }

  .container {
    margin-left: 220px;
    min-width: auto;
    gap: 3rem;
  }

  .header,
  .about,
  .skills {
    width: 100%;
  }

}

@media (max-width: 992px) {
  :root {
    font-size: 18px;
  }

  .sidebar {
    width: 200px;
  }

  .container {
    margin-left: 220px;
    gap: 2rem;
  }

  .project-card img {
    height: auto;
  }
}

@media (max-width: 768px) {
  :root {
    font-size: 16px;
  }

  body {
    flex-direction: column;
    align-items: stretch;
  }

  .sidebar {
    position: static;
    width: 100%;
    margin-top: 0;
    padding: 1rem 0;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .sidebar ul {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
  }

  .sidebar li {
    padding: 0;
  }
  .intro {
    flex-direction: column;
  }
  .container {
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
    width: 100%;
  }

  #typewriter {
    height: 100px;
  }

  .header,
  .about,
  .skills {
    width: 100%;
    margin-top: 2rem;
  }

  .cards {
    flex-direction: column;
  }

  .project-card {
    width: 100%;
    min-height: 350px;


  }

  .project-card img {
    width: 100%;
    max-height: 300px;
    object-fit: contain;
  }

  .resume-content {
    margin-top: 2rem;
  }

  .socials ul {
    gap: 1rem;
    align-items: center;
  }

  .socials {
    font-size: 3rem;
  }

  #skills {
  margin-top: 6rem;
}
}

@media (max-width: 576px) {
  h1 {
    font-size: 2.8rem;
    line-height: 3rem;
  }

  h2 {
    font-size: 2.2rem;
  }

  .intro {
    margin-top: 6rem;
  }

  .sidebar {
    font-size: 0.9rem;
  }

  .sidebar ul {
    flex-wrap: wrap;
    row-gap: 1rem;
  }

  .container {
    padding: 0 1rem 2.5rem;
  }

  .socials {
    font-size: 2.4rem;
  }
}
