/*=== GOOGLE FONTS LETTER ===*/

@import url("https://fonts.googleapis.com/css2?family=Geologica:wght@100;200;300;400;500;600;700;800;900&display=swap");

/*=== Variables ====*/
:root {
  --hue-color: 145;
  --first-color: hsl(var(--hue-color), 62%, 56%);
  --title-color: hsl(var(--hue-color), 8%, 15%);
  --text-color: hsl(var(--hue-color), 8%, 45%);
  --body-color: hsl(var(--hue-color), 60%, 98%);
  --container: #fff;

  --big-font: 1.25rem;
  --medium-font: 1.15rem;
  --small-font: 1rem;

  --body-font: "Geologica", sans-serif;
}

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  display: flex;
  flex-direction: column;
  margin: 0 0 3rem 0;
  font-size: var(--medium-font);
  color: var(--text-color);
  font-family: var(--body-font);
  background-color: var(--body-color);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: var(--text-color);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

p {
  line-height: 1.65rem;
}

.container {
  max-width: 768px;
  margin-left: 1.5rem;
  margin-right: 1.5rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

/*=== Section ===*/

.section {
  padding: 3rem 0 4rem;
  scroll-margin: 2rem;
}

.section__title,
.section__subtitle {
  text-align: center;
}

.section__title {
  font-size: 2rem;
  color: var(--title-color);
}

.section__subtitle {
  display: block;
  font-size: 1.25rem;
  margin-bottom: 4.5rem;
}

/*=== header && nav ===*/

.header {
  z-index: 100;
  width: 100%;
  position: fixed;
  background-color: var(--body-color);
  top: 0;
  right: 0;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.15);
}

.button {
  display: inline-flex;
  width: max-content;
  align-items: center;
  font-weight: 600;
  gap: 0.6rem;
  cursor: pointer;
  padding: 0.75rem 1rem;
  color: var(--title-color);
  border: none;
  border-radius: 0.5rem;
  background-color: var(--first-color);
}

.button--sm {
  max-width: max-content;
  width: auto;
}

.nav {
  max-width: 968px;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo,
.nav__toggle {
  color: var(--title-color);
  font-weight: 500;
  font-size: var(--medium-font);
  cursor: pointer;
}

.nav__logo:hover {
  color: var(--first-color);
}

.nav__toggle:hover {
  color: var(--first-color);
}

.nav__list {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: end;
}

.nav__link {
  font-size: var(--small-font);
  display: flex;
  gap: 1rem;
}

.nav__link:hover {
  color: var(--first-color);
}

/*=== home ===*/

.home__container {
  gap: 1rem;
  height: 100%;
  margin-top: auto;
  margin-bottom: auto;
}

.home__content {
  grid-template-columns: 0.5fr 3fr;
  align-items: center;
  padding-top: 5rem;
}

.home__social {
  display: grid;
  grid-template-columns: max-content;
  row-gap: 1rem;
}

.home__social-icon {
  font-size: 1.5rem;
  color: var(--text-color);
}

.home__social-icon :hover {
  color: var(--first-color);
}

.home__data {
  grid-column: 1/3;
}

.home__title {
  color: var(--title-color);
}

.home__description {
  padding: 1rem 0;
}

/*=== about  ===*/
.about__container {
  justify-items: center;
}

.about__img {
  object-fit: cover;
  width: 300px;
  height: 320px; 
  border-radius: 0.5rem;
  justify-self: center;
  align-self: center;
}

.about__description {
  text-align: center;
  margin-bottom: 2.5rem;
  max-width: 550px;
}

.about__button {
  display: flex;
  justify-content: center;
  align-content: center;
}

/*=== Portfolio ===*/
.portfolio__container {
  overflow: initial;
}

.portfolio__content {
  padding: 0rem 1.5rem;
}

.portfolio__img {
  border-radius: 0.5rem;
  border: 1px solid var(--title-color);
  justify-self: center;
}

.portfolio__title {
  font-size: 1.5rem;
  color: var(--title-color);
  margin-bottom: 1rem;
}

.portfolio__description {
  margin-bottom: 0.5rem;
}

/*=== Swiper ===*/
.swiper-button-next:after,
.swiper-button-prev:after {
  content: "";
}

.swiper-portfolio-icon {
  font-size: 1.5rem;
  color: var(--first-color);
}

.swiper-button-next {
  right: -0.75rem;
}

.swiper-button-prev {
  left: -0.75rem;
}

.swiper-horizontal > .swiper-pagination-bullets {
  bottom: -2rem !important;
}

.swiper-pagination-bullet-active {
  background-color: var(--first-color);
}

/*== Footer ===*/
.footer {
  background-color: var(--first-color);
  height: 200px;
  color: var(--title-color);
}

.active-link {
  border-bottom: 1px solid var(--first-color);
  color: var(--first-color);
}

@media screen and (min-width: 568px) {
  .home__container {
    row-gap: 3rem;
  }
  .home__content {
    grid-template-columns: max-content 1fr 1fr;
  }

  .home__data {
    grid-column: initial;
  }

  .home__img {
    order: 1;
    justify-self: center;
  }

  .home__img-blub{
    width: 300px;
    min-width: 200px;
  }

  .about__content {
    display: grid;
    grid-template-columns: 0.5fr 1fr;
  }

  .about__img {
    width: 350px;
  }
}

@media screen and (min-width: 768px) {
  .container {
    margin-left: auto;
    margin-right: auto;
  }
  .section {
    padding: 8rem 0 5rem;
  }

  .header {
    padding: 0 1rem;
  }

  .nav__list {
    flex-direction: row;
    column-gap: 2rem;
  }

  #item-collapsed {
    display: none;
  }

  .nav__link i {
    display: none;
  }

  .nav__buttons {
    display: none;
  }

  .home__container {
    padding: 0 1rem;
  }
  
  .home__img-blub {
    width: 350px;
  }

  .about__container{
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
  }

  .about__data{
    
  }

  .about__description{
    text-align: justify;
  }

  .about__button{
    flex-wrap: wrap;
    justify-content: start;
    align-content: flex-end;
  }

  .about__button .button{
    height: 55px;
  }

  .about__img {
    object-fit: cover;
    
  }
  .portfolio{
      padding-bottom: 16.5rem;
  }

  .portfolio__content{
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (min-width: 1000px) {
  .home__content {
    grid-template-columns: max-content 390px 1fr;
  }
  .home__social {
    transform: translateX(-110px);
  }

  .home__title {
    font-size: 2.9rem;
  }

  .home__subtitle {
    font-size: 2rem;
  }
}

@media screen and (max-width: 767.99px) {
  .active-link {
    border: none;
  }
  .nav__menu {
    position: fixed;
    top: -100%;
    right: 0;
    width: 100%;
    background-color: var(--body-color);
    padding: 2rem 1.5rem 3rem;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.15);
    border-radius: 0 0 1.5rem 1.5rem;
    transition: all 0.5s;
  }

  .show-menu {
    top: 0%;
  }
}

@media screen and (max-width: 767.99px) {
}
