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

.flex-row {
  display: flex;
}

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

a {
  text-decoration: none;
  cursor: pointer;
}

header {
  position: relative;
  z-index: 1;
  width: 100%;
}

body {
  background-color: #e5e5e5;
  overflow-x: hidden;
}

ul li {
  list-style-type: none;
}

.navbar-desktop-menu {
  display: none;
}

/* Burger menu style */

.burger-menu {
  z-index: 999;
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  background-color: #3c3a39;
  transition: left 0.5s ease-in-out;
  width: 100%;
}

.burger-menu-hidden {
  left: 100%;
}

.cross-menu {
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
}

.mobile-menu {
  gap: 40px;
  position: absolute;
  width: 100%;
  height: 184px;
  left: 24px;
  top: 92px;
  padding-right: 15%;
}

.mobile-menu-item {
  font-family: 'Inter', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: #fff5e1;
  padding-left: 40px;
}

.mobile-menu li {
  border-bottom: 1px solid #6f6c6b;
  width: 100%;
  padding-bottom: 15px;
}

/* Toolbar and Hero section style */

.toolbar {
  justify-content: space-between;
  background-color: #3c3a39;
  align-items: center;
  width: 100%;
}

.logo {
  font-family: 'Roboto', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  padding-left: 24px;
}

.hero {
  background-image: url(./img/Illustration.png);
  background-repeat: no-repeat;
  background-position-x: right;
  background-position-y: bottom;
  padding-bottom: 190px;
  background-color: #1c1a19;
}

.title {
  font-family: 'Crete Round', sans-serif;
  font-size: 56px;
  font-style: normal;
  font-weight: 400;
  color: #ff6b00;
  padding-top: 120px;
  padding-bottom: 12px;
  padding-left: 24px;
}

.sub-title-1 {
  font-family: 'Roboto', sans-serif;
  font-size: 24px;
  color: #fff5e1;
  padding-bottom: 12px;
  padding-left: 24px;
}

.infography {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #fff;
  padding-bottom: 24px;
  padding-left: 24px;
  padding-right: 10%;
}

.social-media-icons {
  flex-direction: row;
  padding-left: 24px;
  gap: 5%;
}

.social-media-icon {
  height: 30px;
  width: 30px;
  left: 8px;
  top: 8px;
  border-radius: 0;
}

/* My recent works section */

.recent-works {
  background-color: #e5e5e5;
  padding-left: 24px;
  padding-right: 24px;
  padding-bottom: 60px;
}

.rw-top-section-desktop {
  flex-direction: column;
}

.sub-title-2 {
  font-family: 'Crete Round', sans-serif;
  font-weight: 400;
  font-size: 40px;
  line-height: 130%;
  width: 100%;
  justify-content: center;
  padding-top: 100px;
  padding-bottom: 24px;
}

.vector {
  justify-content: center;
  flex-grow: 2;
}

.img-recent-works {
  padding-top: 80px;
  justify-content: center;
}

.sub-title-3 {
  font-family: 'Crete Round', sans-serif;
  font-size: 32px;
  color: #091e42;
  padding-top: 24px;
}

.infography-works {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: #091e42;
  padding-top: 12px;
}

.list-technologies-ul {
  width: 100%;
  flex-direction: row;
  gap: 12px;
  align-items: center;
  padding-top: 12px;
}

.list-technologies-ul li {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 15px;
  line-height: 20px;
  padding: 10px 12px;
  border-style: solid;
  border: 1px solid #8993a4;
  color: #091e42;
}

.button-cont {
  padding-top: 12px;
}

.button-project {
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.03em;
  color: #e5e5e5;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  background: #ff6b00;
  padding: 12px;
  height: 48px;
  border: none;
}

/* Cards section */

.single-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.8));
  z-index: -1;
}

.single-card:hover::before {
  background: none;
}

.cards-container {
  display: grid;
  justify-content: space-around;
  row-gap: 24px;
  padding-bottom: 5%;
  padding-top: 5%;
}

.single-card {
  position: relative;
  flex-direction: column;
  background-size: cover;
  background-repeat: no-repeat;
  justify-content: end;
  background-position-x: center;
  height: 435px;
  width: 365px;
  background-color: #e5e5e5;
  text-shadow: 1px 1px 2px ccc;
  padding: 0%;
  z-index: 1;
}

