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

/* * {
    border: 1px solid red;
} */

:root {
  --bg-black: rgb(42, 42, 42);
  --bg-gray: rgb(48, 48, 48);
  --orange: rgb(226, 163, 0);
  --blue: rgb(0, 196, 240);
  --text: rgb(228, 228, 228);
  --black: black;

  --dark-bg: var(--bg-black);
  --accent: var(--orange);
  --header-text: var(--text);
}

html,
body {
  font-family: 'Montserrat', sans-serif;
  /* height: 100%; */
  height: 100vh;

  display: flex;
  flex-direction: column;

  background-color: var(--bg-black);

  scroll-behavior: smooth;
}

/*General class*/

.container {
  margin: 0 auto;
  padding: 0 30px;
  max-width: 1230px;
}

.section {
  padding: 30px 0;
  background-color: var(--bg-black);
  height: 100%;
  display: flex;
  align-items: center;
}

.title-1 {
  font-size: 36px;
  font-weight: 600;
  line-height: 42px;
  letter-spacing: 0%;

  padding-bottom: 30px;

  color: var(--accent);
  text-align: center;
}

.title-2 {
  font-size: 32px;
  font-weight: 500;
  line-height: px;
  letter-spacing: 0%;

  padding: 10px 0;

  color: var(--header-text);
  text-align: center;
}

.title-3 {
  font-size: 24px;
  font-weight: 300;
  line-height: 29px;
  letter-spacing: 0%;
  text-align: left;

  color: var(--header-text);
  text-align: center;
}

/* Nav */

.nav {
  padding: 20px 0;
  background-color: var(--dark-bg);
  color: var(--header-text);
}

.nav-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  column-gap: 30px;
  row-gap: 20px;
}

.logo {
  color: var(--header-text);
  font-size: 18px;
  font-weight: 400;
  line-height: 18px;
  letter-spacing: 0%;
}

.logo strong {
  font-weight: 700;
  color: var(--accent);
  position: relative;
}

.logo strong::before {
  content: attr(data-text);
  color: var(--blue);
  /* color: var(--header-text); */
  position: absolute;
  top: 10;
  left: 0;
  overflow: hidden;
  width: 0;
  height: 100%;
  animation: print 3s linear 1;
}

@keyframes print {
  0%,
  10%,
  100% {
    width: 0;
  }

  70%,
  90% {
    width: 100%;
  }
}

.nav-list {
  display: flex;
  align-items: center;
  column-gap: 40px;
  padding-right: 20%;
  font-size: 18px;
  font-weight: 300;
  line-height: 21px;
  letter-spacing: 0%;
}

.nav-list__link {
  color: var(--header-text);
}

.nav-list__link--active {
  position: relative;
}

.nav-list__link--active::before {
  position: absolute;
  left: 0;
  top: 100%;
  content: '';
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--accent);
}

/*HEADER*/

.header {
  min-height: 600px;
  background-color: var(--bg-black);
  color: var(--header-text);
  /* overflow: hidden; */
}

.header-wraper {
  max-width: 1170px;
  /* max-height: 600px; */
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header__title {
  width: 50%;

  display: flex;
  flex-direction: column;
  row-gap: 27px;
  align-items: start;

  font-size: 32px;
  font-weight: 600;
  line-height: 38px;
  letter-spacing: 0%;
  text-align: left;
}

.header__title strong {
  font-size: 56px;
  font-weight: 700;
  line-height: 60px;
  letter-spacing: 0%;
  text-align: left;
}

.header__title em {
  font-style: normal;
  color: var(--accent);
}

.header__text {
  width: 85%;
  font-size: 18px;
  font-weight: 300;
  line-height: 21px;
  letter-spacing: 0%;
  text-align: left;
}

.header__text p + p {
  margin-top: 1em;
}

.header__img {
  width: 50%;
}

.btn {
  display: inline-block;
  height: 47px;
  padding: 15px 40px;
  background-color: var(--accent);
  color: var(--black);

  font-size: 18px;
  font-weight: 700;
  line-height: 20px;
  letter-spacing: 0%;
  text-align: left;

  border-radius: 6px;
  box-shadow: 0px 2px 13px 0px rgba(226, 158, 0, 0.48);

  transition: box-shadow 0.2s ease-in;
  /* transition: opacity 0.2s ease-in; */
}

.btn:hover {
  /* opacity: 0.8; */
  box-shadow: 0px 5px 30px 0px rgba(226, 158, 0, 0.48);
}

.btn:active {
  position: relative;
  top: 1px;
}

.header__img {
  max-width: 100%;
  max-height: 100%;
}

/* SKILLS*/

.skills {
  margin: 50px 0;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  row-gap: 20px;
  column-gap: 20px;
}

.skills-list__item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  row-gap: 20px;

  width: 270px;
  height: 270px;
  padding: 50px;
  border-radius: 29px;
  box-shadow: 0px 4px 6px 0px rgba(0, 0, 0, 0.47);
  background-color: var(--bg-gray);
  color: var(--header-text);
  font-size: 24px;
  font-weight: 300;
  line-height: 29px;
  letter-spacing: 0%;
  text-align: left;
}

