@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,400;0,900;1,700&display=swap");
/* Variables */

:root {
  --font-family: "Roboto", sans-serf;
  --normal-font: 400;
  --bold-font: 700;
  --bolder-font: 900;
  --bg-color: #f9efe7;
  --primary-color: #4756df;
  --secondary-color: #ff7235;
  --primary-shadow: #8b8eaf;
  --secondary-shadow: #a17a69;
  --bottom-margin: 0.5rem;
  --bottom-margin-2: 1rem;
  --line-height: 1.7rem;
  --transition: 0.3s;
}

/* Variables end */

html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  /*font-family: var(--font-family);*/
}

body {
  background: #f9efe7;
}

.container {
  background: #f5f5f5;
  max-width: 800px;
  margin: 0px auto;
  margin-bottom: 60px;
  height: 1250px;
  padding: 0px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  font-family: montserrat;
}

.header {
  text-align: center;
}

.header h1 {
  margin-bottom: 10px;
  color: #1c652e;
}

.header {
  padding-top: 25px;
}

.header h3 {
  text-transform: uppercase;
  font-size: 15px;
  font-weight: 500;
  color: #1c652e;
}

.img-area {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0px auto;
  border: 15px groove #67af79;
}

.img-area img {
  width: 100%;
  transform: translate(-10px, -80px) scale(1.2);
}

.main {
  display: flex;
  flex-wrap: wrap;
}
.left {
  flex: 1;
  padding: 30px;
}
.left p {
  line-height: 2;
}
.left ul li {
  line-height: 2;
}
h2 {
  background: #1c652e;
  padding: 15px;
  color: #fff;
  margin: 30px 0;
  font-size: 20px;
  border-radius: 0 50px 50px 0;
}
.right {
  flex: 1;
  padding: 30px;
}
.right h3 {
  margin-bottom: 15px;
}
right p {
  line-height: 2.9;
}
.right ul li {
  line-height: 2;
}

/* Nueva clase para el contenedor de habilidades */
.skills-container {
  display: flex;
  justify-content: space-between;
}

.skills-list {
  /*list-style-type: none;*/
  padding: 0;
}
.skills-list:nth-of-type(2) {
  margin-right: 50px;
}
.skills-list:first-of-type {
  margin-left: 20px;
}
.skills-list li {
  line-height: 2;
}

.navigation {
  list-style-type: none;
}

a {
  text-decoration: none;
  color: var(--secondary-color);
}

a:hover {
  text-decoration: none;
  color: var(--secondary-color);
}

/* Navbar styling */
nav {
  /*position: sticky;*/
  top: 0;
  left: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.3rem 3.5rem;
  background-color: var(--bg-color);
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.1);
  font-family: var(--font-family);
}
nav img {
  height: 60px;
}
nav h1 {
  color: var(--secondary-color);
}

nav a {
  color: var(--secondary-color);
  transition: var(--transition);
}

nav a:hover {
  color: var(--secondary-color);
  border-bottom: 2px solid var(--secondary-color);
}

nav ul {
  display: flex;
  gap: 1.9rem;
}

nav ul li {
  font-weight: var(--bold-font);
}

.burger-menu {
  color: #4756df;
  font-size: 2rem;
  border: 0;
  background-color: transparent;
  cursor: pointer;
  display: none;
}

@media only screen and (min-width: 768px) and (max-width: 991px) {
  .container {
    width: 95%;
    height: auto;
  }
  h2 {
    font-size: 18px;
  }
}

@media screen and (max-width: 720px) {
  nav {
    padding: 1rem 1rem;
    z-index: 10; /* My picture is appearing on top of the navbar, I use a higher z-index for the navbar to solve the problem.*/
    position: relative;
  }
  nav ul {
    position: fixed;
    background-color: #bfe6ce;
    flex-direction: column;
    top: 70px;
    left: 10%;
    width: 80%;
    text-align: center;
    transform: translateX(120%);
    transition: transform 0.5s ease-in;
  }
  nav ul.show {
    transform: translateX(0);
  }
  nav ul li {
    margin: 8px;
  }
  .burger-menu {
    display: block;
  }
}
@media screen and (max-width: 600px) {
  .main {
    flex-direction: column;
  }
  .left,
  .right {
    flex: none;
    width: 100%;
  }
  .container {
    width: 95%;
    height: auto;
  }
  h2 {
    font-size: 15px;
  }
}
