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

/*=============== VARIABLES CSS ===============*/
/* Основные переменные и настройки */
:root {
  /* Размеры */
  --header-height: 3.5rem;

  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  /* 
      Change favorite color
      Default: hsl(162, 100%, 40%)
      Orange: hsl(14, 100%, 65%) - Blue: hsl(210, 100%, 70%)
      Pink: hsl(356, 100%, 75%) - Purple: hsl(250, 100%, 75%)

      For more colors visit: https://colors.dopely.top/color-pedia
      -> Choose any color 
      -> click on tab (Color Conversion)
      -> Copy the color mode (HSL)
  */

  /* Цветовая схема в HSL */
  --hue: 162;
  --first-color: hsl(var(--hue), 100%, 40%);
  --first-color-alt: hsl(var(--hue), 56%, 35%);
  --title-color: hsl(228, 8%, 95%);
  --text-color: hsl(228, 8%, 65%);
  --body-color: hsla(240, 5%, 21%, 0.523);
  --container-color: hsla(216, 6%, 16%, 0.638);

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  /* Типография */
  --body-font: "Poppins", sans-serif;
  --biggest-font-size: 2rem;
  --bigger-font-size: 1.25rem;
  --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;
  /*========== Font weight ==========*/
  /* Насыщенность шрифта */
  --font-regular: 400;
  --font-medium: 500;
  --font-semi-bold: 600;

  /*========== z index ==========*/
  /* z-index слои */
  --z-tooltip: 10;
  --z-fixed: 100;
}

/*========== Responsive typography ==========*/
@media screen and (min-width: 1152px) {
  :root {
    --biggest-font-size: 4rem;
    --bigger-font-size: 2rem;
    --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 ===============*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

/* Сброс стилей для форм */
input,
textarea,
button,
body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
}

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

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

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

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

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

/*=============== REUSABLE CSS CLASSES ===============*/
/* Основной контейнер для центрирования контента */
.container {
  max-width: 1120px;
  margin-inline: 1.5rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.section {
  padding-block: 5rem 2rem;
  position: relative;
  z-index: 1;
}

.section__title,
.section__subtitle {
  text-align: center;
  color: var(--title-color);
  font-weight: var(--font-semi-bold);
}

.section__title {
  font-size: var(--h1-font-size);
  margin-bottom: 1.5rem;
}

.section__subtitle {
  font-size: var(--small-font-size);
  margin-bottom: 0.25rem;
}

.section__subtitle span {
  color: var(--first-color);
}

.main {
  overflow-x: hidden;
}

/*=============== HEADER & NAV ===============*/
.header {
  position: fixed;
  width: 100%;
  background-color: var (--container-color);
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
}

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

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

.nav__logo span {
  color: var(--first-color);
}

.nav__toggle,
.nav__close {
  display: flex;
  font-size: 1.25rem;
  color: var(--title-color);
  cursor: pointer;
}

/* Navigation for mobile devices */
@media screen and (max-width: 1023px) {
  .nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    border-color: hsla(0, 0%, 10%, 0.3);
    width: 75%;
    height: 100%;
    padding: 4.5rem 0 0 3rem;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    transition: right 0.4s;
    visibility: hidden;
    pointer-events: none;
  }

  .nav__menu.show-menu {
    visibility: visible;
    pointer-events: auto;
  }
}

.nav__list {
  display: flex;
  flex-direction: column;
  row-gap: 3rem;
}

.nav__link {
  color: var(--title-color);
  font-weight: var(--font-medium);
  transition: color 0.4s;
}

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

.nav__close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
}

/* Show menu */
.show-menu {
  right: 0;
}

/* Add blur to header */
.blur-header {
  background-color: transparent;
}

.blur-header::after {
  content: "";
  position: absolute;
  width: 1000%;
  height: 100%;
  background-color: hsla(0, 0%, 10%, 0.3);
  backdrop-filter: blur(24px);
  --webkit-backdrop-filter: blur(24px);
  top: 0;
  left: 0;
  z-index: -1;
}

/* Active link */
.active-link {
  color: var(--first-color);
}

/*=============== HOME ===============*/
.home {
  background-color: var(--container-color);
}

