* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Manrope', sans-serif;
  line-height: 1.5;
  letter-spacing: 1px;
}

.logo{
  width: auto;
  height: 40px;
}

html {
  scroll-behavior: smooth;
}

header nav ul{
  display: flex;
  align-items: center;
}

ul {
  display: flex;
  gap: 50px;
  list-style: none;
}

nav {
  margin-top: 30px;
}

a {
  text-decoration: none;
  color: #00eed0;
  position: relative;
  transition: all 0.3s ease;
}

nav ul li a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background: #00eed0;
  bottom: -4px;
  left: 0;
  transition: 0.3s;
}

nav ul li a:hover::after {
  width: 100%;
}

.hero-title {
  color: #00eed0;
  font-size: 2.5rem;
}

.hero-subtitle {
  color: #00eed0;
}

.link-email-button,
.link-cv-button {
  background-color: #00eed0;
  border-radius: 25px;
  color: #02153d;
  text-align: center;
  border: 2px solid #00eed0;
  transition: 0.25s ease;
}

.link-cv-button {
  padding: 0.7rem;
  border: 1px solid #02153d;
}

.link-cv-button:hover {
  border: 1px solid #00eed0;
}

.link-email-button:hover,
.link-cv-button:hover {
  background-color: #02153d;
  color: #00eed0;
}

.link-see-button {
  display: block; /* rend le bouton centré possible */
  width: fit-content; /* évite qu’il prenne toute la ligne */
  margin: 0 auto 5rem; /* centre horizontalement */
  margin-top: 25px;

  background-color: #00eed0;
  border-radius: 25px;
  color: #02153d;
  border: 1px solid #02153d;
  transition: 0.25s ease;
  padding: 0.7rem 1.4rem;
  text-decoration: none;
}

.link-see-button:hover {
  background-color: #02153d;
  color: #00eed0;
   border: 1px solid #00eed0;
}

/* cache les projets à partir du 2e */
.projects .project:nth-child(n + 2) {
  display: none;
}

/* quand on ouvre : tout visible */
.projects.is-open .project {
  display: inline-block; /* ou block si tu préfères */
  margin-bottom: 40px;
}

