/* font styling */
.roboto-mono-reguler {
  font-family: "Roboto Mono", monospace;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
}

.roboto-mono-bold {
  font-family: "Roboto Mono", monospace;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
}

html {
  font-size: 1.3rem;
  line-height: 1.4;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: #1a191d;
}

/* buat AOS bug  */
html,
body {
  overflow-x: hidden !important;
  width: 100%;
}

h6 {
  font-size: 16px;
}

a {
  color: white;
}

a.text-lightseagreen {
  color: lightseagreen;
}

a:hover {
  color: #5eead4;
}

a.larger {
  transition: transform 0.3s ease, font-weight 0.3s ease;
}

a.larger:hover {
  display: inline-block;
  /* font-weight: 600; */
  transform: scale(1.05);
}

.hero a {
  display: inline-block;
  font-weight: 600;
}

.hero h1 {
  font-size: 5vw;
  text-shadow: 1px 3px 11px rgba(0, 0, 0, 0.3);
  font-weight: 600;
}

.hero p {
  font-size: 2vw;
  font-weight: 500;
}

h1 {
  font-weight: 600;
}

/* end font styling */

::-webkit-scrollbar {
  width: 0px;
}

.light {
  position: fixed;
  border-radius: 50%;
  width: 1px;
  height: 1px;
  box-shadow: 0 0 9999px 200px rgba(135, 206, 250, 0.15);
  pointer-events: none;
  z-index: -9999;
  transition: box-shadow 0.3s ease;
}

.navbar {
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
  background-color: white;
  backdrop-filter: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled .nav-link {
  color: black;
}

.navbar.scrolled .navbar-brand {
  color: black;
}

.nav-link {
  /* color: rgb(112, 216, 216); */
  color: white;
  transition: color 0.3s ease;
}
.navbar-brand {
  color: white;
  /* font-weight: 600; */
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: palevioletred;
}
.navbar.scrolled .nav-link:hover {
  color: lightseagreen;
}

.navbar-brand:hover {
  color: white;
  transition: color 0.3s ease;
}

.hero {
  position: relative;
  background: url("/assets/img/bg.webp") no-repeat center center;
  color: white;
  height: 100vh;
  background-size: 110%;
  background-attachment: fixed;
  animation: zoomBackground 12s ease infinite;
}

@keyframes zoomBackground {
  0% {
    background-size: 110%;
  }
  50% {
    background-size: 116%;
  }
  100% {
    background-size: 110%;
  }
}

.hero::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, #1a191d 100%);
  z-index: 1;
}

.hero p span {
  border-right: 3px solid white;
  animation: cursor 0.4s step-end infinite alternate;
}

@keyframes cursor {
  50% {
    border-color: transparent;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1,
.hero a,
.hero p {
  animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

section {
  padding-top: 5rem;
  color: white;
  padding-bottom: 5rem;
}

section#about {
  background: linear-gradient(to top, rgba(0, 0, 0, 0) 80%, #1a191d 100%);
}

button {
  border-radius: 0;
}

#project .card {
  background-color: rgba(136, 136, 136, 0.1);
  color: white;
  overflow: hidden;

  backdrop-filter: blur(10px);
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.btn-wrapper {
  position: relative;
  height: 30px;
  overflow: hidden;
}

.btn-text,
.btn-hover-text {
  position: absolute;
  left: 0;
  right: 0;
  transition: transform 0.4s ease;
}

.btn-hover-text {
  transform: translateY(100%);
  opacity: 0;
}

.btn-text {
  transform: translateY(0);
}

.card:hover .btn-text {
  transform: translateY(-100%);
  opacity: 0;
}

.card:hover .btn-hover-text {
  transform: translateY(0);
  opacity: 1;
}

.card-img-top {
  object-fit: cover;
  width: 100%;
  aspect-ratio: 16 / 9;
}

#project .card:hover {
  background-color: rgba(255, 255, 255, 0.1);
}
.card:hover .card-img-top {
  transform: scale(1.1);
}

.card-img-top {
  transition: transform 0.3s ease-in-out;
}

.card-title {
  font-weight: 700;
  font-size: 1rem;
}

.card-text {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: box;

  -webkit-line-clamp: 2; /* For WebKit-based browsers */
  line-clamp: 2;

  -webkit-box-orient: vertical; /* For WebKit-based browsers */
  box-orient: vertical;

  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.9rem;
  font-weight: 400;
  color: #ccc;
}

section#contact {
  background-color: black;
  padding-top: 4rem;
  margin-bottom: 0;
  margin-top: 4rem;
}

footer p {
  margin-bottom: 0;
  padding: 0 0 1rem;
}

#quoteCarousel .carousel-inner {
  margin-bottom: 1rem;
}
#quoteCarousel .carousel-item p {
  font-style: italic;
  transition: opacity 0.6s ease;
  height: 5rem;
}