.card-title {
  font-family: 'Crete Round', sans-serif;
  color: #fff;
  font-style: normal;
  font-weight: 400;
  font-size: 32px;
  line-height: 44px;
  padding: 72px 0 12px 13px;
}

.infography-card {
  font-family: 'Inter', sans-serif;
  font-style: normal;
  color: #fff;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  padding: 0 13px 14px 13px;
}

.list-technologies-card-ul {
  flex-direction: row;
  list-style: none;
  padding: 10px 12px 20px;
  gap: 24px;
}

.list-technologies-card-ul li {
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-size: 15px;
  line-height: 20px;
  background: rgba(255, 255, 255, 0.082);
  padding: 10px 12px;
  color: #fff;
}

.button-project-card {
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-weight: 700;
  font-size: 17px;
  line-height: 24px;
  letter-spacing: 0.03rem;
  background-color: #ff6b00;
  color: #fff;
  align-items: center;
  text-align: center;
  border: 1px solid #ff6b00;
  justify-content: center;
  padding: 12px;
}

.hover-background {
  transition: all 1s ease-in-out;
}

/* Cards Section buttons functions */

.button-project-card:hover {
  background: #e5e5e5;
  color: #ff6b00;
  border: 1px solid #ff6b00;
}

.button-project-card:active {
  color: #e5e5e5;
  background: #ff6b00;
}

.button-project-card:disabled {
  color: #3c3a39;
  background: #e5e5e5;
  border: 1px solid #3c3a39;
}

.single-card:hover .card-title,
.single-card:hover .infography-card,
.single-card:hover .list-technologies-card-ul {
  visibility: hidden;
}

.hover-background:hover {
  background-image: url(./img/mask-cards.svg);
}

/* Modal styling */

.modal {
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  background: #fff;
  z-index: 10;
  border: 1px solid #3c3a39;
  width: max-content;
  transition: all 0.5s ease-in-out;
}

.modal::backdrop {
  background: rgba(0, 0, 0, 0.9);
  filter: blur(8px);

  /* -webkit-filter: blur(8px) */
}

.modal-title {
  justify-content: space-between;
  padding-left: 16px;
}

.modal-title img {
  padding: 12px;
  width: 62px;
  height: 62px;
}

.modal-techs {
  padding-top: 24px;
  padding-bottom: 20px;
  padding-left: 16px;
}

.modal-img {
  display: flex;
  padding-left: 16px;
  padding-right: 16px;
  width: 100%;
  max-width: 360px;
  text-align: center;
}

.modal-btn-set {
  justify-content: space-between;
  padding-top: 20px;
  padding-right: 16px;
  margin-bottom: 20px;
}

.modal-paragraph {
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 24px;
  color: #344563;
  text-align: justify;
  padding: 24px 16px 16px 16px;
}

.modal-btn-livelink svg {
  padding-left: 5px;
}

.modal-btn-source svg {
  padding-left: 5px;
}

.modal-btn-livelink:hover svg path,
.modal-btn-source:hover svg path,
.button-project:hover {
  fill: #ff6b00;
}

/* My Work Section buttons functions */

.list-technologies-ul li:hover {
  background: #d2cdcb;
}

.button-project:hover {
  background: #e5e5e5;
  color: #ff6b00;
  border: 1px solid #ff6b00;
}

.button-project:active {
  color: #e5e5e5;
  background: #ff6b00;
}

.button-project:disabled {
  color: #3c3a39;
  background: #e5e5e5;
  border: 1px solid #3c3a39;
}

/* About me section */

.about-me {
  background-color: #1c1a19;
  padding-bottom: 88px;
}

.about-top {
  background-image: url(./img/Illustration\ 2.png);
  background-repeat: no-repeat;
  background-position-y: bottom;
  background-position-x: right;
  padding-bottom: 190px;
}

.title-about {
  font-family: 'Crete Round', sans-serif;
  font-size: 72px;
  font-weight: 400;
  line-height: 88px;
  letter-spacing: 0.33;
  color: #ff6b00;
  padding: 120px 24px 24px;
}

.infography-about {
  font-family: 'Inter', sans-serif;
  color: #f4f5f7;
  padding: 0 24px 24px;
}

.button-cont-resume {
  padding-left: 24px;
}

.button-resume {
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.03em;
  color: #e5e5e5;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  background: #ff6b00;
  justify-content: center;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding: 12px;
  width: 156px;
  height: 48px;
  border: none;
}

