/* GENERAL & NAV */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

a {
  color: #ffffff;
  text-decoration: none;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: bold;
  margin-top: 2rem;
}

body {
  background: #212534;
  align-items: center;
  font-family: 'Fira Sans', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  padding: 0.5rem 1rem;
}

nav ul li a:hover {
  background: #444;
}

/* SIDEBAR */

.sidebar-tab {
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  background-color: #333;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 0 5px 5px 0;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}

.sidebar {
  position: fixed;
  left: -245px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  background-color: #333;
  padding: 20px;
  border-radius: 0 10px 10px 0;
  transition: left 0.3s ease-in-out;
  z-index: 1000;
  color: white;
}

.sidebar:hover {
  left: 0;
}

.sidebar button {
  background-color: #444;
  color: #fff;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s ease-in-out;
}

.sidebar button:hover {
  background-color: #555;
}

/* HEADER & FOOTER */

.centered-head {
  display: flex;
  justify-content: center;
  margin-top: 50px;
  margin-bottom: 30px;
  color: #dce2ed;
  font-size: 40px;
  font-family: 'Fira Sans', sans-serif;
}

footer {
  background: #131313;
  color: #fff;
  text-align: center;
  padding: 1rem;
  margin-top: 1rem;
}

/* ABOVE-THE-FOLD SECTION */
.banner {
  background-image: url("../assets/images/background/toothmuseum.jpg");
  height: 100vh;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.banner-text {
  color: #fff;
  text-align: center;
  z-index: 2;
  position: relative;
}

.banner-text h1 {
  font-size: 5vw;

}

.banner-text p {
  font-size: 2vw;
  margin-bottom: 5rem;
}

.banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.content {
  transition: margin-left 0.3s ease-in-out;
}

.social-media {
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 80vw;
}

/* .icon { 
  scale: 2.5;
} */

.social-media a {
  color: #fff;
  font-size: 5vw;
  transition: color 0.3s ease-in-out;
}

.social-media a:hover {
  color: #c2aeae;
}

#pdf-container {
  width: 60vw;
  height: 100vh;
  top: 0px;
  display: none;
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
}

#minimize-btn {
  position: absolute;
  top: 60px;
  left: 30px;
  display: flex;
  background: #2e2e2e;
  color: #fff;
  border: none;
  padding: 10px 20px;
  font-size: 20px;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s ease-in-out;
}

#resume-icon {
  margin-top: 100px;
  width: 7vw;
  align-items: center;
  border-radius: 3px;
  cursor: pointer
}

@keyframes panBackground {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@media (max-width: 768px) {
  .social-media {
    flex-direction: column;
    flex-wrap: wrap;
    height: 35vw;
  }

  .icon {
    scale: 2.5;
  }

  .banner-text h1 {
    font-size: 10vw;
    margin-bottom: 5rem;
  }

  .banner-text p {
    font-size: 4vw;
    margin-bottom: 5rem;
  }

  #resume-icon {
    margin-top: 100px;
    width: 20vw;
    align-items: center;
    border-radius: 3px;
    cursor: pointer
  }

  #pdf-container {
    width: 90vw;
    height: 90vh;
    position: relative;
  }

  #minimize-btn {
    position: absolute;
    top: 60px;
    right: 10px;
    display: flex;
    background: #626262;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 40px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease-in-out;
  }

  /* Mobile Improvements */
  .banner {
    background-attachment: scroll;
    height: 100vh;
    animation: panBackground 60s infinite;
  }

  .profile {
    flex-direction: column;
    text-align: center;
  }

  .profile img {
    margin-right: 0;
    margin-bottom: 2vh;
    /* height: 30vw; */
    /* width: 30vw; */
    /* object-fit: cover; */
    /* border-radius: 100%; */
  }

  .about-section p1 {
    font-size: 2.5vh;
  }

  .thumbnails img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    margin-top: 0;
    border-radius: 6px 6px 0 0;
  }

  /* duplicated in project section */
  /* .card {
    width: 80vw;
    height: auto;
    min-height: 40vh;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }

  .card h3 {
    margin-top: 1rem;
    margin-bottom: 1rem;
    font-size: calc(var(--card-width) / 10);
  } */
}

/* BIO SECTION */

.about-section {
  padding-bottom: 2vh;
  border-top: 3px solid #000000;
  border-bottom: 3px solid #000000;
  color: #c2c2c2;
}

.about-container {
  max-width: 85vw;
  margin: 0 auto;
  padding: 1vh 1vw;
}

.about-section p1 {
  font-size: 3vh;
  margin-bottom: 4vh;
}

.profile {
  display: flex;
  align-items: center;
}

.profile img {
  height: 15vw;
  border-radius: 50%;
  margin-right: 3vw;
  object-fit: cover;
  border: 2px solid #0f0f0f;
}

.bio img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
}

/* PROJECTS SECTION */

:root {
  --card-height: 60vh;
  --card-width: calc(var(--card-height) / 1.5);
}

.card {
  background: #191c29;
  width: var(--card-width);
  height: var(--card-height);
  padding: 3px;
  position: relative;
  border-radius: 6px;
  justify-content: center;
  align-items: center;
  text-align: center;
  display: flex;
  color: rgb(88 199 250 / 0%);
  cursor: pointer;
  font-family: cursive;
}

.card h3 {
  margin-top: -2rem;
  margin-bottom: 3rem;
  font-size: calc(var(--card-width) / 16);
}

.thumbnails {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 3vw;
  padding: 2vh 2vw;
}

.thumbnails img {
  width: 30vh;
  height: 30vh;
  object-fit: cover;
  border-radius: 1vw;
  cursor: pointer;
  margin-top: 5vh;
  transition: transform 0.3s ease-in-out;
}

@property --rotate {
  syntax: "<angle>";
  initial-value: 132deg;
  inherits: false;
}

.card:hover {
  color: rgb(255, 255, 255);
  transition: color 1s;
}

.card:hover:before,
.card:hover:after {
  animation: none;
  opacity: 0;
}

.card::before {
  content: "";
  width: 104%;
  height: 102%;
  border-radius: 8px;
  background-image: linear-gradient(var(--rotate), #5ddcff, #3c67e3 43%, #4e00c2);
  position: absolute;
  z-index: -1;
  top: -1%;
  left: -2%;
  animation: spin 2.5s linear infinite;
}

.card::after {
  position: absolute;
  content: "";
  top: calc(var(--card-height) / 6);
  left: 0;
  right: 0;
  z-index: -1;
  height: 100%;
  width: 100%;
  margin: 0 auto;
  transform: scale(0.8);
  filter: blur(calc(var(--card-height) / 6));
  background-image: linear-gradient(var(--rotate), #5ddcff, #3c67e3 43%, #4e00c2);
  opacity: 1;
  transition: opacity .5s;
  animation: spin 2.5s linear infinite;
}

@keyframes spin {
  0% {
    --rotate: 0deg;
  }

  100% {
    --rotate: 360deg;
  }
}