.background-sidebar {
  background-image: url("../images/backgrounds/sidebar_2.webp");
  background-position: no-repeat;
  background-size: cover;
}

.active-sidebar {
  background-color: rgba(93, 135, 255, 0.1);
  color: #fff;
}

.background-content {
  background-image: url("../images/backgrounds/waves.svg");
  background-position: no-repeat;
  background-size: cover;
}

/* CSS CMS */

html {
  scroll-behavior: smooth;
}

#beranda,
#portofolio {
  scroll-margin-top: 60px;
}

/* =========================================================NAVBAR PART======================================================= */

.navbar-bg {
  background-color: #2563eb;
  padding: 15px 0;
  /* border-bottom: 1px solid rgba(255, 255, 255, 0.3); */
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  font-size: 1.3rem;
  font-weight: 600;
}

.nav-link {
  font-size: 1rem;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

.nav-link:hover {
  transform: translateY(-2px);
  border-bottom-color: #fff;
}

.nav-link.active {
  border-bottom-color: #fff;
}

.nav-item {
  padding-left: 15px;
}

.btn-dashboard {
  background-color: #fff;
  color: #2563eb !important;
  border-radius: 50px;
  padding-left: 20px !important;
  padding-right: 20px !important;
  display: flex;
  align-items: center;
}

/* =================================================HERO PART=============================================== */
.hero-section {
  /* background-color: #fff; */
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
  height: 100vh;
  position: relative;
  box-sizing: border-box;
}

/* Siluet di dalam area biru */
.silhouette-bg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80%; /* Sesuaikan tinggi siluet kota/bangunan */
  background: url("/assets/images/backgrounds/silhouette.svg");
  background-position: bottom center;
  background-repeat: no-repeat;
  background-size: cover;

  /* Membuat siluet terlihat soft seperti TRAC */
  opacity: 0.25;
  /* filter: brightness(0) invert(1); Jika file aslimu hitam, ini mengubahnya jadi putih */
  pointer-events: none;
}

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

.hero-content {
  min-height: 90vh;
  display: flex;
  position: relative;
  z-index: 3;
}

.colom-1 {
  padding-top: 8rem;
}

.colom-2 {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 3;
}

.hero-text {
  font-size: 0.8rem;
  display: inline-block;
  padding: 10px 20px;
  border-radius: 50px;
  background-color: rgba(255, 255, 255, 0.3);
  border: 1px solid #fff;
  color: #fff;
  font-weight: 600;
  margin-bottom: 2rem;
}

.hero-judul {
  font-size: 3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.5rem;
}

.hero-subjudul {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.5rem;
}

.hero-deskripsi {
  font-size: 1.1rem;
  color: #e0e0e0;
  max-width: 510px;
  text-align: justify;
}

.col-proyek {
  display: flex;
}

.col-proyek-1 {
  padding-right: 1rem;
}

.total-proyek,
.total-angkatan {
  font-size: 2rem;
  font-weight: bold;
  margin: 0 !important;
  color: #fff;
}

.proyek,
.angkatan {
  color: #e0e0e0;
  font-weight: bold;
}

.colom-2 p {
  position: absolute;
  font-size: 1rem;
  font-weight: 500;
  color: #2563eb;
  background-color: #fff;
  padding: 5px 10px;
  border-radius: 5px;
  animation: gerakAtasBawah 3s ease-in-out infinite;
}

.colom-2 p:nth-child(2) {
  top: 35%;
  left: 25%;
}

.colom-2 p:nth-child(3) {
  top: 35%;
  left: 60%;
}

.colom-2 p:nth-child(4) {
  top: 65%;
  left: 30%;
}

.hero-gambar {
  width: 100%;
  max-width: 200px;
  animation: gerakBawahAtas 3s ease-in-out infinite;
}

/* --- Definisi Gerakan (Animation Keyframes) --- */
@keyframes gerakAtasBawah {
  0% {
    /* Posisi awal (sesuai nilai 'top' di CSS asli) */
    transform: translateY(0);
  }
  50% {
    /* Bergerak ke atas sedikit (misal: 10px ke atas) */
    transform: translateY(-10px);
  }
  100% {
    /* Kembali ke posisi awal */
    transform: translateY(0);
  }
}

