* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", sans-serif;
  font-size: 18px;
  text-align: center; 
  background-color: lightsteelblue;
}

img {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 2px solid #222;
}

ul {
  list-style-type: none; 
}

p, 
ul {
  margin-bottom: 2rem;
  line-height: 1.6;
}

.progress {
  position: fixed;
  left: 0;
  top: 0;
  widows: 0%;
  height: 2px;
  background-color: #222;
}

.wrapper {
  position: relative;
  overflow-x: hidden;
}

.content {
  transition: 0.5s;
  position: relative;
  z-index: 0;
}

.content_active {
  transform: translateX(30%);
}

a {
  text-decoration: none;
  position: relative;
}

a:visited {
  color: #222;
}

.links {
  margin: auto;
  width: 30%;
}

.underscore a::before {
  content: '';
  bottom: 0;
  right: 0;
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: #222;
  transition: 0.2s;
  transform: scaleX(0);
}

.underscore a:hover:before {
  width: 100%;
  transform: scaleX(1);
}

.menu-btn {
  display: block;
  width: 50px;
  height: 50px;
  background-color: #f5f5f5;
  border-radius: 50%;
  position: relative;
}

.menu-btn span,
.menu-btn span::before,
.menu-btn span::after {
  position: absolute;
  top: 50%; margin-top: -1px;
  left: 50%; margin-left: -10px;
  width: 20px;
  height: 2px;
  background-color: #222;
}

.menu-btn span::before,
.menu-btn span::after {
  content: '';
  display: block;
  transition: 0.3s;
}

.menu-btn span::before {
  transform: translateY(-5px);
}

.menu-btn span::after {
  transform: translateY(5px);
}

.menu-btn_active span {
  height: 0;
}

.menu-btn_active span:before {
  transform:rotate(45deg);
}

.menu-btn_active span:after {
  transform: rotate(-45deg);
}

.menu {
  position: fixed;
  left: 0; top: 0;
  z-index: 99;
  width: 30%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f5f5f5;
  transition: 0.5s;
  transform: translateX(-100%);
}

.menu_active {
  transform: translateX(0%);
}

.menu-list {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 50%;
  flex-direction: column;
}

.menu-list a {
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 900;
}

.menu-btn {
  position: absolute;
  right: -60px;
  top: 10px;
}

.home,
.about,
.skills,
.projects,
.contacts {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.about {
  margin: 0 auto;
  max-width: 60%;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 100px;
  margin-top: 100px;
}

.card {
  width: 300px;
  height: 300px;
  position: relative;
  perspective: 1000px;
}

.front,
.back {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 1s;
  backface-visibility: hidden;
  border-radius: 20px;
  color: #222;
}

.front {
  background-color: #f5f5f5;
}

.back {
  background-color: #222;
  color: #f5f5f5;
  transform: rotateY(180deg);
}

.card:hover .front {
  transform: rotateY(180deg);
}

.card:hover .back {
  transform: rotateY(360deg);
}

textarea {
  height: 150px;
  resize: none;
}

input, 
textarea {
  min-width: 800px;
  width: 100%;
  padding: 12px 20px;
  margin: 10px 0;
  box-sizing: border-box;
  border: 2px solid #f5f5f5;
  background-color: #f5f5f5;
}

input:focus,
textarea:focus {
  transition: 0.2s ease-in-out;
  border: 2px solid #222;
  outline: none;
}

button {
  background-color: #f5f5f5;
  color: #222;
  width: 150px;
  height: 50px;
  padding: 16px 32px;
  margin: 4px 2px;
  border: 2px solid #f5f5f5;
  outline: none;
  font-size: 16px;
}

button:hover {
  transition: 0.2s ease-in-out;
  border: 2px solid #222;
}

::-webkit-scrollbar {
  display: none;
}