/*ABOUT ME*/

.about {
  display: flex;
  justify-content: center;
  align-items: center;
  max-height: 1000px;
  margin: 130px 0 100px;
  background-color: var(--bg-black);
}

.about-wrapper {
  position: relative;
  height: 100%;
  width: 1200px;
}

.Ellipse6 {
  margin: auto 0;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  z-index: 1;
}

.Ellipse7 {
  position: absolute;
  bottom: 0;
  right: 0;
  z-index: 2;
}

.Ellipse8 {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 3;
}

.content {
  z-index: 5;
  position: relative;
  top: 20px;
  left: 484px;
  max-width: 496px;
  max-height: 822px;
  padding: 63px;
  z-index: 9;
  background-color: var(--bg-gray);
  border-radius: 14px;
}

.content-title {
  position: absolute;
  top: -30px;
  color: var(--header-text);
  font-size: 48px;
  font-weight: 500;
  line-height: 54px;
  letter-spacing: 0%;
  text-align: left;
}

.content-text {
  color: var(--header-text);

  font-size: 20px;
  font-weight: 300;
  line-height: 24px;
  letter-spacing: 1%;
  text-align: left;
}

.img-about {
  padding: 29px;
  background-color: var(--bg-gray);
  position: absolute;
}

.photo1 {
  z-index: 10;
  top: -45px;
  left: 195px;
}

.photo2 {
  position: absolute;
  z-index: 10;
  top: 557px;

  left: 217px;
}

.photo3 {
  z-index: 10;
  position: absolute;
  top: 20%;
  right: -10%;
}

/*PORTFOLIO*/

.portfolio {
  background-color: var(--bg-black);
  padding: 80px 0;
}

.portfolio-list {
  max-height: 100%;

  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  row-gap: 30px;
  column-gap: 30px;
  justify-content: center;
  align-items: center;
}

.portfolio-list__item {
  padding: 30px;
  max-width: 370px;
  max-height: 485px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  row-gap: 30px;

  background-color: var(--bg-gray);
  border-radius: 29px;
  box-shadow: 0px 4px 15px 0px rgba(27, 27, 27, 0.28);
}

.portfolio__img {
  border-radius: 30px;
}

.portfolio-btn {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  column-gap: 10px;

  font-size: 18px;
  font-weight: 500;
  line-height: 21px;
  letter-spacing: 0%;
  text-align: left;
  color: var(--accent);
}

/*Project details*/

.project-details {
  margin: 0 auto;
  max-width: 100%;

  display: flex;
  flex-direction: column;
  align-items: center;
}

.project-details__item {
  display: flex;
  justify-content: baseline;
  align-items: center;
  column-gap: 50px;
  padding: 50px;
  border-radius: 29px;

  background-color: var(--bg-gray);
  box-shadow: 0px 4px 6px 0px rgba(0, 0, 0, 0.47);

  margin-bottom: 40px;
}

.project-details__img {
  max-width: 50%;
  border-radius: 29px;
}

.project-details__desc {
  font-size: 24px;
  font-weight: 200;
  line-height: 29px;
  letter-spacing: 130%;
  text-align: left;

  color: var(--header-text);
}

.project-details__skills {
  font-size: 24px;
  font-weight: 300;
  line-height: 29px;
  letter-spacing: 0%;
  text-align: left;

  color: var(--header-text);
  margin-bottom: 40px;
}

