@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");
* {
  font-family: "Poppins", sans-serif;
  background-color: #023535;
  color: white;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  height: 100%;
  max-width: 1440px;
  margin: 0 auto;
  box-sizing: border-box;
}
.navbar.active li{
  background-color: transparent;
}

.dot {
  color: #d8ffdb;
  font-weight: bold;
  font-size: 1.875rem;
}

.header {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 2.8vw;
}

.logo {
  font-weight: bold;
  font-size: 1.875rem;
  position: relative;
  margin-right: auto;
  margin-left: 7.6vw;
}

.navbar {
  display: flex;
  justify-content: space-around;
  align-items: center;
  list-style: none;
  gap: 2vw;
  position: relative;
  margin-left: auto;
  margin-right: 11.5vw;
  font-weight: bold;
  font-size: 1.25rem;
}
.navbar li {
  transition: all 0.3s ease;
  cursor: pointer;
}
.navbar li:hover {
  transform: scale(1.2);
  color: #8ced94;
  text-shadow: 0 0 10px #008f8c;
}

.burger {
  display: none;
}

.text-image {
  margin-left: 7.6vw;
  margin-right: auto;
  margin-top: 14.6vw;
  display: flex;
}
.hello {
  font-size: 2em;
  font-weight: bold;
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  border-right: 3px solid #8ced94;
  width: 0%;
  animation: typing 1s steps(18) forwards, blink 0.7s infinite;
}
@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 18ch;
  }
}
@keyframes blink {
  50% {
    border-color: transparent;
  }
}

.lorem {
  width: 48.6%;
}

.front-text {
  color: #008f8c;
}

.hero-image {
  width: 34.7vw;
  height: 34.7vw;
  border-radius: 138.8vw;
  border: 0.2vw solid #d8ffdb;
  position: relative;
  bottom: 6.9vw;
  right: 10vw;
}

.soc-icons svg {
  width: 2.8vw;
  height: 2.8vw;
  fill: #d8ffdb;
}

.soc-icons {
  display: inline-flex;
  gap: 0.35vw;
}

button {
  position: relative;
  top: 2.1vw;
  width: 10.4vw;
  height: 4.1vw;
  font-weight: bold;
  border-radius: 0.7vw;
  font-size: 1.25rem;
}

.buttons {
  display: flex;
  gap: 1vw;
}

.Hire {
  background-color: #d8ffdb;
  color: #023535;
  border: 0.14vw solid #d8ffdb;
  z-index: 1;
  overflow: hidden;
}
.Hire::after {
  content: "";
  position: absolute;
  top: 0%;
  right: 0%;
  width: 0%;
  height: 100%;
  background-color: #023535;
  z-index: -1;
  transition: width 0.4s ease;
}
.Hire:hover::after {
  width: 100%;
}
.Hire:hover {
  color: #d8ffdb;
  cursor: pointer;
}
.contact {
  border: 0.14vw solid #d8ffdb;
  z-index: 1;
  color: #d8ffdb;
  overflow: hidden;
}
.contact::before {
  content: "";
  position: absolute;
  top: 0%;
  left: 0%;
  width: 0%;
  height: 100%;
  background-color: #d8ffdb;
  z-index: -1;
  transition: width 0.4s ease;
}
.contact:hover::before {
  width: 100%;
}
.contact:hover {
  color: #023535;
  cursor: pointer;
}

.projects {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  top: 4.8vw;
  font-weight: bold;
  font-size: 2.5rem;
  flex-direction: column;
}

.text-project {
  color: #008f8c;
}

.works-images {
  width: 24.3vw;
  height: 20.8vw;
  background-color: black;
  border-radius: 0.7vw;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  transform-style: preserve-3d;
  will-change: transform;
}
.works-images:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}
.works div {
  perspective: 1000px;
}

.works {
  display: flex;
  position: relative;
  gap: 5.9vw;
  top: 2.9vw;
}

.works div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.view {
  background-color: #d8ffdb;
  color: #023535;
  transform-origin: center;
  border: none;
  transition: transform 0.3s ease, box-shadow 0.2s ease;
}
.view:hover {
  transform: scale(1.2);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  cursor: pointer;
}
.skill-text {
  display: flex;
  position: relative;
  justify-content: center;
  align-items: center;
  top: 22.2vw;
  color: #008f8c;
  font-size: 2.5rem;
  font-weight: bold;
}

.top-skills,
.bottom-skills {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  top: 24.3vw;
}

.top-skills svg,
.bottom-skills svg {
  width: 10.4vw;
  height: 10.4vw;
  fill: #d8ffdb;
  transition: all 0.3s ease;
  background-color: transparent;
}
.top-skills svg:hover,
.bottom-skills svg:hover {
  fill: #8ced94;
  transform: scale(1.2);
}

.about-text {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  top: 27.7vw;
  font-size: 2.5rem;
  font-weight: bold;
  color: #008f8c;
}

.about-box {
  background-color: #008f8c;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  top: 31.2vw;
  width: 69.4vw;
  height: 34.7vw;
  border-radius: 0.7vw;
  border: 0.28vw solid #d8ffdb;
}

