html {
  scroll-behavior: smooth;
}

html::-webkit-scrollbar {
  display: none !important;
}

body {
  font-family: 'Organetto';
  font-optical-sizing: auto;
  font-weight: normal;
  font-style: normal;
  background-color: var(--bs-body-bg);
  color: var(--bs-body-color);
  transition: all 0.3s ease-in-out, background-color 0.3s ease-in-out;
}

/* root color */

:root {
  --bs-body-bg: #f8f9fa;
  --bs-body-color: rgb(21, 23, 27);
}

[data-bs-theme="dark"] {
  --bs-body-bg: rgb(21, 23, 27);
  --bs-body-color: #f8f9fa;
}

/* font */

@font-face {
  font-family: 'Organetto';
  src: url('/static/fonts/Organetto-Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Organetto UltraBold SemiExt';
  src: url('/static/fonts/Organetto-UltraBoldSemiExt.woff2') format('woff2');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

/* navbar */

.navbar {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  background: transparent;
  backdrop-filter: blur(1.5px);
}

.nav-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
}

.atur {
  justify-content: center;
  margin: 0 auto;
}

.navbar-nav .nav-item .nav-link {
  font-weight: 600;
}

/* hero */

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
}

.hero {
  padding: 6rem 0;
  text-align: center;
}

/* section */

.section-title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 2rem;
}

/* card image */

.project-card img {
  border-radius: 0.5rem;
}

/* icons */

.social-icons a {
  color: var(--bs-body-color);
  margin: 0 0.5rem;
  font-size: 1.25rem;
}

/* button */

.dynamic-btn {
  color: rgb(21, 23, 27);
  border: 1px solid rgb(21, 23, 27);
  background-color: transparent;
  animation: 0.5s ease-in-out;
}

.dynamic-btn:hover {
  background-color: rgb(21, 23, 27);
  animation: 0.5s ease-in-out;
  color: #eaebed;
}

/* button dark dode */
[data-bs-theme="dark"] .dynamic-btn {
  color: #eaebed;
  border: 1px solid #eaebed;
  background-color: transparent;
  transition: all 0.3s ease-in-out;
}

[data-bs-theme="dark"] .dynamic-btn:hover {
  background-color: #eaebed;
  color: rgb(21, 23, 27);
  transition: all 0.3s ease-in-out;
}

/* line */

.burdir {
  border-color: rgb(21, 23, 27) !important;
  border-width: 1px !important;
  opacity: 1 !important;
}

[data-bs-theme="dark"] .burdir {
  border-color: #eaebed !important;
}

/* photo */

.foto {
  margin-top: -4.6rem;
}

.photo {
  margin-bottom: 1.25rem;
  margin-top: -6.5rem;
  filter: brightness(200%) contrast(110%) saturate(140%);
}

/* style text */

.navv {
  font-size: 2rem;
  font-weight: bold;
  background: linear-gradient(90deg,
    lime,
    cyan,
    rgb(77, 169, 255),
    cyan,
    lime);
  background-size: 300% auto;
  background-position: 0 0;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: textShine 6s linear infinite;
}

.navv2 {
  font-family: 'Organetto UltraBold SemiExt';
  src: url('/static/fonts/Organetto-UltraBoldSemiExt.woff2') format('woff2');
  font-weight: bold;
  font-style: normal;
  font-display: swap;

  margin-left: -0.5rem;
}

.a-m {
  margin-top: 0.5rem;
  text-align: center;
  font-size: 2.825rem;
}

.contener {
  margin-top: -0.75rem;
}

@keyframes textShine {
  0% {
    background-position: 0% 0%;
  }

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

}

/* style container */

.profile-image {
  box-shadow: 0 0px 20px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s ease;
}

[data-bs-theme="dark"] .profile-image {
  box-shadow: 0 0px 20px rgba(255, 255, 255, 0.5);
}

.profile-image:hover {
  animation: smoothZoomIn 0.4s ease forwards;
}

.profile-image:not(:hover) {
  animation: smoothZoomOut 0.4s ease forwards;
}

@keyframes smoothZoomIn {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.025);
  }
}

@keyframes smoothZoomOut {
  from {
    transform: scale(1.025);
  }
  to {
    transform: scale(1);
  }
}

.des {
  text-align: justify;
  text-align-last: center;
  color: var(--bs-body-color);
}

/* Animasi slide-up */
@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }

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

/* footer */

footer {
  background-color: var(--bs-body-bg);
  padding: 2rem 0;
  text-align: center;
  border-top: 1px solid var(--bs-border-color);
  color: var(--bs-body-color);
  animation: slideUp 0.8s ease-out;
}

/* kode responsive */

@media (max-width: 768px) {
  html {
    font-size: 90%;
  }

  body {
    font-size: 1rem;
    padding: 0rem;
    width: 95%;
    margin: 0 auto;
  }

  .navbar-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
  }

  .nav-grid {
    grid-template-columns: auto 1fr auto;
    min-height: 50px;
    margin: 0 auto;
    margin-left: -10px;
  }

  .nav-link {
    margin-top: 0px;
  }

  .navv {
    font-size: 1.3rem;
    font-weight: 600;
    margin-left: 10px;
    margin-right: -20px;
  }

  .theme {
    left: 40%;
  }

  .atur {
    margin-top: 0.5625rem;
    font-size: 0.75rem;
    font-weight: 600;
    margin: 0 auto;
  }

  .img-fluid.image {
    width: 240px;
    transition: transform 0.2s cubic-bezier(0.5, 0.1, 0.5, 1);
  }

  .img-fluid.image:hover {
    transform: scale(1.05);
  }

  .contener {
    margin-top: -2rem;
  }

  .a-m {
    text-align: center;
    padding-top: -1.5rem;
    font-size: 2.325rem;
  }

  .des {
    text-align: justify;
    font-weight: medium;
    width: 400px;
    margin: 0 auto;
    padding-top: -0.35rem;
  }

  .dynamic-btn.e {
    width: 12.5rem;
    margin: 0 auto;
    margin-top: 0.75rem;
  }

  .glow-ring {
    filter: drop-shadow(0 0 20px #000000c8);
  }

  [data-bs-theme="dark"] .glow-ring {
    filter: drop-shadow(0 8 20px #ffffffc8);
    transition: 0s ease-in-out;
  }

  .burdir {
    width: 85% !important;
  }

  h2 {
    font-size: clamp(1.1rem, 4vw, 1.5rem);
  }

  p {
    font-size: clamp(0.775rem, 2.25vw, 0.9rem);
  }

  .h2 {
    font-size: clamp(1.7rem, 4.8vw, 2.25rem);
  }

   .pe {
    font-size: clamp(1rem, 2.8vw, 1.3rem);
  }

  .foto {
    width: clamp(12.5rem, 15.25rem, 18rem);
    height: clamp(12.55rem, 15.25rem, 18rem);
    border-radius: 50%;
    margin-top: 4rem;
  }

  .pp {
    font-size: 85%;
  }

  .navv2 {
    margin-left: -5px;
    font-size: 1.4rem;
  }

  @keyframes slideUp {
    from {
      transform: translateY(100%);
      opacity: 0;
    }

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

  footer {
    margin-top: -2.55rem;
    animation: slideUp 0.8s ease-out;
  }

}