/* styles.css */

/* Variabel Warna untuk Light & Dark Mode */
:root {
  --bg-body: #f9f9f9;
  --bg-card: #ffffff;
  --bg-secondary: #f4f6f9;
  --text-main: #333333;
  --text-secondary: #555555;
  --text-muted: #666666;
  --border-color: #e0e0e0;
  --navbar-scrolled-bg: #ffffff;
  --navbar-scrolled-text: #555555;
  --primary-color: #007bff; /* Warna Utama Default (Biru) */
  --primary-hover: #0056b3; /* Warna Hover Default (Biru Gelap) */
}

body.dark-mode {
  --bg-body: #121212;
  --bg-card: #1e1e1e;
  --bg-secondary: #181818;
  --text-main: #e0e0e0;
  --text-secondary: #cccccc;
  --text-muted: #aaaaaa;
  --border-color: #333333;
  --navbar-scrolled-bg: #1e1e1e;
  --navbar-scrolled-text: #e0e0e0;
}

body {
  font-family: 'Segoe UI', 'Roboto', sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden; /* Mencegah horizontal scrollbar saat animasi */
  transition: background-color 0.3s, color 0.3s;
}

.container {
  max-width: 1100px;
  margin: auto;
  padding: 0 20px;
}

/* Navbar */
.navbar {
  background: transparent;
  padding: 1rem 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: none;
  transition: background 0.3s, padding 0.3s, box-shadow 0.3s;
}

.navbar.scrolled {
  background: var(--navbar-scrolled-bg);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  padding: 0.8rem 0;
}

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

.navbar .logo {
  color: #007bff;
  color: var(--primary-color);
  font-size: 1.5em;
  font-weight: bold;
  text-decoration: none;
}

.navbar .logo img {
  height: 40px; /* Sesuaikan tinggi logo agar pas di navbar */
  width: auto;
  transition: filter 0.3s;
}

.navbar:not(.scrolled) .logo img {
  filter: none; /* Logo tetap warna asli saat navbar transparan */
}

.navbar .nav-links {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

.navbar .nav-links li {
  margin-left: 20px;
}

.navbar .nav-links a {
  color: #fff; /* Warna teks putih saat transparan */
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.navbar.scrolled .nav-links a {
  color: var(--navbar-scrolled-text); /* Warna teks gelap saat navbar putih */
}

.navbar .nav-links a:hover {
  color: #f0f0f0;
}

.navbar.scrolled .nav-links a:hover {
  color: #007bff;
  color: var(--primary-color);
}

.hamburger {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: #fff;
}

.navbar.scrolled .hamburger {
  color: var(--navbar-scrolled-text);
}

/* Hero Slider */
.hero-slider {
  width: 100%;
  height: 90vh;
  position: relative;
}

.hero-slider .swiper-slide {
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
}

.hero-slider .swiper-slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Overlay gelap untuk keterbacaan teks */
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
  padding: 20px;
}

.hero-content h1 {
  font-size: 3em;
  margin-bottom: 10px;
  font-weight: 700;
}

.hero-content p {
  font-size: 1.3em;
  margin-bottom: 20px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.btn-primary, .btn-secondary {
  display: inline-block;
  padding: 12px 24px;
  margin: 10px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.btn-primary {
  background-color: #007bff;
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: #0056b3;
  background-color: var(--primary-hover);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: #ffffff;
  color: #007bff;
  border: 2px solid #007bff;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background-color: #007bff;
  background-color: var(--primary-color);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Swiper Navigation & Pagination for Hero */
.hero-slider .swiper-button-next,
.hero-slider .swiper-button-prev {
  color: #fff;
  transform: scale(0.8);
}

.hero-slider .swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.7);
  width: 12px;
  height: 12px;
}
.hero-slider .swiper-pagination-bullet-active {
  background: #fff;
}

section {
  padding: 60px 20px;
}

h2 {
  text-align: center;
  font-size: 2.2em;
  margin-bottom: 40px;
  color: var(--text-main);
}

/* Features Section */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.feature-item {
  background: var(--bg-card);
  padding: 30px;
  text-align: center;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.feature-item i {
  font-size: 2.5em;
  color: #007bff;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.feature-item h3 {
  font-size: 1.4em;
  margin-bottom: 10px;
}

.feature-item p {
  font-size: 1em;
  color: var(--text-muted);
}

/* Client Logos Section */
.client-logos {
    background-color: var(--bg-secondary);
    padding: 40px 20px;
    text-align: center;
}
.client-logos h3 {
    margin-bottom: 30px;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 1.4em;
}
.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 50px;
}
.logo-container img {
    max-height: 50px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}
.logo-container img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Gallery Section */
.gallery-section {
  background-color: var(--bg-card);
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
.gallery-item a {
    display: block;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}
.gallery-item a:hover img {
    transform: scale(1.1);
}

/* Pricing Section */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  align-items: center;
}

.pricing-card {
  background: var(--bg-card);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  position: relative;
}

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

.pricing-card h3 {
  font-size: 1.6em;
  color: #007bff;
  color: var(--primary-color);
}

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

.pricing-card .price span {
  font-size: 0.5em;
  font-weight: normal;
  color: #777;
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 20px 0 30px 0;
  text-align: left;
}

.pricing-card ul li {
  margin-bottom: 10px;
  color: var(--text-secondary);
}

.pricing-card ul li i {
  margin-right: 10px;
}

.pricing-card ul li .fa-check {
  color: #28a745;
}

.pricing-card ul li .fa-times {
  color: #dc3545;
}

.pricing-card .btn-primary,
.pricing-card .btn-secondary {
  width: 50%;
  margin-left: 0;
  margin-right: 0;
}

/* Recommended Card Styling */
.pricing-card.recommended {
  transform: scale(1.05);
  border-color: #007bff;
  border-color: var(--primary-color);
}

.pricing .recommended {
  font-weight: bold;
  color: #007bff;
  color: var(--primary-color);
}

.pricing-card .badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: #007bff;
  background: var(--primary-color);
  color: #fff;
  padding: 5px 15px;
  border-radius: 50px;
  font-size: 0.9em;
  font-weight: bold;
}


/* Testimoni Section */
.testimoni blockquote {
  background: var(--bg-card);
  padding: 20px;
  margin: 20px 0;
  border-left: 5px solid #007bff;
  border-left: 5px solid var(--primary-color);
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  border-radius: 5px;
  font-style: italic;
  color: var(--text-secondary);
}

.testimoni footer {
  background: none;
  color: var(--text-main);
  text-align: right;
  padding: 10px 0 0 0;
  font-style: normal;
  font-weight: bold;
}

.contact p {
  font-size: 1.1em;
  margin: 10px 0;
}

.contact {
  text-align: center;
}

footer {
  background: #007bff;
  background: var(--primary-color);
  color: white;
  text-align: center;
  padding: 20px;
}

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

/* Swiper Pagination */
.swiper-pagination-bullet-active {
  background: #007bff !important;
  background: var(--primary-color) !important;
}

/* Scroll to Top Button */
#scrollTopBtn {
  display: none; /* Sembunyikan secara default */
  position: fixed;
  bottom: 20px;
  right: 30px;
  z-index: 99;
  border: none;
  outline: none;
  background-color: #007bff;
  background-color: var(--primary-color);
  color: white;
  cursor: pointer;
  padding: 15px;
  border-radius: 50%;
  font-size: 18px;
  width: 50px;
  height: 50px;
  text-align: center;
  line-height: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: background-color 0.3s;
}

