@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;
  }
}

/* Hero section */
.hero-section {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.hero-slider {
  height: 100%;
  width: 200%;
  display: flex;
  transition: transform 0.6s ease-in-out;
}

.hero-slide {
  position: relative; /* Tambahkan ini */
  width: 100vw;
  height: 100%;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
}

.hero-caption {
  position: absolute;
  top: 50%;
  left: 8%;
  transform: translateY(-50%);
  color: white;
  z-index: 4;
  font-size: 3rem;
  line-height: 1.3;
}

.hero-caption p {
  margin: 0;
}

.hero-caption p.semi-bold {
  font-weight: 600;
}

.hero-caption p strong {
  font-weight: 700;
}

.slider-indicators {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 5;
}

.slider-indicators span {
  width: 10px;
  height: 10px;
  background: white;
  border-radius: 50%;
  opacity: 0.4;
  transition: opacity 0.3s ease;
  cursor: pointer;
}

.slider-indicators span.active {
  opacity: 1;
}

.font-desc{
  font-size: 0.9rem;
}

.font-desc1{
  font-size: 1.5rem;
}

@media (max-width: 768px) {
  .hero-caption {
  position: absolute;
  top: 70%;
  left: 6%;
  right: 3%;
  transform: translateY(-50%);
  color: white;
  text-shadow: #000;
  z-index: 4;
  font-size: 1.8rem;
  line-height: 1.3;
}
}


  /* 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: 12px;              /* 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 */
}

/* kontent card epic */
.epic-subtitle {
  font-size: 0.9rem;
  color: rgba(9, 92, 66, 1);
}

.epic-highlight {
  font-weight: 700;
  color: rgba(9, 92, 66, 1);
  line-height: 1.4;
}

.epic-input {
  width: 100%;
  max-width: 252px;
  height: auto;
  border: 2px solid rgba(9, 92, 66, 1);
  padding: 0.75rem;
  background: #f8f9fa;
  border-radius: 50px;
}

.btn-nav {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(9, 92, 66, 1);
  background: white;
  color: rgba(9, 92, 66, 1);
  font-weight: bold;
}

.epic-carousel-wrapper {
  position: relative;
  width: 100%;
  padding-left: 01.rem;
  padding-top: 1.5rem;
}

.epic-carousel {
  display: flex;
  transition: transform 0.5s ease;
  gap: 1.5rem;
  margin-bottom: 2%;
}

.epic-card {
  flex: 0 0 25%;
  max-width: 25%;
}

