body {
  background-color: #e5e5e5;
  font-family: "Montserrat", sans-serif;
  text-align: justify;
}

.main-section {
  display: flex;
  flex-direction: row-reverse;
  width: 1200px;
  margin: 50px auto;
  border: 2px solid black;
}

.right-section {
  padding-left: 50px;
  padding-right: 100px;
  background-color: azure;
  border-left: 2px solid black;
}

.about-me-section {
  padding-bottom: 15px;
  padding-top: 15px;
  margin-bottom: 25px;
  margin-top: 25px;
}

.name,
.position {
  text-align: center;
}

.position {
  animation: intrareDinStanga 1s ease-out;
}

@keyframes intrareDinStanga {
  from {
    transform: translateX(-25%);
  }
  to {
    transform: translateX(0);
  }
}

.work-experience,
.projects,
.education,
.additional-education {
  background-color: rgb(167, 218, 200);
  padding-bottom: 5px;
}

.education-item,
.work-experience-item {
  color: #fb6d3a;
  font-weight: bold;
}

.work-experience-item {
  display: inline;
}

.sidebar-section {
  background-color: rgb(167, 218, 200);
  width: 100%;
  max-width: 370px;
  padding: 50px;
  box-sizing: border-box;
}

.contacts-value {
  font-style: normal;
  font-weight: 700;
  font-size: 14px;
  line-height: 24px;
  color: #fb6d3a;
}

.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-top: 5px;
}

.items {
  font-weight: bold;
}

.item {
  font-weight: bold;
  display: inline;
  padding-right: 100;
}

/* Ascundem poza din sidebar pe mobil și mutăm poza sub titlu */
.mobile-photo {
  display: none;
  max-width: 150px;
  margin: 15px auto;
  border-radius: 50%;
}

.image {
  margin: -10px;
  width: 300px; /* redimensionează imaginea */
  border-radius: 50px; /* colțuri rotunjite */
  box-shadow: 0 8px 8px rgba(0, 0, 0, 0.2); /* umbră */
  transition: transform 0.3s ease; /* tranziție la hover */
}

.image:hover {
  transform: scale(1.05); /* efect de mărire la hover */
}

.intro-about-me,
.work-experience-descripton {
  text-indent: 30px; /* aliniat la începutul paragrafului */
  line-height: 1.6; /* opțional: spațiere între rânduri pentru lizibilitate */
}

/* Responsive pentru mobil */
@media (max-width: 768px) {
  body {
    margin: 0;
    padding: 0;
  }

  .main-section {
    flex-direction: column;
    width: 100%;
    margin: 0;
    border: none;
  }

  .right-section {
    order: 1;
    padding: 20px;
    border: none;
  }

  .right-section h1.name,
  .right-section h3.position {
    margin-top: 10px;
    text-align: center;
  }

  .mobile-photo {
    display: block; /* Se afișează doar pe mobil */
  }

  .sidebar-section {
    order: 2;
    max-width: 100%;
    padding: 20px;
    text-align: center;
  }

  .sidebar-section .image {
    display: none !important; /* Ascundem poza din sidebar */
  }

  /* Stilizare liste pentru sidebar */
  .sidebar-section ul {
    list-style-type: disc; /* Păstrează bulinele clasice */
    padding-left: 20px; /* Adaugă spațiu față de margine */
    margin: 10px 0;
    font-size: 14px; /* Font mai compact */
    line-height: 1.6; /* Spațiu între rânduri */
  }
}

/* Ajustare elemente individuale */
.sidebar-section li {
  margin-bottom: 2px; /* Spațiu între elementele listei */
}

/* Pentru linkurile din sidebar (în Specializations și Languages) */
.sidebar-section a {
  color: #fb6d3a; /* Portocaliu (ca restul designului) */
  text-decoration: none; /* Scoate sublinierea */
  font-weight: bold;
}

/* Responsivitate - pe mobil fontul mai mic */
@media (max-width: 768px) {
  .sidebar-section ul {
    font-size: 13px;
    line-height: 1.4;
    padding-left: 15px; /* Puțin mai îngust pe mobil */
    list-style: none;
  }
}
