@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");

/* CSS Variables */
:root {
  --header-height: 3rem;
  --nav-width: 250px;

  /* Font weight */
  --font-medium: 500;
  --font-semi-bold: 600;
  --font-bold: 700;

  /* Colors */
  /* --first-color: #cc482c;
    --first-color-dark: #662616;
    --first-color-darken: #290f09;
    --text-color: #54423d;
    --first-color-light: #eae7e6;
    --first-color-lighten: #fffafa; */
  /* --first-color: #3d84b8;
    --first-color-dark: #344fa1;
    --first-color-darken: #344fa1;
    --text-color: #333238;
    --first-color-light: #f0ebcc;
    --first-color-lighten: #ffffff; */
  --first-color: #3d5a80;
  --first-color-darken: #344e41;
  --first-color-dark: #e94016;
  --text-color: #293241;
  --first-color-light: #fbfac7;
  --first-color-lighten: #ffffff;

  /* Font and typography */
  --body-font: "Poppins", sans-serif;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1rem;
  --normal-font-size: 0.938rem;
  --small-font-size: 0.813rem;
  --smaller-font-size: 0.75rem;

  /* Margins */
  --mb-1: 0.5rem;
  --mb-2: 1rem;
  --mb-3: 1.5rem;
  --mb-4: 2rem;
  --mb-5: 2.5rem;

  /* z-index */
  --z-fixed: 100;
}

@media screen and (min-width: 768px) {
  :root {
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: 0.875rem;
    --smaller-font-size: 0.813rem;
  }
}

