@import url('https://fonts.googleapis.com/css2?family=Noto+Serif:ital,wght@0,100..900;1,100..900&display=swap');

:root {
  --font-family: "Noto Serif", serif;
  --main-bg-color: rgba(16, 25, 50, 1);
  --main-text-color: #ffffff;
  --primary-color: #ffd700;
  --secondary-color: #e07020;
}

/* Общие стили */

*{
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body{
  font-family: var(--font-family);
  color: var(--main-text-color);
  background-color: var(--main-bg-color);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 25px;
}

h1, h2 {
  color: var(--primary-color);
  text-align: center;
  margin: 0;
}

h1 {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 20px;
}

h2 {
  font-size: 40px;
  font-weight: 600; 
  margin-bottom: 10px; 
}

p {
  font-size: 18px;
  margin-bottom: 10px;
}

.menu-icon {
  display: none;
}

.close {
  display: none;
}

/* header */

.header {
  padding: 20px 0;
  width: 100%;
  position: fixed;
  z-index: 10;
  background-color: rgba(0, 0, 0, 0.64);
}

.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header__logo {
  text-decoration: none;
  color: var(--main-text-color);
  font-size: 24px;
  font-weight: 800;
}

.header__logo-text {
  color: var(--secondary-color);
}

.header__menu {
  display: flex;
  gap: 30px;
}

.header__item {
  list-style: none;
}

.header__link {
  position: relative;
  color: var(--main-text-color);
  text-decoration: none;
  font-size: 18px;
}

/*header: hover, before, after */

.header__logo::before {
  content: "★"; 
  color: var(--primary-color);
  margin-right: 5px;
}

.header__link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--secondary-color);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}

.header__link:hover::after {
  transform: scaleX(1);
}

/* welcome */

.welcome {
  padding: 200px 0;
  background: url(../img/bg.png) no-repeat center center fixed;
  background-size: cover;
  min-height: 100vh;
}

.welcome .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.welcome__content {
  max-width: 50%;
}

.welcome__content p {
  margin-bottom: 20px;
  font-size: 20px;
}

.welcome__name {
  color: var(--secondary-color);
}

