body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f8f4e3;
  color: #333;
}

.navbar {
  background-color: #583e2e;
  color: white;
  padding: 15px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-sizing: border-box;
}
.navbar .logo {
  color: white;
  font-size: 1.5em;
  font-weight: bold;
  text-decoration: none;
}
.nav-links a {
  color: white;
  text-decoration: none;
  padding: 14px 20px;
  display: inline-block;
}
.nav-links a:hover,
.dropbtn:hover {
  background-color: #6a8e4e;
}


.hero {
  padding-top: 100px;
  padding-bottom: 80px;
  padding-left: 50px;
  padding-right: 50px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: space-around;
  background-color: white;
  flex-wrap: wrap;
  gap: 30px;
}
.hero-content {
  max-width: 600px;
  text-align: left;
  flex: 1;
  min-width: 300px;
}
.hero h1 {
  color: #6a8e4e;
  font-size: 2.5em;
}
.hero h2 {
  color: #583e2e;
  font-weight: 300;
}
.btn-download {
  background-color: #b85f2c;
  color: white;
  padding: 12px 25px;
  text-decoration: none;
  border-radius: 5px;
  display: inline-block;
  transition: background-color 0.3s;
  border: none;
  font-size: 1em;
  font-family: inherit;
  cursor: pointer;
}
.btn-download:hover {
  background-color: #8c4721;
}
.cv-dropdown-wrapper {
  position: relative;
  display: inline-block;
  margin-top: 20px;
}
.dropdown-arrow {
  font-size: 0.85em;
  margin-left: 4px;
}
.cv-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: white;
  border-radius: 5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-width: 100%;
  z-index: 100;
  overflow: hidden;
}
.cv-dropdown.open {
  display: block;
}
.cv-option {
  display: block;
  padding: 11px 20px;
  color: #333;
  text-decoration: none;
  font-size: 0.95em;
  transition: background-color 0.2s;
}
.cv-option:hover {
  background-color: #f8f4e3;
}
.profile-pic {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid #6a8e4e;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.about-section {
  padding: 80px 50px;
  background-color: white;
  border-top: 1px solid #eee0c3;
}

.about-container {
  max-width: 800px;
  margin: 0 auto;
}

.about-container h2 {
  color: #583e2e;
  font-size: 2em;
  margin-bottom: 30px;
}

.about-container p {
  font-size: 1.05em;
  line-height: 1.8;
  color: #444;
  margin-bottom: 16px;
}

.projets-section {
  padding: 80px 50px;
  background-color: #e6e0d4;
}

.projets-container {
  max-width: 1100px;
  margin: 0 auto;
}

.projets-container h1 {
  text-align: center;
  color: #583e2e;
  margin-bottom: 50px;
  font-size: 2em;
}

.projet-card {
  background-color: white;
  border-radius: 10px;
  margin-bottom: 40px;
  padding: 30px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.projet-content {
  width: 100%;
}

.projet-content h2 {
  color: #6a8e4e;
  margin-top: 0;
  border-bottom: 2px solid #f8f4e3;
  padding-bottom: 10px;
}

.btn-github {
  background-color: #333;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  display: inline-block;
  margin-top: 15px;
  transition: background-color 0.3s;
}

.btn-github:hover {
  background-color: #555;
}

html {
  scroll-behavior: smooth;
}

.contact-section {
  padding: 80px 50px;
  text-align: center;
  background-color: white;
  border-top: 1px solid #eee0c3;
}

.contact-section h2 {
  color: #583e2e;
  margin-bottom: 10px;
}

.contact-intro {
  color: #666;
  font-size: 1.05em;
  margin-bottom: 10px;
}

.contact-links {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.contact-btn {
  text-decoration: none;
  color: white;
  padding: 15px 30px;
  border-radius: 5px;
  font-weight: bold;
  transition: transform 0.2s, box-shadow 0.2s;
}

.contact-btn i {
  margin-right: 10px;
}

.contact-btn.linkedin {
  background-color: #0077b5;
}
.contact-btn.linkedin:hover {
  background-color: #005582;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.contact-btn.github {
  background-color: #333;
}
.contact-btn.github:hover {
  background-color: #555;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.contact-btn.email {
  background-color: #b85f2c;
}
.contact-btn.email:hover {
  background-color: #8c4721;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Skill badges */
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}
.tag {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8em;
  font-weight: 600;
  color: white;
}
.tag-py     { background-color: #3b82f6; }
.tag-torch  { background-color: #ef4444; }
.tag-api    { background-color: #0d9488; }
.tag-front  { background-color: #ec4899; }
.tag-data   { background-color: #eab308; }
.tag-devops { background-color: #475569; }
.tag-cv     { background-color: #16a34a; }
.tag-nlp    { background-color: #6366f1; }
.tag-test   { background-color: #d97706; }
.tag-optim  { background-color: #06b6d4; }

@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
  }
  .nav-links {
    margin-top: 10px;
  }
  .nav-links a,
  .dropbtn {
    padding: 10px 15px;
  }
  .hero {
    flex-direction: column;
    padding: 40px 20px;
    padding-top: 150px;
  }
  .profile-pic {
    width: 200px;
    height: 200px;
  }
}
