/* BASE */
a {
  text-decoration: none;
  color: rgb(70, 70, 70);
  transition: 0.5s;
  zoom: 100%;
}

a:hover {
  color: rgb(248, 249, 250);
}

a.nav-link {
  padding: 9px;
}

/* COVER */
.coverbg {
  min-height: 100vh;
  background: #000
    url(https://img.freepik.com/free-vector/bring-night-space-wallpaper-with-glowing-starfield_1017-53512.jpg?t=st=1737183766~exp=1737187366~hmac=a2edab25061dc830497c1ffb8724cf23835c3dfec0aaf9f05d7516f9afdecce0&w=1060) repeat top center;
  background-size: cover;
  display: flex;
  flex-direction: column;
  background-attachment: fixed;
}


.coverbg h1 {
  margin: auto;
  text-align: center;
}

.coverbg p {
  margin: auto;
  text-align: center;
}

.bio a {
  color: rgb(248, 249, 250);
}

.typewrite {
  display: flex;
  align-items: flex-start;
}

@media (max-width: 991px) {
  .coverbg {
    min-height: 130vh;
    padding-top: 20vh;
  }
}

@media (max-width: 448px) {
  .coverbg {
    min-height: 150vh;
  }
}

/* HEADER */
header {
  transition: background-color 0.2s ease, opacity 0.2s ease;
  display: flex;
}

header.scrolled {
  background-color: #1a1a1d;
  opacity: 1;
}

#header {
  opacity: 95%;
}

.nav-pills .nav-link {
  color: rgb(144, 144, 144);
  background: linear-gradient(
      to right,
      rgba(255, 255, 255, 0),
      rgba(255, 255, 255, 0)
    ),
    linear-gradient(
      to right,
      rgb(255, 96, 218),
      rgb(225, 169, 246),
      rgb(209, 187, 249),
      rgb(181, 229, 255),
      rgb(103, 202, 255)
    );
  background-size: 100% 10%, 0 10%;
  background-position: 100% 100%, 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.4s ease;
  font-weight: bold;
}

.nav-pills .nav-link:hover {
  background-size: 0 10%, 100% 10%;
  color: rgba(248, 249, 250, 1);
  transition: 0.6s;
}

.nav-pills .nav-link + .nav-link {
  margin-left: 4rem;
}

.nav-pills .nav-link:focus {
  color: rgba(248, 249, 250);
  color: rgba(248, 249, 250);
  background: linear-gradient(to top, transparent, rgba(248, 249, 250));
  color: rgba(248, 249, 250);
  background: linear-gradient(to top, transparent, rgba(248, 249, 250));
  background-size: 100% 10%;
  background-position: 0 100%, 100% 100%;
  background-repeat: no-repeat;
  transition: none;
}

#logo {
  transition: opacity 0.2s;
}

@media (max-width: 1075px) {
  #btn-back-to-top {
    display: none !important;
  }
}

@media (max-width: 767px) {
  #logo {
    width: 50px;
    height: 50px;
  }
  .nav-collapse {
    display: none;
  }
  header {
    display: inline !important;
  }
}

@media (max-width: 430px) {
  .nav-link {
    font-size: 14px;
  }
  #logo {
    width: 50px;
    height: 50px;
  }
}

.hovicon:after {
  pointer-events: none;
  position: absolute;
  width: 91%;
  height: 93%;
  border-radius: 50%;
  content: "";
  box-sizing: content-box;
  top: 3px;
  left: 3px;
  z-index: -1;
  background: rgb(248, 249, 250);
  transition: transform 0.4s, opacity 0.4s;
}

.hovicon:hover:after {
  transform: scale(1.3);
  opacity: 0;
}

/* ABOUT */
.about {
  padding: 1.5rem 4.5rem 0 4.5rem;
}

.about-container {
  max-width: 1200px;
  background-color: rgb(26, 26, 26);
}

@media screen and (min-width: 1024px) {
  .about-container {
    max-width: 1400px;
  }
}

.about .col-lg-4 {
  padding: 80px 30px;
}

@media (max-width: 994px) {
  .about .col-lg-4 {
    border-right: none !important;
    border-left: none !important;
    border-bottom: 1px solid rgb(248, 249, 250);
  }

  .about .col-lg-4:last-child {
    border-bottom: none;
  }
}

@media (max-width: 534px) {
  .about {
    padding: 0;
  }
}

/* COVER */
.container-fluid {
  padding: 0;
}

/* AVATAR */
.flip-card {
  position: relative;
  width: 100%;
  max-width: 400px;
  min-height: 30vh;
  height: auto;
  perspective: 1000px;
  margin: auto; /* Center the card */
}

.flip-card-front img,
.flip-card-back img {
  width: auto;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
}

.flip-card-back {
  color: white;
  transform: rotateY(180deg);
}

.flip-card.flipped .flip-card-inner {
  transform: rotateY(180deg);
}

/* ALBUM */
.album {
  background-color: #f1f1f1 !important;
}

.card-body {
  background-color: #1a1a1d;
  color: rgb(248, 249, 250);
}

@media (max-width: 1200px) {
  .card-img-top {
    max-height: 230px;
  }
}

@media (max-width: 992px) {
  .card-img-top {
    max-height: 220px;
  }
}

@media (max-width: 576px) {
  .card-img-top {
    height: auto;
    max-height: 500px;
  }
}

/* BUTTON */
button {
  background-image: linear-gradient(
    to right,
    rgb(255, 125, 225) 0%,
    #a6c1ee 51%,
    rgb(255, 96, 218) 100%
  );
  flex: 1 1 auto;
  background-size: 200% auto;
  border: none !important;
  box-shadow: none;
}

button:hover {
  transition: 0.5s;
  background-position: right center;
}

#btn-back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: none;
}

#emailBtn {
  background-image: none;
  border: 2px solid rgb(248, 249, 250) !important;
}

.email-button {
  transition: transform 0.2s ease-in-out;
}

.email-button:hover {
  transform: scale(1.1);
}

.email-button.clicked {
  transform: scale(1.15);
}

/* ANIMATIONS */

.animate-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s, transform 0.5s;
}