.home__container {
  padding-top: 2rem;
  row-gap: 2.5rem;
}

.home__content {
  display: grid;
  row-gap: 2rem;
}

.home__data {
  text-align: center;
}

.home__data .button {
  margin: 0.5rem;
}

.home__subtitle,
.home__education {
  font-size: var(--bigger-font-size);
}

.home__subtitle span,
.home__title {
  color: var(--first-color);
}

.home__title {
  font-size: var(--bigger-font-size);
  font-weight: var(--font-semi-bold);
}

.home__description {
  margin-block: 1rem 1.5rem;
}

.home__social {
  display: flex;
  justify-content: center;
  column-gap: 1.25rem;
}

.home__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 10;
  background-color: var(--first-color-alt);
  padding: 0.5rem;
  color: var(--title-color);
  font-size: 1.5rem;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  transition: transform 0.4s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  min-width: 44px;
  min-height: 44px;
}

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

.home__image {
  justify-self: center;
}

.home__blob {
  width: 320px;
  /* Fill is handled in HTML */
  filter: drop-shadow(0 12px 12px hsla(var(--hue), 100%, 40%, 0.2));
}

.home__blob-profile-bg {
  transition: fill 0.4s;
}

.home__blob-border {
  transition: stroke 0.4s;
}

.home__img {
  width: 900px;
  transform: translateX(-120px);
}

/*=============== BUTTON ===============*/

/*=============== ABOUT ===============*/
.about__container {
  row-gap: 2.5rem;
}

.about__data {
  text-align: center;
}

.about__description {
  margin-bottom: 2rem;
}

.about__image {
  justify-self: center;
}

.about__blob path {
  stroke: var(--first-color);
}

/*=============== SKILLS ===============*/
.skills {
  background-color: var(--container-color);
}

.skills__container {
  padding-bottom: 2rem;
  row-gap: 3.5rem;
}

.skills__data {
  text-align: center;
}

.skills__description {
  margin-bottom: 2rem;
}

.skills__content,
.skills__group {
  display: grid;
}

.skills__content {
  grid-template-columns: minmax(0, 1fr);
  row-gap: 1rem;
  justify-content: stretch;
  align-items: baseline;
}

.skills__group {
  row-gap: 1rem;
  list-style: decimal-leading-zero;
  list-style-position: inside;
  padding-inline-start: 0.25rem;
}

.skills__item {
  font-weight: var(--font-medium);
  color: var(--title-color);
  overflow-wrap: anywhere;
}

.skills__item::marker {
  color: var(--first-color);
}

.button {
  display: inline-block;
  position: relative;
  z-index: 10;
  padding: 0.8rem 1.5rem;
  background: var(--first-color);
  color: #fff;
  border-radius: 0.5rem;
  font-weight: var(--font-medium);
  text-decoration: none;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.button:hover {
  background: var(--first-color-alt);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px hsla(var(--hue), 100%, 40%, 0.4);
}

/*=============== SERVICES ===============*/
.services__container {
  grid-row: 2rem;
  padding-block: 1rem;
}

.services__card {
  text-align: center;
  border-color: var(--container-color);
  padding: 3rem 1.25rem;
  border-radius: 1rem;
  border: 2px solid var(--container-color);
  transition: border 0.4s;
}

.services__icon {
  display: block;
  font-size: 4rem;
  color: var(--first-color);
  margin-bottom: 0.75rem;
}

.services__title {
  font-size: var(--h2-font-size);
  margin-bottom: 1.5rem;
}

.services__card:hover {
  border: 2px solid var(--first-color);
}

/*=============== PROJECTS ===============*/
.projects {
  background-color: var(--container-color);
}

.projects__container {
  row-gap: 2rem;
  justify-content: center;
  padding-block: 1rem;
}

.projects__card {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  height: 320px;
}

.projects__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.projects__modal {
  position: absolute;
  left: 0;
  bottom: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg,
      hsla(0, 0%, 0%, 0) 0%,
      hsla(var(--hue), 70%, 40%, 0.8) 120%);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: bottom 0.4s;
}

.projects__subtitle,
.projects__button {
  color: var(--smaller-font-size);
}

.projects__subtitle {
  display: block;
  margin-bottom: 0.25rem;
}

