@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 {
    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 {
  position: relative;
  height: 684px;
  width: 100%;
  overflow: hidden;
}
/* Rectangle dengan background gradient */
.hero-rect {
  height: 100%;
  width: 100%;
  background: linear-gradient(to bottom, rgba(23,141,104,1), rgba(6,39,29,1));
}
/* Gambar overlay (PNG) di atas rectangle */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 587px;
  object-fit: cover;
  z-index: 1;
}
/* Logo company yang berada di tengah bagian bawah */
.hero-logo {
  position: absolute;
  bottom: 100px; /* Sesuaikan jarak logo dengan card di bawah */
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.hero-logo img {
  max-width: 250px; /* Atur ukuran logo sesuai kebutuhan */
  height: auto;
}
/* Konten teks di hero */
.hero-text {
  position: absolute;
  top: 30%;
  left: 15%;
  z-index: 3;
  text-align: left;
  color: #fff;
}
.hero-text h1 {
  font-size: 2.5rem;
  line-height: 1.2;
}
.hero-text p {
  margin: 0;
  font-size: 1rem;
}
.hero-btn {
  margin-top: 20px;
  transition: background-color 0.3s ease;
}
.hero-btn:hover {
  background-color: #0056b3; /* Ubah warna hover sesuai kebutuhan */
}

/* ===== Card Section ===== */
.hero-card {
  position: relative;
  top: -80px; /* Card menjorok ke atas pada hero section */
  margin: 0 auto;
  max-width: 800px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  border-radius: 10px;
  overflow: hidden;
}
.hero-card img {
  width: 100%;
  height: auto;
  display: block;
}

/* ===== Deskripsi Section ===== */
.description {
  text-align: center;
  margin: 40px auto;
  max-width: 800px;
}

.description h1{
  font-size: 1.5rem;
  margin-top: -10%;
}

.description p {
  margin-bottom: 15px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero-section {
    height: 500px;
  }

  .hero-overlay {
    width: 150%;
    height: 490px;
    margin-left: -10%;
    margin-top: 8%;
  }

  .hero-text {
    top: 15%;
    max-width: 90%;
  }

  .hero-text h1 {
    font-size: 1.6rem;
  }

  .hero-text p {
    font-size: 0.7rem;
  }

  .hero-logo img {
    max-width: 200px;
    margin-bottom: -20%;
  }

  .hero-btn{
    font-size: 70%;
  }

  .hero-card {
    top: -50px;
    max-width: 90%;
  }

  .description p {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .hero-section {
    height: 420px;
  }

  .hero-overlay {
    height: 420px;
  }

  .hero-text h1 {
    font-size: 1.2rem;
  }

  .hero-text p {
    font-size: 0.85rem;
  }

  .hero-btn {
    font-size: 0.9rem;
    padding: 8px 16px;
  }

  .hero-logo img {
    max-width: 120px;
  }
}

/* kontent varian model */
.custom-section {
  background-color: rgba(210, 211, 146, 1);
  padding: 60px 20px;
}

.image-column img {
  max-width: 100%;
  height: auto;
  margin-bottom: 15px;
}

.text-content {
  color: #000;
}

.sub-title {
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.description-series {
  font-size: 0.9rem;
  justify-content: center;
  align-content: center;
  line-height: 1.6;
  max-width: 700px;
}

@media (max-width: 768px) {
  .image-column, .text-column {
    text-align: center;
  }
}

/* 3 konten residensial,komersial,industrial  */
.background-image {
  position: absolute;
  top: 25%;
  left: -100px;
  width: 40%;
  height: 65%;
  justify-content: left;
  align-items: left;
  background: url('../image/background\ monitoring.jpg') no-repeat center center;
  background-size: cover;
  opacity: 0.15;
  z-index: 0;
}

.content-section {
  position: relative;
  z-index: 1;
  padding: 80px 0;
}

.content-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 100px;
}

.content-text {
  max-width: 500px;
}

.title-sub {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: bold;
  font-size: 1.2rem;
  color: rgba(9, 92, 66, 1);
}

.title-sub::after {
  content: "";
  flex-grow: 0.1;
  height: 2px;
  background-color: rgba(9, 92, 66, 1);
}

.circle-arrow {
  width: 15px;
  height: 15px;
  background-color: rgba(9, 92, 66, 1);
  border-radius: 50%;
  display: inline-block;
  margin-left: 5px;
  margin-right: -10px;
  position: relative;
}

.circle-arrow::after {
  color: #fff;
  font-size: 12px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.stacked-images {
  position: relative;
  width: 400px;
  height: 250px;
  margin-bottom: 20px;
  margin-top: 40px;
}

.stacked-images img:first-child {
  position: absolute;
  top: -50px;
  left: -40px;
  width: 90%;
  border-radius: 10px;
}

.stacked-images img:last-child {
  position: absolute;
  top: 120px;
  left: 80px;
  width: 85%;
  border-radius: 15px;
}

@media (max-width: 768px) {
  .background-image{
    left: 0;
  }

  .content-wrapper {
    flex-direction: column !important;
    text-align: center !important;
    margin-bottom: 60px;
  }

  .content-text {
    text-align: center !important;
    margin-top: 20px;
    padding: 0 15px;
  }

  .stacked-images {
    width: 100%;
    height: auto;
    margin-top: 20px;
  }

  .title-sub {
    margin-top: 85%;
    justify-content: center !important;
    font-size: 1rem;
    flex-wrap: wrap;
  }

  .stacked-images {
    margin-bottom: -5%;
    width: 350px;
    height: 200;
  }

  .circle-arrow {
    width: 12px;
    height: 12px;
  }

  .content-text p,
  .content-text ul {
    font-size: 0.95rem;
  }
}

/* Slider Section */
:root {
  --slider-speed: 30s; /* Bisa atur kecepatan di sini */
}

.content-wrapper {
  padding: 50px 20px;
  max-width: 1400px;
  margin: auto;
  text-align: center;
}

/* Judul */
.section-title {
  font-weight: 700;
  font-size: 1.5rem;
  color: #0a623e;
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
}

.section-title::before {
  content: "";
  width: 50px;
  height: 2px;
  background-color: #0a623e;
  position: absolute;
  left: -60px;
  top: 50%;
  transform: translateY(-50%);
}

/* Deskripsi */
.deskripsi {
  font-size: 1rem;
  color: #333;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* ===== Slider Section (khusus slider saja) ===== */
.slider-section {
  padding: 60px 20px;
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
  background: #ffffff;
}

.slider-container {
  overflow: hidden;
  width: 100%;
  margin-bottom: 30px;
  position: relative;
}

.slider-track {
  display: flex;
  flex-wrap: nowrap; /* <-- tambahan penting */
  align-items: center;
  justify-content: flex-start;
  width: max-content;
  animation: scrollLeft var(--slider-speed) linear infinite;
}

.slider-track.second {
  animation: scrollRight var(--slider-speed) linear infinite;
}

.slider-track img {
  width: 100px;
  margin: 0 20px;
  height: auto;
  transition: transform 0.3s ease;
}

.slider-track img:hover {
  transform: scale(1.1);
}

@keyframes scrollLeft {
  100% { transform: translateX(100%); }
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes scrollRight {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
  0% { transform: translateX(-100%); }
}

/* Responsive */
@media (max-width: 768px) {
  .section-title {
    font-size: 1.3rem;
  }
  .deskripsi {
    font-size: 0.95rem;
  }
  .slider-track img {
    width: 80px;
    margin: 0 10px;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 1.1rem;
  }
  .deskripsi {
    font-size: 0.9rem;
  }
  .slider-track img {
    width: 60px;
  }
}

/* konten monitoring mobile */
.content-wrapper {
  gap: 30px;
  justify-content: space-between;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}

.check-icon {
  background-color: rgba(9, 92, 66, 1);
  color: #fff;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.title-list {
  font-size: 20px;
  text-align: left;
  margin-left: 20px;
}

@media (max-width: 768px) {
  .content-wrapper {
    flex-direction: column;
    text-align: center;
  }

  .benefit-item {
    justify-content: flex-start;
    text-align: left;
    padding-left: 20px;
  }

  .title-list {
    font-size: 15px;
    text-align: left;
  }
  .section-title {
    font-weight: 700;
    font-size: 0.8rem;
    color: #0a623e;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

  .section-title::before {
    content: "";
    width: 23px;
    height: 2px;
    background-color: #0a623e;
    position: absolute;
    left: -29px;
    top: 50%;
    transform: translateY(-50%);
}

  .check-icon {
    width: 24px;
    height: 24px;
    font-size: 15px;
  }
}

@media (max-width: 576px) {
  .title-list {
    font-size: 14px;
  }

  .check-icon {
    width: 20px;
    height: 20px;
    font-size: 12px;
  }
}

/* konten keuntungan EPIC */
.section-energi {
  background-color: rgba(9, 92, 66, 1);
  color: #fff;
  padding: 60px 0;
}

.section-energi h2 {
  font-size: 28px;
}

.text-right-content {
  text-align: left;
  margin-bottom: 30px;
}

.icon-grid {
  row-gap: 36px;
}

.icon-with-text {
  align-items: center;
  gap: 20px;
}

.icon-circle {
  background-color: #e0e0e0;
  color: rgba(9, 92, 66, 1);
  width: 63px;
  height: 63px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.icon-with-text .text {
  font-size: 24px;
  color: #fff;
}

@media (max-width: 768px) {
  .text-right-content {
    text-align: center;
  }

  .icon-with-text {
    justify-content: center;
    text-align: center;
    flex-direction: column;
  }

  .icon-with-text .text {
    margin-top: 8px;
  }
}