@font-face {
  font-family: "Roboto";
  src: url("../fonts/Roboto-Regular.woff2") format("woff2"),
    url("../fonts/Roboto-Regular.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Roboto";
  src: url("../fonts/Roboto-Bold.woff2") format("woff2"),
    url("../fonts/Roboto-Bold.woff") format("woff");
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Roboto";
  src: url("../fonts/Roboto-Medium.woff2") format("woff2"),
    url("../fonts/Roboto-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Roboto";
  src: url("../fonts/Roboto-Italic.woff2") format("woff2"),
    url("../fonts/Roboto-Italic.woff") format("woff");
  font-weight: normal;
  font-style: italic;
  font-display: swap;
}

*,
::after,
::before {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Roboto", sans-serif;
  background-color: #f5f6f7;
  color: #333333;
  font-size: 18px;
  line-height: 1.5;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  width: 1200px;
  margin: 0 auto;
}

.header {
  background-color: #333333;
  color: #ffffff;
  padding: 30px 0;
}

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

.header img {
  width: 250px;
  height: 250px;
  border-radius: 50%;
}

.header-text h1 {
  font-size: 60px;
  letter-spacing: 3px;
}

.header-text h2 {
  font-size: 30px;
  font-weight: 500;
  margin-bottom: 30px;
}

.header-text .btns {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-text a:not(:last-child) {
  display: inline-block;
  background-color: #ffffff;
  color: #333333;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 5px;
  transition: all 1s ease;
}

.header-text a:last-child {
  font-size: 40px;
}

.header-text a:not(:last-child):hover {
  background-color: #dddddd;
}

.main-container {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
}

main {
  width: 65%;
}

aside {
  width: 30%;
}

section {
  margin-bottom: 30px;
}

section h2 {
  font-size: 30px;
  font-weight: 500;
  text-transform: uppercase;
  border-bottom: 2px solid #333333;
  padding: 5px;
  margin-bottom: 20px;
}

.skill-list {
  list-style: square;
  margin-left: 30px;
}

.experience-item:not(:last-child) {
  border-bottom: 1px dashed #333333;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.experience-item header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}

.experience-item h3 {
  font-size: 26px;
}

.experience-details {
  margin-left: 30px;
  list-style: square;
  font-style: italic;
}

.main p a {
  text-decoration: underline;
  color: #3867d6;
}

#education p {
  font-style: italic;
}

.language-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px dashed #333333;
  padding: 10px;
}

.language-item p {
  font-style: italic;
}

.certification:not(:last-child) {
  border-bottom: 1px dashed #333333;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.certification .detail {
  font-style: italic;
  margin-top: 10px;
}

.certification a {
  display: inline-block;
  margin-top: 5px;
  font-weight: bold;
  transition: all 1s ease;
}

.certification a:hover {
  color: #3867d6;
}

#soft-skills li {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 5px;
  border: 2px solid #333333;
  font-weight: bold;
  margin: 5px;
}

.training-item:not(:last-child) {
  border-bottom: 1px dashed #333333;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.training-item header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.training-description {
  font-style: italic !important;
  margin-bottom: 5px;
}

.projects {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  gap: 10px;
}

.project {
  width: calc((100% - 20px) / 2);
  border: 1px solid #333333;
  border-radius: 5px;
  padding: 5px;
}

.project p {
  font-size: 16px;
  font-style: italic;
  margin-bottom: 10px;
}

.project a {
  display: inline-block;
  padding: 5px 10px;
  background-color: #333333;
  color: #ffffff;
  border-radius: 5px;
  transition: all 1s ease;
}

.project a:hover {
  background-color: #5c5c5c;
}

#training {
  border-bottom: 2px solid #333333;
  padding-bottom: 30px;
  margin-bottom: 10px;
}

#contact-me h2 {
  border: none;
}

.contact-form input {
  background-color: transparent;
  border: 2px solid #333333;
  border-radius: 5px;
  width: calc((100% - 20px) / 2);
  font-family: "Roboto", sans-serif;
  font-size: 18px;
  color: #333333;
  padding: 10px;
}

.contact-form textarea {
  background-color: transparent;
  border: 2px solid #333333;
  border-radius: 5px;
  width: 100%;
  font-size: 18px;
  font-family: "Roboto", sans-serif;
  color: #333333;
  padding: 10px;
}

.contact-form button {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 20px;
  font-size: 18px;
  font-weight: 500;
  background-color: #333333;
  color: #ffffff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 1s ease;
}

.contact-form button:hover {
  background-color: #5c5c5c;
}

.contact-form .top-inputs {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.contact-item span {
  font-size: 20px;
  margin-right: 10px;
}

.contact-item a {
  transition: all 1s ease;
}

.contact-item a:hover {
  color: #3867d6;
}

@media (max-width: 1200px) {
  .container {
    width: 1000px;
  }
}

@media (max-width: 1000px) {
  .container {
    width: 90%;
  }

  .header .container {
    flex-direction: column-reverse;
    text-align: center;
  }

  .header-text h1 {
    font-size: 40px;
  }

  .header-text h2 {
    font-size: 20px;
  }

  .header-text .btns {
    margin: 0 auto;
    display: inline-flex;
    gap: 20px;
  }

  .main-container {
    flex-wrap: wrap;
    margin-top: 20px;
  }

  main {
    width: 100%;
  }

  aside {
    width: 100%;
  }

  section {
    margin-bottom: 20px;
  }

  section h2 {
    font-size: 25px;
    margin-bottom: 10px;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 16px;
    line-height: 1.2;
  }

  section {
    margin-bottom: 20px;
  }

  section h2 {
    text-align: center;
    margin-bottom: 10px;
  }

  .project {
    width: 100%;
  }

  .contact-form input {
    width: 100%;
    margin-bottom: 15px;
  }
}

@media (max-width: 400px) {
  .experience-item header {
    flex-direction: column;
    text-align: center;
    margin-bottom: 20px;
  }

  .training-item header {
    flex-direction: column;
    text-align: center;
  }

  .experience-item h3 {
    font-size: 26px;
  }
}
