/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f0f2f5;
  color: #333;
  line-height: 1.6;
}

/* HEADER */
header {
  background: linear-gradient(to right, #4e54c8, #8f94fb);
  color: white;
  padding: 3em 1em;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

header h1 {
  font-size: 2.5em;
  margin-bottom: 0.2em;
  letter-spacing: 1px;
}

header h2 {
  font-weight: normal;
  font-size: 1.2em;
  margin-bottom: 0.5em;
}

header p::after {
  content: "|";
  animation: blink 0.7s steps(1) infinite;
  color: #fff;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* NAVIGATION */
.navbar {
  background-color: #1f2f57;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1em 2em;
  position: relative;
  z-index: 999;
}

.navbar .brand {
  color: white;
  font-weight: bold;
  font-size: 1.3em;
  letter-spacing: 1px;
}

.navbar .hamburger {
  display: none;
  font-size: 1.8em;
  color: white;
  cursor: pointer;
}

.navbar .nav-links {
  display: flex;
  gap: 30px;
}

.navbar .nav-links a {
  color: white;
  font-weight: 500;
  text-decoration: none;
  position: relative;
  padding-bottom: 5px;
}

.navbar .nav-links a:hover,
.navbar .nav-links a.active {
  color: #fddb3a;
}

.navbar .nav-links a.active::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 3px;
  background-color: #fddb3a;
  left: 0;
  bottom: -5px;
}

/* SECTIONS */
section {
  background: white;
  max-width: 900px;
  margin: 2em auto;
  padding: 2em;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease-in-out;
}

section h2 {
  margin-bottom: 1em;
  color: #333;
  font-size: 1.7em;
  border-left: 5px solid #4e54c8;
  padding-left: 0.6em;
}

/* ABOUT */
#about p {
  font-size: 1.1em;
  margin-bottom: 1em;
}

/* SKILLS */
.card {
  background-color: #f7f9fc;
  border-radius: 16px;
  padding: 25px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.07);
  max-width: 600px;
  margin: 0 auto;
}

.skills-list {
  list-style: none;
  padding-left: 0;
}

.skills-list li {
  font-size: 18px;
  margin: 15px 0;
  display: flex;
  align-items: center;
}

.skills-list li i {
  margin-right: 12px;
  font-size: 22px;
  color: #5566f2;
}

/* PROJECTS */
.project-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 1em;
}

.project-item {
  width: 250px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.project-item:hover {
  transform: scale(1.05);
}

.project-item img {
  width: 100%;
  display: block;
  border-bottom: 1px solid #eee;
}

.project-item p {
  padding: 1em;
  font-size: 0.95em;
}

/* CONTACT */
.contact-list {
  list-style: none;
  padding-left: 0;
}

.contact-list li {
  font-size: 1.1em;
  margin: 0.5em 0;
}

.contact-list a {
  color: #4e54c8;
  text-decoration: none;
}

.contact-list a:hover {
  text-decoration: underline;
}

/* FOOTER */
footer {
  text-align: center;
  padding: 1.5em;
  background: #4e54c8;
  color: #fff;
  margin-top: 3em;
  font-size: 0.9em;
  letter-spacing: 0.5px;
}

/* PROFILE IMAGE */
.profil-img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* RESPONSIVE */
@media screen and (max-width: 768px) {
  .navbar .nav-links {
    flex-direction: column;
    background-color: #1f2f57;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    display: none;
    padding: 1em;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  }

  .navbar .nav-links.show {
    display: flex;
  }

  .navbar .hamburger {
    display: block;
  }

  header h1 {
    font-size: 2em;
  }

  .profil-img {
    width: 110px;
    height: 110px;
  }

  .project-item {
    width: 90%;
  }
}