/* --- Definisi Gerakan (Animation Keyframes) --- */
@keyframes gerakBawahAtas {
  0% {
    /* Posisi awal (sesuai nilai 'top' di CSS asli) */
    transform: translateY(0);
  }
  50% {
    /* Bergerak ke atas sedikit (misal: 10px ke atas) */
    transform: translateY(5px);
  }
  100% {
    /* Kembali ke posisi awal */
    transform: translateY(0);
  }
}

/* ==================================================PORTOFOLIO PART====================================================== */
.portofolio-section {
  background-color: #f8f8f8;
}

.portofolio-content {
  padding-top: 2rem;
}

.portofolio-judul {
  color: #000;
  font-weight: 700;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-align: center;
}

.portofolio-subjudul {
  font-size: 1rem;
  margin-bottom: 3rem;
  text-align: center;
}

.portofolio-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 40px;
  margin-bottom: 20px;
}

.portofolioWrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
}

.btn-portofolio {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  padding: 14px 28px;
  border-radius: 30px;

  background: #f3f4f6;
  color: #2563eb;

  font-weight: bold;
  font-size: 1rem;
  text-decoration: none;

  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);

  transition: all 0.3s ease;
}

.btn-portofolio:hover {
  background: #e5e7eb;
  transform: translateY(-2px);
}

.portofolio-filter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 1rem;
}

.portofolio-filter p {
  font-size: 0.9rem;
  font-weight: bold;
  padding-top: 10px;
}

.filter-border {
  border: 3px solid rgba(37, 99, 235, 0.3) !important;
  border-radius: 5px;
  transition: all 0.3s ease;
}

/* Custom Card Styling */
.card-portofolio {
  width: 17rem;
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.card-portofolio:hover {
  transform: translateY(-3px);
  box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.2);
}

.card-dokumentasi {
  height: 10rem;
  transition: transform 0.3s ease;
}

.card-title-portofolio {
  font-size: 1.2rem;
  font-weight: bold;
}

.portofolioDetail {
  margin-top: 60px;
  margin-bottom: 60px;
}

.portofolio-kosong {
  text-align: center;
  box-shadow: 10px 10px 10px rgba(0, 0, 0, 0.2);
}

/* Swiper Navigation Customization */
.mySwiper {
  overflow: hidden;
}

.swiper-slide {
  width: auto;
}

.swiper-button-next,
.swiper-button-prev {
  z-index: 10;
  width: 30px !important;
  height: 30px !important;
  background-color: rgba(255, 255, 255, 0.05) !important;
  backdrop-filter: blur(5px) !important;
}

.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 30px !important;
  font-weight: bold;
  color: #0056b3;
}

/* ==================================================KONTAK PART====================================================== */
.kontak-section {
  background-color: #f8f8f8;
  min-height: 100vh;
  /* padding-bottom: 4rem; */
}

.kontak-content {
  padding-top: 6rem;
}

.kontak-judul {
  color: #000;
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: 1rem;
  text-align: center;
}

.kontak-subjudul {
  font-size: 1rem;
  margin-bottom: 2rem;
  text-align: center;
}

/* MAPS */
.maps {
  display: flex;
  justify-content: center;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  margin-bottom: 2rem;
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.1);
}

.maps-iframe {
  width: 100%;
  height: 450px;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.maps-iframe:hover {
  transform: translateY(-5px);
  box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.2);
}

/* INFORMASI KONTAK */
.card-body-kontak {
  background-color: #fff;
  border-radius: 20px;
  border: 2px solid rgba(0, 0, 0, 0.1);
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.1);
}

.kontak-maps,
.kontak-wa {
  display: flex;
  align-items: center;
}

.kontak-icon {
  font-size: 1rem;
  color: #000;
  font-weight: bold;
  margin-bottom: 1rem;
}

.icon-info {
  background-color: #2563eb;
  color: #fff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: inline-block;
  text-align: center;
  line-height: 40px;
  font-size: 1.2rem;
}

/* ================================FOOTER PART====================================== */
.footer-section {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #fff;
  padding-top: 3rem;
}

.footer {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  color: #fff;
}

.footer-judul {
  color: #fff;
  padding-top: 2rem;
  font-weight: bold;
  font-size: 2rem;
  margin: 0px !important;
}

.footer-subjudul {
  font-size: 0.8rem;
  color: #dbdbdb;
}

