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

:root {
  /* Colors */
  --hue-color: 242;

  /* HSL Color Mode */
  --skin-color: hsl(342, 92%, 46%);
  --title-color: hsl(var(--hue-color), 8%, 95%);
  --text-color: hsl(var(--hue-color), 8%, 85%);
  --body-color: hsl(var(--hue-color), 19%, 5%);
  --box-color: hsl(var(--hue-color), 14%, 10%);
  --scroll-bar-color: hsl(var(--hue-color), 12%, 38%);
  --scroll-thumb-color: hsl(var(--hue-color), 12%, 26%);

  /* FONT */
  --body-font: "Poppins", sans-serif;

  /* Font Size */
  --biggest-font-size: 3rem;
  --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;

  /* Font Weight */
  --font-medium: 500;
  --font-bold: 600;

  /* Margenes Bottom */
  --mb-0-25: 0.25rem;
  --mb-0-5: 0.5rem;
  --mb-0-75: 0.75rem;
  --mb-1: 1rem;
  --mb-1-5: 1.5rem;
  --mb-2: 2rem;
  --mb-2-5: 2.5rem;
  --mb-3: 3rem;

  /* Z Index */
  --z-fixed: 10;
  --z-model: 100;
}

/* Responsive Typography */
@media (max-width: 1024px) {
  :root {
    --biggest-font-size: 2rem;
    --h1-font-size: 1.5rem;
    --h2-font-size: 1.25rem;
    --h3-font-size: 1.125rem;
    --normal-font-size: 0.938rem;
    --small-font-size: 0.813rem;
    --smaller-font-size: 0.75rem;
  }
}

/* BASE */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

/* *:focus{
  outline: none;
} */

/* html {
  scroll-behavior: smooth;
} */

body,
button,
input {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
}

body {
  background-color: var(--body-color);
  color: var(--text-color);
}

