/* ======== 1. STYLING DASAR & VARIABEL ======== */
html,
body {
  font-family: "Poppins", sans-serif;
  line-height: 1.7;
  background-color: #f8f9fa;
  overflow-x: hidden;
}

:root {
  --bs-primary: #0052ff;
  --bs-primary-rgb: 0, 82, 255;
  --bs-light-gray: #e9ecef;
  --dark-grey: #2d3748;
  --color-dot-1: #0052ff;
  --color-dot-1-rgb: 0, 82, 255;
  --color-dot-2: #00a08a;
  --color-dot-2-rgb: 0, 160, 138;
  --color-dot-3: #fd7e14;
  --color-dot-3-rgb: 253, 126, 20;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-500: #64748b;
  --slate-900: #0f172a;
}

.btn-primary {
  background-color: var(--bs-primary);
  border-color: var(--bs-primary);
  font-weight: 500;
  padding: 0.75rem 1.5rem;
}

/* ======== 2. STYLING NAVBAR ======== */
.navbar {
  padding: 1rem 0;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}
.navbar-brand img {
  height: 30px;
}
.navbar-brand {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--dark-grey);
}
.navbar-brand:hover {
  color: var(--bs-primary);
}

/* ======== 3. HERO SECTION ======== */
.hero-section {
  background-color: #ffffff;
  background-image: radial-gradient(
    circle at 50% 10%,
    #fcfdff 0%,
    #f8f9fa 100%
  );
  padding: 10rem 0 5rem 0;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-section::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(
    circle,
    rgba(var(--bs-primary-rgb), 0.02) 1px,
    transparent 1px
  );
  background-size: 25px 25px;
  opacity: 1;
  pointer-events: none;
  z-index: 0;
}

.hero-section > .hero-content-top,
.hero-section > .hero-flow-diagram {
  position: relative;
  z-index: 1;
}

.hero-content-top {
  padding-top: 4rem !important;
  padding-bottom: 5rem !important;
}

.hero-section h1 {
  font-weight: 700;
  color: var(--dark-grey);
  line-height: 1.3;
}
.hero-section .lead {
  font-size: 1.1rem;
  font-weight: 400;
  color: #6c757d;
  max-width: 700px;
  margin-bottom: 2rem !important;
  line-height: 1.6;
}

/* ======== CSS DIAGRAM ALIR HERO ======== */

.hero-flow-diagram {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 2rem 4rem 2rem;
  margin-top: -1rem;
}

.main-grid {
  position: relative;
  width: 100%;
  max-width: 1000px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 5rem 5rem;
  align-items: center;
}

.svg-connectors {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.cards-column {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
  z-index: 10;
}

.feature-card {
  position: relative;
  background: white;
  border-radius: 0.75rem;
  padding: 0.85rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(226, 232, 240, 0.5);
  transition: all 0.3s ease;
}

.feature-card:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
}

.feature-card-content {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.icon-container {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: linear-gradient(
    135deg,
    rgba(var(--bs-primary-rgb), 0.1) 0%,
    rgba(var(--bs-primary-rgb), 0.2) 100%
  );
  border-radius: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease;
}

.feature-card:hover .icon-container {
  transform: scale(1.05);
}

.icon-container i {
  font-size: 1.1rem;
  color: var(--bs-primary);
}

.card-text h3 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark-grey);
  margin: 0 0 0.25rem 0;
}

.card-text p {
  font-size: 0.75rem;
  color: var(--slate-500);
  margin: 0;
  line-height: 1.4;
}

.center-logo-container {
  position: relative;
  z-index: 10;
  padding: 1rem 0;
}

.logo-wrapper {
  position: relative;
}

.logo-glow {
  position: absolute;
  inset: -10px;
  background: var(--bs-primary);
  border-radius: 1.5rem;
  filter: blur(30px);
  opacity: 0.15;
  transition: opacity 0.3s ease;
}

.logo-wrapper:hover .logo-glow {
  opacity: 0.2;
}

.center-logo {
  position: relative;
  width: 100px;
  height: 100px;
  background: #fff;
  border-radius: 1.5rem;
  box-shadow: 0 10px 30px rgba(var(--bs-primary-rgb), 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  overflow: hidden;
}

.center-logo .img-fluid {
  max-height: 60px;
}

.logo-wrapper:hover .center-logo {
  transform: scale(1.05);
}

.logo-inner-shadow,
.logo-shine {
  display: none;
}

/* ======== 4. SECTION FITUR (TIMELINE) ======== */
.section-features {
  background-color: #fff;
  overflow-x: visible;
}

.timeline-wrapper {
  position: relative;
  padding: 2rem 0;
}

.timeline-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 100%;
  background-color: var(--bs-light-gray);
  z-index: 1;
}

.timeline-wrapper::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  z-index: 2;

  background-color: rgba(var(--bs-primary-rgb), 0.2);
  box-shadow: 0 0 15px 5px rgba(var(--bs-primary-rgb), 0.15);
  border-radius: 50%;

  top: 0;
  height: 0;

  transition: height 2.1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.timeline-wrapper.timeline-activated::after {
  height: 100%;
}

.timeline-item {
  position: relative;
  width: 100%;
  margin-bottom: 2rem;
  overflow: visible;
}
.timeline-item::after {
  content: "";
  display: table;
  clear: both;
}

.timeline-dot {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 4px solid #fff;
  z-index: 4;
}

