:root {
  --primary-color: #0b395e;
  --secondary-color: #0b2239;
  --light-blue: #e6f0ff;
  --light-gray: #f7f7f7;
  --text-dark: #333;
  --text-light: #666;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--text-dark);
  overflow-x: hidden;
  background-color: var(--white);
}

html {
  scroll-behavior: smooth;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 15px 0;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: var(--transition);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

nav.scrolled {
  padding: 10px 0;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-dark);
  text-decoration: none;
  display: flex;
  align-items: center;
}

.logo i {
  margin-right: 10px;
  font-size: 28px;
}

.logo img {
  height: 28px;
  margin-right: 10px;
  display: inline-block;
  vertical-align: middle;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 30px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.mobile-menu {
  display: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--primary-color);
}

/* Hero Section */
.hero {
  height: 100vh;
  background: linear-gradient(rgba(7, 57, 99, 0.7), rgba(70, 130, 180, 0.7)),
    url("/image/bg2.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
  transition: background-image 1s ease-in-out; /* efek halus */
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at center,
    transparent 0%,
    rgba(11, 34, 57, 0.4) 100%
  );
  z-index: 1;
}

.hero-content {
  max-width: 800px;
  padding: 0 20px;
  z-index: 2;
  position: relative;
  animation: fadeIn 1.5s ease;
}

.hero-content h1 {
  font-size: 60px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.1;
  animation: fadeInDown 1s ease;
}

.hero-content p {
  font-size: 20px;
  margin-bottom: 20px;
  line-height: 1.5;
  animation: fadeInUp 1s ease 0.3s;
  animation-fill-mode: both;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease 0.6s;
  animation-fill-mode: both;
}

.btn {
  padding: 15px 30px;
  border: none;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-block;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background-color: var(--white);
  color: var(--primary-color);
}

.btn-secondary {
  background-color: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
  background-color: var(--light-blue);
}

.btn-secondary:hover {
  background-color: var(--white);
  color: var(--primary-color);
}

.trust-badges {
  margin-top: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  animation: fadeInUp 1s ease 0.9s;
  animation-fill-mode: both;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  background-color: rgba(255, 255, 255, 0.2);
  padding: 8px 15px;
  border-radius: 30px;
  backdrop-filter: blur(5px);
}

.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 30px;
  justify-content: center;
  animation: fadeInUp 1s ease 1.2s;
  animation-fill-mode: both;
}