h1,
h2,
h3 {
  color: var(--title-color);
  font-weight: var(--font-bold);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

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

button {
  cursor: pointer;
}

button,
input {
  border: none;
  outline: none;
}

/* =======================LAYOUT============================ */
.container {
  max-width: 78.125rem;
  margin-left: auto;
  margin-right: auto;
}

.grid {
  display: grid;
}

/* ================REUSABLE CSS CLASSES====================== */
.section {
  padding: 6.5rem 0 2rem;
  /* padding: 12.5rem 0 2rem; */
}

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

.section__title::before {
  content: attr(data-heading);
  display: block;
  font-size: var(--normal-font-size);
  font-weight: var(--font-medium);
  color: var(--skin-color);
}

/* =======================SIDEBAR============================ */
.sidebar {
  position: fixed;
  width: 6.25rem;
  height: 100vh;
  background-color: var(--body-color);
  border-right: 1px solid var(--box-color);
}

/* .nav__logo {
  position: absolute;
  left: 0;
  right: 0;
  top: 1.8rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: var(--skin-color);
  text-align: center;
  margin: auto;
} */

/* .nav__logo-text {
  font-size: 1rem;
  color: var(--title-color);
  font-weight: var(--font-bold);
  line-height: 2.5rem;
} */

.nav__menu {
  position: fixed;
  transform: rotate(-90deg) translateX(-100%);
  transform-origin: left top;
  width: 100vh;
}

.menu {
  /* display: flex; */
}

.nav__list {
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-evenly;
  margin: -2px auto 0 auto;
}

.nav__link {
  float: right;
  height: 100%;
  line-height: 6.25rem;
  padding: 0 1rem;
  color: var(--title-color);
  font-weight: var(--font-medium);
  position: relative;
  transition: 0.4s;
}

/* .btn__share {
  position: absolute;
  bottom: 1.8rem;
  left: 0;
  right: 0;
  text-align: center;
}

.social__share {
  font-size: 1.5rem;
} */

/* Active Link */

/* to avoid hover styles to display on touch devices */
@media (hover: hover) {
  .nav__link.active-link,
  .nav__link:hover {
    color: var(--skin-color);
  }

  .nav__link.active-link::after,
  .nav__link:hover::after {
    content: "";
    position: absolute;
    width: 0.375rem;
    height: 0.375rem;
    background-color: var(--skin-color);
    border-radius: 50%;
    bottom: 1.8rem;
    left: 0;
    right: 0;
    margin: auto;
  }
}

.nav__link.active-link,
.nav__link:active {
  color: var(--skin-color);
}

.nav__link.active-link::after,
.nav__link:active::after {
  content: "";
  position: absolute;
  width: 0.375rem;
  height: 0.375rem;
  background-color: var(--skin-color);
  border-radius: 50%;
  bottom: 1.8rem;
  left: 0;
  right: 0;
  margin: auto;
}

/* =====================PHONE NAV=========================== */
.sidebar-phone {
  position: fixed;
  background-color: rgba(0, 0, 0, 0.3);
  top: 1.5rem;
  padding: 0 1.2rem;
  z-index: 2000;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 3rem;
  backdrop-filter: blur(15px);
  display: none;
}

.nav__menu-phone {
  display: flex;
  height: 4.4rem;
  align-items: center;
  justify-content: center;
}

.nav__list-phone {
  display: flex;
  gap: 1rem;
}

.nav__link-phone {
  float: right;
  height: 100%;
  /* line-height: 6.25rem; */
  padding: 0 1rem;
  color: var(--title-color);
  font-weight: var(--font-medium);
  position: relative;
  transition: color 0.4s;
}

.nav__icon-phone {
  font-size: 1.2rem;
}

/* Active Link Phone */

/* to avoid hover styles to display on touch devices */
@media (hover: hover) {
  .nav__link-phone.active-link,
  .nav__link-phone:hover {
    color: var(--skin-color);
  }

  .nav__link-phone.active-link::after,
  .nav__link-phone:hover::after {
    content: "";
    position: absolute;
    display: block;
    width: 100%;
    padding-bottom: 100%;
    background-color: #16161a;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
  }
}

.nav__link-phone.active-link,
.nav__link-phone:active {
  color: var(--skin-color);
}

.nav__link-phone.active-link::after,
.nav__link-phone:active::after {
  content: "";
  position: absolute;
  display: block;
  width: 100%;
  padding-bottom: 100%;
  background-color: #16161a;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
}

/* .nav__link-phone.active-link::after,
.nav__link-phone:hover::after {
  content: "";
  position: absolute;
  width: 0.375rem;
  height: 0.375rem;
  background-color: var(--skin-color);
  border-radius: 50%;
  bottom: 1.8rem;
  left: 0;
  right: 0;
  margin: auto;
} */

/* =======================MAIN============================ */
.main {
  margin-left: 6.25rem;
}

/* Home Section */
.home {
  height: 100vh;
  background-color: rgb(24, 24, 30);
  /* background: url(../img/bc-profile.png);
  background-size: cover;
  background-position: right bottom; */
}

.home__container {
  position: relative;
  height: 100%;
  align-items: center;
}

.home__social {
  position: absolute;
  top: 1.8rem;
  display: flex;
  align-items: center;
  column-gap: 3.5rem;
}

.home__social-follow {
  font-weight: var(--font-medium);
  position: relative;
}

.home__social-follow::after {
  content: "";
  position: absolute;
  width: 1rem;
  height: 0.125rem;
  background-color: var(--text-color);
  right: -45%;
  top: 50%;
}

.home__social-links {
  display: inline-flex;
  column-gap: 1rem;
}

.home__social-link {
  font-size: 1.2rem;
  color: var(--text-color);
  transition: 0.4s;
}

/* to avoid hover styles to display on touch devices */
@media (hover: hover) {
  .home__social-link:hover {
    transform: translateY(0.25rem);
  }
}

.home__social-link:active {
  transform: translateY(0.25rem);
}

.home__img {
  position: absolute;
  width: 28.125rem;
  left: 50%;
}

.home__title {
  font-size: var(--biggest-font-size);
}

.home__subtitle {
  font-size: var(--h3-font-size);
  font-weight: var(--font-medium);
  margin-bottom: var(--mb-2);
}

.home__description {
  max-width: 28.125rem;
  margin-bottom: var(--mb-2);
}

.my__info {
  display: flex;
  column-gap: 1.8rem;
  position: absolute;
  left: 0;
  bottom: 1.8rem;
}

.info__item {
  display: flex;
  align-items: center;
}

.info__item-button {
  display: flex;
  align-items: center;
}

.info__item a .info__subtitle {
  color: var(--text-color);
  font-size: var(--small-font-size);
}

.info__title,
.info__subtitle {
  font-size: var(--small-font-size);
}

.info__title {
  font-weight: var(--font-medium);
}

.info__icon {
  font-size: 2.5rem;
  color: var(--skin-color);
  margin-right: var(--mb-0-75);
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  column-gap: 0.5rem;
  background-color: var(--skin-color);
  color: var(--title-color);
  padding: 0.75rem 1.4rem;
  border-radius: 0.24rem;
  font-weight: var(--font-medium);
  position: relative;
  z-index: 1;
}

.button::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: #343140;
  z-index: -1;
  transform-origin: center;
  transform: scale(0);
  border-radius: 0.25rem;
  transition: 0.3s;
}

