body {
  height: 100%;
  font-family: Arial, sans-serif;
  margin: 0;
  display: flex;
  flex-direction: column;
  background: #fafafa;
  color: #333;
}
.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
}
.navbar {
  background: white;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.logo {
  font-weight: bold;
}
.nav-links {
  display: flex;
  align-items: center;
}
.nav-links a,
.nav-links .dropdown {
  margin: 0 10px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  padding: 5px 8px;
  transition: all 0.3s ease;
  border-radius: 6px;
  display: inline-block; /* supaya transform berfungsi dengan baik */
}

.nav-links a:hover {
  background: #ffff;
  color: #010101;
  transform: scale(1); /* membesarkan 10% */
}

.dropdown {
  float: left;
  overflow: hidden;
}

/* Biar sejajar dengan link lain */
.nav-links .dropdown {
  display: inline-block;
}

.nav-links .dropbtn {
  margin: 0 10px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  padding: 5px 8px;
  transition: all 0.3s ease;
  border: none;
  border-radius: 6px;
  display: inline-block;
  background: none;
  cursor: pointer;
  font-size: inherit;
  font-family: inherit;
  line-height: normal;
}

.nav-links .dropbtn:hover {
  background: #ffff;
  color: #010101;
  transform: scale(1);
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.dropdown-content a {
  float: none;
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
}

.dropdown-content a:hover {
  background-color: #ddd;
}

.show {
  display: block;
}

.kontak {
  border: 2px solid #010101;
  border-radius: 2rem;
  padding: 14px 25px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  background-color: #010101;
  color: #ffff;
}

.kontak:hover {
  background-color: #fff;
  color: #010101;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  position: relative;
}

.modal-content h2 {
  margin-bottom: 15px;
}

.modal-content label {
  display: block;
  margin-top: 10px;
}

.modal-content input {
  width: 100%;
  padding: 8px;
  margin-top: 5px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.modal-content button {
  margin-top: 15px;
  padding: 10px;
  width: 100%;
  border: none;
  border-radius: 6px;
  border: 2px solid #228b22;
  background: #228b22;
  color: white;
  cursor: pointer;
}

.modal-content button:hover {
  background: #fff;
  border: 2px solid #228b22;
  color: #010101;
}

.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 22px;
  cursor: pointer;
}

.hero {
  position: relative;
  background: url("../img/bg.jpeg") center/cover no-repeat;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: bottom;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.hero-overlay {
  background: rgba(0, 0, 0, 0.55); /* overlay supaya teks jelas */
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-content {
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  line-height: 1.3;
  margin-bottom: 20px;
}

.hero .highlight {
  font-weight: bold;
  background: linear-gradient(
    90deg,
    red,
    orange,
    yellow,
    green,
    cyan,
    blue,
    violet,
    red
  ); /* spektrum warna */
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: rgbText 8s linear infinite;
}

@keyframes rgbText {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.hero-buttons {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 15px;
}

.hero-buttons a {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

/* Tombol pertama (primary) */
.hero-buttons a:first-child {
  background: #010101;
  color: #fff;
}
.hero-buttons a:first-child:hover {
  background: #fff;
  color: #010101;
}

/* Tombol kedua (secondary) */
.hero-buttons a:nth-child(2) {
  background: #686a6c;
  color: #fff;
  border: 2px solid #686a6c;
}
.hero-buttons a:nth-child(2):hover {
  background: #f0f0f0;
  color: #010101;
}

/* Tombol ketiga (misalnya warna biru) */
.hero-buttons a:nth-child(3) {
  background: #313131c4;
  color: #fff;
  border: 2px solid #3b3b3bc0;
}
.hero-buttons a:nth-child(3):hover {
  background: #ffffffb2;
  color: #000000ff;
}

.hero-meta span {
  color: #00ff00; /* hijau utama */
  animation: greenFade 2s ease-in-out infinite;
}

@keyframes greenFade {
  0% {
    color: #00ff00; /* hijau terang */
    opacity: 1;
  }
  50% {
    color: #008000; /* hijau lebih gelap */
    opacity: 0.5;
  }
  100% {
    color: #00ff00; /* kembali terang */
    opacity: 1;
  }
}

/* tahapan kerja */

.cards {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  cursor: pointer;
}

.cards h3 {
  margin-bottom: 10px;
  font-size: 1.3rem;
  color: #000000ff;
}

.cards p {
  color: #555;
  font-size: 1rem;
  line-height: 1.4;
}

/* Hover Effect */
.cards:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
  border: 2px solid blue;
}

/* Grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.card {
  border: 2px solid transparent;
  border-radius: 12px;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  padding: 2px; /* tebal border */
  background: linear-gradient(
    90deg,
    red,
    orange,
    yellow,
    green,
    cyan,
    blue,
    violet,
    red
  );
  background-size: 400% 400%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: borderRGB 6s linear infinite;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.card:hover::before {
  opacity: 1; /* muncul hanya saat hover */
}

@keyframes borderRGB {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

/* Card */
.card {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
}

.card h3 {
  margin-bottom: 10px;
  font-size: 1.3rem;
  color: #000000ff;
}

.card p {
  color: #555;
  font-size: 1rem;
  line-height: 1.4;
}

/* Hover Effect */
.card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

/* POTOFORLIO */

/* Base button */
.btn {
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1.5px solid #505050;
  cursor: pointer;
  transition: all 0.3s ease;
  background: transparent;
  color: #505050;
  margin: 5px;
}

/* Secondary style khusus filter */
.btn.secondary.filter-btn {
  background: transparent;
  color: #505050;
}

.btn.secondary.filter-btn:hover {
  background: #505050;
  color: #fff;
  transform: scale(1.05);
}

/* Active state */
.btn.secondary.filter-btn.active {
  background: #0070f3;
  border-color: #0070f3;
  color: #fff;
}

.filter-label {
  font-weight: 600;
  font-size: 0.9rem; /* lebih kecil dari 1rem */
  margin-top: 10px;
  color: #505050;
  display: inline-flex;
  align-items: center;
  gap: 6px; /* jarak ikon & teks sedikit diperkecil */
  padding: 4px 10px; /* padding lebih kecil */
  border: 1.5px solid #505050;
  border-radius: 5px;
  background: transparent;
}

.filter-label i {
  font-size: 0.85rem; /* ikon juga mengecil */
}

.price {
  font-size: 1.5rem;
  color: #0070f3;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  margin: 8px 0;
  border-radius: 6px;
  border: 1px solid #ccc;
}
.contact-form button {
  margin-top: 10px;
}
.footer {
  margin-top: auto; /* dorong footer ke bawah */
  background: #f0f0f0;
  padding: 20px 0;
  text-align: center;
}

.portfolio-grid img {
  width: 50%;
  border-radius: 12px;
}

/* ==== PORTFOLIO MODAL ==== */
.portfolio-modal {
  display: none; /* hidden default */
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85); /* overlay */
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease-in-out;
}

/* konten gambar di modal */
.portfolio-modal img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease-in-out;
}

.portfolio-modal img:hover {
  transform: scale(1.02);
}

/* tombol close */
.portfolio-modal .close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.portfolio-modal .close:hover {
  color: #ff0000ff;
}

/* tombol navigasi */
#prevBtn,
#nextBtn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 45px;
  font-weight: bold;
  cursor: pointer;
  padding: 1px;
  border-radius: 25%;
  user-select: none;
  transition: background 0.3s;
}

#prevBtn:hover,
#nextBtn:hover {
  background: rgba(0, 0, 0, 0.7);
}

#prevBtn {
  left: 30px;
}

#nextBtn {
  right: 30px;
}

