:root {
  --primary-color: #4361ee;
  --secondary-color: #3f37c9;
  --accent-color: #4cc9f0;
  --light-color: #f8f9fa;
  --dark-color: #212529;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  overflow-x: hidden;
}

.navbar {
  transition: all 0.3s ease;
  padding: 8px 0;
}

.navbar-brand img {
  max-height: 40px;
  width: auto;
  height: auto;
  display: block;
}

.navbar-nav .nav-link {
  font-weight: 500;
  padding: 0.75rem 1rem;
  color: var(--dark-color);
  transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary-color);
}

.navbar .btn {
  padding: 0.5rem 1.25rem;
  border-radius: 25px;
  font-weight: 500;
  font-size: 0.95rem;
}

/* Supaya navbar sejajar dengan logo dan tombol */
.navbar .collapse {
  align-items: center;
}

.navbar.scrolled {
  padding: 6px 0;
  background-color: #fff !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.hero-section {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: white;
  padding: 100px 0 120px;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 300px;
  height: 300px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.hero-section::after {
  content: "";
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.hero-img-big {
  width: 120%; /* Membuat gambar lebih besar dari kolom */
  max-width: none; /* Hilangkan batasan default */
  height: auto;
  position: relative;
  right: -50px; /* Geser ke kanan agar bagian kiri tidak kepotong */
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.service-card {
  border: none;
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  height: 100%;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-card .card-img-top {
  height: 200px;
  object-fit: cover;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  padding: 10px 25px;
  border-radius: 50px;
  font-weight: 500;
}

.btn-primary:hover {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
  padding: 10px 25px;
  border-radius: 50px;
  font-weight: 500;
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  color: white;
}

.testimonial-card {
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  height: 100%;
}

.testimonial-img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary-color);
}

.contact-section {
  background-color: var(--light-color);
}

.form-control {
  padding: 12px 15px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}

.form-control:focus {
  box-shadow: none;
  border-color: var(--primary-color);
}

footer {
  background-color: var(--dark-color);
  color: white;
}

footer a {
  text-decoration: none;
  transition: all 0.3s ease;
}

footer a:hover {
  color: var(--accent-color) !important;
}

.social-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  margin-right: 10px;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

.price-card {
  border: none;
  border-radius: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.price-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.price-card .card-header {
  background-color: var(--primary-color);
  color: white;
  padding: 20px;
  text-align: center;
  border-radius: 10px 10px 0 0 !important;
}

.price-card.popular .card-header {
  background-color: var(--secondary-color);
  position: relative;
}

.price-card.popular .card-header::after {
  content: "POPULER";
  position: absolute;
  top: -10px;
  right: 20px;
  background-color: var(--accent-color);
  color: white;
  padding: 3px 15px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: bold;
}

.price-card .price {
  font-size: 2.5rem;
  font-weight: bold;
  margin: 20px 0;
}

.price-card .price span {
  font-size: 1rem;
  font-weight: normal;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 50px;
  height: 50px;
  background-color: #0d6efd;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 99;
}

.scroll-to-top.active {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  background-color: #0b5ed7;
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  width: 50px;
  height: 50px;
  bottom: 100px; /* Di atas scroll to top */
  right: 40px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  text-align: center;
  font-size: 28px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  background-color: #128c7e;
  transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
  .scroll-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }

  .whatsapp-float {
    bottom: 80px; /* Di atas scroll to top */
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 24px;
  }
}

/* Tambahkan "Rp" ke depan harga via CSS */
.price-card .price {
  font-size: 2.5rem;
  font-weight: bold;
  margin: 20px 0;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 5px;
}

.price-card .price::before {
  content: "Rp";
  font-size: 1.2rem;
  margin-right: 4px;
  vertical-align: top;
  font-weight: normal;
}

/* Lebar dan spacing antar card pricing untuk tampilan laptop */
@media (min-width: 992px) {
  .price-card {
    margin-left: auto;
    margin-right: auto;
    max-width: 95%;
  }

  .row.g-4 > .col-lg-3 {
    flex: 0 0 24%;
    max-width: 24%;
  }
}

/* Responsive padding antar kartu harga */
@media (max-width: 991.98px) {
  .price-row > [class*="col-"] {
    padding-left: 12px;
    padding-right: 12px;
  }
  .price-row {
    margin-left: -12px;
    margin-right: -12px;
  }
}

@media (min-width: 992px) {
  .price-row > [class*="col-"] {
    padding-left: 6px;
    padding-right: 6px;
  }
  .price-row {
    margin-left: -6px;
    margin-right: -6px;
  }
}

.portfolio-filter {
  margin-bottom: 30px;
  padding: 0 10px;
}

.filter-buttons-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  width: 100%;
}

.filter-buttons-container button {
  width: 100%;
  padding: 8px 5px;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Untuk mobile sangat kecil */
@media (max-width: 400px) {
  .filter-buttons-container {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  }
  .filter-buttons-container button {
    font-size: 12px;
    padding: 6px 3px;
  }
}

/* Untuk tablet */
@media (min-width: 768px) and (max-width: 991px) {
  .filter-buttons-container {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
  }
}

@media (max-width: 768px) {
  .filter-buttons-container {
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 8px;
  }
  .filter-buttons-container button {
    font-size: 12px;
    padding: 5px 3px;
  }
}

/* pagination */
/* Untuk tampilan pagination yang lebih baik */
.pagination {
  flex-wrap: wrap;
}
.page-item {
  margin: 2px;
}
.page-link {
  min-width: 40px;
  text-align: center;
}

/* ANIMATION CLASSES */
.fade-in {
  animation: fadeIn 1s ease-out forwards;
}

.slide-up {
  animation: slideUp 0.8s ease-out forwards;
}

.slide-left {
  animation: slideLeft 0.8s ease-out forwards;
}

.slide-right {
  animation: slideRight 0.8s ease-out forwards;
}

/* KEYFRAMES */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideLeft {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideRight {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* INITIAL STATE */
[data-animate] {
  opacity: 0;
}