.outline-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: 5px;
  row-gap: 5px;

  padding: 10px 20px 10px;

  border: 2px solid var(--accent);

  color: var(--accent);
  border-radius: 6px;
  box-shadow: 0px 2px 13px 0px rgba(226, 158, 0, 0.48);

  transition: opacity 0.2s ease-in;

  font-size: 18px;
  font-weight: 400;
  line-height: 21px;
  letter-spacing: 0%;
}

.outline-btn:hover {
  opacity: 0.8;
}

.outline-btn:active {
  position: relative;
  top: 1px;
}

.github__icon {
  max-height: 40px;
  max-width: 40px;
  fill: var(--accent);
}

.github__icon path {
  fill: var(--accent);
}

/*Content list*/

.content-list {
  margin: 0 auto;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  row-gap: 20px;
}

.content-list a {
  color: var(--accent);
}

.content-list__item {
  font-size: 20px;
  font-weight: 300;
  line-height: 24px;
  letter-spacing: 1%;
  color: var(--header-text);
}

.content-list__item p + p {
  margin-top: 0.5em;
}

/*FORM MESSAGE*/

.msg-form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  row-gap: 30px;
  width: 600px;

  font-size: 14px;
  font-weight: 200;
  line-height: 20px;
  letter-spacing: 0%;

  padding: 0 15px;
}

.form-group {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: left;
  row-gap: 5px;

  width: 100%;
}

.msg-form__label {
  width: 100%;
  height: 20px;
  font-size: 18px;
  font-weight: 400;
  line-height: 22px;
  letter-spacing: 0%;
}
.msg-form__input {
  width: 100%;
  height: 40px;

  padding: 0 10px;
  background-color: var(--header-text);
  /* background-color: var(--bg-gray); */
  border: 1px solid var(--accent);
  border-radius: 5px;
  color: var(--black);
  caret-color: var(--accent);
}

.msg-form__textarea {
  background-color: var(--header-text);
  border: 1px solid var(--accent);
  border-radius: 5px;
  width: 100%;
  height: 200px;
  color: var(--black);
  caret-color: var(--accent);
  padding: 10px;
}

button,
input[type='submit'] {
  display: inline-block;
  height: 47px;
  padding: 15px 40px;
  background-color: var(--accent);
  color: var(--black);

  font-size: 18px;
  font-weight: 700;
  line-height: 20px;
  letter-spacing: 0%;
  text-align: left;

  border-radius: 6px;
  box-shadow: 0px 2px 13px 0px rgba(226, 158, 0, 0.48);

  transition: opacity 0.2s ease-in;

  cursor: pointer;
}

.alert-dialog {
  margin: 300px auto;
  position: fixed;
  height: 150px;
  width: 300px;
  background-color: var(--bg-gray);
  color: var(--accent);
  border: 2px solid var(--accent);
  border-radius: 5px;
}

.alert-dialog__content {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 500;
  opacity: 0.8;
  padding: 0 15px;
  text-align: center;
}

/*FOOTER*/

.footer {
  margin-top: auto;
  max-height: 100%;
  width: 100%;
  background-color: var(--bg-gray);
  padding: 50px 0;
}

.footer-wraper {
  max-width: 100%;
  max-height: 100%;
  display: flex;
  justify-content: start;
  flex-wrap: wrap;
  row-gap: 20px;
  padding: 0 50px;

  margin: 0 auto;

  font-size: 18px;
  font-weight: 300;
  line-height: 21px;
  letter-spacing: 0%;
}

.footer-nav {
  width: 33%;
  color: var(--header-text);
}

.footer-nav-list {
  display: flex;
  flex-direction: column;
  row-gap: 21px;
}

.footer-nav-list__link {
  color: var(--header-text);
}

.footer-contact {
  width: 33%;
  color: var(--header-text);
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  row-gap: 21px;
}

.footer-contact-list__link {
  color: var(--header-text);
}

.footer-logo {
  width: 33%;
  display: flex;
  flex-direction: column;
  row-gap: 40px;
}

.footer-logo__link {
  color: var(--header-text);
}

.footer-logo__link strong {
  color: var(--accent);
}

.copyright {
  color: var(--header-text);
}

/*MEDIA*/

@media (max-width: 1440px) {
  .skills {
    margin: 40px 0;
  }

  .skills-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    row-gap: 15px;
    column-gap: 15px;
  }

  .skills-list__item {
    row-gap: 15px;

    width: 230px;
    height: 230px;
    padding: 50px;
    border-radius: 25px;
    font-size: 20px;
    line-height: 25px;
  }
}