.footer-deskripsi {
  font-size: 0.9rem;
  color: #dbdbdb;
  max-width: 400px;
  text-align: justify;
}

.layanan,
.sosmed {
  font-size: 1.2rem;
  font-weight: bold;
  color: #fff;
  margin-bottom: 1rem;
}

.layanan::after,
.sosmed::after {
  content: "";
  display: block;
  left: 0;
  bottom: -5px;
  width: 50px;
  height: 4px;
  background-color: #2563eb;
  margin-top: 10px;
}

.sosmed {
  margin-top: 30px !important;
  margin-bottom: 0.5rem !important;
}

.instagram {
  font-size: 2rem;
  color: #fff;
}

.copyright {
  text-align: center;
  height: auto;
}

.copyright p {
  margin: 0;
}

.footer-line {
  height: 1px;
  background-color: rgba(255, 255, 255, 0.2);
}

.copyright p a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70px;
  color: #dbdbdb;
  text-decoration: none;
}

/* ==========================================RESPONSIVE============================================== */
@media (max-width: 768px) {
  /* =======================================NAVBAR======================================= */
  .navbar-nav {
    padding: 20px 0;
  }

  .nav-item {
    padding-left: 0;
    margin-bottom: 10px;
  }

  .nav-link {
    width: 50%;
  }

  .btn-dashboard {
    display: inline-flex;
    justify-content: center;
    width: fit-content;
  }

  /* =======================================HERO SECTION======================================= */
  .hero-section {
    height: auto; /* Ubah dari 100vh ke auto agar konten tidak terpotong */
    padding-bottom: 50px;
    flex-direction: column;
  }

  .colom-1 {
    text-align: center; /* Tengahkan teks untuk mobile */
  }

  .hero-judul {
    font-size: 2rem;
  }

  .hero-subjudul {
    font-size: 1rem;
  }

  .hero-deskripsi {
    font-size: 0.8rem;
    max-width: 300px;
    margin: auto;
    text-align: justify;
  }

  .col-proyek {
    margin-top: 2rem;
    justify-content: center;
  }

  .total-proyek,
  .total-angkatan {
    font-size: 1.5rem;
  }

  .proyek,
  .angkatan {
    font-size: 0.8rem;
  }

  .angkatan {
    width: 100px;
  }

  .colom-2 {
    padding-top: 2rem;
  }

  .hero-gambar {
    width: 150px;
  }

  .colom-2 p {
    font-size: 0.8rem;
  }

  .colom-2 p:nth-child(2) {
    top: 15%;
    left: 15%;
  }

  .colom-2 p:nth-child(3) {
    top: 15%;
    left: 60%;
  }

  .colom-2 p:nth-child(4) {
    top: 100%;
    left: 30%;
  }

  /* ======================================PORTOFOLIO====================================== */
  #portofolio {
    padding-bottom: 1rem;
  }

  .portofolio-judul {
    font-size: 1.5rem;
  }

  .portofolio-subjudul {
    font-size: 0.8rem;
  }

  .portofolio-filter {
    flex-direction: column;
    padding: 0px;
  }

  .portofolio-filter p {
    font-size: 0.8rem;
    padding: 0px;
    margin: 0px;
  }

  /* ======================================KONTAK KAMI====================================== */
  .kontak-judul {
    font-size: 1.5rem;
  }

  .kontak-subjudul {
    font-size: 0.8rem;
  }

  .maps {
    max-width: 300px !important;
    margin: auto;
    margin-bottom: 20px;
  }

  .maps-iframe {
    height: 400px !important;
  }

  .card-body-kontak {
    max-width: 300px;
    margin: auto;
  }

  /* ======================================FOOTER====================================== */
  .footer-section {
    height: auto;
    padding-bottom: 2rem;
  }

  .copyright p a {
    color: #dbdbdb;
  }
}

/* ================= ANIMASI FADE IN ================= */

.fade-init {
  opacity: 0;
  transform: translateY(15px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.fade-show {
  opacity: 1;
  transform: translateY(0);
}

/* Delay opsional */
.delay-1 {
  transition-delay: 0.2s;
}

.delay-2 {
  transition-delay: 0.4s;
}

.delay-3 {
  transition-delay: 0.6s;
}