/* to avoid hover styles to display on touch devices */
@media (hover: hover) {
  .button:hover::after {
    transform: scale(1);
  }
}

/* .button:hover::after {
  transform: scale(1);
} */

.button__icon {
  font-size: 1.25rem;
}

/* About section*/
.about__container {
  grid-template-columns: repeat(2, 1fr);
  column-gap: 4rem;
  align-items: center;
}

.about__img {
  width: 480px;
  border-radius: 0.75rem;
  justify-self: center;
}

.about__heading {
  font-size: var(--h3-font-size);
  margin-bottom: var(--mb-0-75);
}

.about__description {
  text-align: justify;
  padding-right: 6rem;
  margin-bottom: var(--mb-2);
}

/* Skills section */

.skills__container {
  grid-template-columns: 22.5rem 20rem;
  column-gap: 3rem;
  justify-content: center;
}

.skills__header {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.skills__header:not(:last-child) {
  margin-bottom: var(--mb-2-5);
}

.skills__icon,
.skills__arrow {
  font-size: 2rem;
  color: var(--skin-color);
}

.skills__icon {
  margin-right: var(--mb-0-75);
}

.skills__title {
  font-size: var(--h3-font-size);
  font-weight: var(--font-medium);
}

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

.skills__arrow {
  margin-left: auto;
}

.skills__active .skills__arrow {
  transform: rotate(-90deg);
  transition: 0.3s;
}

.skills [data-content] {
  display: none;
}

.skills__list {
  row-gap: 1.8rem;
}
.skills__active[data-content] {
  display: block;
}

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

.skills__name {
  font-size: var(--normal-font-size);
  font-weight: var(--font-medium);
}

.skills__bar,
.skills__percentage {
  height: 0.3125rem;
  border-radius: 0.25rem;
}

.skills__bar {
  background-color: var(--box-color);
}

.skills__percentage {
  display: block;
  background-color: var(--skin-color);
}

/* Work Section */
.work__container {
  grid-template-columns: repeat(3, 20.625rem);
  gap: 1.8rem;
  justify-content: center;
  padding-top: 1rem;
}

.work__filters {
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: 0.75rem;
  margin-bottom: 2rem;
}

.work__item {
  cursor: pointer;
  color: var(--title-color);
  padding: 0.25rem 0.75rem;
  font-weight: var(--font-medium);
  border-radius: 0.5rem;
}

.work__card {
  background-color: var(--box-color);
  padding: 1.25rem;
  border-radius: 0.5rem;
/*   display: flex;
  flex-direction: column; */
}

.portfolio__item-details {
  display: none;
}

.work__img {
  border-radius: 0.5rem;
  margin-bottom: var(--mb-1);
  width: 100%;
  height: 70%;
/*   min-width: 100%; */
  /* align-self: flex-start; */
}

.work__title {
  font-size: var(--normal-font-size);
  font-weight: var(--font-medium);
  margin-bottom: var(--mb-0-5);
}

.work__button {
  color: var(--skin-color);
  font-size: var(--small-font-size);
  display: flex;
  align-items: center;
  column-gap: 0.25rem;
  cursor: pointer;
}

.work__button-icon {
  font-size: 1rem;
  transition: 0.3s;
}

.work__button:hover .work__button-icon {
  transform: translateX(0.25rem);
}

.work__buttons {
  display: flex;
  justify-content: space-between;
}

.work__button-git {
  color: var(--skin-color);
  font-size: 2rem;
  cursor: pointer;
  transition: 0.3s;
}

.work__button-git a {
  color: var(--skin-color);
}

/* to avoid hover styles to display on touch devices */
@media (hover: hover) {
  .work__button-git:hover {
    transform: scale(1.2);
  }
}

.work__button-git:active {
  transform: scale(1.2);
}

/* Active Item  Work */
.active-work {
  background-color: var(--skin-color);
  color: var(--title-color);
}

/* Portfolio popup */
.portfolio__popup {
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 1rem;
  z-index: 2001;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
}

.portfolio__popup.open {
  opacity: 1;
  visibility: visible;
}

.portfolio__popup-inner {
  background-color: var(--box-color);
  width: 900px;
  border-radius: 0.5rem;
  padding: 2.5rem;
  position: relative;
}

.portfolio__popup-content {
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  column-gap: 3rem;
}

.portfolio__popup-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 1.5rem;
  color: var(--skin-color);
  cursor: pointer;
}

