:root {
  --main-color: #f9f4f4f5;
  --text-hover-color: #162938;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "poppins", sans-serif;
  scroll-behavior: smooth;
  /* overflow-x: hidden; */
  
}

body {
  display: flex;
  color: var(--main-color);
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

@media screen and (max-width: 800px) {
  body {
    display: flex;
    color: var(--main-color);
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    flex-direction: column-reverse;
  }
}

.content {
  margin: 2rem auto;
  max-width: 150vh;
}

.svg-curve {
  position: absolute;
  bottom: auto;
  fill: none;
  width: 100%;
  display: block;
}


.svg-curve path {
  fill: var(--text-hover-color);
}


/* .svg_curve-up {
  position: absolute;
  bottom: 0;
  fill: none;
  width: 100%;
  display: block;
} */

/* .svg-curve-up path {
  fill: var(--text-hover-color);
} */


/* header */

header {
  position: fixed;
  color: var(--main-color);
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.2rem 5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--main-color);
  backdrop-filter: blur(5px);
  z-index: 1;
  mix-blend-mode: difference;
}

@media screen and (max-width: 1000px) {
  header {
    justify-content: center;
    }
}

@media screen and (max-width: 800px) {
  header {
    display: none;
    }
}

.logo {
  font-size: 2rem;
  display: inline-flex;
  align-items: center;
}

@media screen and (max-width: 1000px) {
  .logo {
    display: none;
  }
}

.navigation {
  display: flex;
}

/* svg {
  margin-right: 5px;
} */

.navigation a {
  display: inline-flex;
  align-items: center;
  position: relative;
  font-size: 1.1em;
  color: var(--main-color);
  text-decoration: none;
  font-weight: 500;
  margin-left: 2rem;
  transition: 0.2s all;

  &:first-child {
    margin-left: 0;
  }

  &:nth-child(4) {
    margin-right: 2rem;
  }
  &:focus {
    scale: 1.05;
  }
}
@media screen and (max-width: 800px) {
  .navigation a {
    display: none;
    align-items: center;
    position: relative;
    font-size: 1.1em;
    color: var(--main-color);
    text-decoration: none;
    font-weight: 500;
    margin-left: 2rem;

    &:first-child {
      margin-left: 0;
    }

    &:nth-child(4) {
      margin-right: 2rem;
    }
  }
}

.navigation a::after {
  content: "";
  position: absolute;
  width: 100%;
  left: 0;
  bottom: -3px;
  height: 3px;
  background: var(--main-color);
  border-radius: 5px;
  transform-origin: right;
  transform: scaleX(0);
  transition: transform 0.5s;
}

.navigation a:hover::after {
  transform-origin: left;
  transform: scaleX(1);
}

.btnlogin-popup {
  padding: 0.5rem 1.2rem;
  border: 2px var(--text-hover-color) solid;
  background-color: var(--text-hover-color);
  outline: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.1em;
  color: var(--main-color);
  font-weight: 500;
  transition: 0.5s;
}

.btnlogin-popup:hover {
  background: transparent;
  color: var(--text-hover-color);
}

/* burger_menu */

.hamburger-menu {
  display: none;
}

@media screen and (max-width: 800px) {
  .hamburger-menu {
    position: fixed;
    display: flex;
    margin: 0;
    padding: 0;
    z-index: 5;
    
  }

  #menu__toggle {
    opacity: 0;
    
  }

  #menu__toggle:checked ~ .menu__btn > span {
    transform: rotate(45deg);
  }
  #menu__toggle:checked ~ .menu__btn > span::before {
    top: 0;
    transform: rotate(0);
  }
  #menu__toggle:checked ~ .menu__btn > span::after {
    top: 0;
    transform: rotate(90deg);
  }
  #menu__toggle:checked ~ .menu__box {
    visibility: visible;
    left: 0;
  }

  .menu__btn {
    display: flex;
    align-items: center;
    position: fixed;
    top: 20px;
    left: 20px;
    width: 26px;
    height: 26px;
    cursor: pointer;
    z-index: 3;
  }

  .menu__btn > span,
  .menu__btn > span::before,
  .menu__btn > span::after {
    display: block;
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--main-color);
    transition-duration: 0.35s;
  }
  .menu__btn > span::before {
    content: "";
    top: -8px;
  }
  .menu__btn > span::after {
    content: "";
    top: 8px;
  }

  .menu__box {
    display: block;
    position: fixed;
    visibility: hidden;
    top: 0;
    left: -100%;
    color: var(--main-color);
    width: 250px;
    height: 100vh;
    margin: 0;
    padding: 80px 0;
    list-style: none;
    color: var(--main-color);
    background-color: #153349f3;
    box-shadow: 20px 0px 20px rgba(0, 0, 0, 0.2);
    z-index: 2;
    transition-duration: 0.25s;
  }

  .menu__item {
    display: block;
    padding: 12px 24px;
    color: var(--main-color);
    font-family: "Roboto", sans-serif;
    font-size: 20px;
    font-weight: 600;
    text-decoration: none;
    transition-duration: 0.25s;
  }
  .menu__item:hover {
    background-color: var(--main-color);
    color: var(--text-hover-color);
  }
}



/* service */

.service__section {
  /* min-width: 100vw; */
  background-color: var(--main-color);
  color: var(--text-hover-color);
}