.about-bottom {
  align-items: center;
  padding-top: 136px;
}

.ab-titles {
  font-family: 'Inter', sans-serif;
  color: #fff;
  font-style: normal;
  font-weight: 700;
  font-size: 32px;
  line-height: 44px;
  text-align: center;
  padding: 44px 0;
}

.languages::before {
  content: url(./img/diamond.png);
}

.frameworks::before {
  content: url(./img/square.png);
}

.skills::before {
  content: url(./img/circle.png);
}

.ab-bt-blocks ul {
  text-align: center;
}

.about-bullet {
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 20px;
  line-height: 43px;
  color: #fff;
  padding: 6px 0;
}

/* Section buttons functions */
.button-resume:hover {
  background: #e5e5e5;
  color: #ff6b00;
  border: 1px solid #ff6b00;
}

.button-resume:active {
  color: #e5e5e5;
  background: #ff6b00;
}

.button-resume:disabled {
  color: #3c3a39;
  background: #e5e5e5;
  border: 1px solid #3c3a39;
}

.social-media-icon:hover {
  filter: brightness(50%);
}

.social-media-icon-footer:hover {
  filter: brightness(50%);
}

/* Form section */

.form-container {
  background-color: #fff;
}

.form-container p {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  color: #172b4d;
  font-size: 32px;
  line-height: 44px;
  text-align: center;
  padding: 70px 25px 100px 23px;
}

.form_input {
  justify-content: center;
  text-align: center;
}

#name,
#email {
  border: none;
  border-bottom: 1px solid #dbd8d7;
  height: 80px;
  margin: 0 20px;
  padding-left: 20px;
  font-size: 15px;
}

#message {
  border: none;
  height: 114px;
  margin: 10px 20px 10px 20px;
  background-color: #fbf8f7;
  padding-left: 20px;
  padding-bottom: 50px;
  font-size: 15px;
  font-style: italic;
}

.vector-footer {
  padding-top: 78px;
}

.social-media-icons-footer {
  background-color: white;
  justify-content: center;
  gap: 15px;
  padding-top: 25px;
  padding-bottom: 60px;
}

.error {
  display: none;
  color: white;
  padding: 10px;
  border-radius: 5px;
  font-weight: bold;
  font-size: 14px;
  margin-top: 10px;
}

.error.active {
  display: inline;
}

/* Mobile version */

@media only screen and (max-width: 767px) {
  .button-contact {
    text-align: center;
  }
}

/* Desktop Version */