.portfolio__popup-img {
  border-radius: 0.5rem;
}

.portfolio__popup-subtitle {
  font-size: var(--smaller-font-size);
  margin-bottom: var(--mb-0-25);
}

.details__title {
  font-size: var(--h3-font-size);
  font-weight: var(--font-medium);
  margin-bottom: var(--mb-1);
}

.details__description {
  font-size: var(--small-font-size);
  margin-bottom: var(--mb-2);
}

.details__info li {
  margin-bottom: var(--mb-0-75);
  text-transform: capitalize;
  font-size: var(--small-font-size);
}

.details__info li:last-child {
  margin-bottom: 0;
}

.details__info li span {
  font-weight: normal;
}

.details__info li a {
  /* text-transform: lowercase; */
  color: var(--skin-color);
}

/* Services Section */
.services__container {
  grid-template-columns: repeat(2, 15.625rem);
  justify-content: center;
  column-gap: 1.8rem;
}

.services__content {
  position: relative;
  background-color: var(--box-color);
  padding: 6rem 0 2rem 2.5rem;
  border-radius: 0.25rem;
}

.services__icon {
  display: block;
  font-size: 1.8rem;
  color: var(--skin-color);
  margin-bottom: var(--mb-1);
}

.services__title {
  font-size: var(--h3-font-size);
  margin-bottom: var(--mb-1);
  font-weight: var(--font-medium);
}

.services__button {
  color: var(--skin-color);
  font-size: var(--small-font-size);
  display: flex;
  align-items: center;
  column-gap: 0.25rem;
  cursor: pointer;
}

.services__button-icon {
  font-size: 1rem;
  transition: 0.3s;
}

.services__button:hover .services__button-icon {
  transform: translateX(0.25rem);
}

.services__model {
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 1rem;
  z-index: 2001;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
}

.services__model-content {
  width: 31.25rem;
  position: relative;
  background-color: var(--box-color);
  padding: 4.5rem 2.5rem 2.5rem;
  border-radius: 0.5rem;
}

.services__model-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 1.5rem;
  color: var(--skin-color);
  cursor: pointer;
}

.services__model-title,
.services__model-description {
  text-align: center;
}

.services__model-title {
  font-size: var(--h3-font-size);
  font-weight: var(--font-medium);
  margin-bottom: var(--mb-1);
}
.services__model-description {
  font-size: var(--small-font-size);
  padding: 0 3.5rem;
  margin-bottom: var(--mb-2);
}