.about-me {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.text-box {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 55.5vw;
  height: 20.8vw;
  background-color: #008f8c;
  font-size: 2vw;
}

.footer {
  background-color: #021d1d;
  width: 100%;
  height: 10.4vw;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  top: 36.1vw;
  gap: 2.8vw;
}

.footer svg {
  fill: #d8ffdb;
  width: 5.5vw;
  height: 5.5vw;
  background-color: #021d1d;
}
@media (max-width: 900px) {
  .hero-image {
    top: 10vw;
  }
  button {
    width: 12.4vw;
    height: 5.4vw;
  }
}

@media (width: 768px) {
  .logo {
    font-size: 1.56rem;
    bottom: 0.5vw;
  }

  .navbar {
    gap: 1.4vw;
    font-size: 1rem;
    left: 4.1vw;
  }

  .hero-image {
    width: 32.8vw;
    height: 32.8vw;
    left: 10vw;
    top: 1vw;
  }

  .lorem {
    width: 40.8vw;
    font-size: 1rem;
  }

  .hello {
    font-size: 1.7rem;
  }

  .front-text {
    font-size: 1.3rem;
  }

  .soc-icons svg {
    width: 3.5vw;
    height: 3.5vw;
  }

  button {
    font-size: 1rem;
  }

  .projects {
    top: 13.8vw;
    font-size: 1.875rem;
  }

  .works-images {
  }

  .works {
    gap: 4.5vw;
  }

  .about-box {
    width: 48.6vw;
    height: 27.7vw;
  }

  .text-box {
    width: 41.6vw;
    height: 27.7vw;
    font-size: 1.7vw;
  }

  .footer {
    height: 6.9vw;
    top: 36.1vw;
  }

  .footer svg {
    width: 3.5vw;
    height: 3.5vw;
  }
}
@media (max-width: 767.6px) {
  .burger {
    display: none;
    justify-content: center;
    align-items: center;
    background: none;
    border: 1px solid white;
    width: 5vw;
    height: 5vw;
    right: 5vw;
  }
  .navbar {
    display: flex;
    position: absolute;
    left: 8vw;
  }
  .navbar.active {
    display: flex;
    position: absolute;
    margin-top: 3vw;
  }
  .text-image {
    flex-direction: column-reverse;
    justify-content: center;
    align-items: center;
  }
  .hero-image {
    width: 50vw;
    height: 50vw;
    left: 20vw;
    position: unset;
    margin-bottom: 10vw;
  }
  .text-image-row {
    display: flex;
  }
  .lorem {
    width: 80%;
  }
  .soc-icons {
    display: grid;
  }
  .soc-icons svg {
    height: 9vw;
    width: 9vw;
  }
  .buttons {
    position: relative;
    right: 4vw;
    top: 1vw;
  }
  button {
    font-size: 1rem;
  }
  .navbar {
    display: none;
    position: absolute;
    left: 82vw;
    background-color: transparent;
    top: 10vw;
    flex-direction: column;
    width: 15vw;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform-origin: top center;
    transform: translateY(-8px) scaleY(0.98);
    transition: max-height 340ms cubic-bezier(0.2, 0.9, 0.2, 1),
      opacity 260ms ease, transform 300ms cubic-bezier(0.2, 0.9, 0.2, 1);
  }
  .navbar.active {
    display: flex;
    flex-direction: column;
    opacity: 1;
    transform: translateY(0) scaleY(1);
    max-height: 20rem;
    gap: 1rem;
  }
  .burger {
    display: flex;
    position: absolute;
  }

  .burger {
    width: 5vw;
    height: 5vw;
    background: transparent;
    border: none;
    position: relative;
    justify-content: center;
    align-items: center;
    cursor: pointer;
  }
  .burger::before,
  .burger::after {
    content: "";
    position: absolute;
    left: 18%;
    right: 18%;
    height: 2px;
    background: white;
    transition: transform 300ms cubic-bezier(0.2, 0.9, 0.2, 1), top 300ms ease,
      opacity 200ms ease;
  }
  .burger::before {
    top: 38%;
  }
  .burger::after {
    top: 62%;
  }

  .burger.open::before {
    transform: rotate(45deg);
    top: 50%;
  }
  .burger.open::after {
    transform: rotate(-45deg);
    top: 50%;
  }
}
@media (max-width: 657px) {
  .navbar.active{
    width: 20vw;
    left: 75vw;

  }
  
}
@media (max-width: 600px) {
  .text-image-row{
    flex-direction: column;
    justify-content: start;
    align-items: start;
    display: block;
  }
  .soc-icons{
    display: flex;
    justify-content: start;
    align-items: start;
  }
  .buttons button{
    position: relative;
    left: 4vw;
    width: 20vw;
    height: 10vw;
  }
  .burger{
    top: 4vw;
    position: absolute;
  }
  .works{
    flex-direction: column;
  }
  .works-images{
    width: 50vw;
    height: 40vw;
  }
  .view{
    width: 20vw;
    height: 10vw;
  }
  .navbar.active{
    width: 30vw;
    left: 70vw;
  }
  
}
@media (max-width: 425px) {
  .hello{
    font-size: 1.5em;
  }
  .front-text{
    font-size: 1.3em;
  }
  .lorem{
    font-size: 1em;
  }
  .text-project{
    font-size: 2rem;
  }
  .skill-text{
    font-size: 2rem;
  }
  .about-text{
    font-size: 2rem;
  }
  .text-box{
    font-size: 0.75em;
    width: 70vw;
    height: 55vw;
    background-color: transparent;
  }
  .about-box{
    width: 80vw;
    height: 50vw;
  }
  
}
@media (max-width: 320px) {
  .navbar.active{
    width: 40vw;
    left: 60vw;
  }
  .buttons button{
    width: 25vw;
  }
  .text-box{
    font-size: 0.65rem;
  }
  
}
