/* Общие стили */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  color: #333;
  background-color: #f9f9f9;
  overflow-x: hidden;
}

a {
  color: #007BFF;
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

h1,
h2,
h3 {
  font-weight: bold;
}

p {
  line-height: 1.6;
}

/* Стили для Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 50px;
  background-color: #fff;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.logo h1 {
  font-size: 28px;
  color: #333;
}

.icons a {
  margin-left: 20px;
  font-size: 24px;
  color: #333;
  transition: color 0.3s;
}

.icons a:hover {
  color: #007BFF;
}

/* Основной контент */
main {
  margin-top: 100px;
}

section {
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

section h2 {
  font-size: 36px;
  margin-bottom: 40px;
  text-align: center;
  color: #333;
}

section p {
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto 40px;
  text-align: center;
  color: #555;
}

/* Секция "About Me" */
.about {
  background-color: #fff;
  border-radius: 30px 30px 0 0;
  margin-top: 30px;
}

.about-content {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.profile-picture {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  margin: 20px;
  object-fit: cover;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.5s ease;
}

.profile-picture:hover {
  transform: scale(1.05);
}

.about-text {
  max-width: 600px;
  margin: 20px;
}

.about-text p {
  font-size: 18px;
  line-height: 1.6;
  color: #555;
  text-align: left;
}

.hire-me-button {
  display: inline-block;
  margin-top: 20px;
  padding: 15px 30px;
  background: linear-gradient(135deg, #6a11cb, #2575fc);
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.hire-me-button:hover {
  background: linear-gradient(135deg, #5b0eaa, #1e63d6);
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}
.hire-me-button i {
  margin-right: 10px;
}

/* Секция "Skills" */
.skills {
  background-color: #f0f0f0;
}

.skills-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
}

.skill {
  width: 150px;
  text-align: center;
}

.skill i {
  font-size: 64px;
  color: #007BFF;
  margin-bottom: 20px;
  transition: color 0.3s;
}

.skill h3 {
  font-size: 20px;
  color: #333;
}

.skill:hover i {
  color: #0056b3;
}

/* Секция "Projects" */
.projects {
  background-color: #fff;
  border-radius: 0 0 30px 30px;
}

.project-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.project {
  width: 300px;
  margin: 20px;
  background-color: #f9f9f9;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.project img {
  width: 100%;
  height: auto;
}

.project h3 {
  font-size: 24px;
  margin: 20px;
  color: #333;
}

.project p {
  font-size: 16px;
  margin: 0 20px 20px;
  color: #555;
}

.project a {
  display: block;
  margin: 0 20px 20px;
  padding: 12px;
  background-color: #007BFF;
  color: #fff;
  text-align: center;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.project a:hover {
  background-color: #0056b3;
}

/* Секция "Contact" */
.contact ul {
  list-style: none;
  padding: 0;
  max-width: 600px;
  margin: 0 auto;
}

.contact li {
  font-size: 20px;
  margin: 15px 0;
  text-align: center;
  color: #555;
}

.contact {
  padding-bottom: 120px;
}

/* Анимация при наведении */
.hover-animate {
  transition: transform 0.3s ease;
}

.hover-animate:hover {
  transform: scale(1.05);
}

/* Начальное состояние для анимации при скролле */
/* .animate-on-scroll {
  opacity: 0;
  transform: translateY(50px);
} */

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    padding: 20px;
  }

  .icons {
    margin-top: 10px;
  }

  .skills-container {
    flex-direction: column;
    align-items: center;
  }

  .project-list {
    flex-direction: column;
    align-items: center;
  }

  .project {
    width: 90%;
  }

  section {
    padding: 60px 20px;
  }

  section h2 {
    font-size: 28px;
  }

  section p {
    font-size: 16px;
  }
}