/* Testimonial Slider Navigation */
.testimoni {
  position: relative; /* Diperlukan agar tombol navigasi bisa diposisikan */
}
.testimonial-button-next,
.testimonial-button-prev {
  display: none !important; /* Sembunyikan tombol navigasi */
}

/* FAQ Section */
.faq-section {
  background-color: var(--bg-card);
}

.faq-container {
  max-width: 800px;
  margin: auto;
}

.faq-item {
  border-bottom: 1px solid var(--border-color);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 20px 0;
  font-size: 1.2em;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-main);
}

.faq-question:hover {
  color: #007bff;
  color: var(--primary-color);
}

.faq-question i {
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.faq-answer p {
  padding: 0 10px 20px 10px;
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.7;
}

#scrollTopBtn:hover {
  background-color: #0056b3;
  background-color: var(--primary-hover);
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
  .navbar .nav-links {
    display: none; /* Sembunyikan nav-links secara default di mobile */
  }

  .nav-links {
    position: absolute;
    top: 70px; /* Tinggi navbar */
    left: 0;
    background: var(--navbar-scrolled-bg);
    width: 100%;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  }

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

  .nav-links li {
    margin: 15px 0;
    margin-left: 0;
  }

  .navbar .nav-links a {
    color: var(--navbar-scrolled-text); /* Pastikan link berwarna gelap di menu mobile */
  }

  .hamburger {
    display: block; /* Tampilkan ikon hamburger */
  }

  .hamburger.active i:before {
    content: '\f00d'; /* Ganti ikon menjadi 'X' (times) */
  }

  .hero-slider {
    height: 100vh; /* Penuhi layar di mobile */
  }

  .hero-content h1 {
    font-size: 2.2em;
  }

  .hero-content p {
    font-size: 1.1em;
  }

  section {
    padding: 40px 20px;
  }

  h2 {
    font-size: 1.8em;
  }

  .features-grid, .pricing-grid {
    grid-template-columns: 1fr; /* Buat menjadi 1 kolom */
  }

  .pricing-card.recommended {
    transform: scale(1); /* Hapus efek zoom di mobile */
  }

  #scrollTopBtn {
    bottom: 15px;
    right: 15px;
  }
}