/* =====================================
GENERAL
===================================== */

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  background-color: #f3f4f5;
}

/* =====================================
NAVBAR
===================================== */

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.4s ease;
}

.navbar-scrolled {
  padding-top: 10px !important;
  padding-bottom: 10px !important;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3) !important;
}

/* =====================================
JUMBOTRON / HOME
===================================== */

.jumbotron {
  padding-top: 6rem;
  background-color: #273036;
  overflow: hidden;
}

.hero-image {
  animation: floating 3s ease-in-out infinite;
}

.hero-title {
  margin-top: 20px;
  animation: fadeDown 1s ease;
}

.jumbotron .lead {
  min-height: 30px;
}

/* Tombol Hero */

.hero-button {
  border-radius: 30px;
  padding: 10px 25px;
  transition: all 0.3s ease;
}

.hero-button:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* =====================================
SECTION
===================================== */

section {
  padding-top: 5rem;
}

/* =====================================
SCROLL ANIMATION
===================================== */

.scroll-animation {
  opacity: 0;
  transform: translateY(70px);
  transition:
    opacity 0.9s ease,
    transform 0.9s ease;
}

.scroll-animation.show {
  opacity: 1;
  transform: translateY(0);
}

/* =====================================
ANIMATION DARI KIRI
===================================== */

.scroll-left {
  opacity: 0;
  transform: translateX(-100px);
  transition:
    opacity 1s ease,
    transform 1s ease;
}

.scroll-left.show {
  opacity: 1;
  transform: translateX(0);
}

/* =====================================
ANIMATION DARI KANAN
===================================== */

.scroll-right {
  opacity: 0;
  transform: translateX(100px);
  transition:
    opacity 1s ease,
    transform 1s ease;
}

.scroll-right.show {
  opacity: 1;
  transform: translateX(0);
}

/* =====================================
PROJECT CARD
===================================== */

.project-card {
  border: none;
  overflow: hidden;
  border-radius: 15px;
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
}

.project-card img {
  transition: transform 0.5s ease;
}

/* Efek ketika mouse diarahkan ke card */

.project-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.project-card:hover img {
  transform: scale(1.08);
}

/* =====================================
CARD BODY
===================================== */

.card-body {
  padding: 1.5rem;
}

.card-title {
  font-weight: 700;
}

/* =====================================
CONTACT
===================================== */

#contact {
  background-color: #f3f4f5;
}

#contact form {
  background-color: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.form-control {
  border-radius: 10px;
  padding: 12px;
  transition: all 0.3s ease;
}

.form-control:focus {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(13, 110, 253, 0.2);
}

/* =====================================
BUTTON
===================================== */

.btn {
  border-radius: 10px;
  transition: all 0.3s ease;
}

.btn:hover {
  transform: translateY(-3px);
}

/* =====================================
FOOTER
===================================== */

footer {
  padding-top: 20px;
}

/* =====================================
FLOATING IMAGE
===================================== */

@keyframes floating {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }

  100% {
    transform: translateY(0);
  }
}

/* =====================================
FADE DOWN
===================================== */

@keyframes fadeDown {
  0% {
    opacity: 0;
    transform: translateY(-40px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =====================================
RESPONSIVE
===================================== */

@media (max-width: 768px) {
  .jumbotron {
    padding-top: 4rem;
  }

  .scroll-left,
  .scroll-right {
    transform: translateY(50px);
  }

  .scroll-left.show,
  .scroll-right.show {
    transform: translateY(0);
  }
}

/* =====================================
REDUCE MOTION
===================================== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