/* Base */
*,
::before,
::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: var(--header-height) 0 0 0;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  font-weight: var(--font-medium);
  background-color: var(--first-color-lighten);
  color: var(--text-color);
  line-height: 1.6;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h3 {
  font-weight: var(--font-semi-bold);
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

* {
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Class CSS */
.section {
  padding: 4rem 0 2rem;
}

.section-title {
  font-size: var(--h1-font-size);
  color: var(--text-color);
  margin-bottom: var(--mb-3);
  text-align: center;
}

.contact .section-title {
  font-size: var(--h2-font-size);
}

.section-subtitle {
  display: block;
  font-size: var(--normal-font-size);
  color: var(--first-color);
  text-align: center;
  font-weight: var(--font-bold);
  margin-bottom: 0.25rem;
}

/* Layout */
.bd-grid {
  max-width: 1024px;
  display: grid;
  grid-template-columns: 100%;
  column-gap: 2rem;
  width: calc(100% - 2rem);
  margin-left: var(--mb-2);
  margin-right: var(--mb-2);
}

.l-header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
  background-color: var(--first-color-lighten);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Navigation */
.nav {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 55%;
  height: 100vh;
  padding: 3rem;
  display: flex;
  align-items: center;
  background-color: var(--first-color);
  transition: 0.5s;
}

.nav__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 2rem;
  color: var(--first-color-dark);
  cursor: pointer;
}

.nav__item {
  margin-bottom: var(--mb-4);
}

.nav__link {
  font-size: 1rem;
  text-transform: uppercase;
  color: var(--first-color-lighten);
  font-weight: var(--font-bold);
  transition: 0.3s;
}

.nav__link:hover {
  color: var(--text-color);
}

.nav__toggle {
  color: var(--first-color-dark);
  font-size: 1.3rem;
  cursor: pointer;
}

/* Show menu */
.show {
  left: 0;
}

/* Active menu */
.active {
  color: var(--text-color);
}

/* Home */
.home {
  /* background: url(../img/bg.jpg) no-repeat center center/cover; */
  background: #ffffff;
  height: 100vh;
  position: relative;
}

.home * {
  z-index: 10;
}

.home__container {
  height: calc(100vh - var(--header-height));
  align-items: center;
}

.home__data {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: max-content;
  text-align: center;
}

.home__img {
  overflow: hidden;
  margin: 0;
  margin-bottom: var(--mb-4);
  width: 150px;
  border-radius: 50%;
}

.home__img {
  width: 155px;
  border: 0.15rem solid black;
  padding: 0.15rem;
}

.home__title {
  font-size: var(--h1-font-size);
  color: var(--text-color);
  font-weight: var(--font-semi-bold);
}

.home__profession {
  font-size: var(--normal-font-size);
  color: var(--text-color);
  margin-bottom: var(--mb-5);
}

.home__social {
  margin-bottom: 5rem;
}

.home__social-link {
  display: inline-flex;
  font-size: 1.1rem;
  border-radius: 50%;
  padding: 0.4rem;
  margin: 0 var(--mb-1);
  transition: 0.3s;
  background-color: rgba(0, 0, 0, 0.055);
  color: #000;
  box-shadow: 0 0.625rem 1.25rem rgba(0, 0, 0, 0.2);
}

.home__social-link:hover {
  transform: translateY(-0.325rem);
}

.home__social-link:active {
  transform: translateY(0.15rem);
  box-shadow: 0 0.3125rem 0.625rem rgba(0, 0, 0, 0.2);
}

.home__social-link:nth-child(1) {
  color: #0072b1;
}

.home__social-link:nth-child(2) {
  color: #6e5494;
}

.home__social-link:nth-child(3) {
  color: rgb(255, 153, 0);
}

.home__social-link:nth-child(4) {
  color: #000;
}

/* Buttons */
.button {
  display: inline-block;
  background-color: var(--first-color);
  color: var(--first-color-lighten);
  padding: 0.75rem 1.25rem;
  font-weight: var(--font-semi-bold);
  font-size: var(--normal-font-size);
  border-radius: 0.5rem;
  transition: 0.3s;
  border-radius: 3rem;
  text-transform: uppercase;
  word-spacing: 0.15rem;
  cursor: pointer;
}

.button:hover {
  /* background-color: var(--first-color-dark); */
  background-color: var(--text-color);
}

.button__light {
  background-color: var(--first-color-lighten);
  color: var(--first-color);
}

.button__light:hover {
  color: var(--first-color-lighten);
}

/* About */
.about__container {
  row-gap: 2rem;
}

.about__data {
  text-align: center;
  padding: 0.5rem 2rem;
}

.about__description {
  margin-bottom: var(--mb-4);
}

.about__img {
  width: 130px;
  border-radius: 0.5rem;
  margin: 1.5rem auto;
}

.about__information {
  margin-bottom: var(--mb-4);
}

.about__information-title {
  font-size: var(--h3-font-size);
  color: var(--first-color-dark);
  margin-bottom: var(--mb-2);
}

.about__information-data {
  display: flex;
  align-items: center;
  padding-left: 1.5rem;
  margin-bottom: var(--mb-3);
}

.about__information-icon {
  font-size: 1.5rem;
  /* color: var(--first-color); */
  color: var(--first-color-darken);
  margin-right: var(--mb-3);
}

.about__information-subtitle {
  display: block;
  font-weight: var(--font-semi-bold);
}

.about__information-subtitle-small {
  font-size: var(--small-font-size);
}

/* Skills */
.skills__container {
  row-gap: 2rem;
}

.skills__subtitle {
  font-size: var(--h3-font-size);
  color: var(--first-color-dark);
  margin-bottom: var(--mb-2);
  text-align: center;
}

.skills__data {
  position: relative;
  display: flex;
  justify-content: space-between;
  margin: 0 var(--mb-5);
  margin-bottom: var(--mb-3);
}

.skills__name {
  text-transform: uppercase;
}

.skill__icons {
  height: 1.5rem;
  width: 1.5rem;
  display: inline;
}

/* Contact */
.contact__container {
  row-gap: 3rem;
}

.contact__input {
  width: 100%;
  padding: 1rem;
  outline: none;
  border: none;
  background-color: var(--first-color-light);
  color: black;
  font-size: var(--normal-font-size);
  margin-bottom: var(--mb-2);
  border-radius: 0.5rem;
}

.contact ::placeholder {
  color: rgb(161, 155, 155);
  font-family: var(--body-font);
  font-weight: var(--font-medium);
}

.contact__form {
  margin: 4.5% 7.5%;
}

.contact__button {
  outline: none;
  border: none;
  font-family: var(--body-font);
  cursor: pointer;
  width: 50%;
  margin-left: 25%;
  text-align: center;
}

.contact__info {
  margin-bottom: var(--mb-3);
}

.contact__subtitle {
  font-size: var(--h3-font-size);
  color: var(--first-color-dark);
  margin-bottom: var(--mb-1);
}

.contact__text {
  display: block;
  padding-left: 1rem;
}

/* Footer */
.footer {
  background-color: var(--first-color-lighten);
  color: var(--first-color-lighten);
  text-align: center;
}

.footer__copy {
  font-size: var(--smaller-font-size);
  color: var(--text-color);
}

/* Cursor */
.txt-type > .txt {
  border-right: 0.15rem solid rgb(243, 201, 124);
}

.txt-type > .txt-hidden {
  border-right: none;
}

/* Media Queries */
@media screen and (min-width: 768px) {
  .home__button {
    width: initial;
  }

  .nav__menu {
    width: var(--nav-width);
  }

  .nav__toggle,
  .nav__logo,
  .nav__close {
    color: var(--text-color);
  }

  .about__container,
  .skills__container,
  .services__container,
  .works__container,
  .contact__inputs {
    grid-template-columns: repeat(2, 1fr);
  }

  .about__data {
    text-align: justify;
  }

  .about__description {
    margin-bottom: var(--mb-5);
  }

  .about__img {
    width: 200px;
  }

  .about__information {
    padding-left: 4rem;
  }

  .section {
    margin: 0 1rem;
  }

  .education__time {
    padding: 0 2rem;
  }

  .contact__inputs {
    display: grid;
    column-gap: 1.5rem;
  }

  .contact__info {
    padding-left: 3rem;
  }

  .footer {
    background: none;
  }

  .footer__container {
    background-color: var(--first-color-lighten);
    padding: 2rem 0;
    border-radius: 0.5rem;
  }
}

@media screen and (max-width: 768px) {
  .nav__toggle,
  .nav__logo,
  .nav__close {
    color: var(--text-color);
  }
}

@media screen and (min-width: 1024px) {
  body {
    margin: 0;
    padding-left: var(--nav-width);
  }

  .l-header {
    width: 0;
  }

  .nav__toggle,
  .nav__logo,
  .nav__close {
    display: none;
  }

  .nav__menu {
    left: 0;
  }

  .home__container {
    height: 100vh;
  }

  .section {
    padding: 3rem 0 2rem;
  }

  .bd-grid {
    margin-left: auto;
    margin-right: auto;
  }

  .services__container,
  .works__container {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact__form {
    margin: 4.5% 7.5%;
  }

  .contact__input {
    margin-bottom: var(--mb-4);
  }
}