.card-outer {
  background: #fff;
  border-radius: 5px;
  padding: 0.5rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.card-inner img {
  width: 100%;
  height: 200px; /* Standarisasi tinggi */
  object-fit: cover; /* Crop agar proporsional */
  border-radius: 5px;
}

@media (max-width: 768px) {
  .epic-card {
    flex: 0 0 80%;
    max-width: 80%;
  }

  .card-inner img {
    height: 180px; /* Adjust khusus mobile */
  }

  /* Tombol pindah ke bawah carousel */
  .epic-controls {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    gap: 1rem;
  }

  .epic-input {
    max-width: 100%;
  }

  .btn-nav {
    width: 40px;
    height: 40px;
  }

  .epic-text-column {
    text-align: center;
    margin-bottom: 1.5rem;
  }
}


/* ======== mobile ======== */
/* Section Background */
.epic-bg-section {
  background-color: rgba(0, 86, 59, 1);
  min-height: 150px;
  padding: 60px 0;
}

.img-control{
  width: 446px;
  height: auto;
  margin-left: 17%;
  margin-right: 2%;
}

/* Monitoring Section Styles */
.judul-content-2 {
  color: white;
  text-align: center;
  margin-bottom: 1.5rem;
}

.custom-list {
  color: white;
  list-style: none;
  padding: 0;
  margin-left: 0;
}

.custom-list li {
  margin: 10px 0;
  padding: 5px 10px 5px 45px;
  font-size: 1.1rem;
  border-radius: 8px;
  cursor: pointer;
  position: relative;
  transition: background-color 0.3s, color 0.3s, transform 0.2s;
}

.custom-list li::before {
  content: "✔";
  color: #00a896;
  background-color: #0F6C50;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: 5px;
  top: 50%;
  transform: translateY(-50%);
  transition: background-color 0.3s, transform 0.3s;
}

.custom-list li:hover {
  background-color: #00a896;
  transform: translateX(1rem);
}

.custom-list li:hover::before {
  background-color: #4b4946;
}

.custom-list li:active::before {
  background-color: #00a896;
}

.custom-list li:active {
  background-color: #00a896;
}

/* Tombol Learn More */
.btn {
  font-weight: 500;
  font-size: 14px;
  text-transform: uppercase;
  border-radius: 7px;
  padding: 10px 24px;
}

.btn-brand {
  background-color: #00a896 !important;
  border-color: #00a896 !important;
  color: white !important;
  margin-left: 2rem; /* geser tombol ke kanan */
}

.btn-brand:hover {
  background-color: white !important;
  border-color: white !important;
  color: gray !important;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Tweaks for Monitoring Section */
@media (max-width: 768px) {
  .img-control{
    width: 350px;
    height: auto;
    margin-left: 12%;
    margin-right: 2%;
}
  .judul-content-2 {
    text-align: center;
    font-size: 1.5rem;
  }

  .custom-list li {
    margin-left: 10%;
    font-size: 1rem;
    padding-left: 50px;
  }

  .custom-list li::before{
    margin-left: -2%;
  }

  .btn-brand {
    margin: 1.5rem auto 10 auto;
    text-align: center;
    margin-left: 20%;
  }
}

/* Footer Section 2 */
.epic-footer-section {
  padding: 2rem 1rem;
  display: flex;
  align-items: center;
  gap: 5rem;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeInUp 1s ease-out both;
}

.epic-footer-text {
  color: rgba(9, 92, 66, 1);
  max-width: 700px;
  text-align: center;
  font-size: 0.9rem;
  animation: fadeInUp 1.3s ease-out both;
}

.epic-footer-logo {
  animation: fadeInDown 1s ease-out both;
}

.epic-footer-logo img {
  height: 67px;
}

/* Responsive Footer */
@media (max-width: 992px) {
  .epic-footer-section {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .epic-footer-logo {
    order: -1;
  }

  .epic-footer-logo img {
    height: 50px;
  }

  .epic-footer-text {
    font-size: 0.85rem;
    padding: 0 1rem;
  }
}

/* Kontent service */
.grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto;
  gap: 0rem;
  padding: 0 30px;
}

.card-custom {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  color: white;
  font-size: 1.3rem;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  text-align: center;
  transition: all 0.3s ease;
}

.card-custom::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 1;
  transition: 0.3s;
}

.card-title {
  z-index: 2;
  transition: transform 0.3s ease, font-size 0.3s ease;
  padding: 1rem 2rem;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

.card-custom:hover::before {
  background-color: rgba(0, 0, 0, 0.4);
  transform: scale(1.1);
}

.card-custom:hover .card-title {
  transform: scale(1.1);
}

/* Background image per card */
.bg-card-big::before { background-image: url('../image/pekerja\ teknologi\ canggih.png'); }
.bg-card-1::before    { background-image: url('../image/operator\ system.png'); }
.bg-card-2::before    { background-image: url('../image/transmisi\ distribusi.png'); }
.bg-card-3::before    { background-image: url('../image/instalasi\ lampu\ jalan.png'); }
.bg-card-4::before    { background-image: url('../image/ev\ charger.png'); }
.bg-card-5::before    { background-image: url('../image/pekerja\ lapangan.jpeg'); }

/* Responsive layout */
@media (max-width: 991.98px) {
  .grid-container {
    grid-template-columns: 1fr 1fr;
    padding: 0 8px;
  }

  .card-custom {
    min-height: 220px;
    font-size: 1.1rem;
  }
}

@media (max-width: 575.98px) {
  .grid-container {
    grid-template-columns: 1fr;
  }

  .card-custom {
    font-size: 1rem;
    min-height: 180px;
  }
}

/* kontent porto
.content-porto {
  position: relative;
  width: 100%;
  background: url('../image/sampul\ home.jpg') no-repeat center center;
  background-size: cover;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 2rem;
}

.content-porto .overlay {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 60%;
  background: linear-gradient(to left, rgba(0, 0, 0, 0.47), rgba(0, 0, 0, 0));
  z-index: 1;
}

.content-porto .porto-text {
  position: relative;
  z-index: 2;
  max-width: 600px;
  color: #fff;
  text-align: right;
  padding-right: 45px;
}

.porto-title {
  font-size: 2rem;
  font-weight: 700;
}

.porto-description {
  font-size: 1rem;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.porto-btn {
  background-color: #fff;
  color: rgba(9, 92, 66, 1);
  font-weight: 500;
  padding: 0.5rem 1.8rem;
  border-radius: 45px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.porto-btn:hover {
  background-color: #e0e0e0;
}

@media (max-width: 768px) {
  .content-porto {
    justify-content: right;
    padding: 1.5rem;
    text-align: right;
  }

  .content-porto .overlay {
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.47), rgba(0, 0, 0, 0));
  }

  .content-porto .porto-text {
    text-align: center;
  }

  .content-porto .porto-text {
    position: relative;
    z-index: 2;
    max-width: 400px;
    color: #fff;
    text-align: right
  }
} */

/* supported by */
.partner-section {
  background-image: url('../image/element\ pendukung.jpg'); /* Ganti ini */
  background-size: cover;
  background-position: center;
  padding: 80px 0;
  color: white;
  text-align: center;
}

.partner-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 40px;
}

@media (max-width: 768px) {
  .partner-section{
    background-size: cover;
    background-position: center;
  }
  .partner-title {
    font-size: 1.6rem;
    margin-top: -7%;
  }
  .scroll-container {
    padding-bottom: 10px;
  }
}

/* Optional: Hilangkan scrollbar di webkit browser */
.scroll-container::-webkit-scrollbar {
  display: none;
}

/* Brand Logo Bergerak */
.logo-container {
    white-space: nowrap;
    overflow: hidden;
    position: relative;.
}

.logo-track {
    display: inline-block;
    animation: move-right-left 14s linear infinite;
}

.logo-track-reverse {
    display: inline-block;
    animation: move-left-right 14s linear infinite;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px; /* jarak antar logo */
    flex-wrap: nowrap;
}

.logo img {
    height: 60px;
    max-width: 120px;
    margin: 20px 30px;
    object-fit: contain;
    vertical-align: middle;
    filter: grayscale(0);
}

@keyframes move-right-left {
    from {
        transform: translateX(30%);
    }
    to {
        transform: translateX(-100%);
    }
}

@keyframes move-left-right {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(30%);
    }
}

@media (max-width: 768px) {
    .logo img {
        height: 40px;
        max-width: 80px;
        margin: 10px 15px;
    }
}

/* konten our partner */
.our-partners {
  margin-top: 60px;
}

.partner-logos-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  margin-top: 20px;
}

.logo-row {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 40px;
  flex-shrink: 0;
  flex-grow: 0;
}

.logo-row img {
  height: 60px;
  width: auto;
  border-radius: 6px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.logo-row img:hover {
  transform: scale(1.05);
}

.logo-row.justify-center {
  justify-content: center;
}

@media (max-width: 992px) {
  .logo-row {
    flex-wrap: wrap;
    gap: 20px;
  }

  .logo-row img {
    height: 50px;
  }

  .partner-title {
    font-size: 1.3rem;
  }
}