/*1024*/

@media (max-width: 1024px) {
  .header {
    min-height: 500px;
    padding: 15px 15px;
    background-color: var(--bg-black);
    color: var(--header-text);
    overflow: hidden;
  }

  .skills {
    margin: 40px 0;
  }

  .skills-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    row-gap: 15px;
    column-gap: 15px;
  }

  .skills-list__item {
    row-gap: 10px;
    width: 200px;
    height: 200px;
    padding: 40px;
    border-radius: 20px;
    font-size: 20px;
    line-height: 25px;
  }

  .item__icon {
    max-height: 50px;
    max-width: 50px;
  }

  /*Project details*/

  .project-details__item {
    display: flex;
    flex-direction: row;
    row-gap: 30px;
    padding: 30px;
    border-radius: 25px;
    margin-bottom: 20px;
  }

  .footer {
    padding: 40px 0;
  }

  .footer-wraper {
    font-size: 14px;
    line-height: 17px;
    padding: 40px 0;
  }

  .footer-nav-list {
    row-gap: 15px;
  }

  .footer-contact-list {
    row-gap: 15px;
  }

  .footer-logo {
    row-gap: 30px;
  }
}

/*768*/
@media (max-width: 768px) {
  .nav-row {
    row-gap: 15px;
  }

  .header {
    min-height: 350px;
    padding: 15px 15px;
    background-color: var(--bg-black);
    color: var(--header-text);
  }

  .header__title {
    font-size: 20px;
    font-weight: 600;
    line-height: 26px;
    letter-spacing: 0%;
  }

  .header__title strong {
    font-size: 40px;
    font-weight: 700;
    line-height: 46px;
    letter-spacing: 0%;
    text-align: left;
  }

  .header__text {
    width: 95%;
    font-size: 14px;
    font-weight: 300;
    line-height: 17px;
    letter-spacing: 0%;
    text-align: left;
  }

  .btn {
    height: 40px;
    padding: 10px 20px;

    font-size: 12px;
    line-height: 20px;
  }

  .skills {
    margin: 30px 0;
  }

  .skills-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    row-gap: 10px;
    column-gap: 10px;
  }

  .skills-list__item {
    row-gap: 15px;

    width: 170px;
    height: 170px;
    padding: 30px;
    border-radius: 25px;

    font-size: 18px;
    line-height: 25px;
  }

  .item__icon {
    max-height: 40px;
    max-width: 40px;
  }

  .title-1 {
    font-size: 36px;
    line-height: 42px;
    padding-bottom: 30px;
  }

  .title-3 {
    font-size: 16px;
    line-height: 21px;
  }

  .portfolio {
    padding: 40px 0;
  }

  .portfolio-list {
    row-gap: 10px;
    column-gap: 10px;
  }

  .portfolio-list__item {
    padding: 20px;
    max-width: 270px;
    row-gap: 10px;
    border-radius: 24px;
  }

  .portfolio-btn {
    column-gap: 5px;
    font-size: 14px;
    line-height: 17px;
  }

  .project-details__item {
    display: flex;
    flex-direction: column;

    row-gap: 30px;
  }

  .project-details__img {
    max-width: 80%;
    border-radius: 29px;
  }

  .msg-form {
    row-gap: 20px;
    width: 550px;

    font-size: 14px;
    font-weight: 200;
    line-height: 20px;
    letter-spacing: 0%;

    padding: 0 15px;
  }

  .footer {
    padding: 30px 0;
  }

  .footer-wraper {
    font-size: 12px;
    line-height: 17px;
    padding: 30px 0;
  }

  .footer-nav-list {
    row-gap: 10px;
  }

  .footer-contact-list {
    row-gap: 10px;
  }

  .footer-logo {
    row-gap: 20px;
  }
}

/* 570 */

