@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Outfit:wght@100..900&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&family=Quicksand:wght@300..700&family=Schoolbell&family=Sora:wght@100..800&display=swap");

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

:root {
  --accent: rgb(99, 194, 123);
}

.extra-light {
  font-weight: 200;
}

body {
  background-color: black;
  color: white;
}

.spacer {
  height: 3rem;
}

nav {
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  border-bottom: 1px rgb(95, 95, 95) solid;
  backdrop-filter: blur(20px);
  position: sticky;
  z-index: 999;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
}

.nav-buttons {
  display: flex;
  gap: 3rem;
}

.nav-buttons a {
  text-decoration: none;
  color: white;
  /* transition: 0.2s ease-in-out; */
  border-bottom: none;
}

.nav-buttons a:hover {
  border-bottom: 1px solid var(--accent);
  /* position: absolute; */
}

.icon {
  width: 50px;
  border: 1px solid white;
  border-radius: 50%;
  transition: 0.2s;
}

.icon:hover {
  border-width: 5px;
}

/* Content */

body {
  background-color: black;
}

svg {
  display: none;
}

.profile {
  height: 32rem;
  background: black;
  background-image: url("res/images/profileimg3.JPEG");
  background-size: auto 600px;
  background-position: right;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  /* padding: 2rem 0; */
}

.profile-details {
  width: 100%;
  padding: 0 2rem;
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* bottom: 20px; */
  /* backdrop-filter: blur(20px); */
  bottom: 0;
  padding-bottom: 2rem;
}

.name,
.socials {
  z-index: 2;
}

.backdrop {
  width: 100%;
  height: 100%;
  position: absolute;
  z-index: 1;
  /* top: 0; */
  bottom: 0;
  opacity: 1;

  /*  where the real magic happens  */
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);

  background: rgba(225, 225, 225, 0.05);

  mask-image: linear-gradient(
    to top,
    rgb(0, 0, 0) 50%,
    rgba(0, 0, 0, 0.8) 70%,
    rgba(0, 0, 0, 0) 100%
  );
  -webkit-mask-image: linear-gradient(
    to top,
    rgb(0, 0, 0) 50%,
    rgba(0, 0, 0, 0.8) 70%,
    rgba(0, 0, 0, 0) 100%
  );

  inset: 0 0;
}

.profile-details img {
  position: absolute;
  width: 10rem;
}

.profile-details h1 {
  bottom: 0;
  font-size: 4rem;
}

.socials {
  display: flex;
  gap: 2rem;
}

.socials img {
  width: 4rem;
  /* transition: 0.2s; */
  position: relative;
}

.socials img:hover {
  filter: invert(96%) sepia(85%) saturate(787%) hue-rotate(59deg)
    brightness(83%) contrast(80%);
}

.desc {
  margin: 2rem auto;
  text-align: center;
}

.languages {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.languages img {
  /* filter: drop-shadow(0 0 0 transparent) invert(); */
  filter: invert(100%) sepia(2%) saturate(9%) hue-rotate(345deg)
    brightness(104%) contrast(103%);
  width: 5rem;
  transition: 0.2s;
}

.languages img:hover {
  transform: scale(1.1);
  filter: drop-shadow(0px 0px 15px black) invert(96%) sepia(85%) saturate(787%)
    hue-rotate(59deg) brightness(83%) contrast(80%);
}

.project-title {
  text-align: center;
  padding: 3rem;
  font-size: 5rem;
}

.projects {
  height: auto;
  background: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
}

.project-item {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  color: black;
  justify-content: center;
  margin: 2rem 10rem;
}

.project-item a {
  text-decoration: none;
}

.project-item h1 {
  font-size: 3rem;
}

.project-item img {
  width: 40rem;
  object-fit: cover;
  aspect-ratio: 16/9;
  transition: 0.25s;
}

.project-item img:hover {
  transform: scale(1.05);
}

.img-container {
  height: inherit;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: end;

  position: relative;
}
/* update */
.img-container img {
  position: absolute;
  width: 1000px;
}

.contact {
  background-color: black;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin: 2rem;
}

.contact input,
.contact textarea {
  background-color: black;
  border: 1px solid white;
  height: 2rem;
  color: white;
  padding: 0.2rem;
}

.contact textarea {
  width: 40rem;
  height: 12rem;
}

.contact input:focus,
.contact textarea:focus {
  outline: none;
}

#successMessage {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0s linear 0.5s;
  font-size: 1rem;
}

#successMessage.show {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease;
}

.message {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.btn {
  background-color: black;
  border: 1px solid white;
  padding: 0.75em 2rem;
  color: white;
  transition: 0.1s;
}

.btn:hover {
  border: 1px solid black;

  filter: invert();
  cursor: pointer;
}

#contact {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem;
}

#contact p {
  text-align: center;
}

/* End of Content */

footer {
  padding: 2rem 0;
  bottom: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}