header {
  display: flex;
  flex-direction: column;
  gap: 30px;
  background: linear-gradient(to bottom, #02153d 85%, #00eed0 99%);
  padding-left: 150px;
  padding-right: 150px;
  padding-bottom: 90px;
}

.skills{
  margin-bottom: 3rem;
}

.typing {
  display: inline-block;
  min-width: 7ch; /* păstrează locul pentru nume, ca să nu sară layout-ul */
  border-right: 3px solid #00eed0;
  white-space: nowrap;
  overflow: hidden;
  vertical-align: bottom;
  animation: blink-caret 0.8s step-end infinite;
}

@keyframes blink-caret {
  50% {
    border-color: transparent;
  }
}

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.bi-envelope-fill,
.bi-arrow-down-square-fill {
  font-size: 1.2rem;
  margin-right: 0.5rem;
}

.me {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #00eed0;
}

footer {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: linear-gradient(to top, #02153d 90%, #00eed0 99%);
  padding-left: 150px;
  padding-right: 150px;
  padding-bottom: 40px;
}

.contact-nav a{
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.title-footer {
  margin-top: 5rem;
  color: #00eed0;
  font-size: 2.5rem;
}

.contact-nav ul {
  flex-direction: column;
  gap: 12px;
}

section {
  padding-left: 150px;
  padding-right: 150px;
}

.titre-section {
  color: #02153d;
  font-size: 2rem;
  margin-bottom: 1rem;
 
  padding-top: 3rem;
  font-weight: 300;
}

.p-about-me {
  padding-bottom: 2rem;
  font-weight: 300;
}

.section-bg {
  width: 100%;
  background: rgba(205, 226, 223, 0.25);
  padding-bottom: 5rem;
}

.container {
  padding-left: 0;
  padding-right: 0;
}

.cards {
  display: flex;
  gap: 20px;
  justify-content: space-between;
}

.title-card {
  color: #02153d;
  font-size: 1.5rem;
  font-weight: 300;
}

.about-me{
  margin-bottom: 3rem;
}

/* conteneur 3D */
.card-flip {
  perspective: 1000px;
  width: 260px;
  height: 180px;
}

/* bloc qui tourne */
.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.7s ease;
  transform-style: preserve-3d;
}

/* rotation au hover desktop + clic mobile */
.card-flip:hover .card-inner,
.card-flip:active .card-inner {
  transform: rotateY(180deg);
}

/* faces */
/* faces */
.card-front,
.card-back {
  position: absolute;
  inset: 0;

  -webkit-backface-visibility: hidden; /* Safari/iOS */
  backface-visibility: hidden;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.7rem;

  text-align: center;
  padding: 2rem;

  border: 2px solid #00eed0;
  border-radius: 12px;
  box-shadow: 3px 3px 3px #00eed0;
}

/* face avant */
.card-front {
  transform: rotateY(0deg);
}

/* face arrière */
.card-back {
  transform: rotateY(180deg);
  color: #02153d;
  font-weight: 300;
}

/* icône */
.card-front i {
  font-size: 2rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.skill {
  display: grid;
  place-items: center;
  gap: 10px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  text-align: center;
}

.skill img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.skill span {
  font-size: 0.9rem;
  line-height: 1.2;
}

/* mic tweak pt mobile foarte mic */
@media (max-width: 360px) {
  .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  }
  .skill img {
    width: 38px;
    height: 38px;
  }
}

.how-lead {
  margin: 0 0 28px;
  opacity: 0.9;
  font-weight: 300;
}

/* Timeline */
.timeline {
  --line: #7b8794; /* couleur de la ligne */
  --dot: #2f3a4a; /* couleur du point */
  --x: 18px; /* position horizontale de la ligne */
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

/* ligne verticale unique */
.timeline::before {
  content: "";
  position: absolute;
  left: var(--x);
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--line);
  opacity: 0.8;
}

.timeline__item {
  position: relative;
  padding-left: 64px; /* espace pour la ligne + le point */
  padding-bottom: 28px; /* espace entre items */
}

.timeline__item:last-child {
  padding-bottom: 0;
}

/* point */
.timeline__item::before {
  content: "";
  position: absolute;
  left: calc(var(--x) - 5px);
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--dot);
}

.titre-work {
  margin: 0 0 8px;
  font-size: 1.35rem;
  font-weight: 300;
}

.timeline__item p {
  margin: 0;
  opacity: 0.9;
  line-height: 1.6;
  font-weight: 300;
}

.project {
  position: relative;
  display: inline-block;
  overflow: hidden;
  border-radius: 12px; /* optionnel mais joli */
}

.project img {
  display: block;
  width: 100%;
  height: auto;
}

/* bandeau */
.project-caption {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  padding: 14px 18px;
  margin: 0;

  background: rgba(40, 40, 40, 0.6); /* gris transparent */
  backdrop-filter: blur(4px); /* effet glass (si supporté) */

  color: white;
  font-size: 0.95rem;
  line-height: 1.4;
  font-weight: 300;
  text-align: center;
}

.projects {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

/* Responsive léger */
@media (max-width: 480px) {
  .timeline {
    --x: 14px;
  }
  .timeline__item {
    padding-left: 52px;
  }
}


@media (max-width: 1080px) {
  .me {
    display: none;
  }

  ul {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

.logo{
  width: auto;
  height: 25px;
}

  header,
  .hero {
    justify-content: center;
    text-align: center;
  }

  header {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero-title {
    font-size: 2rem;
    font-weight: 400;
  }
  .hero-subtitle {
    font-size: 1.2rem;
    font-weight: 200;
  }

  .bi-envelope-fill {
    font-size: 1rem;
    margin-right: 0.5rem;
  }

  .link-email-button:active {
    background-color: #02153d;
    color: #00eed0;
    border: 2px solid #00eed0;
    transform: scale(0.96);
  }

  nav ul li a::after {
    display: none;
  }

  footer {
    justify-content: center;
    text-align: center;
    padding-left: 20px;
    padding-right: 20px;
  }

  .section {
    padding-left: 23px;
    padding-right: 23px;
  }

  .project-caption {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    padding: 10px 18px;
    margin: 0;

    font-size: 0.7rem;
    line-height: 1.4;
    font-weight: 300;
    text-align: center;
  }
}

@media (max-width: 1090px) {
  .cards {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }
  
  .card {
    width: min(300px, 100%);
  }
}

/* ===============================
   Legal pages (Privacy / Legal Notice)
   =============================== */

.legal-page {
  background: #ffffff;
  color: #02153d;
}

.legal-content {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 150px;
  padding-right: 150px;
  padding-bottom: 5rem;
}

.legal-content h1 {
  color: #02153d;
  font-size: 2.5rem;
  font-weight: 300;
  margin-top: 3rem;
  margin-bottom: 2rem;
}

.legal-content h2 {
  color: #02153d;
  font-size: 1.4rem;
  font-weight: 400;
  margin-top: 2rem;
  margin-bottom: 0.6rem;
}

.legal-content p {
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.legal-content a {
  color: #02153d;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: 0.25s ease;
}

.legal-content a:hover {
  color: #00eed0;
}

/* mic highlight pentru blocul de contact */

.legal-box {
  margin-top: 2rem;
  padding: 1.5rem;
  border-radius: 12px;
  border: 2px solid #00eed0;
  background: rgba(205, 226, 223, 0.25);
}

/* text introductiv */

.legal-intro {
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

/* Responsive */

@media (max-width: 880px) {

  .legal-content {
    padding-left: 23px;
    padding-right: 23px;
  }

  .legal-content h1 {
    font-size: 2rem;
  }

  .legal-content h2 {
    font-size: 1.2rem;
  }

  .legal-content p {
    font-size: 0.95rem;
  }

}
