/*=============== BREAKPOINTS ===============*/
/* For large devices */
@media screen and (max-width: 992px) {
  .container {
    margin-left: var(--mb-1-5);
    margin-right: var(--mb-1-5);
  }

  .button {
    padding: 1rem 1.75rem;
  }

  .button__icon {
    width: 22px;
    height: 22px;
  }

  .home__top {
    gap: 2rem;
  }

  .home__data {
    margin-left: 2rem;
  }

  .home__social-link {
    font-size: 1.5rem;
  }

  .home__social::after {
    transform: rotate(90deg) translate(16px, 0);
  }

  .home__education::before {
    width: 4rem;
  }

  .home__education {
    padding-left: 5rem;
  }

  .about__img {
    width: 180px;
  }

  .about__description {
    padding: 0;
  }

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

  .about__box {
    padding: 0.75rem 0.5rem;
  }

  .skills__box {
    column-gap: 1.5rem;
  }

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

  .work__container {
    gap: 1.25rem;
  }

  .work__card {
    padding: 1rem;
  }

  .work__img {
    margin-bottom: 0.75rem;
  }

  .work__title {
    margin-bottom: 0.25rem;
  }
}

/* For medium devices */
@media screen and (max-width: 768px) {
  body {
    margin: 0 0 var(--header-height) 0;
  }

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

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

  .home.section {
    padding-top: 0.5rem;
  }

  .header {
    height: var(--header-height);
    position: relative;
  }

  .nav {
    height: 100%;
    align-items: flex-start;
  }

  .nav__logo {
    display: none;
  }

  .change-theme {
    top: 0.75rem;
    right: 1rem;
    font-size: 1.25rem;
  }

  .nav__menu {
    width: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
    background-color: var(--body-color);
    z-index: var(--z-fixed);
  }

  .nav__list {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0.5rem 1rem 1rem;
    gap: 0.5rem;
    margin: 0;
  }

  .nav__item {
    position: relative;
  }

  .nav__link {
    font-size: 1.5rem;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color .3s;
    position: relative;
  }

  .nav__link i {
    font-size: 1.5rem;
  }

  .nav__close,
  .nav__toggle {
    display: none;
  }

  .active-link {
    color: var(--title-color-dark);
  }

  .home__top {
    flex-direction: column;
    gap: 1.5rem;
  }

  .home__data {
    margin-left: 0;
    text-align: center;
  }

  .home__name {
    font-size: 2rem;
  }

  .home__surname {
    display: inline;
  }

  .home__social {
    display: none;
  }

  .home__education::before {
    display: none;
  }

  .home__education {
    padding-left: 0;
  }

  .button {
    width: 100%;
    justify-content: center;
  }

  /* Override full-width for See More Projects button on small screens */
  .work__see-more .button {
    width: auto;
    display: inline-flex;
  }

  .home__scroll {
    width: 100%;
    justify-content: center;
    margin-left: 0;
    flex-direction: row-reverse;
  }

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

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

  .skills__content {
    padding: 1.5rem;
  }

  .skills__content--full .skills__box {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 1rem;
  }

  .skills__box {
    flex-direction: column;
    row-gap: 1.5rem;
  }

  .services__container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .services__card {
    padding: 3rem 1rem 1rem;
  }

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

  .work__container {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

@media screen and (max-width: 576px) {
  .work__container {
    grid-template-columns: 1fr;
  }

  .work__img {
    width: 100%;
  }
}

/* For small devices */
@media screen and (max-width: 350px) {
  :root {
    --big-font-size: 2.25rem;
  }

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

  .home__content {
    padding: 1rem;
  }

  .home__social {
    column-gap: 0.75rem;
  }

  .home__data {
    padding: 0 1rem;
  }

  .home__description br {
    display: none;
  }

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

  .about__box {
    padding: 0.75rem 0.5rem;
  }

  .skills__box {
    column-gap: 1rem;
  }

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

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

  .services__card {
    padding: 2.5rem 1rem;
  }

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

  .work__filters {
    column-gap: 0.25rem;
  }
}

/* For large devices */
@media screen and (min-width: 968px) {
  body {
    margin: 0;
  }

  .container {
    margin-left: auto;
    margin-right: auto;
  }

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

  .section__subtitle {
    margin-bottom: 5rem;
  }

  .home__top {
    gap: 4rem;
    max-width: 1400px;
  }

  .home__data {
    max-width: 650px;
    margin-left: 4rem;
  }

  .home__social {
    row-gap: 2rem;
  }

  .home__social-link {
    font-size: 2rem;
  }

  .home__social::after {
    transform: rotate(90deg) translate(16px, 3px);
  }

  .home__education::before {
    width: 6rem;
  }

  .home__education {
    padding-left: 7rem;
  }

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

  .about__img {
    width: 350px;
  }

  .about__data {
    text-align: initial;
  }

  .about__info {
    justify-content: initial;
  }

  .about__box {
    text-align: center;
    padding: 1rem 1.25rem;
  }

  .about__description {
    padding: 0 4rem 0 0;
    margin-bottom: var(--mb-2-5);
  }

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

  .skills__content {
    padding: 2rem 2.5rem;
  }

  .skills__content--full .skills__box {
    grid-template-columns: repeat(4, 1fr);
    column-gap: 2rem;
  }

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

  .services__card {
    padding: 5rem 2rem 1.5rem;
  }

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

  .work__card {
    padding: 1.25rem;
  }

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

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

  .contact__container {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 3rem;
    padding-bottom: 3rem;
  }

  .contact__title {
    text-align: initial;
  }

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

  .footer__container {
    padding: 4rem 0 3rem;
  }

  .footer__list {
    column-gap: 3rem;
  }

  .footer__social {
    column-gap: 2rem;
  }
}