.services__model-services {
  row-gap: var(--mb-0-75);
}

.services__model-service {
  display: flex;
  align-items: center;
  column-gap: 0.5rem;
}

.services__model-icon {
  color: var(--skin-color);
  font-size: 1.1rem;
}

.services__model-info {
  font-size: var(--small-font-size);
}

/* Active model */
.active-model {
  opacity: 1;
  visibility: visible;
}

/* Contact Section */
.contact__container {
  grid-template-columns: 18.75rem 21.25rem;
  column-gap: 3rem;
  justify-content: center;
  align-items: center;
}

.contact__info {
  display: grid;
  row-gap: 1rem;
}

.contact__card {
  background-color: var(--box-color);
  padding: 1rem;
  border-radius: 0.5rem;
  text-align: center;
}

.contact__info a .contact__card-data {
  color: var(--text-color);
}

.contact__card-icon {
  font-size: 1.8rem;
  color: var(--title-color);
  margin-bottom: var(--mb-0-25);
}

.contact__card-title,
.contact__card-data {
  font-size: var(--small-font-size);
}

.contact__card-title {
  font-weight: var(--font-medium);
}

.contact__card-data {
  display: block;
  margin-bottom: var(--mb-0-75);
}

.contact__button {
  color: var(--skin-color);
  font-size: var(--small-font-size);
  display: flex;
  align-items: center;
  justify-content: center;
  column-gap: 0.25rem;
  cursor: pointer;
}

.contact__button-icon {
  font-size: 1rem;
  transition: 0.3s;
}

/* to avoid hover styles to display on touch devices */
@media (hover: hover) {
  .contact__button:hover .contact__button-icon {
    transform: translateX(0.25rem);
  }
}

.contact__button:active .contact__button-icon {
  transform: translateX(0.25rem);
}

.input__container {
  position: relative;
  margin-top: 0.1rem;
  margin-bottom: 1.9rem;
}

.input {
  width: 100%;
  border: 2px solid var(--text-color);
  background-color: transparent;
  padding: 0.6rem 1.2rem;
  color: var(--title-color);
  font-weight: var(--font-medium);
  font-size: var(--normal-font-size);
  letter-spacing: 0.5px;
  outline: none;
  border-radius: 0.5rem;
  transition: 0.3s;
}

textarea.input {
  padding: 0.8rem 1.2rem;
  min-height: 8.75rem;
  border-radius: 0.5rem;
  resize: none;
}

.input__container label {
  position: absolute;
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);
  padding: 0 0.4rem;
  color: var(--text-color);
  font-size: 1rem;
  font-weight: var(--font-medium);
  pointer-events: none;
  z-index: 1000;
  transition: 0.5s;
}

.input__container.textarea label {
  top: 1rem;
  transform: translateY(0);
}

.input__container span {
  position: absolute;
  top: 0;
  left: 1.56rem;
  color: transparent;
  transform: translateY(-50%);
  font-size: var(--small-font-size);
  padding: 0 0.4rem;
  pointer-events: none;
  z-index: 500;
}

.input__container span::before,
.input__container span::after {
  content: "";
  position: absolute;
  width: 10%;
  height: 5px;
  opacity: 0;
  background-color: var(--body-color);
  top: 50%;
  transform: translateY(-50%);
  transition: 0.3s;
}

.input__container span::before {
  left: 50%;
}

.input__container span::after {
  right: 50%;
}

.input__container.focus label {
  top: 0;
  transform: translateY(-50%);
  left: 1.56rem;
  font-size: var(--smaller-font-size);
}

.input__container.focus span::before,
.input__container.focus span::after {
  width: 50%;
  opacity: 1;
}

/* ==================FOOTER================ */
.footer {
  padding-top: 2rem;
}

.footer__container {
  grid-template-columns: repeat(3, 1fr);
  column-gap: 1.6rem;
}

.footer__bg {
  background-color: var(--box-color);
  padding: 3rem 0 3.5rem;
}

.footer__title {
  font-size: var(--h1-font-size);
  margin-bottom: var(--mb-0-25);
}

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

