/* =========================
   VARIABEL GLOBAL
========================= */
:root {
  --primary-color: #4ecdc4;
  --secondary-color: #45b7af;
  --bg-gray: #e8eaed;
  --text-dark: #2c3e50;
}

/* =========================
   GLOBAL STYLES
========================= */
body {
  font-family: "Poppins", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bg-gray);
  margin: 0;
  padding: 0;
}

/* =========================
   LANDING PAGE SECTION
========================= */

/* ===== NAVBAR ===== */
.navbar-brand {
  font-weight: 600;
  color: var(--primary-color) !important;
  font-size: 1.3rem;
}

.site-header {
  background-color: var(--bg-gray);
  position: relative;
  z-index: 10;
  padding-top: 15px;
}

.site-logo {
  height: 45px;
  width: auto;
}

.site-title {
  font-weight: 700;
  font-size: 1.5rem;
  color: #3dc3cf;
  letter-spacing: 0.5px;
}

/* ===== HERO SECTION ===== */
.hero-section {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 60px 20px;
  background-color: var(--bg-light);
  text-align: left;
}

.hero-content {
  max-width: 900px;
  margin: 20px 0 0 0;
  transform: none;
}

.hero-content h1 {
  font-family: "Poppins", sans-serif;
  font-size: 36px;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--text-dark);
  opacity: 0;
  animation: fadeInUp 1s ease-out forwards;
  animation-delay: 0.1s;
}

.hero-content p {
  color: #555;
  font-family: "Poppins", sans-serif;
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 25px;
  opacity: 0;
  animation: fadeInUp 1s ease-out forwards;
  animation-delay: 0.3s;
}

.hero-image {
  max-width: 400px;
  width: 100%;
  height: auto;
  margin-bottom: 20px;
  animation: fadeInUp 1s ease-out forwards;
}

.illustration-container img {
  animation: float 3s ease-in-out infinite;
  transform: translateZ(0);
}

@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(-90px);
  }
}

.text-1 {
  color: #07b9a6;
}

.text-2 {
    color: #cfdb29;
    border-right: 2px solid #cfdb29;
    white-space: nowrap;
    overflow: hidden;
    width: 0;
    vertical-align: bottom;
    display: inline-block;
    line-height: 1.2;
    animation: textyellow 7s steps(20, end) infinite, blink 0.7s step-end infinite;
}

@keyframes textyellow {
    0% {
        width: 0;
    }
    40% {
        width: 13ch; 
    }
    90% {
        width: 13ch; 
    }
    100% {
        width: 0;   
    }
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}

.btn-login {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 10px 40px;
  border-radius: 5px;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
  opacity: 0;
  animation: fadeInUp 1s ease-out forwards;
  animation-delay: 0.5s;
}

.btn-login:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
}

/* ===== FEATURES SECTION ===== */
.features-section {
  background-color: #ffffff;
  padding: 80px 0;
  border-radius: 12px;
}

.feature-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: transparent;
  border: none;
  box-shadow: none;
  transition: all 0.3s ease;
  padding: 10px;

  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}
.feature-card.animate {
  opacity: 1;
  transform: translateY(0);
}
.feature-icon {
  background-color: var(--primary-color);
  color: #fff;
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 26px;
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  background-color: var(--secondary-color);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(69, 183, 175, 0.3);
}

.feature-content h5 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px;
  line-height: 1.3;
}

.feature-content p {
  font-size: 0.95rem;
  color: #555;
  margin: 0;
  line-height: 1.6;
  max-width: 280px;
}

.features-section .row {
  row-gap: 35px;
  justify-content: flex-start !important;
}

/* === ANIMASI CARD === */
@keyframes zoomInCard {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Default state (belum muncul di layar) */
.feature-card {
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Saat terlihat di layar */
.feature-card.visible {
  animation: zoomInCard 0.8s ease-out forwards;
}

/* Delay berurutan agar muncul satu-satu */
.feature-card.visible:nth-child(1) { animation-delay: 0.1s; }
.feature-card.visible:nth-child(2) { animation-delay: 0.3s; }
.feature-card.visible:nth-child(3) { animation-delay: 0.5s; }
.feature-card.visible:nth-child(4) { animation-delay: 0.7s; }
.feature-card.visible:nth-child(5) { animation-delay: 0.9s; }
.feature-card.visible:nth-child(6) { animation-delay: 1.1s; }
.feature-card.visible:nth-child(7) { animation-delay: 1.3s; }

/* === ANIMASI CARD END === */
/* ===== FOOTER ===== */
.footer {
  background-color: var(--primary-color);
  color: white;
  padding: 25px 0;
}

.footer-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-icon {
  width: 35px;
  height: 35px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =========================
   ERROR 500 PAGE SECTION
========================= */

/* Supaya tidak bentrok dengan landing body */
.page-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  transform: translateY(80px);
}

.error-box {
  background-color: #ffffff;
  padding: 50px 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  text-align: center;
  max-width: 500px;
  width: 100%;
}

.image-wrapper {
  position: relative;
  display: inline-block;
}

.illustration-img {
  width: 100%;
  max-width: 320px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Angka 500 bergelombang */
.error-code {
  position: absolute;
  bottom: -25px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 70px;
  font-weight: 700;
  color: #07b9a6;
  z-index: 2;
  letter-spacing: 2px;
}

.error-code span {
  display: inline-block;
  animation: waveEach 1.5s ease-in-out infinite;
}

.error-code span:nth-child(1) {
  animation-delay: 0s;
}
.error-code span:nth-child(2) {
  animation-delay: 0.2s;
}
.error-code span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes waveEach {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.main-title {
  font-size: 22px;
  font-weight: 600;
  color: #222;
  margin-top: 25px;
  margin-bottom: 8px;
}

.description {
  font-size: 15px;
  color: #555;
  margin-bottom: 25px;
}

.action-button {
  background-color: #07b9a6;
  color: #fff;
  border: none;
  padding: 10px 28px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.action-button:hover {
  background-color: #059c8c;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 767px) {
  .hero-section {
    padding: 45px 25px;
  }
  .hero-content h1 {
    font-size: 24px;
  }
  .hero-content p {
    font-size: 15px;
  }
  .hero-image {
    max-width: 280px;
  }

  .footer-contact {
    flex-direction: column;
    gap: 20px;
  }

  .error-box {
    padding: 40px 20px;
  }
  .error-code {
    font-size: 60px;
    bottom: -8px;
  }
}