@media (max-width: 570px) {
  .section {
    padding: 10px 0 20px;
  }

  .title-1 {
    font-size: 30px;
    line-height: 30px;
    padding-bottom: 30px;
  }

  .title-2 {
    font-size: 24px;
    line-height: 30px;
    padding: 20px 0;
  }

  .title-3 {
    font-size: 16px;
    line-height: 21px;
  }

  .container {
    margin: 0 auto;
    padding: 0 10px;
  }

  .nav-row {
    row-gap: 10px;
  }

  .nav-list {
    font-size: 18px;
  }

  .header {
    min-height: 500px;
    padding: 10px 10px;
  }

  .header-wraper {
    flex-direction: column-reverse;
    row-gap: 20px;
    align-items: center;
  }

  .header__title {
    width: 100%;
    font-size: 12px;
    line-height: 20px;
  }

  .header__title--br2 {
    display: none;
  }

  .header__title strong {
    font-size: 24px;
    line-height: 30px;
  }

  .header__text {
    width: 100%;
    font-size: 12px;
    line-height: 17px;
  }

  .btn {
    margin: 0 auto;

    height: 40px;
    padding: 10px 20px;

    font-size: 12px;
    line-height: 20px;
  }

  .skills {
    margin: 20px 0;
  }

  .skills-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    row-gap: 10px;
    column-gap: 10px;
  }

  .skills-list__item {
    row-gap: 15px;

    width: 135px;
    height: 135px;
    padding: 25px;
    border-radius: 20px;

    font-size: 14px;
    line-height: 25px;
  }

  .item__icon {
    max-height: 30px;
    max-width: 30px;
  }

  /*Project details*/

  .project-details__item {
    display: flex;
    flex-direction: column;

    column-gap: 30px;
    padding: 30px;
    border-radius: 25px;
    margin-bottom: 20px;
  }

  .project-details__img {
    width: 100%;
    border-radius: 29px;
    margin-bottom: 0;
  }

  .project-details__desc {
    font-size: 14px;
    line-height: 19px;
    letter-spacing: 130%;
    text-align: center;
  }

  .project-details__skills {
    font-size: 14px;
    line-height: 19px;
    margin-bottom: 20px;
  }

  .outline-btn {
    column-gap: 5px;
    row-gap: 5px;

    padding: 10px 20px 10px;

    font-size: 18px;
    font-weight: 400;
    line-height: 21px;
    letter-spacing: 0%;
  }

  .outline-btn:hover {
    opacity: 0.8;
  }

  .outline-btn:active {
    position: relative;
    top: 1px;
  }

  .github__icon {
    max-height: 40px;
    max-width: 40px;
    fill: var(--accent);
  }
  .content-list {
    row-gap: 20px;
  }

  .content-list__item {
    font-size: 16px;
    font-weight: 300;
    line-height: 18px;
    letter-spacing: 1%;
    color: var(--header-text);
  }

  .msg-form {
    row-gap: 20px;
    width: 450px;

    font-size: 14px;
    font-weight: 200;
    line-height: 20px;
    letter-spacing: 0%;

    padding: 0 15px;
  }

  .footer {
    padding: 20px 0;
  }

  .footer-wraper {
    font-size: 16px;
    line-height: 15px;
    padding: 20px 0;
    row-gap: unset;
  }

  .footer-nav-list {
    display: none;
    row-gap: 10px;
  }

  .footer-contact-list {
    display: none;

    row-gap: 10px;
  }

  .footer-logo {
    width: 100%;
    row-gap: 20px;
    justify-content: center;
    align-items: center;
  }

  .copyright {
    font-size: 10px;
  }
}
/* 425 */
@media (max-width: 425px) {
  .title-1 {
    padding: 0 0 5px;
  }

  .title-2 {
    padding: 10px 0;
  }

  .nav-row {
    row-gap: 10px;
  }

  .nav-list {
    padding: 0;
    column-gap: 20px;
    font-size: 16px;
  }

  .header {
    min-height: 450px;
    padding: 10px 10px;
  }

  .project-details__item {
    display: flex;
    flex-direction: column;
    row-gap: 15px;
    padding: 20px;
    border-radius: 25px;
  }

  .project-details__img {
    max-width: 90%;
    border-radius: 29px;
  }

  .msg-form {
    row-gap: 15px;
    width: 350px;

    font-size: 12px;
    font-weight: 200;
    line-height: 20px;
    letter-spacing: 0%;

    padding: 0 5px;
  }

  .footer-wraper {
    padding: 0;
  }
}
/* 375 */
@media (max-width: 375px) {
  .header {
    min-height: 420px;
    padding: 10px 10px;
  }
  .msg-form {
    width: 300px;
  }
}
/* 325 */
@media (max-width: 325px) {
  .header {
    min-height: 400px;
    padding: 10px 10px;
  }
  .msg-form {
    width: 270px;
  }
}