.welcome__image {
  width: 400px;
  height: 400px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

/* education */

.education{
  padding: 100px 0;
  min-height: 100vh;  
}

.education__content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.education__image {
  transition: transform 0.3s ease;
}

.education__image img {
  width: auto;
  height: 600px;
}

.education__list {
  display: flex;
  flex-direction: column;
  gap: 60px;
  max-width: 100%;
  text-align: left;  
}

.education__item {
  background: linear-gradient(
    90deg,
    rgba(165, 215, 232, 0.42) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  padding: 20px;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.education__item h3 {
  text-shadow: 2px 1px 2px var(--primary-color);
  font-size: 24px;
  margin-bottom: 10px;
}

/*education: hover */

.education__item:hover {
  transform: translateX(-20px);
}

/*projects */

.projects {
  padding: 100px 0;
  min-height: 100vh;  
  background-color: rgba(22, 35, 68, 1);
}

.projects__list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.project__item {
  width: 100%;
  background: linear-gradient(90deg, #19376d 0%, rgba(25, 55, 109, 0) 100%);
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 10px;
}

.project__item h3 {
  margin-bottom: 10px;
  font-size: 24px;
  color: var(--primary-color);
}

.project__images {
  display: flex;
  gap: 10px; 
  margin-bottom: 15px;
  width: auto;
  height: 100%;
  flex-wrap: wrap;
}

.project__images img {
  width: calc(50% - 5px); 
  max-width: 100%;
  border-radius: 5px;
}

.project__link button {
  background-color: var(--secondary-color);
  color: var(--main-text-color);
  padding: 10px 15px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-size: 18px;
}

.project__link button:hover {
  background-color: var(--primary-color);
}

/* achievements */

.achievements {
  padding: 100px 0;
  min-height: 100vh;  
  display: flex; 
  justify-content: center; 
  align-items: center;
}

.achievements__list {
  display: flex;
  flex-wrap: wrap; 
  justify-content: center;
  gap: 30px; 
  margin-top: 30px;
}

.achievement__item {
  flex: 1;
  background-color: rgba(25, 55, 109, 0.9);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 6px var(--shadow-color);
  transition: transform 0.3s ease;
}

.achievement__item i {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.achievement__item h3 {
  text-shadow: 2px 1px 2px var(--primary-color);
  font-size: 24px;
  margin-bottom: 10px;
}


.contact {
  padding: 100px 0;
  background-color: rgba(22, 35, 68, 1);
}


.contact__content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items:center;
  gap: 20px;
}

.contact__form {
  width: 500px; 
  max-width: 100%;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.contact__form label {
  display: block;
  margin-bottom: 5px;
  font-size: 16px;
  color: var(--main-text-color);
}

.contact__form input,
.contact__form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
  resize: none;
}

.contact__form button {
  background-color: var(--secondary-color);
  color: var(--main-text-color);
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 18px;
  transition: background-color 0.3s ease;
}

.contact__form button:hover {
  background-color: var(--primary-color);
}

.contact__images {
  flex: 1;
  display: flex;
  flex-direction: column; 
  align-items: center; 
}

.contact__images img {
  max-width: 100%; 
  height: auto; 
  margin-bottom: -50px; 
}

.social-icons {
  display: flex;
  gap: 15px; 
  font-size: 24px; 
}

.social-icons a {
  color: var(--secondary-color);
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: var(--primary-color);
}

.footer {
  padding: 20px 0;
  background-color: var(--dark-bg);
  color: var(--text-color);
  text-align: center;
  position: relative;
}


@media (max-width: 1024px) {
  .welcome__content{
    max-width: 100%;
    text-align: center;
    align-items: center;
  }
  .hidden-image {
    display: none;
  }
}

@media (max-width: 768px) {
  .welcome,
  .education,
  .projects,
  .achievements,
  .contact {
    width: 100%;
    background-position: center;
  }
  .welcome-content {
    max-width: 100%;
  }

  .header__nav {
    display: none;
  }

  .menu-icon {
    display: block;
    font-size: 30px;
    cursor: pointer;
    color: var(--text-color);
    margin-left: auto;
  }

  .header__nav.active {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #101932;
    z-index: 1000;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 20px;
  }

  .header__nav.active .menu-icon {
    display: none;
  }

  .header__nav.active .close {
    display: block;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 30px;
    cursor: pointer;
    color: var(--text-color);
  }

  .header__menu {
    display: flex;
    flex-direction: column;
    padding: 0;
    margin-top: 80px;
    width: 100%;
  }

  .header__item {
    width: 100%;
  }

  .header__link {
    display: block;
    padding: 15px;
    text-align: left;
    width: 100%;
    font-size: 1.2rem;
    color: var(--text-color);
    transition: background-color 0.3s;
  }

  .header__link:hover {
    background-color: var(--primary-color);
    text-decoration: none;
  }

  .header__logo {
    display: block;
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 1001;
    font-size: 1.5rem;
  }
  .welcome__image {
    display: none;
  }
  .education-content,
  .projects-content,
  .achievements-content,
  .contact-content {
    flex-direction: column;
    align-items: center;
  }

  .education__list,
  .projects__list,
  .achievements__list {
    flex-direction: column;
    gap: 20px;
  }

  .education__image {
    display: none;
  }

  .project__item,
  .achievement__item {
    max-width: 100%;
  }
  .hidden-image {
    display: none;
  }
  
  .project__images img{
    max-width: 300px;
  }
  .contact__content {
    flex-direction: column;
    align-items: center;
  }
  img[alt="message"] {
    display: none;
  }

}

@media (max-width: 480px) {
  h2 {
    font-size: 2rem;
  }

  .header__item {
    margin-left: 10px;
  }

  .header__link {
    font-size: 14px;
  }

  .project__item h3 {
    font-size: 1.3rem;
  }

  .welcome__image {
    width: 250px;
    height: 250px;
  }
}
