:root {
  --mobile-breakpoint: 768px;
  --tablet-breakpoint: 1024px;
}

body {
  background-color: #000000;
  font-family: "Manrope", sans-serif;
  font-weight: 400;
  color: white;
  margin: 0;
}

.container {
  margin: 0 auto;
  max-width: 1280px;
}

.button {
  color: #818080;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
  background: transparent;
  overflow: hidden;
  border: none;
  cursor: pointer;
  z-index: 1;
}

.button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 20px;
  padding: 2px;
  background: linear-gradient(90deg, #818080 0%, #3b3c3d 100%);
  -webkit-mask: linear-gradient(#818080 0 0) content-box, linear-gradient(#818080 0 0);
  mask: linear-gradient(#818080 0 0) content-box, linear-gradient(#818080 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: -1;
}

.subtitle {
  font-size: 48px;
  line-height: 52px;
  font-weight: 400;
  background: linear-gradient(90deg, #d8d6d6 0%, #818080 100%);
  text-transform: uppercase;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  margin: 0 0 100px 0;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: auto;
  margin-top: 34px;
  padding: 10px 34px;
  border: 1px solid #414a5a;
  border-radius: 20px;
  margin-bottom: 80px;
}

.header__link {
  text-transform: uppercase;
  font-size: 18px;
  line-height: 24px;
  cursor: pointer;
}

.header__list {
  list-style: none;
  display: flex;
  gap: 32px;
  text-transform: uppercase;
  font-size: 14px;
  line-height: 20px;
  margin: 0;
}

.header__item-link {
  text-decoration: none;
  cursor: pointer;
  color: #fff;
}

.header__item-link:hover {
  color: #3b3c3d;
  transition: all 0.3s ease;
}

.header__button {
  width: 71px;
  padding: 6px 32px 6px 8px;
  position: relative;
  filter: drop-shadow(0 0 10px rgba(166, 185, 200, 0.7));
}

.header__button:hover {
  color: #3b3c3d;
  transition: all 0.3s ease;
}

.header__button::after {
  content: "";
  position: absolute;
  background-repeat: no-repeat;
  top: 2px;
  left: 43px;
  right: 0;
  bottom: 0;
}

.header__dropdown {
  position: relative;
  display: inline-block;
}

.header__dropdown .header__dropdown-list {
  position: absolute;
  display: none;
  top: 100%;
  left: 0;
  width: 100%;
  background: transparent;
  border-radius: 20px;
  list-style-type: none;
  padding: 0;
  margin: 0;
  z-index: 0;
}

.header__dropdown .header__dropdown-list li {
  padding: 5px;
}

.header__dropdown .header__dropdown-list li a {
  text-decoration: none;
  color: #818080;
  display: block;
  text-transform: uppercase;
}

.header__dropdown .header__dropdown-list li a:hover {
  color: #3b3c3d;
  transition: all 0.3s ease;
}

.header__dropdown.active .header__dropdown-list {
  display: block;
}

.main {
  min-height: calc(100vh - 34px);
  width: 100%;
  border-bottom: 1px solid #414a5a;
  position: relative;
  margin: 0 0 30px 0;
}

.main__block {
  display: flex;
  flex-direction: column;
  justify-content: start;
}

.main__title {
  display: inline-block;
  font-family: "Nunito Sans", sans-serif;
  font-size: 60px;
  background: linear-gradient(90deg, #818080 0%, #3b3c3d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  margin: 0 0 63px 50px;
}

.main__text-box {
  max-width: 530px;
  margin: 0 0 0 50px;
}

.main__text {
  font-size: 18px;
  line-height: 28px;
  color: #818080;
  margin: 0 0 40px 0;
}

.main__text span.highlight {
  color: #ffffff;
}

.main__img {
  position: absolute;
  bottom: 0px;
  left: 60%;
  width: auto;
  height: 500px;
  z-index: 6;
}

.main__gradient {
  position: absolute;
  bottom: 0;
  left: 20%;
  height: auto;
  z-index: 3;
}

.main__bg-texts {
  position: absolute;
  top: 250px;
  left: 50%;
  width: 600px;
  height: 300px;
  z-index: 1;
}

.main__button {
  position: relative;
  padding: 18px 36px;
  z-index: 1;
  filter: drop-shadow(0 0 30px #3b3c3d);
}

.education__cards {
  display: flex;
  flex-direction: column;
  gap: 80px;
  position: relative;
  margin: 0 0 30px 0;
}

.education__card {
  background: linear-gradient(45deg, #3b3c3d 0%, #000000 100%);
  max-width: 730px;
  border: 1px solid #414a5a;
  border-radius: 20px;
  padding: 40px 45px;
}

.education__card-item {
  align-self: flex-end;
  background: linear-gradient(45deg, #3b3c3d 0%, #000000 100%);
  min-width: 730px;
  border: 1px solid #414a5a;
  border-radius: 20px;
  padding: 40px 45px;
}

.education__card-header {
  display: flex;
  font-size: 24px;
  line-height: 40px;
  font-weight: 400;
  gap: 20px;
  margin: 0 0 8px 0;
}

.experience__card-header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-size: 24px;
  line-height: 40px;
  font-weight: 400;
  gap: 20px;
  margin: 0 0 8px 0;
}

.education__icon {
  filter: drop-shadow(0 0 10px rgba(166, 185, 200, 0.7));
}

.education__card-subtitle {
  font-size: 14px;
  line-height: 24px;
  font-weight: 200;
  margin: 0;
}

.about {
  display: flex;
  flex-direction: column;
}

.about__content-subtitle {
  text-align: center;
  font-size: 18px;
  line-height: 28px;
  font-weight: 400;
  margin: 50px 150px;
}

.about_img {
  border-radius: 50%;
  border: 1px solid #454647;
  height: 200px;
  width: 180px;
}

.about__block {
  justify-content: center;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  margin: 0 0 20px 130px;
}

.about__box {
  max-width: 400px;
  border-radius: 20px;
  border: 1px solid #454647;
  background: linear-gradient(45deg, #3b3c3d 0%, #000000 100%);
}

.about__box-text {
  text-align: center;
  font-size: 20px;
  line-height: 22px;
  font-weight: 400;
  padding: 0 60px;
  margin: 40px;
}

.about__box-subtitle {
  text-align: center;
  font-size: 14px;
  line-height: 20px;
  font-weight: 200;
  padding: 0 60px;
  margin: 0 0 40px 0;
}

.skills {
  display: flex;
  flex-direction: column;
}

.skills__content-subtitle {
  text-align: center;
  font-size: 28px;
  line-height: 40px;
  font-weight: 400;
  margin: 0 0 80px 0;
}

.skills__icons {
  max-width: 670px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
  align-self: center;
  gap: 50px;
  margin: 0 0 30px 0;
}

.projects {
  background-repeat: no-repeat;
  background-size: contain;
  margin: 0 0 20px 0;
  padding: 20px 0 0 0;
}

.projects__block {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  margin: 0 0 20px 0;
}

.projects__box {
  max-width: 400px;
  border-radius: 20px;
  border: 1px solid #454647;
  background: linear-gradient(45deg, #3b3c3d 0%, #000000 100%);
}

.projects__img {
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  margin: 0 0 40px 0;
}

.projects__box-text {
  text-align: center;
  font-size: 20px;
  line-height: 22px;
  font-weight: 400;
  padding: 0 60px;
  margin: 0 0 40px 0;
}

.projects__box-subtitle {
  text-align: center;
  font-size: 14px;
  line-height: 20px;
  font-weight: 200;
  padding: 0 60px;
  margin: 0 0 40px 0;
}

.contact {
  position: relative;
  padding: 0 0 30px 0;
}

.contact::after {
  content: "";
  position: absolute;
  background-image: url(../assets/blue-gradient.png);
  background-repeat: no-repeat;
  left: 0;
  top: -100px;
  bottom: 0;
  right: 0;
  z-index: -1;
}

.contact__block {
  display: flex;
}

.contact__box {
  width: 50%;
}

.contact__subtitle {
  max-width: 550px;
  font-size: 22px;
  line-height: 32px;
  font-weight: 400;
  text-transform: uppercase;
  position: relative;
  margin: 0;
  margin: 0 0 70px 0;
}

.contact__subtitle-gradient {
  max-width: 550px;
  font-size: 32px;
  line-height: 40px;
  font-weight: 400;
  background: linear-gradient(90deg, #818080 0%, #818080 100%);
  text-transform: uppercase;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  margin: 0 0 25px 0;
}

.contact__info {
  display: flex;
  flex: 1;
  gap: 50px;
}

.contact__contact {
  display: flex;
  flex-direction: column;
}
.contact__info-subtitle {
  font-size: 20px;
  line-height: 24px;
  text-transform: uppercase;
  font-weight: 400;
  margin: 0 0 24px 0;
}
.contact__link {
  text-decoration: none;
  color: #fff;
  cursor: pointer;
  margin: 0 0 16px 0;
}
.contact__link:hover {
  color: #1f89db;
  transition: all 0.3s ease;
}
.contact__social-icons {
  display: flex;
  gap: 13px;
}
.contact__social-icons img {
  cursor: pointer;
}
.contact__social-icons img:hover {
  filter: drop-shadow(0 0 15px #818080) drop-shadow(0 0 15px #3c3b3c);
}
.contact__form-block {
  display: flex;
  flex-direction: column;
  width: 50%;
}
.contact__form-subtitle {
  font-size: 20px;
  line-height: 24px;
  text-transform: uppercase;
  font-weight: 400;
  margin: 0 0 44px 0;
}
.contact__form {
  padding: 36px 22px;
  border: 1px solid #414a5a;
  border-radius: 20px;
}
.contact__form-box {
  display: flex;
  flex-direction: column;
  max-width: 654px;
  text-align: left;
  width: 100%;
}
.contact__form-box input,
.contact__form-box textarea {
  border: 1px solid #414a5a;
  border-radius: 20px;
  background: transparent;
  color: #fff;
  margin: 0 0 26px 0;
  padding: 20px 25px;
  outline: none;
  resize: none;
}
.contact__form-box input::placeholder,
.contact__form-box textarea::placeholder {
  font-size: 18px;
  line-height: 20px;
  opacity: 70%;
}
.contact__form-box label {
  margin: 0 0 17px 0;
}
.contact__button {
  padding: 16px 48px;
  filter: drop-shadow(0 0 15px #818080) drop-shadow(0 0 15px #3c3b3c);
}

.footer {
  padding: 60px 0;
}
.footer__text {
  text-align: center;
  margin: 0;
}

@media (max-width: 1024px) {
  .main__img {
    left: 50%;
    height: 400px;
  }

  .about__block {
    grid-template-columns: 1fr;
    margin: 0 30px;
    gap: 50px;
  }

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

  .contact__block {
    flex-direction: column;
  }

  .contact__form-block,
  .contact__box {
    width: 100%;
  }

  .header__dropdown {
    margin-top: 15px;
  }
  
  .education__cards,
  .experience__cards {
    align-items: center;
  }
  
  .projects__box {
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  /* Hamburger menu styles */
  .header__list {
    display: none;
    width: 100%;
  }
  
  .header__list.active {
    display: flex;
  }
  
  .hamburger {
    display: block;
    position: absolute;
    right: 20px;
    top: 20px;
    cursor: pointer;
    z-index: 100;
  }
  
  .hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: white;
    transition: all 0.3s ease;
  }
  
  .header {
    position: relative;
    padding: 15px;
  }
  
  .header__link {
    margin-bottom: 15px;
  }
  
  /* Education and Experience cards */
  .education__card,
  .education__card-item,
  .experience__card {
    min-width: 90%;
    margin: 0 auto 30px;
    align-self: center !important;
  }
  
  /* Projects grid */
  .projects__block {
    justify-items: center;
  }
  
  .projects__box {
    max-width: 90%;
  }
  
  /* Contact form adjustments */
  .contact__form-box {
    padding: 0 10px;
  }
}

@media (max-width: 480px) {
  .subtitle {
    font-size: 28px;
    line-height: 36px;
    margin: 0 0 40px 0;
  }

  .main__title {
    font-size: 28px;
    margin: 0 0 30px 20px;
  }

  .main__text {
    font-size: 16px;
    line-height: 24px;
  }

  .header__button {
    padding: 6px 10px;
  }

  .projects__box-text,
  .projects__box-subtitle,
  .about__box-text,
  .about__box-subtitle,
  .contact__form-box input,
  .contact__form-box textarea {
    font-size: 14px;
  }

  .skills__content-subtitle {
    font-size: 20px;
    line-height: 28px;
  }

  .footer__text {
    font-size: 12px;
  }

  .about_img {
    width: 120px;
    height: 120px;
  }

  .education__card-header {
    flex-direction: column;
    gap: 10px;
    font-size: 18px;
  }

  .header {
    padding: 10px;
  }
  
  .header__dropdown {
    width: 100%;
    margin-top: 10px;
  }
  
  .education__card,
  .education__card-item,
  .experience__card {
    padding: 15px;
    min-width: 95%;
  }
  
  .projects__box {
    max-width: 95%;
  }
  
  .about__content-subtitle {
    margin: 20px;
    font-size: 16px;
    line-height: 24px;
  }
  
  .about__box-text,
  .about__box-subtitle {
    padding: 0 20px;
  }
  
  .contact__form-box input,
  .contact__form-box textarea {
    padding: 15px;
  }
}