.footer__links {
  display: flex;
  justify-content: center;
  column-gap: 2rem;
}

.footer__link:hover {
  color: var(--skin-color);
}

.footer__socials {
  justify-self: flex-end;
}

.footer__social {
  font-size: 1.25rem;
  margin-right: var(--mb-1-5);
}

/* to avoid hover styles to display on touch devices */
@media (hover: hover) {
  .footer__social:hover {
    color: var(--skin-color);
  }
}

.footer__social:active {
  color: var(--skin-color);
}

.footer__copy {
  font-size: var(--smaller-font-size);
  text-align: center;
  margin-top: 4.5rem;
}

.footer__title,
.footer__subtitle,
.footer__link,
.footer__social {
  color: var(--title-color);
}

/*============================= SCROLL BAR============================= */
::-webkit-scrollbar {
  width: 0.6rem;
  background-color: var(--scroll-bar-color);
  border-radius: 0.5rem;
}

::-webkit-scrollbar-thumb {
  background-color: var(--scroll-thumb-color);
  border-radius: 0.5rem;
}

/* =====Form overlay modal=============== */
.message__form-container {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  z-index: 2001;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
}

.message__form {
  background-color: var(--box-color);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  row-gap: 1.9rem;
  width: 30.25rem;
  background-color: var(--box-color);
  padding: 3.5rem 2.5rem 2.5rem;
  border-radius: 0.5rem;
}

/* Active Form overlay modal */
.active-form-model {
  opacity: 1;
  visibility: visible;
}

/* ====================BREAKPOINTS=========================== */

@media (max-width: 1408px) {
  .container {
    margin-left: var(--mb-2-5);
    margin-right: var(--mb-2-5);
  }

  .about__description {
    padding-right: 0;
  }
}

@media (max-width: 1216px) {
  .about__container {
    column-gap: 2.5rem;
  }

  .about__description {
    padding-right: 0;
  }

  .work__container {
    grid-template-columns: repeat(2, 20.6rem);
    gap: 2.5rem;
  }
}

@media (max-width: 1024px) {
  .home {
    height: 100vh;
    align-items: initial;
  }

  .home__container {
    row-gap: 2rem;
  }

  .home__img {
    position: static;
    display: block;
    width: 15.625rem;
    margin-top: 4rem;
    justify-self: center;
  }

  .home__social {
    left: initial;
    right: -1rem;
    flex-direction: column;
    row-gap: 3.5rem;
  }

  .home__social-follow {
    font-size: var(--smaller-font-size);
    transform: rotate(90deg);
  }

  .home__social-links {
    flex-direction: column;
    row-gap: 0.25rem;
  }

  .home__social-link {
    font-size: var(--normal-font-size);
  }

  .my__info {
    display: none;
  }

  .container {
    margin-left: var(--mb-1-5);
    margin-right: var(--mb-1-5);
  }

  .sidebar {
    display: none;
  }

  .sidebar-phone {
    display: block;
  }

  .main {
    margin-left: 0;
  }

  .about__img {
    width: 21.9rem;
  }

  .about__container {
    grid-template-columns: 1fr;
    row-gap: 2.5rem;
  }

  .about__data {
    text-align: center;
  }

  .about__description {
    padding: 0 4rem;
    text-align: center;
  }

  .skills__container {
    grid-template-columns: 21.25rem 18.75rem;
  }

  .skills__list {
    row-gap: 1.7rem;
  }

  .work__card {
    padding: 1rem;
  }

  .work__img {
    margin-bottom: var(--mb-0-75);
  }

  .work__title {
    margin-bottom: var(--mb-0-25);
  }

  .services__container {
    grid-template-columns: repeat(2, 13.75rem);
  }

  .portfolio__item-details {
    margin-bottom: var(--mb-1-5);
  }

  .details__info li {
    margin-bottom: var(--mb-0-5);
  }

  .details__title {
    margin-bottom: var(--mb-0-75);
  }

  .home__social {
    margin-top: 6.25rem;
    left: initial;
    right: -1rem;
    flex-direction: column;
    row-gap: 3.5rem;
  }

  .home__social-follow {
    font-size: var(--smaller-font-size);
    transform: rotate(90deg);
  }

  .home__social-links {
    flex-direction: column;
    row-gap: 0.25rem;
  }

  .home__social-link {
    font-size: var(--normal-font-size);
  }

  .message__form {
    width: 24.25rem;
  }
}

