/* Reset dasar */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #ffffff;
  color: #332D56;
  line-height: 1.6;
}

/* Responsive Typography */
h1 {
  font-size: clamp(2rem, 5vw, 4rem);
}

p {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
}

/* Responsive Container */
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background-color: #332D56;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-left .logo {
  height: 60px;
  width: 150px;
}

.nav-center h1 {
  font-size: 1.5rem;
  color: #fff;
  letter-spacing: 1px;
}

.nav-right a {
  margin-left: 1rem;
  color: #fff;
  font-size: 1.2rem;
  transition: transform 0.2s ease, color 0.2s ease;
}

.nav-right a:hover {
  color: #71C0BB;
  transform: scale(1.1);
}

/* Responsif */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
  .nav-right {
    margin-top: 0.5rem;
  }
}

/* NAVBAR */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #332D56;
  padding: 1rem 2rem;
  color: #fff;
  flex-wrap: wrap;
}

.logo {
  height: 50px;
  width: auto;
}

.nav-center h1 {
  font-size: 1.5rem;
  margin: 0;
  color: #fff;
  transition: opacity 0.5s ease;
  text-align: center;
  min-width: 250px;
}

.nav-right a {
  color: #fff;
  font-size: 1.2rem;
  margin-left: 1rem;
  transition: color 0.3s ease;
}

.nav-right a:hover {
  color: #71C0BB;
}

/* Responsive untuk mobile */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .nav-left, .nav-center, .nav-right {
    width: 100%;
    justify-content: center;
  }

  .nav-right a {
    margin: 0 0.5rem;
  }
}

/* NAVIGASI MENU UTAMA */
.main-nav {
  background: linear-gradient(to right, #332D56, #4E6688);
  padding: 0.5rem 2rem;
  display: flex;
  justify-content: center;
  
  position: sticky;
  top: 70px; /* Sesuaikan dengan tinggi navbar di atas */
  z-index: 999;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}



.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links li {
  position: relative;
}

.nav-links a {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #71C0BB;
}

/* Hilangkan bullet point */
.dropdown-menu {
  position: absolute;
  top: 120%;
  left: 0;
  background-color: #332D56;
  padding: 1rem;
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  border-radius: 0.5rem;
  min-width: 240px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
  z-index: 10;
  list-style: none; /* <-- Hilangkan bullet */
}

/* Tampilkan dropdown saat hover */
.dropdown:hover .dropdown-menu {
  display: flex;
}

/* Gaya teks link */
.navbar nav ul li {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%; /* tempel tepat di bawah menu */
  left: 0;
  background-color: #332D56;
  padding: 1rem;
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  border-radius: 0.5rem;
  min-width: 240px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
  z-index: 10;
  list-style: none;
}

/* ini penting: hover aktif jika mouse menyentuh area dropdown juga */
.dropdown:hover .dropdown-menu,
.dropdown-menu:hover {
  display: flex;
}


/* Hero Section */
.hero-section {
  background-color: #E6F2F1;
  color: #332D56; /* teks warna ungu tua dari palet */
  padding: 100px 20px 80px;
  text-align: center;
  box-sizing: border-box;
  position: relative;
}



.hero-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 40px;
}

.hero-text {
  flex: 1;
  min-width: 280px;
  animation: fadeIn 1s ease-in-out;
}

.hero-text h1 {
  font-size: 2.8rem;
  margin-bottom: 10px;
  color: #000000;
}

.hero-text p {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #030303;
  opacity: 0.9;
}

.hero-text .subtext {
  font-size: 1rem;
  color: #000000;
  opacity: 0.8;
}

.cta-button {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 24px;
  background-color: #71C0BB;
  color: #332D56;
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: #5aa8a5;
  color: #ffffff;
}

.hero-image {
  flex: 1;
  min-width: 280px;
  text-align: center;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
}

/* Responsif untuk layar kecil */
@media (max-width: 768px) {
  .hero-container {
    flex-direction: column;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .cta-button {
    padding: 10px 20px;
    font-size: 0.95rem;
  }
}

/* Animasi Fallback */
@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Bagian Layanan */
.services-section {
  background-color: #ffffff;
  padding: 80px 20px;
  text-align: center;
}

.section-title h2 {
  font-size: 2.5rem;
  color: #332D56;
  margin-bottom: 10px;
}

.section-title p {
  color: #4E6688;
  font-size: 1.1rem;
  margin-bottom: 40px;
}

.services-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  background-color: #f9f9f9;
  border-radius: 16px;
  padding: 30px 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.service-icon {
  font-size: 2.5rem;
  color: #71C0BB;
  margin-bottom: 15px;
}

.service-card h3 {
  font-size: 1.3rem;
  color: #332D56;
  margin-bottom: 10px;
}

.service-card p {
  color: #4E6688;
  font-size: 1rem;
  line-height: 1.5;
}

/* Responsif tambahan */
@media (max-width: 768px) {
  .section-title h2 {
    font-size: 2rem;
  }
  .services-section {
    padding: 60px 10px;
  }
}

.services-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}
.service-card {
  flex: 1 1 300px;
  max-width: 350px;
}

.about-section {
  background: #E6F2F1;;
  padding: 80px 20px;
  position: relative;
  z-index: 1;
}