.social-icons a {
  color: var(--white);
  font-size: 20px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

.social-icons a:hover {
  background-color: var(--white);
  color: var(--primary-color);
  transform: translateY(-5px);
}

/* Section Styling */
section {
  padding: 100px 0;
  position: relative;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 40px;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

.section-title p {
  font-size: 18px;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto;
}

/* Why Choose Section */
.why-choose {
  position: relative;
  background-color: #ecececfa;
  /* background-image: url("../produk/7.jpg"); */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.why-choose::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.92) 0%,
    rgba(255, 255, 255, 0.88) 50%,
    rgba(255, 255, 255, 0.92) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.why-choose .container {
  position: relative;
  z-index: 2;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.feature-card {
  background-color: var(--white);
  border-radius: 15px;
  padding: 30px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.feature-icon {
  font-size: 50px;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 22px;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.feature-card p {
  color: var(--text-light);
  line-height: 1.6;
}

/* Partnership Models Section */
/* ===========================
   Partnership Cards - Premium Style
   =========================== */

.partnership-models {
  background-color: var(--light-gray);
  padding-top: 80px;
  padding-bottom: 80px;
}

.models-container {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Card */
.model-card {
  flex: 1;
  min-width: 320px;
  max-width: 420px;
  background-color: var(--white);
  border-radius: 18px;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.08);
  position: relative;
  border: 1px solid rgba(212, 175, 55, 0.05);
}

.model-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.18);
}

/* Header */
.model-header {
  background: linear-gradient(145deg, #0a2540, #0d1b2a 70%);
  color: var(--white);
  text-align: center;
  padding: 28px 20px;
  border-bottom: 3px solid var(--accent-gold);
}

.model-header h3 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.model-header p {
  opacity: 0.85;
  font-size: 15px;
}

/* Content */
.model-content {
  padding: 30px 30px 40px;
}

.model-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.model-item i {
  color: var(--accent-gold);
  font-size: 20px;
}

.model-item p {
  font-size: 16px;
  color: var(--text-dark);
  line-height: 1.5;
}

/* Price (Optional Badge Style) */
.model-price {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-color);
  margin: 22px 0;
  text-align: center;
}

/* Button */
.model-btn {
  width: 100%;
  padding: 16px;
  background-color: var(--accent-gold);
  color: var(--primary-color);
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.model-btn:hover {
  background-color: var(--accent-gold-hover);
  box-shadow: 0px 0px 20px rgba(212, 175, 55, 0.4);
}

/* Optional Best Offer Ribbon */
.model-card.best::before {
  content: "Rekomendasi";
  position: absolute;
  top: 16px;
  right: -50px;
  background: var(--accent-gold);
  color: var(--primary-color);
  padding: 6px 50px;
  font-size: 13px;
  font-weight: bold;
  transform: rotate(45deg);
}

/* Profit Potential Section */
.profit-potential {
  background-color: var(--white);
}

.profit-container {
  display: flex;
  gap: 50px;
  align-items: center;
  flex-wrap: wrap;
}

.profit-chart {
  flex: 1;
  min-width: 300px;
}

.chart-container {
  background-color: var(--light-gray);
  border-radius: 15px;
  padding: 30px;
  box-shadow: var(--shadow);
}

.chart-title {
  font-size: 20px;
  font-weight: 600;
  height: 100px;
  margin-bottom: 20px;
  color: var(--secondary-color);
  text-align: center;
}

.bar-chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  height: 250px;
  margin-top: 20px;
  position: relative;
  padding-bottom: 30px; /* beri ruang untuk label Q1-Q4 */
}

/* Batang grafik */
.bar {
  width: 60px;
  background: linear-gradient(
    to top,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: 6px 6px 0 0;
  position: relative;
  transition: transform 0.3s ease, opacity 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

/* Efek hover */
.bar:hover {
  transform: scaleY(1.05);
  opacity: 0.9;
}

/* Label bawah (Q1, Q2, ...) */
.bar-label {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 14px;
  color: var(--text-light);
  font-weight: 500;
  white-space: nowrap;
}

/* Nilai atas (Rp5 Juta, dst) */
.bar-value {
  position: absolute;
  top: -30px; /* sedikit lebih tinggi agar tidak menempel */
  left: 50%;
  transform: translateX(-50%);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark); /* ganti ke warna lebih kontras */
  background: rgba(255, 255, 255, 0.9); /* latar belakang semi-transparan */
  padding: 2px 6px;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  white-space: nowrap;
  pointer-events: none; /* supaya tidak terganggu hover */
}

/* Responsif (otomatis kecil di layar HP) */
@media (max-width: 600px) {
  .bar {
    width: 40px;
  }

  .bar-label,
  .bar-value {
    font-size: 12px;
  }
}

.profit-details {
  flex: 1;
  min-width: 300px;
}

.profit-card {
  background-color: var(--light-gray);
  border-radius: 15px;
  padding: 30px;
  box-shadow: var(--shadow);
}

.profit-item {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.profit-item i {
  font-size: 24px;
  color: var(--primary-color);
  margin-right: 15px;
  width: 30px;
}

.profit-item p {
  font-size: 18px;
  line-height: 1.5;
}

.profit-item strong {
  color: var(--secondary-color);
}

.profit-note {
  font-size: 14px;
  color: var(--text-light);
  font-style: italic;
  margin-top: 20px;
  text-align: center;
}

/* Support Section */
.support {
  background: linear-gradient(
    135deg,
    var(--secondary-color),
    var(--primary-color)
  );
  color: var(--white);
}

.support .section-title h2 {
  color: var(--white);
}

.support .section-title h2::after {
  background-color: var(--white);
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.support-card {
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  transition: var(--transition);
}

.support-card:hover {
  transform: translateY(-10px);
  background-color: rgba(255, 255, 255, 0.15);
}

.support-icon {
  font-size: 50px;
  margin-bottom: 20px;
}

.support-card h3 {
  font-size: 22px;
  margin-bottom: 15px;
}

.support-card ul {
  list-style: none;
  text-align: left;
}

.support-card li {
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
}

.support-card li i {
  margin-right: 10px;
  font-size: 14px;
  margin-top: 5px;
}

/* Testimonial Section */
.testimonial {
  background: linear-gradient(
      rgba(196, 195, 195, 0.97),
      rgba(255, 255, 255, 0.7)
    ),
    url("");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--black);
}

.testimonial-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.testimonial-card {
  background-color: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(0.5px);
  border-radius: 15px;
  padding: 40px;
  position: relative;
}

.quote-icon {
  font-size: 60px;
  color: rgba(255, 255, 255, 0.2);
  position: absolute;
  top: 20px;
  left: 20px;
}

.testimonial-text {
  font-size: 20px;
  line-height: 1.6;
  margin-bottom: 30px;
  /* font-style: italic; */
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
}

.author-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-right: 15px;
  object-fit: cover;
}

.author-info h4 {
  font-size: 18px;
  margin-bottom: 5px;
}

.author-info p {
  font-size: 14px;
  opacity: 0.8;
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  background-color: var(--white);
}

/* Process Section */
.process {
  background-color: var(--white);
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background: linear-gradient(
    to bottom,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 50px;
}

.timeline-content {
  background-color: var(--white);
  border-radius: 15px;
  padding: 30px;
  box-shadow: var(--shadow);
  width: calc(50% - 40px);
  position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-left: auto;
}

.timeline-icon {
  position: absolute;
  top: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  z-index: 1;
}

.timeline-item:nth-child(odd) .timeline-icon {
  left: -25px;
}

.timeline-item:nth-child(even) .timeline-icon {
  right: -25px;
}

.timeline-content h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--secondary-color);
}

.timeline-content p {
  color: var(--text-light);
  line-height: 1.6;
}

/* FAQ Section */
.faq {
  background-color: var(--light-gray);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background-color: var(--white);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.faq-question {
  padding: 20px;
  font-size: 18px;
  font-weight: 600;
  color: var(--secondary-color);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.faq-question:hover {
  background-color: var(--light-blue);
}

.faq-question i {
  transition: var(--transition);
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  padding: 0 20px 20px;
  max-height: 300px;
}

.faq-answer p {
  color: var(--text-light);
  line-height: 1.6;
}

/* CTA Section */
.cta {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: var(--white);
}

.cta .section-title h2 {
  color: var(--white);
}

.cta .section-title h2::after {
  background-color: var(--white);
}

.form-container {
  max-width: 700px;
  margin: 0 auto;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 40px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--text-dark);
  font-size: 16px;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  background-color: var(--white);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.form-row {
  display: flex;
  gap: 20px;
}

.form-row .form-group {
  flex: 1;
}

select.form-control {
  cursor: pointer;
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.form-buttons {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.btn-submit {
  flex: 1;
  padding: 15px;
  background-color: var(--white);
  color: var(--primary-color);
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-submit:hover {
  background-color: var(--light-blue);
}

.btn-whatsapp {
  flex: 1;
  padding: 15px;
  background-color: #25d366;
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-whatsapp:hover {
  background-color: #128c7e;
}

/* Footer */
footer {
  background-color: var(--secondary-color);
  color: var(--white);
  padding: 50px 0 20px;
  position: relative;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 30px;
}

.footer-logo {
  flex: 1;
  min-width: 250px;
}

.footer-logo h3 {
  font-size: 24px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.footer-logo h3 i {
  margin-right: 10px;
}

.footer-logo h3 img {
  height: 28px;
  margin-right: 10px;
  display: inline-block;
  vertical-align: middle;
}

.footer-logo p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

.footer-contact {
  flex: 1;
  min-width: 250px;
}

.footer-contact h4 {
  font-size: 18px;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-contact h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--primary-color);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
}

.contact-item i {
  margin-right: 15px;
  margin-top: 3px;
  color: var(--primary-color);
}

.contact-item p {
  line-height: 1.5;
}

.footer-social {
  flex: 1;
  min-width: 250px;
}

.footer-social h4 {
  font-size: 18px;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-social h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--primary-color);
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--primary-color);
  transform: translateY(-5px);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.back-top-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 9999px;
  background-color: var(--white);
  color: var(--secondary-color);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);

  /* Pin to bottom-right corner of the footer */
  position: absolute;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom) + 16px);
  z-index: 5;
}
.back-top-btn i {
  font-size: 14px;
}
.back-top-btn:hover {
  transform: translateY(-2px);
  background-color: var(--light-blue);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
}
.back-top-btn:focus {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

/* Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 992px) {
  .nav-links {
    display: none;
  }

  .mobile-menu {
    display: block;
  }

  .hero-content h1 {
    font-size: 40px;
  }

  .timeline::before {
    left: 30px;
  }

  .timeline-content {
    width: calc(100% - 80px);
    margin-left: 60px !important;
  }

  .timeline-icon {
    left: 5px !important;
  }
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 32px;
  }

  .hero-content p {
    font-size: 18px;
  }

  .section-title h2 {
    font-size: 30px;
  }

  .models-container {
    flex-direction: column;
  }

  .profit-container {
    flex-direction: column;
  }

  .form-row {
    flex-direction: column;
  }

  .footer-content {
    flex-direction: column;
  }
}

@media (max-width: 576px) {
  .hero-content h1 {
    font-size: 28px;
  }

  .hero-content p {
    font-size: 16px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 300px;
  }
}

/* Modal Paket Kemitraan */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.modal.active {
  display: flex;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  z-index: 1; /* ensure overlay stays below dialog on all devices */
}

.modal-dialog {
  position: relative;
  background: var(--white);
  border-radius: 15px;
  width: min(900px, 92%);
  max-height: 90vh;
  max-height: 90dvh;
  box-shadow: var(--shadow);
  overflow: hidden;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  z-index: 2; /* ensure dialog is above the overlay, fixes iOS/Android stacking */

  display: flex;
  flex-direction: column;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 2;
}

.modal-title {
  font-size: 18px;
  font-weight: 700;
}

.modal-close {
  border: none;
  background: transparent;
  color: var(--white);
  font-size: 26px;
  cursor: pointer;
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
  color: var(--text-dark);

  flex: 1 1 auto;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.modal-body h4 {
  margin: 12px 0;
  color: var(--secondary-color);
}

.modal-body .price {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 10px;
  text-align: left;
}

.modal-body .modal-list {
  margin-left: 18px;
  margin-bottom: 10px;
}

.modal-body .modal-list li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.modal-body hr {
  border: none;
  border-top: 1px solid var(--light-gray);
  margin: 16px 0;
}

/* Avoid parallax stacking issues while modal is open */
body.modal-open .hero {
  transform: none !important;
}

body.modal-open {
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: pan-y; /* allow vertical scroll inside modal on mobile */
}

@media (max-width: 768px) {
  .modal-dialog {
    width: 96%;
    max-height: 92vh;
    max-height: 92dvh;
    border-radius: 12px;
  }

  .modal-title {
    font-size: 17px;
    line-height: 1.3;
  }

  .modal-close {
    font-size: 28px;
  }

  .modal-body {
    padding: 16px;
  }
}

@media (max-width: 820px) {
  .modal {
    align-items: flex-end; /* bottom-sheet style full-screen */
  }

  .modal-dialog {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    margin: 0 auto;

    width: 100%;
    max-width: 100%;
    height: 100vh;
    height: 100dvh; /* dynamic viewport for mobile toolbars */
    height: 100svh; /* small viewport fallback */
    max-height: 100vh;
    max-height: 100dvh;
    max-height: 100svh;
    border-radius: 12px 12px 0 0;
  }

  .modal-header {
    padding: 14px 16px;
    padding-top: calc(14px + env(safe-area-inset-top));
  }

  .modal-body {
    padding: 14px 16px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
  }

  .modal-title {
    font-size: 16px;
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}