/* Animasi Tulisan di Hero */
.hero h1,
.hero p,
.hero a {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUpHero 1s ease forwards;
}

.hero h1 {
  animation-delay: 0.3s;
}

.hero p {
  animation-delay: 0.5s;
}

.hero a {
  animation-delay: 0.7s;
}

@keyframes fadeInUpHero {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animasi ScrollDown di Hero */
.scroll-down {
  z-index: 1;
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: white;
  font-family: "Roboto Mono", monospace;
  font-size: 0.8rem;
  animation: fadeInUpScroll 1s ease-in-out infinite;
  opacity: 0;
  animation-delay: 1200ms;
}

.scroll-down span {
  display: block;
  margin-bottom: 10px;
  opacity: 0;
}
.scroll-down:hover span {
  opacity: 1;
}

.scroll-down .mouse {
  width: 24px;
  height: 42px;
  border: 2px solid white;
  border-radius: 12px;
  position: relative;
  display: inline-block;
}

.scroll-down .mouse-in {
  width: 6px;
  height: 10px;
  background-color: white;
  border-radius: 3px;
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll 2s infinite;
  animation-delay: 1200ms;
}

/* Keyframes for animation */
@keyframes scroll {
  0% {
    opacity: 0;
    top: 5px;
  }
  50% {
    opacity: 1;
    top: 15px;
  }
  100% {
    opacity: 0;
    top: 25px;
  }
}

@keyframes fadeInUpScroll {
  0%,
  100% {
    transform: translateX(-50%) translateY(10px);
    opacity: 0;
  }
  50% {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
}

#certificate .card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 12px;
  overflow: hidden;
}
#certificate .card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}
#certificate .card-title {
  font-size: 1.2rem;
  color: #333;
}
#certificate .btn-outline-info {
  border-color: lightseagreen;
  color: lightseagreen;
  transition: color 0.3s, border-color 0.3s;
}
#certificate .btn-outline-info:hover {
  background-color: lightseagreen;
  color: white;
}

/* Project HTML */
body.body-project {
  min-height: 100vh;
  background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6)), url(/assets/img/bg-blur.webp);
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
}

.body-project ul.links {
  display: flex;
  gap: 1rem;
  list-style: none;
  padding: 0;
}

.body-project ul.links li a svg {
  transition: transform 0.3s;
}

.body-project ul.links li a:hover svg {
  transform: scale(1.1);
}

/* Foto Project */
.photos-container {
  width: 100%;
  max-height: 22rem;
  overflow-y: auto;
  border-radius: 8px;
}

.photos-container .row {
  gap: 5px;
}

.photos-container .photo iframe {
  height: 296px;
}

.photos-container .photo img,
.photos-container .photo iframe {
  width: 100%;
  cursor: pointer;
  max-width: 100%;
  transition: transform 0.3s ease;
  border-radius: 8px;
  filter: brightness(0.95);
  transform: scale(0.95);
}

.photos-container .photo img:hover,
.photos-container .photo iframe:hover {
  transform: scale(1);
  filter: brightness(1);
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.overlay img {
  max-width: 80%;
  max-height: 80%;
}

.overlay.show {
  opacity: 1;
  visibility: visible;
}
/* End Foto Project */

/*  */
/* Responsivitas */
@media (max-width: 1000px) {
  .hero {
    background-size: auto 100%;
    animation: zoomBackgroundMobile 12s ease infinite;
    background-attachment: scroll;
  }

  @keyframes zoomBackgroundMobile {
    0% {
      background-size: auto 100%;
    }
    50% {
      background-size: auto 108%;
    }
    100% {
      background-size: auto 100%;
    }
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 6vw;
  }
  .hero p {
    font-size: 3vw;
  }
  .light {
    opacity: 0;
  }
  #project .card {
    backdrop-filter: none;
    box-shadow: none;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 8vw;
  }
  .hero p {
    font-size: 4vw;
  }
  .hero a {
    font-size: 4vw;
  }
  .scroll-down {
    bottom: 12%;
  }

  .overlay img {
    max-width: 100%;
    max-height: 100%;
  }

  /* p.mobile-size {
    font-size: 4vw;
  } */

  p {
    font-size: 4vw;
  }

  h4 {
    font-size: 5vw;
    font-weight: bold;
  }

  #project .p-1-mobile {
    padding: 5px;
  }
  #project .card-mobile {
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  #project .card-mobile a,
  #project .card-mobile h5,
  #project .card-mobile p {
    font-size: 80%;
  }

  #project .card-mobile a {
    font-size: 72%;
  }

  #project .card-mobile p {
    font-size: 64%;
  }

  #project .card-mobile h5 {
    margin-bottom: 5px;
  }

  #project .card-mobile .card-body {
    padding: 14px;
    padding-bottom: 10px;
  }

  #project .card-mobile p.card-text {
    margin-bottom: 10px;
  }
}
