/* Root variables (can be placed in a custom.scss if you're using SCSS build) */
:root {
  --primary-color: #070719;
  --secondary-color: #d9d9d9;
  --accent-color: #ffc107;
  --light-color: #f8f9fa;
  --dark-color: #212529;
  --max-width: 1200px;
}

/* Utility overrides or additions */
.bg-hero {
  background: url("pic/bg.svg") center center/cover no-repeat;
}

.text-justify {
  text-align: justify;
}

.custom-navbar {
  background-color: #000 !important;
  padding: 1rem 0;

  .nav-link {
    color: #fa9735 !important;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;

    &::after {
      content: "";
      position: absolute;
      left: 0;
      bottom: 0;
      width: 0%;
      height: 2px;
      background-color: #fa9735;
      transition: width 0.3s ease;
    }

    &:hover::after {
      width: 100%;
    }

    &:hover {
      color: #fa9735 !important;
    }
  }

  .navbar-toggler {
    border-color: #fa9735;
  }

  .navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='orange' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
  }
}

.navbar-brand img {
  max-height: 40px;
}

/* Font styling untuk hero section */
#hero {
  h1 {
    font-family: "Anta", sans-serif;
    color: #fa9735;
  }

  p {
    font-family: "Poppins", sans-serif;
    color: rgb(255, 255, 255);
    font-size: 24px;

    span {
      color: rgb(255, 255, 255);
    }
  }
}

/* Hero Section */
.hero-section {
  padding: 6rem 1rem;
  background-color: var(--primary-color);
  color: var(--light-color);
}

.hero-section h1 {
  font-size: 3rem;
  font-weight: 700;
}

.hero-section p {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.hero-img {
  max-width: 100%;
  max-width: 200px;
  height: auto;
}

.img-fluid {
  max-width: 100%;
  height: auto;
}

/* Why Section */
.why-section {
  background-color: var(--light-color);

  padding: 5rem 1rem;
}

.bg-orange {
  background-color: #fa9735;
}

.text-orange {
  color: #fa9735;
}

.why-card {
  border: none;
  background: transparent;
  text-align: center;
}

.why-card img {
  max-height: 80px;
  margin-bottom: 1rem;
}

/* Features Section */
.features-section {
  padding: 5rem 1rem;
  background-color: var(--secondary-color);
}

.feature-icon {
  width: 40px;
  height: 40px;
  margin-right: 1rem;
}

.key-img img{
  max-width: 400px;
}

.line-key h5{
  font-size: 1.5rem;
  font-weight: 500;
}

.line-key p{
  
    font-size: 1rem;
    margin-bottom: 1rem;
}

/* How It Works */
.how-section {
  padding: 5rem 1rem;
  background-color: var(--light-color);
}

.step-card {
  background-color: var(--light-color);
  border: 1px solid #dee2e6;
  padding: 2rem;
  border-radius: 0.75rem;
  text-align: center;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.step-card img {
  max-height: 60px;
  margin-bottom: 1rem;
}

/* CTA Section */
.cta-section {
  background-color: var(--accent-color);
  color: var(--light-color);
  text-align: center;
  padding: 5rem 1rem;
}

.cta-section .btn {
  padding: 0.75rem 2rem;
  border-radius: 999px;
}

.btn-gradient-hover {
  background-color: #ffffff; /* Warna default tombol */
  color: #000; /* Teks hitam */
  border: 2px solid white;
  transition: all 0.4s ease;
}

.btn-gradient-hover:hover {
  background: linear-gradient(45deg, #fa9735, #000000); /* Gradasi orange - hitam */
  color: white;
  border: 2px solid white;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

/* Footer */
.footer {
  background-color: var(--dark-color);
  color: var(--light-color);
  padding: 2rem 1rem;
  font-size: 0.875rem;
}

.footer a {
  color: var(--light-color);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .features-section{
    justify-content: center;
    align-items: center;
  }

  .key-line{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: left;
  }

  .line-key{
    width: 300px;
  }

  .how-img{
    display: flex;
    justify-content: center;
    order: 0;
    margin-bottom: 2rem;
  }

  .how-line{
    order: 1;
  }

  .img-fluid{
    max-width: 100%;
    width: 300px;
    height: auto;
  }
}

@media (max-width: 576px) {
  .hero-section h1 {
    font-size: 2.5rem;
  }

  .hero-section p {
    font-size: 1.125rem;
  }

  .cta-section .btn {
    padding: 0.5rem 1.5rem;
  }

  .img-fluid {
    max-width: 100%;
    width: 200px;
    height: auto;
  }
}