/* animasi muncul modal */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Pricing Card */
.pricing-card {
  background: #fff;
  border: 2px solid #eaeaea;
  border-radius: 14px;
  padding: 25px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.pricing-card h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: #222;
}

.pricing-card .price {
  font-size: 1.3rem;
  font-weight: 700;
  color: #0070f3;
  margin: 10px 0 15px;
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 15px 0;
}

.pricing-card ul li {
  margin: 8px 0;
  font-size: 0.95rem;
  color: #555;
}

/* Tombol pesan */
.btn-order {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 20px;
  background: #0070f3;
  color: #fff;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-order:hover {
  background: #0056c9;
  transform: translateY(-2px);
}

/* Hover effect card */
.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
  border: 2px solid #0056c9;
}

/* Highlight paket Pro */
.pricing-card.highlight {
  border: 2px solid #ffdf00;
  background: #f9fbff;
  transform: scale(1.05);
}

/* Rainbow hover effect */
.pricing-card.highlight:hover {
  border: 2px solid rgba(1, 1, 1, 0.5); /* hilangkan border agar rainbow lebih jelas */
  background: linear-gradient(
    270deg,
    #ff0000,
    #ff9900,
    #ffff00,
    #33cc33,
    #0099ff,
    #6633ff,
    #cc33ff,
    #ff0099,
    #ff0000
  );
  background-size: 1800% 1800%;
  animation: rainbowBG 5s ease infinite;
  color: #fff; /* supaya teks kontras */
}

