/* Загальний стиль */
body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background: linear-gradient(135deg, #3a3a3a, #5c5c5c); /* М'який градієнт */
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  transition: background 0.5s ease;
}

/* Анімація фону при наведенні */
body:hover {
  background: linear-gradient(135deg, #5c5c5c, #3a3a3a);
}

.container {
  background: linear-gradient(145deg, #451717c4, #683333); /* Теплий градієнт */
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.8);
  width: 90%;
  max-width: 450px;
  overflow: hidden;
  transition: all 0.4s ease;
  margin-bottom: 10px;
}

/* Додавання ефекту тіні при наведенні */
.container:hover {
  box-shadow: 0 18px 60px rgba(255, 97, 113, 0.6);
  transform: scale(1.05);
}

.profile-pic {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  margin-bottom: 20px;
  border: 4px solid #e89b6d; /* Теплий колір для кордону */
  transition: transform 0.6s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 20px rgba(232, 155, 109, 0.7);
}

.profile-pic:hover {
  transform: scale(1.2) rotate(15deg); /* Легке збільшення */
  box-shadow: 0 0 40px rgba(232, 155, 109, 1);
}

h1 {
  font-size: 32px;
  margin: 10px 0;
  color: #e89b6d; /* Теплий акцент */
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3); /* Легка тінь */
}

p {
  font-size: 18px;
  margin-bottom: 15px;
  line-height: 1.6;
  color: #d0d0d0; /* М'який відтінок сірого */
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2); /* Легка тінь */
}

/* Посилання (Linktree стиль) */
.links a {
  display: block;
  margin: 12px auto;
  padding: 18px 25px;
  width: 85%;
  text-decoration: none;
  background: linear-gradient(
    145deg,
    #6e3a3a,
    #4b2a2a
  ); /* М'який темний градієнт */
  color: #ffffff;
  border-radius: 12px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  box-shadow: 0 4px 20px rgba(101, 15, 40, 0.6);
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
}

/* Ефект при наведенні на посилання */
/* Ховер для посилань */
.links a:hover {
  background: linear-gradient(145deg, #9e4c4c, #7c2c2c);
  transform: translateY(-8px) scale(1.1);
  box-shadow: 0 12px 35px rgba(123, 20, 44, 0.7);
  animation: pulse 1s ease-in-out infinite; /* Пульсуючий ефект */
}

/* Анімація пульсації для ефекту ховера */
@keyframes pulse {
  0% {
    transform: translateY(-8px) scale(1.1);
  }
  50% {
    transform: translateY(-8px) scale(1.05);
  }
  100% {
    transform: translateY(-8px) scale(1.1);
  }
}

/* Стиль іконки в посиланні */
.links a i {
  margin-right: 12px;
  transition: transform 0.4s ease, color 0.3s ease;
  font-size: 22px;
}

/* Ховер для іконки в посиланні */
.links a:hover i {
  transform: rotate(360deg) scale(1.2); /* Крутимо і збільшуємо іконку */
  color: #e89b6d; /* Зміна кольору іконки при ховері */
}

/* Додатковий ефект при фокусі */
.links a:focus {
  outline: none;
  box-shadow: 0 0 15px rgba(232, 155, 109, 0.8); /* Тінь при фокусі */
}

/* Форма для зв'язку */
.contact-form {
  margin-top: 50px;
  padding: 25px;
  background: linear-gradient(145deg, #4a2c2c, #3b1e1e);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(101, 15, 40, 0.5);
  transition: all 0.3s ease;
}

.contact-form h2 {
  margin-bottom: 20px;
  color: #e89b6d;
  text-transform: uppercase;
  font-size: 24px;
  letter-spacing: 1.5px;
}

.form-group {
  margin-bottom: 15px;
  position: relative;
}

.form-group label {
  display: block;
  color: #d0d0d0;
  margin-bottom: 5px;
}

.form-group input,
.form-group textarea {
  width: 350px;
  padding: 12px;
  font-size: 16px;
  color: #ffffff;
  background: #2d2d2d;
  border: 2px solid #6e3a3a; /* Теплий темний кордон */
  border-radius: 8px;
  outline: none;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #e89b6d;
  box-shadow: 0 0 15px rgba(232, 155, 109, 0.7);
}

button {
  width: 100%;
  padding: 14px;
  font-size: 20px;
  font-weight: bold;
  color: #ffffff;
  background: linear-gradient(
    145deg,
    #e89b6d,
    #7a4e3b
  ); /* Теплий акцент для кнопки */
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s ease;
}

button:hover {
  background: linear-gradient(145deg, #7a4e3b, #e89b6d);
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(232, 155, 109, 0.7);
}

/* Адаптивні стилі для мобільних пристроїв */
@media (max-width: 768px) {
  .container {
    padding: 20px;
    max-width: 370px;
  }

  .profile-pic {
    width: 110px;
    height: 110px;
  }

  h1 {
    font-size: 28px;
  }

  p {
    font-size: 16px;
  }

  .links a {
    width: 90%;
    font-size: 17px;
  }

  .contact-form button {
    font-size: 18px;
    padding: 12px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 15px;
    max-width: 320px;
  }

  .profile-pic {
    width: 90px;
    height: 90px;
  }

  h1 {
    font-size: 22px;
  }

  p {
    font-size: 14px;
  }

  .links a {
    width: 250px;
    font-size: 15px;
    padding: 15px;
  }

  .contact-form {
    padding: 18px;
  }

  .contact-form button {
    font-size: 16px;
    padding: 14px;
  }
  .form-group input,
  .form-group textarea {
    width: 250px;
  }
}

/* Стиль іконок */
.icons {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 30px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-in-out;
}

.icons i {
  font-size: 40px;
  color: #fff;
  transition: transform 0.4s ease, color 0.3s ease;
}

.container:hover .icons {
  opacity: 1;
  transform: translateY(0); /* Іконки з'являються при наведенні */
}

/* Додаткові ефекти для іконок */
.container:hover .icons i {
  transform: translateY(-10px); /* Іконки трохи рухаються */
  color: #e89b6d; /* Колір іконок при ховері */
  margin-top: 30px;
}