@media only screen and (min-width: 768px) {
  .burger-menu {
    display: none;
  }

  .burger-menu-toggle {
    display: none;
  }

  .toolbar {
    background-color: #3c3a39;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    padding: 0 10%;
  }

  /* Hero Section */

  .logo {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
  }

  .desktop-menu-items {
    flex-direction: row;
    list-style-type: none;
    height: 72px;
    align-items: center;
    gap: 32px;
    color: #fff;
  }

  .desktop-menu-links {
    font-family: 'Inter', sans-serif;
    color: #fff;
    font-weight: 600;
    font-size: 15px;
  }

  .mail-icon {
    cursor: pointer;
  }

  .hero {
    background-image: url(./img/Illustration-header.svg);
    background-repeat: no-repeat;
    background-position-x: right;
    background-position-y: bottom;
    background-color: #1c1a19;
  }

  .title {
    font-family: 'Crete Round', sans-serif;
    font-size: 72px;
    font-style: normal;
    font-weight: 400;
    color: #ff6b00;
    padding: 192px 50% 0 10%;
  }

  .sub-title-1 {
    font-family: 'Inter', sans-serif;
    color: #fff;
    font-size: 32px;
    font-weight: 500;
    line-height: 44px;
    padding: 24px 50% 24px 10%;
  }

  .social-media-icons {
    flex-direction: column;
    gap: 10px;
    position: relative;
    bottom: 40%;
    left: 2%;
    list-style: none;
  }

  .infography {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    color: #fff;
    padding: 24px 50% 250px 10%;
  }

  .social-media-icon {
    height: 18px;
    width: 20px;
  }

  /* Recent Works */

  .navbar-desktop-menu {
    display: flex;
  }

  .recent-works {
    padding-top: 120px;
    padding-left: 10%;
  }

  .rw-top-section-desktop {
    display: grid;
    grid-template-columns: 30% auto;
    margin-bottom: 10%;
  }

  .sub-title-2 {
    font-family: 'Crete Round', sans-serif;
    color: #091e42;
    font-weight: 400;
    font-size: 40px;
    justify-content: left;
    align-self: center;
    padding-top: 24px;
  }

  .vector-img {
    height: 2px;
    align-self: center;
    width: 100%;
    padding-right: 10%;
  }

  .img-recent-works {
    justify-self: left;
    padding-top: 0%;
  }

  .work-content {
    justify-self: right;
    padding-right: 10%;
  }

  .img-works {
    height: 100%;
    width: 48vw;
    padding-right: 5%;
  }

  .recent-works-article {
    display: grid;
  }

  .sub-title-3 {
    font-family: 'Crete Round', sans-serif;
    color: #091e42;
    font-style: normal;
    font-weight: 400;
    font-size: 40px;
    padding-bottom: 5%;
    padding-top: 0;
  }

  .infography-works {
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 20px;
    line-height: 28px;
    margin-bottom: 24px;
  }

  .desktop-bottom-works {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .list-technologies-ul {
    list-style: none;
    gap: 5%;
  }

  .list-technologies-ul li {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 15px;
    line-height: 20px;
    padding: 10px 12px;
    border-style: solid;
    border: 1px solid #8993a4;
    color: #091e42;
  }

  .button-cont {
    padding-top: 24px;
  }

  .button-project {
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.03em;
    color: #e5e5e5;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    background: #ff6b00;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 12px;
    height: 48px;
    border: none;
  }

  .cards-container {
    display: grid;
    grid-template: 1fr 1fr / 1fr 1fr 1fr;
    column-gap: 24px;
    row-gap: 37px;
    width: 100%;
    padding: 24px 10% 130px 10%;
  }

  .button-project-card {
    display: none;
  }

  .single-card:hover .button-project-card {
    display: flex;
  }

  /* Modal desktop style */

  .modal {
    max-width: 80vw;
    max-height: 90vh;
  }

  .modal-title {
    padding-top: 20px;
  }

  .modal-title-desktop {
    padding-bottom: 16px;
  }

  .modal-techs-btn {
    gap: 15px;
  }

  .modal-techs {
    padding: 0 0 40px 16px;
  }

  .modal-img {
    max-width: 100%;
  }

  .modal-desktop-top {
    display: flex;
    flex-direction: column;
  }

  .modal-desktop-bottom {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    padding-bottom: 2%;
  }

  .item1 {
    grid-column: 1;
    grid-row-start: 1;
    grid-row-end: 2;
  }

  .item2 {
    padding-top: 0;
    grid-column: 2;
    grid-row: 1;
  }

  .item3 {
    grid-column: 2;
    grid-row: 2;
  }

  .modal-btn-set {
    justify-content: left;
    gap: 10%;
    padding-bottom: 0;
    margin-bottom: 0;
  }

  .modal-paragraph {
    justify-content: space-evenly;
    padding-bottom: 0;
  }

  /* About me section */

  .about-top {
    background-image: url(./img/About\ illustration.svg);
    background-position-y: center;
  }

  .about-me {
    padding-left: 10%;
  }

  .infography-about {
    font-size: 20px;
    font-weight: 400;
    line-height: 32px;
    padding-right: 50%;
  }

  .button-cont-resume {
    padding-top: 3%;
  }

  .vector-about {
    width: 100%;
    padding-right: 10%;
    height: 2px;
  }

  .about-bottom {
    flex-direction: row;
    gap: 19%;
    align-items: baseline;
  }

  .ab-bt-blocks {
    flex-direction: row;
  }

  .about-bullet {
    text-align: left;
  }

  .ab-titles {
    text-align: left;
  }

  /* Contact me section */

  .infography-contact {
    padding: 0%;
  }

  .form-container {
    display: grid;
    grid-template-columns: 45% auto;
    padding: 10% 10% 150px;
  }

  .form-container p {
    padding-top: 20px;
  }

  .vector-footer {
    display: none;
  }

  .infography-contact p {
    text-align: left;
  }

  .button-contact {
    text-align: left;
    padding-left: 20px;
    padding-top: 10px;
  }

  /* Footer */

  .social-media-icons-footer {
    border-top: 2px solid #dfe1e6;
    padding-bottom: 20px;
  }
}
