* {
  margin: 0;
  padding: 0;
}

.body {
  /* background-color: blue; */
  background-color: #1e1e2f;
  color: #f0f0f0;
  font-family: 'Poppins', sans-serif;
  min-height: 100vh;
}

.navbar {
  background-color: rgba(30, 30, 47, 0.95);
  backdrop-filter: blur(4px);
  box-shadow: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  font-family: 'Playfair Display', serif;;
  font-size: 1.6rem;
  padding-top: 20px;
  padding-bottom: 20px;
  transition: background-color 0.3s ease;
}

.navbar-toggler {
  border-color: white;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='white' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}


.navbar a.nav-link {
  color: #f0f0f0;
  font-size: 1.2rem;
  font-weight: 500 !important;
  transition: color 0.3s ease;
  letter-spacing: 0.5px;
}

.navbar a.nav-link:hover {
  color: #a88bff;
  text-decoration: underline;
}

h1,
h2,
.navbar {
  font-family: 'Playfair Display', serif;
}

h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: #a0b4ff;
  text-align: center;
  margin-top: 20px;
}

h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.7rem;
  color: #2b32c6;
  text-align: center;
  margin-top: 20px;
}

li {
  list-style: none;
}

.skill-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  padding: 25px 15px;
  transition: transform 0.3s ease, background 0.3s ease;
  height: 100%;
  width: 100%;
  text-align: center;
}
.skill-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.08);
}

.skill-card h3 {
  color: #a88bff;
  font-family: 'Playfair Display', serif;;
  font-size: 1.3rem;
  margin-top: 10px;
}

.level-bars {
  margin-top: 12px;
  white-space: nowrap;
}

.bar {
  display: inline-block;
  width: 18px;
  height: 8px;
  margin: 0 2px;
  border-radius: 4px;
  background-color: #444;
  transition: background-color 0.3s ease;
}

.bar.filled {
  background-color: #a88bff;
}


.skills-img {
  max-width: 100%;
}

.sec4 {
  padding: 50px;
}

.sec4 a {
  text-decoration: none;
  color: black;
}

.text-contact {
  font-size: 1.5rem;
  color: #2b32c6;
  margin-bottom: 20px;
  text-align: center;
}

.timeline-container {
  position: relative;
  max-width: 1200px;
  margin: auto;
  padding: 40px 0;
}

.timeline-container::after {
  content: '';
  position: absolute;
  width: 4px;
  background-color: #2b32c6;
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
}

.timeline-item {
  padding: 20px 30px;
  position: relative;
  width: 50%;
}

.timeline-item .content {
  background-color:  rgba(50, 50, 70, 0.8);
  color: #f0f0f0;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  margin-bottom: 20px;
  will-change: transform;
  backface-visibility: hidden;
}

.timeline-item .content:hover{
  transform: scale(1.02);
  transition: transform 0.3s ease;
}

.timeline-item .content h3 {
  color: #a88bff;
  font-family: 'Playfair Display', serif;;
  font-size: 1.7rem;
  margin-bottom: 0.5rem;
  text-align: center;
  letter-spacing: 0.5px;
}

.timeline-item .content p {
  color: #e0e0e0;
  font-size: 1.1rem;
  line-height: 1.6;
  text-align: center;
}
.timeline-item.left {
  left: 0;
}

.timeline-item.right {
  left: 50%;
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 20px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: #2b32c6;
  border: 2px solid white;
  z-index: 1;
}

.timeline-item.left::before {
  right: -8px;
}

.timeline-item.right::before {
  left: -8px;
}

/* Responsive */
@media screen and (max-width: 768px) {
  .timeline-item {
    width: 100%;
    left: 0 !important;
    margin-bottom: 40px;
  }

  .timeline-container::after {
    left: 8px;
  }

  .timeline-item::before {
    left: 0;
  }

  /* cartes projets */
  .project-content h3 {
    font-size: 1.2rem;
  }

  .project-content .tech {
    font-size: 0.85rem;
  }

  .project-content .desc {
    font-size: 0.9rem;
    line-height: 1.3;
  }

  .project-link {
    font-size: 0.8rem;
    padding: 6px 12px;
  }
}

/* buton CV */
.cv-download-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
  margin-bottom: 60px;
}

.btn-cv {
  display: inline-block;
  background-color: #2b32c6;
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
}
.btn-cv i {
  margin-right: 8px;
  font-size: 1.2rem;
}

.btn-cv:hover {
  background-color: #1e2480;
  text-decoration: underline;
}

.portfolio-subtitle {
  font-size: 1.8rem;
  font-weight: bold;
  color: #a88bff;
  margin-bottom: 1rem;
  border-left: 4px solid #a88bff;
  padding-left: 12px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.project-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #f0f0f0;
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  text-align: center;
  justify-content: space-between;
  align-items: center;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

.project-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.project-content {
  padding: 1.2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.project-content h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: #a88bff;
  font-family: 'Playfair Display', serif;;
}

.project-content .tech {
  font-size: 1rem;
  color: #bbb;
  font-style: italic;
  margin-bottom: 0.7rem;
}

.project-content .desc {
  font-size: 1rem;
  color: #ccc;
  line-height: 1.4;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.project-link {
  align-self: center;
  background-color: #2b32c6;
  color: #fff;
  padding: 8px 14px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9rem;
  transition: background-color 0.3s ease;
  margin-right: 6px;
}

.project-link:hover {
  text-decoration: underline;
  background-color: #3e3ecf;
}

.contact-section {
  padding: 60px 20px;
  background-color: #1e1e2f;
  text-align: center;
}

.text-contact {
  font-size: 2rem;
  color: #a88bff;
  margin-bottom: 30px;
}

.contact-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2.5rem;
}

.contact-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: #f0f0f0;
}

.contact-block img {
  width: 40px;
  height: 40px;
  transition: transform 0.2s ease;
}

.contact-block img:hover {
  transform: scale(1.1);
}

.contact-block a {
  color: #7ab6f9;
  font-size: 1rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-block a span i {
  margin-right: 6px;
}

.contact-block a:hover {
  color: #a6ccff;
  text-decoration: underline;
}

footer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 150px;
  background-color: #15151e;
  margin: auto; 
  color: #aaa;
}

footer .copyright {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

footer p {
  margin: 0;
  font-size: 1rem;
  color: white;
}