.timeline-content.card {
  position: relative;
  width: 45%;
  border: none;
  box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.07);
  border-radius: 0.75rem;
  z-index: 3;

  opacity: 0;
  transition: all 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.timeline-content.card:hover {
  transform: translateY(-5px);
  box-shadow: 0px 15px 35px rgba(0, 0, 0, 0.1);
}

.timeline-content .card-body {
  padding: 1.5rem;
}

.feature-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.timeline-item:nth-child(odd) .timeline-content {
  float: left;
  transform: translateX(20%) scale(0.8) rotate(5deg);
}
.timeline-item:nth-child(odd) .feature-icon {
  margin-left: auto;
  margin-right: 0;
}

.timeline-item:nth-child(even) .timeline-content {
  float: right;
  transform: translateX(-20%) scale(0.8) rotate(-5deg);
}
.timeline-item:nth-child(even) .feature-icon {
  margin-left: 0;
  margin-right: auto;
}

.timeline-item.is-visible .timeline-content {
  opacity: 1;
  transform: translateX(0) scale(1) rotate(0);
}

.timeline-item:nth-child(2).is-visible {
  transition-delay: 0.3s;
}
.timeline-item:nth-child(3).is-visible {
  transition-delay: 0.6s;
}

.timeline-dot.dot-1 {
  background-color: var(--color-dot-1);
}
.feature-icon.icon-1 {
  color: var(--color-dot-1);
  background-color: rgba(var(--color-dot-1-rgb), 0.1);
}

.timeline-dot.dot-2 {
  background-color: var(--color-dot-2);
}
.feature-icon.icon-2 {
  color: var(--color-dot-2);
  background-color: rgba(var(--color-dot-2-rgb), 0.1);
}

.timeline-dot.dot-3 {
  background-color: var(--color-dot-3);
}
.feature-icon.icon-3 {
  color: var(--color-dot-3);
  background-color: rgba(var(--color-dot-3-rgb), 0.1);
}

/* ======== Responsif Mobile ======== */
@media (max-width: 991.98px) {
  .hero-content-top {
    padding-top: 3rem !important;
    padding-bottom: 1.5rem !important;
  }
  .hero-section h1 {
    font-size: 1.7rem;
    font-weight: 700;
  }
  .hero-section .lead {
    font-size: 0.9rem;
    max-width: 90%;
    margin-bottom: 1.5rem !important;
  }

  .hero-flow-diagram {
    padding: 0 0.5rem 2rem 0.5rem;
    margin-top: 0;
  }
  .main-grid {
    grid-template-columns: 1fr auto 1fr;
    gap: 1em 1rem;
  }

  .cards-column {
    gap: 0.75rem;
  }

  .feature-card {
    padding: 0.4rem;
    border-radius: 0.5rem;
  }
  .feature-card-content {
    gap: 0.4rem;
    flex-direction: column;
    text-align: center;
  }
  .icon-container {
    width: 28px;
    height: 28px;
    border-radius: 0.25rem;
    margin: 0 auto;
  }
  .icon-container i {
    font-size: 0.9rem;
  }
  .card-text h3 {
    font-size: 0.65rem;
    line-height: 1.2;
  }
  .card-text p {
    font-size: 0.6rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .center-logo-container {
    padding: 0.5rem 0;
  }
  .center-logo {
    width: 54px;
    height: 54px;
    border-radius: 1rem;
    box-shadow: 0 5px 15px rgba(var(--bs-primary-rgb), 0.15);
  }
  .center-logo .img-fluid {
    max-height: 30px;
  }
  .logo-glow {
    inset: -5px;
    filter: blur(20px);
  }

  /* == Timeline Mobile == */
  .section-features h2,
  .about-section h2 {
    font-size: 1.5rem;
  }

  .timeline-content h5 {
    font-size: 1.1rem;
  }

  .timeline-wrapper {
    padding-left: 20px;
    padding-right: 20px;
  }

  .timeline-wrapper::before,
  .timeline-wrapper::after {
    left: 20px;
    transform: translateX(0);
  }

  .timeline-content.card {
    width: auto;
    float: none !important;
    margin-left: 35px;
    padding: 1rem;
  }

  .timeline-dot {
    left: -9.5px;
    transform: translateX(0);
  }

  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    transform: translateY(20px) scale(0.95);
  }
  .timeline-item.is-visible .timeline-content {
    transform: translateY(0) scale(1);
  }

  .timeline-item:nth-child(odd) .feature-icon,
  .timeline-item:nth-child(even) .feature-icon {
    margin-left: 0;
    margin-right: auto;
  }
}

/* ======== 5. SECTION TENTANG ======== */
.about-section {
  padding: 5rem 0;
  background-color: #f8f9fa;
}
.about-section .icon-list-item {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}
.about-section .icon-list-item i {
  font-size: 1.2rem;
  color: var(--bs-primary);
  margin-right: 1rem;
}

/* ======== 6. FOOTER ======== */
.footer-section {
  background: #111827;
  color: #adb5bd;
  padding: 4rem 0 1rem 0;
  font-size: 0.85rem;
}
.footer-section .navbar-brand {
  color: #fff;
  font-weight: 500;
}
.footer-section p {
  color: #adb5bd;
  font-size: 0.85rem;
}
.footer-section h5 {
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.footer-links {
  padding-left: 0;
}
.footer-links li {
  margin-bottom: 0.5rem;
}
.footer-links a {
  color: #adb5bd;
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 0.85rem;
}
.footer-links a:hover {
  color: #fff;
  padding-left: 3px;
}
.footer-section hr {
  border-color: #495057;
  margin-top: 3rem;
}
.footer-bottom {
  padding-top: 1rem;
  font-size: 0.8rem;
}