/* For Medium Devices */
@media (max-width: 768px) {
  .about__img {
    width: 15.6rem;
  }

  .skills__container {
    grid-template-columns: 18.75rem;
    row-gap: 3rem;
  }

  .work__container {
    grid-template-columns: 20.6rem;
  }

  .services__container {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .services__content {
    padding: 3.5rem 0.5rem 1.25rem 1.5rem;
  }

  .services__icon {
    font-size: 1.5rem;
  }

  .contact__container {
    grid-template-columns: 22.5rem;
    row-gap: 3rem;
  }

  .footer__container {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 3rem;
  }

  .footer__socials {
    justify-self: start;
  }

  .footer__links {
    flex-direction: column;
    row-gap: 1.5rem;
    justify-self: flex-end;
  }

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

  .footer__copy {
    margin-top: var(--mb-3);
  }

  .portfolio__popup-inner {
    width: 26.25rem;
    padding: 2.8rem 1.5rem 2.5rem;
  }

  .portfolio__popup-content {
    grid-template-columns: 1fr;
    row-gap: 1.6rem;
  }

  .details__title {
    font-size: var(--normal-font-size);
  }

  .portfolio__popup-close {
    top: 0.5rem;
  }

  .skills__arrow {
    transform: rotate(-90deg);
    margin-left: auto;
  }

  .skills__active .skills__arrow {
    transform: rotate(0);
    transition: 0.3s;
  }
}

@media (max-width: 580px) {
  .home {
    height: 100vh;
    align-items: initial;
  }

  .home__container {
    row-gap: 2rem;
  }

  .home__img {
    position: static;
    width: 15.625rem;
    margin-top: 4rem;
    justify-self: center;
  }

  .home__social {
    left: initial;
    right: -1rem;
    flex-direction: column;
    row-gap: 3.5rem;
  }

  .home__social-follow {
    font-size: var(--smaller-font-size);
    transform: rotate(90deg);
  }

  .home__social-links {
    flex-direction: column;
    row-gap: 0.25rem;
  }

  .home__social-link {
    font-size: var(--normal-font-size);
  }

  .my__info {
    display: none;
  }

  .about__description {
    padding: 0;
  }

  .services__model-content {
    padding: 4.5rem 1.5rem 2.5rem;
  }

  .services__model-description {
    padding: 0;
  }

  .work__container,
  .contact__container {
    grid-template-columns: 18.75rem;
  }

  .footer__container {
    grid-template-columns: 1fr;
  }

  .footer__links {
    justify-self: start;
  }

  .message__form {
    width: 22.25rem;
    font-size: var(--smaller-font-size);
  }
}

/* FOR SMALL DEVICES */
@media (max-width: 440px) {
  .container {
    margin-left: var(--mb-1);
    margin-right: var(--mb-1);
  }

  .home__img {
    position: static;
    width: 12.5rem;
    justify-self: center;
  }

  .home__title {
    font-size: var(--h1-font-size);
  }

  .home__subtitle {
    font-size: var(--normal-font-size);
  }

  .work__container,
  .contact__container,
  .skills__container {
    grid-template-columns: 1fr;
  }

  .skills__title {
    font-size: var(--normal-font-size);
  }

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

  .work__filters {
    column-gap: 0.25rem;
  }

  .services__container {
    grid-template-columns: max-content;
  }

  .services__content {
    padding-right: 3.5rem;
  }

  .nav__list-phone {
    gap: 0;
  }
  .sidebar-phone {
    padding: 0 0.5rem;
  }

  .message__form {
    width: 18.25rem;
    padding: 3.5rem 1.5rem 2.5rem;
  }
}