.about-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(#f0f4e1 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 0.15;
  z-index: -1;
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.about-text {
  flex: 1 1 500px;
}

.about-text h2 {
  font-size: 2.5rem;
  color: #332D56;
  margin-bottom: 20px;
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #444;
  margin-bottom: 25px;
}

.about-highlights {
  list-style: none;
  padding: 0;
}

.about-highlights li {
  font-size: 1rem;
  margin-bottom: 12px;
  color: #4E6688;
}

.about-highlights i {
  color: #71C0BB;
  margin-right: 10px;
}

.about-image {
  flex: 1 1 400px;
  text-align: center;
}

.about-image img {
  max-width: 100%;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.portfolio-section {
  background: #f9f9f9;
  padding: 60px 20px;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 30px;
}

.portfolio-filters {
  text-align: center;
  margin-bottom: 30px;
}

.filter-btn {
  background: #332D56;
  color: white;
  border: none;
  padding: 10px 20px;
  margin: 5px;
  cursor: pointer;
  border-radius: 5px;
  transition: background 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
  background: #71C0BB;
}

.portfolio-items {
  display: grid;
  grid-template-columns: repeat(5, 200px);
  gap: 20px;
  justify-content: center; /* agar grid tetap di tengah */
}

.portfolio-item {
  background: white;
  width: 200px;
  height: 280px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.portfolio-item:hover {
  transform: translateY(-5px);
}

.portfolio-item img {
  width: 100%;
  height: 75%;
  object-fit: cover;
  display: block;
}

.portfolio-item h3 {
  padding: 10px;
  font-size: 1rem;
  text-align: center;
}

.portfolio-slider-container {
  position: relative;
  overflow: hidden;
  max-width: 100%;
  margin: 0 auto;
}

.portfolio-slider {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}

.portfolio-slide {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  flex: 0 0 100%;
  justify-items: center;
}

.portfolio-item {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s;
  text-align: center;
}
.portfolio-item img {
  width: 100%;
  height: auto;
  max-width: 180px;
}
.portfolio-item h3 {
  padding: 10px;
  font-size: 1rem;
}

.slider-btn {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  background: #332D56;
  color: white;
  border: none;
  padding: 10px;
  font-size: 24px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 10;
}
.slider-btn:hover {
  background: #71C0BB;
}
.slider-btn.left {
  left: 10px;
}
.slider-btn.right {
  right: 10px;
}

/* Modal Style */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.8);
  text-align: center;
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80vh;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(255,255,255,0.3);
}

.close {
  position: absolute;
  top: 30px;
  right: 35px;
  color: #ffffff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.close:hover {
  color: #71C0BB;
}


.testimoni-section {
  background: #E6F2F1;
  padding: 80px 20px;
  text-align: center;
}

.testimoni-section .section-title {
  font-size: 2rem;
  color: #332D56;
  margin-bottom: 40px;
}

.testimoni-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.testimoni-card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  padding: 30px;
  width: 300px;
  transition: transform 0.3s ease;
}

.testimoni-card:hover {
  transform: translateY(-5px);
}

.user-img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 15px;
}

.user-quote {
  font-style: italic;
  color: #4E6688;
  margin-bottom: 15px;
}

.user-name {
  font-weight: bold;
  color: #332D56;
}

.user-company {
  font-size: 0.9rem;
  color: #71C0BB;
}

/* Animasi scroll */
.testimoni-card {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.6s ease;
}

.testimoni-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.faq-section {
  background: #F9F9FB;
  padding: 80px 20px;
}

.section-title {
  font-size: 2rem;
  color: #332D56;
  text-align: center;
  margin-bottom: 40px;
}

.faq-item {
  border-bottom: 1px solid #ddd;
  margin-bottom: 20px;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 600;
  color: #4E6688;
  padding: 15px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question i {
  transition: transform 0.3s;
}

.faq-answer {
  display: none;
  padding: 0 15px 15px 15px;
  color: #555;
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.cta-section {
  background: #f9f9f9;
  color: #000000;
  text-align: center;
  padding: 80px 20px;
}

.cta-container h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.cta-container p {
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.cta-button {
  background: #2e2f72;
  color: #fcf8f8;
  padding: 15px 30px;
  border-radius: 50px;
  font-weight: bold;
  text-decoration: none;
  transition: 0.3s;
}

.cta-button:hover {
  background: #2e2f72;
  color: #000000;
}

/* Kontak Section */
.contact-section {
  background: #fff;
  padding: 60px 20px;
  text-align: center;
}

.contact-section h2 {
  color: #332D56;
  margin-bottom: 20px;
}

.contact-options {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.contact-link {
  color: #4E6688;
  font-size: 1.1rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #ddd;
  padding: 12px 20px;
  border-radius: 12px;
  transition: 0.3s;
}

.contact-link:hover {
  background: #F1F3F7;
}

.footer {
  background-color: #332D56;
  color: #fff;
  padding: 60px 20px 20px;
  font-size: 0.95rem;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  max-width: 1200px;
  margin: auto;
}

.footer-column {
  flex: 1 1 250px;
}

.footer-logo {
  width: 120px;
  margin-bottom: 10px;
}

.footer-column h3 {
  color: #fff;
  margin-bottom: 15px;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column a {
  color: #ddd;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-column a:hover {
  color: #71C0BB;
}

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  border-top: 1px solid #4E6688;
  padding-top: 20px;
  font-size: 0.85rem;
  color: #aaa;
}
