:root {
  --bg-color: #121212;
  --text-color: #ccc;
  --accent-color: #b084f7;
  --section-bg: #1a1a1a;
}

[data-theme="light"] {
  --bg-color: #f9f9f9;
  --text-color: #222;
  --accent-color: #6a1b9a;
  --section-bg: #ffffff;
}

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  scroll-behavior: smooth;
  transition: background 0.5s ease, color 0.5s ease;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  background-color: var(--section-bg);
  padding: 15px 30px;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 1rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.navbar ul {
  list-style: none;
  display: flex;
  gap: 25px;
  margin: 0;
  padding: 0;
}

.navbar a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: bold;
}

.navbar a:hover {
  color: var(--text-color);
}

#theme-toggle {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--accent-color);
}

/* Hero */
.hero {
  text-align: center;
  padding-top: 120px;
  padding-bottom: 80px;
}

.profile-pic {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 4px solid var(--accent-color);
  object-fit: cover;
  margin-bottom: 20px;
}

.cta-button {
  background-color: var(--accent-color);
  color: white;
  padding: 10px 20px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

.cta-button:hover {
  background-color: #8a5de9;
}

.cta-button.outline {
  background-color: transparent;
  border: 2px solid var(--accent-color);
  color: var(--accent-color);
}

.cta-button.outline:hover {
  background-color: var(--accent-color);
  color: white;
}

.button-group {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

/* Section */
.section {
  max-width: 900px;
  margin: 60px auto;
  padding: 40px 20px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
  background-color: var(--section-bg);
  border-radius: 12px;

}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Items animés */
.section .animate-item {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.section.visible .animate-item {
  opacity: 1;
  transform: translateY(0);
}

/* Skills */
.skills-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.tag {
  background-color: var(--accent-color);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.95rem;
}

/* Timeline */
.timeline-item {
  margin-bottom: 20px;
}

/* Projects */
.projects-list {
  display: grid;
  gap: 20px;
}

.project-card {
  background: var(--section-bg);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
}

/* Social Icons */
.social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.social-icons img {
  width: 40px;
  height: 40px;
  transition: transform 0.3s ease;
}

.social-icons img:hover {
  transform: scale(1.2);
}

/* Footer */
.footer {
  text-align: center;
  padding: 30px 0;
  background-color: var(--section-bg);
  color: #999;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  .navbar ul {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }

  .hero {
    padding-top: 100px;
  }

  .cta-button {
    width: 90%;
  }

  .skills-tags {
    flex-direction: column;
    align-items: center;
  }
}
@media (max-width: 480px) {
  .profile-pic {
    width: 120px;
    height: 120px;
  }

  .navbar {
    padding: 10px 15px;
  }
}