.projects__title {
  font-size: var(--h2-font-size);
  margin-bottom: 0.75rem;
  transition: font-size 0.3s;
}

.projects__card:hover .projects__title {
  transform: translateY(-10px);
}

.projects__description {
  font-size: var(--normal-font-size);
  text-align: center;
  margin-bottom: 1rem;
  padding: 0 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--title-color);
  opacity: 0;
  transition: opacity 0.3s;
}

.projects__card:hover .projects__description {
  opacity: 1;
}

/* Стара логіка для інших карток, де опис все ще в h2 */
.projects__card:hover .projects__title {
  font-size: var(--normal-font-size);
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.projects__button {
  display: flex;
  align-items: center;
  column-gap: 0.5rem;
  font-weight: var(--font-medium);
}

.projects__button {
  font-size: 1.25rem;
}

.projects__card:hover .projects__modal {
  bottom: 0;
}

.projects__card--hidden {
  display: none !important;
}

.projects__show-more-container {
  text-align: center;
  margin-top: 2rem;
  display: none;
  position: relative;
  z-index: 10;
}

.projects__show-more-container .button {
  cursor: pointer !important;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
}

/*=============== CERTIFICATES ===============*/
.certificates__container {
  row-gap: 2rem;
  justify-content: center;
  padding-block: 1rem;
  grid-template-columns: minmax(280px, 360px);
}

.certificates__card {
  position: relative;
  background-color: var(--container-color);
  border-radius: 1rem;
  border: 2px solid var(--container-color);
  text-align: center;
  cursor: pointer;
  height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  transition: border 0.4s, transform 0.3s, box-shadow 0.3s;
  -webkit-tap-highlight-color: transparent;
}

.certificates__card:hover {
  border-color: var(--first-color);
  transform: translateY(-0.5rem);
  box-shadow: 0 12px 32px hsla(var(--hue), 70%, 40%, 0.2);
}

.certificates__icon {
  font-size: 4rem;
  color: var(--first-color);
  margin-bottom: 1.5rem;
  transition: transform 0.3s;
}

.certificates__card:hover .certificates__icon {
  transform: scale(1.1) rotate(5deg);
}

.certificates__subtitle {
  display: block;
  font-size: var(--small-font-size);
  color: var(--text-color);
  margin-bottom: 0.5rem;
}

.certificates__title {
  font-size: var(--h2-font-size);
  color: var(--title-color);
  margin-bottom: 1.5rem;
}

.certificates__view {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: var(--normal-font-size);
  color: var(--first-color);
  font-weight: var(--font-medium);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s;
}

.certificates__card:hover .certificates__view {
  opacity: 1;
  transform: translateY(0);
}

.certificates__eye {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 3rem;
  height: 3rem;
  background-color: var(--first-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--title-color);
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.3s, transform 0.3s;
  box-shadow: 0 4px 12px hsla(var(--hue), 70%, 40%, 0.3);
}

.certificates__card:hover .certificates__eye {
  opacity: 1;
  transform: scale(1);
}

.certificates__card--hidden {
  display: none !important;
}

.certificates__show-more-container {
  text-align: center;
  margin-top: 2rem;
  display: none;
  position: relative;
  z-index: 10;
}

.certificates__show-more-container .button {
  cursor: pointer !important;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
}

/*=============== CERTIFICATE MODAL ===============*/
.certificate-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.certificate-modal.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.certificate-modal__overlay {
  position: absolute;
  inset: 0;
  background-color: hsla(0, 0%, 0%, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.certificate-modal__content {
  position: relative;
  z-index: 1;
  width: 90%;
  max-width: 700px;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.8) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.certificate-modal.active .certificate-modal__content {
  transform: scale(1) translateY(0);
}

.certificate-modal__img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: 1rem;
  box-shadow: 0 25px 80px hsla(0, 0%, 0%, 0.5);
  object-fit: contain;
}

.certificate-modal__close {
  position: absolute;
  top: -3rem;
  right: 0;
  width: 3rem;
  height: 3rem;
  background-color: var(--first-color);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer !important;
  transition: transform 0.3s, background-color 0.3s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.certificate-modal__close:hover {
  transform: rotate(90deg);
  background-color: var(--first-color-alt);
}

/*=============== CONTACT ===============*/

.contact__container {
  padding-top: 1rem;
}

.contact__form,
.contact__group {
  display: grid;
  row-gap: 1.5rem;
}

.contact__form {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.input-group {
  position: relative;
  display: flex;
  flex-direction: column;
}

.contact__input {
  padding: 1.5rem 1.25rem 0.5rem;
  border-radius: 0.5rem;
  background-color: var(--container-color);
  color: var(--title-color);
  border: 2px solid var(--container-color);
  transition: all 0.3s ease;
  font-size: 1rem;
  -webkit-appearance: none;
  appearance: none;
  touch-action: manipulation;
}

.contact__input:focus {
  outline: none;
  border-color: var(--first-color);
  box-shadow: 0 0 0 3px rgba(71, 123, 255, 0.2);
}

.input-label {
  position: absolute;
  top: 1rem;
  left: 1.25rem;
  color: var(--text-color);
  transition: all 0.3s ease;
  pointer-events: none;
}

.contact__input:focus+.input-label,
.contact__input:not(:placeholder-shown)+.input-label {
  top: 0.5rem;
  left: 1.25rem;
  font-size: 0.75rem;
  color: var(--first-color);
}

.input-error {
  color: #ff3860;
  font-size: 0.75rem;
  margin-top: 0.25rem;
  display: none;
}

.contact__form textarea {
  height: 8rem;
  resize: none;
  margin-bottom: 1rem;
}

.contact__button {
  justify-self: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact__button:hover {
  transform: translateY(-2px);
}

.contact__button:active {
  transform: translateY(0);
}

.contact__message {
  position: absolute;
  left: 0;
  bottom: 4.5rem;
  font-size: var(--small-font-size);
  color: var(--title-color);
}

/* Validation states */
.contact__input.invalid {
  border-color: #ff3860;
}

.contact__input.valid {
  border-color: #09c372;
}

.contact__input.invalid+.input-label {
  color: #ff3860;
}

.loader {
  display: inline-block;
  /* Отображается в строке с текстом */
  width: 1rem;
  /* Размер 16px */
  height: 1rem;
  /* Размер 16px */
  border: 2px solid rgba(255, 255, 255, 0.3);
  /* Серая прозрачная граница */
  border-radius: 50%;
  /* Делает элемент круглым */
  border-top-color: #fff;
  /* Верхняя граница белая */
  animation: spin 1s ease-in-out infinite;
  /* Анимация вращения */
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }

  /* Полный оборот на 360 градусов */
}

/*=============== FOOTER ===============*/
.footer {
  background-color: var(--container-color);
  padding-block: 3.5rem 2rem;
  position: relative;
  z-index: 1;
}

.footer__container {
  row-gap: 2rem;
  text-align: center;
}

.footer__title {
  font-size: var(--h1-font-size);
  font-weight: var(--font-semi-bold);
  margin-bottom: 0.25rem;
}

.footer__title span {
  color: var(--first-color);
}

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

.footer__social {
  display: flex;
  justify-content: center;
  column-gap: 1.25rem;
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 10;
  background-color: var(--first-color-alt);
  padding: 0.5rem;
  color: var(--title-color);
  font-size: 1.5rem;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  transition: transform 0.4s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  min-width: 44px;
  min-height: 44px;
}

.footer__social-link:hover {
  transform: translateY(-0.25rem);
}

.footer__copy {
  font-size: var(--small-font-size);
  margin-top: 2rem;
}

/*=============== SCROLL BAR ===============*/
::-webkit-scrollbar {
  width: 0.6rem;
  border-radius: 0.5rem;
  background-color: hsl(228, 12%, 25%);
}

::-webkit-scrollbar-thumb {
  border-radius: 0.5rem;
  background-color: hsl(228, 8%, 35%);
}

::-webkit-scrollbar-thumb:hover {
  border-radius: 0.5rem;
  background-color: hsl(228, 8%, 45%);
}

/*=============== SCROLL UP ===============*/
.scrollup {
  position: fixed;
  right: 1rem;
  bottom: -50%;
  background-color: var(--body-color);
  padding: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.25rem;
  color: var(--first-color);
  font-size: 1.25rem;
  box-shadow: 0 4px 12px hsl(228, 15%, 8%, 0.4);
  z-index: var(--z-tooltip);
  transition: bottom 0.4s, transform 0.4s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  min-width: 40px;
  min-height: 40px;
}

.scrollup:hover {
  transform: translateY(-0.25rem);
}

/* Show Scroll Up */
.show-scroll {
  bottom: 3rem;
}

/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (max-width: 320px) {
  .container {
    margin-inline: 1rem;
  }

  .skills__content {
    grid-template-columns: max-content;
    row-gap: 1rem;
  }

  .services__card {
    padding-block: 1.5rem;
  }
}

/* For medium devices */
@media screen and (min-width: 567px) {

  .home__container,
  .about__container,
  .skills__container,
  .services__container,
  .projects__container,
  .contact__container {
    grid-template-columns: 360px;
    justify-content: center;
  }

  .certificates__container {
    grid-template-columns: 360px;
    justify-content: center;
  }

  .skills__content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1.25rem;
    row-gap: 1rem;
  }
}

@media screen and (min-width: 768px) {
  .nav__menu {
    width: 55%;
  }

  .home__container,
  .about__container,
  .skills__container {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
  }

  .home__data,
  .about__data,
  .skills__data :is(.about__data, .skills__data) :is(.section__subtitle, .section__title) {
    text-align: initial;
  }

  .home__social {
    justify-content: initial;
  }

  .home__blob,
  .about__blob {
    width: 400px;
  }

  .about__data {
    order: 1;
  }

  .services__container,
  .projects__container {
    grid-template-columns: repeat(2, 352px);
  }

  .certificates__container {
    grid-template-columns: repeat(2, 352px);
  }
}

/* For large devices */
@media screen and (min-width: 1023px) {
  .section {
    padding-block: 7rem 2rem;
  }

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

  .nav {
    height: calc(var(--header-height) + 1.5rem);
  }

  .nav__close,
  .nav__toggle {
    display: none;
  }

  .nav__list {
    flex-direction: row;
    column-gap: 3rem;
  }

  .nav__menu {
    width: initial;
  }

  .blur-header::after {
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
  }
}

@media screen and (min-width: 1152px) {
  .container {
    margin-inline: auto;
  }

  .home__container {
    grid-template-columns: 455px 550px;
    column-gap: 7rem;
    padding-block: 2rem 3rem;
  }

  .home__blob {
    width: 550px;
  }

  .home__content {
    row-gap: 4.5rem;
  }

  .home__description {
    margin-block: 1.5rem 2.5rem;
  }

  .home__social {
    column-gap: 1.5rem;
  }

  .about__container {
    grid-template-columns: 550px 460px;
    column-gap: 4.5rem;
    padding-bottom: 1rem;
  }

  .about__blob {
    width: 550px;
  }

  .about__description {
    margin-bottom: 3rem;
  }

  .skills__container {
    grid-template-columns: 340px;
    column-gap: 10rem;
    padding-bottom: 4rem;
  }

  .skills__description {
    margin-bottom: 3rem;
  }

  .skills__content {
    margin-bottom: 8rem;
  }

  .skills__group {
    row-gap: 1.5rem;
  }

  .skills__item {
    font-size: var(--h3-font-size);
  }

  .services__container {
    grid-template-columns: repeat(3, 352px);
    padding-block: 2.5rem 4rem;
  }

  .services__card {
    padding: 3.5rem 2rem;
  }

  .projects__container {
    grid-template-columns: repeat(3, 350px);
    row-gap: 3rem;
    padding-block: 2.5rem 4rem;
  }

  .certificates__container {
    grid-template-columns: repeat(3, 350px);
    row-gap: 3rem;
    padding-block: 2.5rem 4rem;
  }

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

  .contact__container {
    grid-template-columns: 680px;
    padding-block: 2.5rem 2rem;
  }

  .contact__form {
    row-gap: 1.5rem;
  }

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

  .contact__input {
    padding: 1.5rem;
  }

  .contact__form {
    min-height: 20rem;
    height: auto;
  }

  .footer {
    padding-block: 4.5rem 4rem;
  }

  .footer__container {
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    text-align: initial;
  }

  .footer__title {
    font-size: var(--bigger-font-size);
  }

  .footer__social {
    column-gap: 1.5rem;
  }

  .footer__copy {
    margin: 0;
    justify-self: flex-end;
  }

  .scrollup {
    right: 3rem;
  }
}

/*  мои улучшения */

/*=============== LANGUAGE SWITCHER ===============*/
.lang-switcher {
  position: relative;
  z-index: 100;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--title-color);
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  font-family: inherit;
  transition: all 0.3s ease;
}

.lang-toggle:hover {
  border-color: var(--first-color);
  background: rgba(255, 255, 255, 0.05);
}

.lang-toggle i {
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.lang-dropdown.show+.lang-toggle i,
.lang-switcher:has(.lang-dropdown.show) .lang-toggle i {
  transform: rotate(180deg);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: rgba(20, 20, 28, 0.95);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 6px;
  min-width: 150px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.lang-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 12px;
  background: transparent;
  border: none;
  color: var(--text-color);
  font-size: 0.85rem;
  font-family: inherit;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
  text-align: left;
}

.lang-option:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--first-color);
}

/* Стили для частиц */
#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -1;
  pointer-events: none !important;
  background: var(--body-color);
}

