@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* VARIABLES */
:root {
  --c-dark: #212529;
  --c-brand: #be8314;
  --c-brand-light: #ffffffe5;
  --c-brand-rgb: rgb(20, 190, 71);
  --c-body: #4b4946;
  --font-base: "generalsans", sans-serif;
  --box-shadow: 0px 15px 25px rgba(0, 0, 0, 0.08);
  --transition: alll 0.5s ease;
}

body {
  background: #fff;
  font-family: "Poppins", sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
  /* Cegah isi tumpah kiri/kanan */
  box-sizing: border-box;
  width: 100%;
  color: var(--c-body);
}

h1,
h2,
h3,
h4,
h5,
h6 .h1,
.h2,
.h3,
.h4,
h5,
.h6 {
  font-weight: 600;
  color: var(--c-white);
}

a {
  text-decoration: none;
  color: var(--c-brand);
  transition: var(--transition);
}

a:hover {
  color: var(--c-brand-light);
}


/* Mega Menu Styling */
.navbar {
  padding: 1rem 2rem;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transform: translateY(0) !important;
  transition: transform 0.4s ease-in-out;
  background: linear-gradient(to bottom, rgba(55, 82, 40, 0.7), transparent);
}

.navbar.nav-open {
  background: white !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.navbar.nav-open .nav-link {
  color: #000 !important;
}

.navbar.nav-open .navbar-brand img {
  filter: brightness(0);
}

.navbar.scrolled {
  background: white !important;
  transition: transform 0.3s ease-in-out;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.navbar-hide {
  transform: translateY(-100%) !important;
  transition: transform 0.3s ease-in-out;
}

.navbar-show {
  transform: translateY(0) !important;
  transition: transform 0.3s ease-in-out;
}

.navbar-brand img {
  width: auto;
  height: 5vh;
  margin-left: 50%;
  object-fit: contain;
}

.navbar-collapse {
  padding-right: 2rem;
}

.navbar-nav {
  padding-right: 2rem;
}

.nav-link {
  color: #adacac !important;
  text-shadow: #000;
  font-weight: 500;
  padding: 0.75rem 1rem;
}

.nav-item {
  position: relative;
}

.dropdown-mega {
  position: fixed;
  top: 80px;
  left: 0;
  width: 100vw;
  background: #fff;
  padding: 2rem 0;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  z-index: 999;
  border-top: 3px solid #00a896;
  border-radius: 0;
  opacity: 0;
  pointer-events: none;
  display: block;
  transform: translateY(-10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.dropdown-trigger.open .dropdown-mega {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-mega .container {
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
  display: flex;
  justify-content: center;
}

.mega-column {
  flex: 1;
  min-width: 200px;
  padding: 0 1rem;
}

.mega-column h6 {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.mega-column p {
  font-size: 0.9rem;
  color: #444;
}

.mega-column ul {
  list-style: none;
  padding-left: 0;
}

.mega-column ul li {
  margin-bottom: 0.5rem;
}

.mega-column ul li a {
  text-decoration: none;
  color: #000;
  font-size: 0.95rem;
}

.mega-column ul li a:hover {
  text-decoration: underline;
}


@media (max-width: 768px) {
  .navbar-brand img {
    margin-left: 0;
  }

  .dropdown-mega {
    top: 65px;
    padding: 1.5rem 1rem;
  }

  .dropdown-mega .container {
    flex-direction: column;
    align-items: center;
    padding: 0 1rem;
  }

  .mega-column {
    flex: 1 1 100%;
    max-width: 100%;
    padding: 1rem 0;
    border-bottom: 1px solid #ddd;
  }

  .mega-column:last-child {
    border-bottom: none;
  }
}

@media (max-width: 991px) {
  .navbar-brand img {
    margin-left: 0;
  }

  .dropdown-mega {
    position: static;
    top: auto;
    left: auto;
    width: 100%;
    transform: none;
    background: #f9f9f9;
    border-top: none;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    display: block;
    padding: 0 1rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }

  .dropdown-trigger.open .dropdown-mega {
    max-height: 800px;
  }

  .dropdown-mega .container {
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
  }

  .mega-column {
    flex: 1 1 100%;
    max-width: 100%;
    padding: 1rem 0;
    border-bottom: 1px solid #ddd;
    text-align: center;
  }

  .mega-column:last-child {
    border-bottom: none;
  }

  .mega-column ul {
    text-align: center;
  }

  .navbar-brand img {
    width: auto;
    height: 3vh;
    margin-left: 20%;
    object-fit: contain;
  }
}

/* Footer */
footer {
  background-color: #0F6C50;
  color: #ffffff;
  padding: 40px 20px;
}

footer a {
  color: #ffffff;
  text-decoration: none;
}

footer a:hover {
  color: orange;
}

.social-icons a {
  margin-right: 15px;
  color: #ffffff;
  font-size: 20px;
}

.social-icons a:hover {
  color: orange;
}

.menu-list a {
  display: block;
  margin-bottom: 10px;
}

.subscribe input {
  margin-bottom: 10px;
}

.img-logo {
  width: 245px;
  height: auto;
}

  .btn-info {
  background-color: #17a2b8;        /* Warna biru khas info */
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;              /* Sudut membulat */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* Bayangan ala card */
  transition: all 0.3s ease;
  font-weight: 500;
  text-transform: capitalize;
  display: inline-block;
  width: 100%;                      /* Jika ingin tombol selebar form */
  text-align: center;
}

.btn-info:hover {
  background-color: #138496;        /* Warna saat hover */
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);  /* Bayangan saat hover */
  transform: translateY(-2px);      /* Sedikit naik saat hover */
}

/* hero section */
.hero-section {
  padding: 60px 15px;
  position: relative;
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../image/ev\ charger\ 2.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff; /* agar teks terlihat di atas lapisan gelap */
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.hero-title .highlight {
  color: #C0E8F9;
}

.hero-desc {
  font-size: 1rem;
  max-width: 500px;
}

.image-area {
  position: relative;
  height: 500px;
}

.ev-card {
  width: 324px;
  height: 302px;
  border-radius: 25px;
  position: absolute;
  overflow: visible; /* penting agar gambar bisa keluar */
}

.ev-card-top {
  background-color: #C0E8F9;
  top: 0;
  left: 30%;
  transform: translateX(-162px); /* 324 / 2 */
  z-index: 2;
}

.ev-card-bottom {
  background-color: #B8D3D1;
  top: 180px;
  right: 20px;
  z-index: 1;
}

.image-top {
  width: auto;
  height: 300px;
}

.ev-image-top {
  position: absolute;
  bottom: -70px; /* biar gambar keluar dari bawah card */
  left: 47%;
  transform: translateX(-50%);
  width: 190px; /* bisa ganti jadi width daripada height */
  height: auto;
  z-index: 3; /* pastikan ini di atas */
}

.ev-image-bottom {
  position: absolute;
  bottom: -50px; /* biar gambar keluar dari bawah card */
  left: 60%;
  transform: translateX(-50%);
  width: 200px; /* bisa ganti jadi width daripada height */
  min-height: 300px;
  z-index: 2; /* pastikan ini di atas */
}

.ev-card-text-top {
  position: absolute;
  top: -25px;
  right: -20px;
  font-size: 22px;
  font-weight: bold;
  color: #006A4E;
}

.info-card {
  width: 569px;
  height: 110px;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  margin: 60px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 15px 25px;
}

.info-card .info-block {
  margin-left: -10%;
  color: #646262;
  text-align: left;
}

.info-card .info-block strong {
  font-size: 20px;
  color: #006A4E;
}

.divider {
  width: 1px;
  height: 60px;
  background-color: #ccc;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
    text-align: center;
  }

  .hero-desc {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .image-area {
    height: 400px;
    margin-top: 40px;
  }

  .ev-card {
    width: 240px;
    height: 220px;
    border-radius: 20px;
  }

  .ev-card-top {
    top: 0;
    left: 30%;
    transform: translateX(-50%);
  }

  .ev-card-bottom {
    top: 140px;
    left: auto;
    right: -30%;
    transform: translateX(-50%);
  }

  .ev-image-top {
    width: 150px;
    top: 16%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
  }

  .ev-image-bottom {
    width: 160px;
    bottom: -40%;
    left: 63%;
    transform: translateX(-50%);
    z-index: 3;
  }

  .ev-card-text-top {
    top: -20px;
    right: -15px;
    font-size: 18px;
  }

  .info-card {
    flex-direction: column;
    height: auto;
    width: 90%;
    padding: 20px;
    gap: 20px;
    text-align: center;
  }

  .divider {
    height: 1px;
    width: 80%;
  }

  .info-block {
    text-align: center;
  }
}

/* konten website pertama */
.feature-section {
  background-color: #006A4E; /* warna abu kebiruan */
  padding: 60px 20px;
  text-align: center;
}

.feature-title {
  font-size: 20px;
  font-weight: bold;
  max-width: 800px;
  margin: 0 auto 20px;
  color: white;
}

.feature-subtext {
  font-size: 15px;
  color: #ffffff;
  margin-bottom: 40px;
}

.feature-grid {
  display: flex;
  justify-content: space-around;
  gap: 20px;
  border-bottom: 1px solid #ffffff;
  padding-bottom: 30px;
  margin-bottom: 30px;
  flex-wrap: wrap;
  text-align: left; /* Tambahan ini penting */
}

.feature-item {
  flex: 1;
  min-width: 200px;
  padding: 10px;
  text-align: left; /* Supaya teks tidak center */
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Icon dan teks sejajar kiri */
}

.icon-box {
  width: 50px;
  height: 50px;
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  background-color: transparent; /* hilangkan background */
}

.icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.feature-subtitle {
  color: #ffffff;
  justify-content: left;
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 14px;
  color: #ffffff;
}

/* Konten Kedua */
.second-section {
  position: relative;
  padding-top: 80px;
  margin-top: -100px; /* Menumpuk ke konten pertama */
  z-index: 2;
}

.content-card {
  display: flex;
  background-color: rgb(255, 255, 255);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  border-radius: 15px;
  padding: 40px;
  max-width: 1300px;
  margin: 0 auto;
  gap: 30px;
  align-items: center;
  position: relative;
  z-index: 3;
}

.card-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: right;
  gap: 1px;
  font-size: 40px;
  font-weight: 500;
  font-weight: bold;
  color: #095C42;
}

.card-center {
  display: flex;
  align-items: center;
  gap: 20px;
}

.divider-vertical {
  width: 1px;
  height: 300px;
  background-color: #095C42;
}

.card-image {
  height: 417px;
  width: auto;
  padding-left: 25px;
  padding-right: 27px;
}

.card-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.list-title {
  font-size: 22px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  padding-left: 5px;
  color: #095C42;
}

.card-list {
  list-style-type: disc;
  padding-left: 42px;
  font-size: 16px;
  line-height: 1.6;
  color: #006A4E;
}

@media (max-width: 767.98px) {
  .content-card {
    flex-direction: column;
    padding: 30px 20px;
    gap: 20px;
    max-width: 95%; /* agar tidak mentok ke dinding */
  }

  .card-left {
    text-align: center;
    font-size: 28px;
    align-items: center;
    flex-direction: row;      /* ubah dari column ke row */
    justify-content: center;  /* center secara horizontal */
    gap: 10px;                /* jarak antar kata */
  }

  .card-center {
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .divider-vertical {
    display: none;
  }

  .card-image {
    height: auto;
    width: 100%;
    max-width: 280px; /* biar tetap proporsional */
    padding: 0;
  }

  .card-right {
    align-items: center;
    text-align: center;
  }

  .list-title {
    font-size: 20px;
    padding: 0;
  }

  .card-list {
    padding-left: 20px;
    text-align: left;
  }
}