.section__service-container {
  /* max-width: calc(100% / 2); */
  margin: 0 auto;
  padding: 12rem 10rem;
}

@media screen and (max-width: 800px) {
  .section__service-container {
    max-width: calc(100% / 1.2);
    margin: 0 auto;
    padding: 10rem 0;
  }
}

.section__service-block {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr 1fr 1fr;
  perspective: 500px;
  justify-items: center;
}

@media screen and (max-width: 800px) {
  .section__service-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
    perspective: 500px;
  }
}

.service__block {
  padding: 1rem;
  display: grid;
  gap: 0.5rem;
  border: 2px solid var(--text-hover-color);
  border-radius: 8px;
  box-shadow: 0px 5px 21px 8px rgba(34, 60, 80, 0.2);
  transition: 0.5s all;
  /* max-width: 40%; */
}
.service__block:hover {
  transform: rotateX(5deg);
}

.service__block h2 {
  font-size: 1.5rem;
  font-weight: 600;
  align-self: center;
  justify-self: center;
}
.service__block svg {
  font-size: 1.5rem;
  font-weight: 600;
  align-self: center;
  justify-self: center;
}
.service__block p {
  margin-bottom: 2rem;
}


/* projects section */

/* .test_container{
  position: relative;
  display: block;
} */


.projects{
  display: flex;
  
}



.projects__wrapper {
  max-width: 75%;
  margin: 0 auto;
  padding: 8rem 0;
}

@media screen and (max-width: 800px) {
  .projects__wrapper {
    max-width: 75%;
    margin: 0 auto;
    padding: 10rem 0;
  }
}

.projects__grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4rem;
  max-width: 1440px;
  perspective: 500px;
}

@media screen and (max-width: 1280px) {
  .projects__grid {
    display: flex;
    justify-items: center;
    perspective: 500px;
  }
}


@media screen and (max-width: 800px) {
  .projects__grid {
    display: grid;
    justify-content: space-around;
    perspective: 500px;
  }
}

.projects__grid-item {
  max-width: 20%;
  min-height: 19rem;
  position: relative;
  border: 2px solid var(--main-color);
  border-radius: 10px;
  padding: 1rem;
  transition: 0.5s all;
  box-shadow: 0px 5px 21px 8px rgba(51, 69, 83, 0.2);
  &:hover {
    transform: rotateX(3deg);
  }
}

@media screen and (max-width: 1280px) {
  .projects__grid-item {
    max-width: 40%;
    margin: 1rem;
    position: relative;
    border: 2px solid var(--main-color);
    border-radius: 10px;
    padding: 1rem;
    transition: 0.5s all;
    box-shadow: 0px 5px 21px 8px rgba(51, 69, 83, 0.2);
    &:hover {
      transform: rotateX(3deg);
    }
  }
}
@media screen and (max-width: 800px) {
  .projects__grid-item {
    max-width: 100%;
    margin: 1rem;
    position: relative;
    border: 2px solid var(--main-color);
    border-radius: 10px;
    padding: 1rem;
    transition: 0.5s all;
    box-shadow: 0px 5px 21px 8px rgba(51, 69, 83, 0.2);
    &:hover {
      transform: rotateX(3deg);
    }
  }
}

.projects__grid-item h3 {
  justify-items: center;
  font-size: 1.5rem;
  font-weight: 600;
}

.projects__grid-item p {
  margin: 1rem 0;
}

.projects__grid-item img {
  max-width: 100%;
  height: auto;
}

@media screen and (max-width: 800px) {
  .projects__grid-item img {
    display: none;
  }
}

.btnlogin-popup-projects {
  padding: 0.5rem 0;
  position: absolute;
  bottom: 0;
  margin-bottom: 1rem;
  border: 2px var(--text-hover-color) solid;
  background-color: var(--main-color);
  outline: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.1em;
  color: var(--text-hover-color);
  font-weight: 500;
  transition: 0.5s;
  width: 85%;
  &:hover {
    background-color: var(--text-hover-color);
    color: var(--main-color);
    border: 2px var(--main-color) solid;
  }
}

/* contact_me  */

.container__contact {
  background-color: var(--main-color);
  color: var(--text-hover-color);
}
.content__contact {
  max-width: 100%;

  padding: 10rem 0;
}
.contact__form {
  border: 3px solid var(--text-hover-color);
  border-radius: 10px;
  display: grid;
  max-width: 25%;
  padding: 1.5rem;
  margin: 0 auto;
  outline: none;
  box-shadow: 0px 5px 21px 8px rgba(51, 69, 83, 0.2);
}

@media screen and (max-width: 1160px) {
  .contact__form {
    border: 2px solid var(--text-hover-color);
    border-radius: 5px;
    display: grid;
    min-width: 80%;
    padding: 1rem;
    margin: 0 auto;
  }
}

.contact__form h3 {
  font-size: 2rem;
  justify-self: center;
}

.contact__form input,
.text__area {
  border-bottom: 2px solid var(--text-hover-color);
  padding-left: 5px;
  min-height: 2.5rem;
  border-radius: 5px;
  margin: 1rem 0;
  transition: 0.5s all;

  &:focus {
    border: none;
    scale: 1.02;
  }
}

.text__area {
  min-height: 5rem;
  margin-bottom: 1rem;
}