#particles-js canvas {
  pointer-events: none !important;
}

/*=============== TARGET CURSOR ===============*/
.target-cursor-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 100000;
  mix-blend-mode: difference;
  transform: translate(-50%, -50%);
  /* Start centered */
}

.target-cursor-dot {
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 4px;
  background: var(--first-color);
  /* Use theme color */
  border-radius: 50%;
  transform: translate(-50%, -50%);
  will-change: transform;
}

.target-cursor-corner {
  position: absolute;
  left: 0;
  top: 0;
  width: 12px;
  height: 12px;
  border: 2px solid var(--first-color);
  /* Use theme color */
  will-change: transform;
}

/* Corner Positioning relative to wrapper 0,0 */
/* Offsets to create a square around the center */
.corner-tl {
  transform: translate(-150%, -150%);
  border-right: none;
  border-bottom: none;
}

.corner-tr {
  transform: translate(50%, -150%);
  border-left: none;
  border-bottom: none;
}

.corner-br {
  transform: translate(50%, 50%);
  border-left: none;
  border-top: none;
}

.corner-bl {
  transform: translate(-150%, 50%);
  border-right: none;
  border-top: none;
}

/* Touch devices: reset everything */
@media (hover: none), (pointer: coarse) {
  .target-cursor-wrapper {
    display: none !important;
  }

  body,
  * {
    cursor: auto !important;
  }

  a,
  button,
  .button,
  input,
  textarea,
  .certificates__card,
  .certificate-modal__close,
  .certificate-modal__overlay,
  .home__social-link,
  .footer__social-link,
  .projects__button,
  .nav__link,
  .nav__toggle,
  .nav__close,
  .lang-toggle,
  .lang-option,
  .contact__button,
  .scrollup {
    cursor: pointer !important;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
  }

  .certificates__eye {
    opacity: 1;
    transform: scale(1);
  }

  .certificates__view {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Desktop: custom cursor */
@media (hover: hover) and (pointer: fine) {

  a,
  button,
  .button,
  input,
  textarea,
  .hover-target,
  [role="button"],
  label {
    cursor: none !important;
  }

  body {
    cursor: none;
  }
}

/* Анимация для ползунков при появлении */
@keyframes slideIn {
  from {
    width: 0;
  }

  to {
    width: var(--target-width);
  }
}

/* Активация анимации при прокрутке */
.skills__percentage.animate {
  animation: slideIn 1.5s forwards;
}

.skills__item {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
}

.skills__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  background-color: var(--first-color);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

/* сервис анимация */

.services__icon {
  transition: transform 0.3s ease;
}

.services__card:hover .services__icon {
  transform: rotate(15deg) scale(1.2);
}

/*=============== SKILLS ===============*/

/* Loader for contact form button */
.loader {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid #fff;
  border-bottom-color: transparent;
  border-radius: 50%;
  animation: rotation 1s linear infinite;
}

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}
