:root {
  --body-bg-color: #22212C;
  --text-color: #837E9F;
  --bg-cards: #302F3D;
  --bg-techs: #CB92B1;

  font-family: "Merriweather Sans"; 
  font-size: 62.5%;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  color: inherit;
}

body {
  background-color: var(--body-bg-color);
  color: var(--text-color);
  font-style: normal;
  font-size: 1.6rem; /* 25.6px */
  min-height: 100vh;
}

.container {
  display: flex;
  padding: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.card {
  background-color: var(--bg-cards);
  border-radius: 1rem; /* 16px */
  padding: 2rem; /* 32px */
  min-width: 300px;
}

/* Personal structure styles - boxes 1 to 5 */
.profile {
  display: flex;
  flex-direction: column;
  margin-bottom: 2rem; /* 32px */
  align-items: center;
  text-align: center;
}

.profile .image img {
  width: 150px; /* 9.37rem */
  height: 150px;
  margin-bottom: 1rem; /* 16px */
}

.profile h1 {
  font-weight: 700;
  font-size: 2rem; 
}

.profile h2 {
  font-weight: 400;
  font-size: 1.2rem; 
  line-height: 1rem; /* 16px */
  margin-top: 1rem;
}

.links {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  font-weight: 500;
  font-size: 1.3rem;
  margin-bottom: 2rem;
}

.links a {
  color: var(--text-color);
  display: flex;
  align-items: center;
  text-decoration: none;
  width: 100%;
  transition: color 0.4s ease, transform 0.4s ease;
  transform-origin: left;
}

.links a:hover {
  color: var(--bg-techs);
  transform: scale(1.15);
}

.links i {
  font-size: 2.5rem;
  font-weight: 500;
  margin-right: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
}

.skills {
  display: flex;
  flex-direction: column;
  margin-bottom: 2rem;
  font-weight: 400;
  justify-content: center;
}

.skill_box {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
}

.skill {
  max-width: 10.5rem;
  height: 2.5rem;
  background: var(--bg-techs);
  border-radius: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.3rem;
  color: var(--body-bg-color);
}

.experiences, .studies {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.studies {
  margin-bottom: 0;
}

.experience, .study {
  padding-left: 4rem;
}

.experience p, .study p {
  font-size: 1.3rem;
  font-weight: 500;
} 

/* Public structure styles - boxes 6-10 */
.public {
  margin-left: 2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.my_projects {
  display: flex;
  flex-direction: column;
}

.my_projects_title {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.open_menu {
  cursor: pointer;
  background: none;
  border: none;
  display: flex;
  transition: color 0.4s ease, transform 0.4s ease;
  transform-origin: left;
}

.open_menu:hover {
  color: var(--bg-techs);
  transform: scale(1.15);
}

.menu {
  display: none;
  flex-direction: column;
  position: relative;
  margin-top: 2rem;
}

.menu nav {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  font-size: 1.3rem;
  font-weight: 500;
}

.menu nav a {
  display: flex;
  color: inherit;
  text-decoration: none;
  transition: color 0.4s ease, transform 0.4s ease;
  transform-origin: left;
}

.menu nav a:hover {
  color: var(--bg-techs);
  transform: scale(1.15);
}

.close_menu {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  font-size: 2rem;
  transition: color 0.4s ease, transform 0.4s ease;
  transform-origin: left;
}

.close_menu:hover {
  color: var(--bg-techs);
  transform: scale(1.15);
}

.projects {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}

.project_1, .project_2 {
  display: flex;
  flex-direction: column;
  flex: 1;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.project_1:hover, .project_2:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.project_1 p , .project_2 p {
  margin-top: 2rem;
}

.folder a {
  display: flex;
  gap: 1rem;
  font-weight: 700;
  font-size: 2rem;
  line-height: 1.3rem ;
  align-items: center;
  transition: color 0.4s ease, transform 0.4s;
  transform-origin: left;
}

.folder a:hover {
  color: var(--bg-techs);
  transform: scale(1.15);
}

.folder i {
  width: 2rem;
  height: 2rem;
}

.projects p {
  font-weight: 500;
  font-size: 1.5rem;
}

.icons {
  display: flex;
  margin-top: 2rem;
}

.icons i, .icons p {
  margin: 0;
}

.icons i {
  font-size: 1.5rem;
  font-weight: 500;
  margin-right: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icons p {
  font-size: 1.5rem;
  font-weight: 500;
  margin-right: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.languages {
  display: flex;
  margin-left: auto;
}

.recent_posts {
  display: flex;
  flex-direction: column;
  margin-top: 2rem;
}

.recent_posts_title {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.open_posts {
  font-size: 3rem;
  height: 3rem;
  font-weight: 400;
  cursor: pointer;
  background: none;
  border: none;
  display: flex;
  transition: color 0.4s ease, transform 0.4s ease;
  transform-origin: left;
}

.open_posts:hover {
  color: var(--bg-techs);
  transform: scale(1.15);
}

.close_posts {
  font-size: 3rem;
  font-weight: 400;
  cursor: pointer;
  background: none;
  border: none;
  display: none;
  transition: color 0.4s ease, transform 0.4s ease;
  transform-origin: left;
}

.close_posts:hover {
  color: var(--bg-techs);
  transform: scale(1.15);
}


.posts {
  align-items: center;
  margin-top: 2rem;
  display: none;
  /* max-width: 620px; */
}

.post {
  display: flex;
  padding: 2rem 3rem;
}

.post img {
  margin-right: 2rem;
  width: 100px;
  height: 100px;
}

.post h4 {
  font-size: 1.5rem;
  font-weight: 400;
}

.post p {
  font-size: 1.5rem;
  font-weight: 400;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.post a {
  font-size: 1.5rem;
  font-weight: 700;
  transition: color 0.4s ease, transform 0.4s ease;
  transform-origin: left; 
}

.post a:hover {
  color: var(--bg-techs);
  transform: scale(1.15);
}

.post span {
  font-weight: 700;
  font-size: 1.5rem;
}

/* media queries */
@media only screen and (max-width: 1030px) {
  .body {
    padding: 1rem;
  }

  .card {
    padding: 1.5rem;
    min-width: 100%;
  }

  .profile .image img {
    width: 120px;
    height: 120px;
  }
  
  .projects {
    flex-direction: column;
    gap: 1.5rem;
  }
}

@media only screen and (max-width: 840px) {
.post {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
}

@media only screen and (max-width: 800px) {
  .body {
    padding: 1rem;
  }

  .container {
    flex-direction: column;
    justify-content: center;
  }

  .public {
    margin-left: 0;
  }

  .my_projects {
    margin-top: 2rem;
  }

  .skill_box {
    display: flex;
  }

  .skill {
    width: 10.5rem;
  }

  .posts {
    min-width: 100%;
  }
}

@media only screen and (max-width: 400px) {
  .body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .container {
    width: 100%;
  }

  .card {
    width: 100%;
    padding: 1rem;
  }

  .skill {
    font-size: 1rem;
  }

}