* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  animation: fadeIn 3s;
  color: white;
  background: black;
}

header {
  height: 100vh;
  background-size: 50%;
  background-position: right;
  background-repeat: no-repeat;
  background-image: url(/files/home.jpeg);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes typing {
  from {
    max-width: 0;
  }
  to {
    max-width: 100%;
  }
}

@keyframes cursor {
  from,
  to {
    border-color: transparent;
  }
  50% {
    border-color: white;
  }
}

.container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 15%;
  margin-right: 50%;
}

.navbar ul li {
  display: inline-block;
  margin: 1%;
  padding: 0;
}

.navbar ul li a {
  color: white;
  font-size: 18px;
  position: relative;
  text-decoration: none;
}

.navbar ul li a::after {
  content: "";
  width: 0;
  height: 3px;
  margin: auto;
  bottom: -5px;
  left: 0;
  right: 0;
  transition: 0.5s;
  background: rgb(0, 100, 255);
  position: absolute;
}

.navbar ul li a:hover::after {
  width: 100%;
}

#head-text p {
  font-size: 25px;
  margin: 0 auto;
}

#head-text h1 {
  font-size: 45px;
  overflow: hidden;
  border-right: 3px solid white;
  white-space: nowrap;
  margin: 0 auto;
  animation: typing 5s, cursor 1s step-end infinite;
  display: inline-block;
}

#head-text h1 span {
  color: rgb(0, 100, 255);
}

#about {
  height: 100vh;
  overflow-y: auto;
}

#about-me {
  margin-top: 8.5%;
  margin-bottom: 1%;
}

#about p {
  font-size: 15px;
  max-width: 90%;
  margin: 0 auto;
}

.row {
  display: flex;
}

.about-1 {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-basis: 50%;
}

.about-1 img {
  height: 85vh;
  border-radius: 35%;
}

.about-2 {
  flex-basis: 50%;
  text-align: center;
}

.subtitle {
  font-size: 35px;
  color: white;
}

.tab-titles ul li {
  font-size: 16px;
  list-style-type: none;
  display: inline-block;
  width: 15%;
  margin: 1%;
  margin-top: 3%;
  margin-bottom: 2%;
}

.tab-links {
  font-weight: bold;
  cursor: pointer;
  position: relative;
}

.tab-links::after {
  content: "";
  width: 0;
  height: 3px;
  margin: auto;
  bottom: -5px;
  left: 0;
  right: 0;
  transition: 0.5s;
  background: red;
  position: absolute;
}

.tab-links:hover::after {
  width: 100%;
}

.tab-links.active-link::after {
  width: 100%;
}

.tab-contents ul li {
  list-style: none;
  margin-top: 1%;
}

.tab-contents ul li span {
  color: red;
  font-size: 16px;
}

.tab-contents {
  display: none;
}

.tab-contents.active-tab {
  display: block;
  margin: 0 auto;
  max-width: 55%;
  animation: fadeIn 1s;
}

#work {
  height: 100vh;
  text-align: center;
  padding-top: 3%;
}

.projects {
  display: grid;
  grid-template-columns: 40% 40%;
  grid-gap: 100px;
  justify-content: center;
  margin-top: 10%;
}

.projects-list {
  position: relative;
  overflow: hidden;
  border-radius: 5%;
}

.projects-list img {
  margin: auto;
  width: 100%;
  display: block;
  transition: transform 0.5s;
}

.projects-list:hover img {
  transform: scale(1.03);
}

.projects-list:hover .layer {
  height: 100%;
}

.layer {
  height: 0%;
  background: linear-gradient(to top, black, rgba(255, 0, 0, 0));
  position: absolute;
  overflow: hidden;
  left: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 0 15%;
  text-align: center;
  transition: height 0.5s;
}

.layer h3 {
  font-size: 20px;
  font-weight: bold;
  margin-top: 10%;
  margin-bottom: 3%;
}

.layer a {
  margin-top: 20px;
  color: black;
  text-decoration: none;
  font-size: 20px;
  line-height: 45px;
  background-color: white;
  width: 45px;
  height: 45px;
  border-radius: 50%;
}

#contact {
  text-align: center;
  height: 45px;
}

.socials i {
  color: white;
  font-size: 30px;
  margin: 0 0.45%;
  transition: transform 0.5s;
}

.socials i:hover {
  color: rgb(0, 100, 255);
  transform: translateY(-5px);
}

#copyright {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 40px;
  background: #262626;
  font-weight: bold;
}

@media (max-width: 480px) {
  html {
    font-size: 12px;
  }

  .navbar {
    text-align: center;
    margin-top: 1.5%;
  }

  .navbar ul li {
    margin: 1.5% 4.5%;
  }

  .navbar ul li a {
    font-size: 16px;
    margin-right: 15px;
  }

  header {
    background-position: center 65%;
    background-size: 75%;
  }

  .container {
    margin: 0 auto;
  }

  #head-text {
    text-align: center;
    margin-top: 20%;
  }

  #head-text p {
    font-size: 17px;
  }

  #head-text h1 {
    font-size: 25px;
  }

  #about-me {
    margin-top: 0;
  }

  #about p {
    font-size: 12px;
    max-width: 70%;
    margin: 0 auto;
  }

  .row {
    display: inline;
  }

  .about-1 {
    height: 25vh;
  }

  .about-1 img {
    height: 150px;
    border-radius: 100%;
  }

  .subtitle {
    margin-bottom: 1%;
    font-size: 25px;
    color: white;
  }

  .tab-titles ul li {
    font-size: 13px;
    width: 20%;
  }

  .tab-contents ul li span {
    font-size: 13px;
  }

  .tab-contents.active-tab {
    max-width: 85%;
  }

  #work {
    padding-top: 15%;
  }

  .projects {
    grid-template-columns: none;
    grid-template-rows: 50% 50%;
    grid-auto-flow: column;
    grid-gap: 50px;
    align-items: center;
  }

  .projects-list {
    width: 80%;
    margin: 0 auto;
    border-radius: 10%;
  }

  .layer {
    font-size: 12px;
  }

  .layer h3 {
    font-size: 15px;
    margin: 0;
  }

  .layer a {
    margin-top: 15px;
    font-size: 15px;
    line-height: 35px;
    width: 35px;
    height: 35px;
  }

  .socials i {
    font-size: 25px;
    padding: 0 1.5%;
  }

  #copyright {
    height: 30px;
  }

  #copyright p {
    margin-top: 3px;
  }
}