@keyframes rainbowBG {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Biar teks tetap terbaca */
.pricing-card.highlight:hover h3,
.pricing-card.highlight:hover .price,
.pricing-card.highlight:hover ul li {
  color: #fff;
}

/* Kontak Section */

#kontak {
  padding: 60px 20px;
  background: #f9fbff;
}

.contact-info {
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333;
}

/* Styling tiap baris */
.contact-info p {
  margin: 10px 0;
  transition: transform 0.3s ease, color 0.3s ease;
  cursor: pointer;
}

/* Hover efek */
.contact-info p:hover {
  transform: translateY(-3px);
  color: #0070f3;
}

.contact-info a {
  text-decoration: none;
  color: #010101;
}

/* Efek rainbow saat hover */
.contact-info i.fa-instagram {
  background: radial-gradient(
    circle at 30% 107%,
    #fdf497 0%,
    #fdf497 5%,
    #fd5949 45%,
    #d6249f 60%,
    #285aeb 90%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: rainbow 3s linear infinite;
}

/* Animasi gradasi bergerak */
@keyframes rainbow {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

/* Hamburger menu - hanya untuk mobile */
#hamburger-menu {
  display: none; /* default hidden */
  position: fixed; /* tetap di pojok atas */
  top: 10px;
  right: 20px;
  z-index: 1100;
  cursor: pointer;
}

#hamburger-menu span {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px 0;
  background-color: #010101;
  border-radius: 2px;
  transition: 0.3s;
}

/* Animasi X */
#hamburger-menu.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

#hamburger-menu.open span:nth-child(2) {
  opacity: 0;
}

#hamburger-menu.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.testimoni {
  margin: 2rem;
  padding: 1rem;
}

.testimoni .img img {
  height: 30rem;
}

/* ================= RESPONSIVE DESIGN ================= */

/* Tablet */
@media (max-width: 992px) {
  .kontak {
    display: none;
  }
  .testimoni {
    margin: 1rem;
    padding: 0.4rem;
  }

  .testimoni .img {
    margin: auto;
  }

  .testimoni .img img {
    height: 10rem;
  }

  #hamburger-menu {
    display: block;
  }

  .nav-wrapper {
    flex-wrap: wrap;
    height: auto;
    padding: 10px 0;
  }

  .nav-links {
    display: none; /* disembunyikan, nanti tampil saat klik hamburger */
    flex-direction: column;
    width: 100%;
    text-align: center;
    margin-top: 10px;
  }

  .nav-links.active {
    display: flex; /* tampil saat menu aktif */
  }

  .nav-links a {
    margin: 10px 0;
    font-size: 1.1rem;
  }

  .nav-wrapper {
    margin-bottom: 20px;
  }

  .kontak {
    margin-left: auto;
  }

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

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

  .grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

/* Mobile */
@media (max-width: 600px) {
  .logo {
    font-size: 1rem;
  }

  .nav-wrapper {
    padding: 0 10px;
  }

  .kontak a {
    padding: 10px 18px;
    font-size: 0.9rem;
  }

  .hero {
    min-height: 65vh;
  }

  .hero h1 {
    font-size: 1.6rem;
  }

  .hero p {
    font-size: 0.9rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 10px;
  }

  /* ==== PORTFOLIO MODAL Mobile ==== */
  .portfolio-modal {
    display: none; /* hidden default */
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85); /* overlay */
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-in-out;
  }

  /* konten gambar di modal */
  .portfolio-modal img {
    max-width: 70%;
    max-height: 50%;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease-in-out;
  }

  .portfolio-modal img:hover {
    transform: scale(1.02);
  }

  /* tombol close */
  .portfolio-modal .close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
  }

  .portfolio-modal .close:hover {
    color: #ff4444;
  }

  /* tombol navigasi */
  #prevBtn,
  #nextBtn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    user-select: none;
    transition: background 0.3s;
  }

  #prevBtn:hover,
  #nextBtn:hover {
    background: rgba(0, 0, 0, 0.7);
  }

  #prevBtn {
    left: 5px;
  }

  #nextBtn {
    right: 5px;
  }

  /* animasi muncul modal */
  @keyframes fadeIn {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }

  .card {
    padding: 15px;
  }

  .pricing-card {
    padding: 18px;
  }

  .contact-info {
    padding: 20px;
    font-size: 1rem;
  }
}
