@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&family=Outfit:wght@100..900&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;
  color: var(--c-body);
}

h1, h2, h3, h4, h5, h6
.h1, .h2, .h3, .h4, h5, .h6 {
  font-weight: 600;
  color: var(--c-dark);
}

a{
  text-decoration: none;
  color: var(--c-brand);
  transition: var(--transition);
}

a:hover {
  color: var(--c-brand-light);
}

img {
  max-width: 150px;
  height: auto;
}


.section-padding {
  padding-top: 140px;
  padding-bottom: 140px;
}

.bg-cover{
  background-position: center !important;
  background-size: cover !important;
  background-position: center !important;
}


/* navbar */
.navbar {
  box-shadow: var(--box-shadow);
}
.navbar .navbar-nav .nav-link:hover{
  color: #be8314;
  text-decoration: underline;
}
.navbar .navbar-nav .nav-link {
  font-weight: 500;
  color: var(--c-dark);
}

.navbar .navbar-nav .nav-link.active {
  color: var(--c-brand);
}


/* BTN */
.btn {
  font-weight: 500;
  font-size: 14px;
  text-transform: uppercase;
  border-radius: 0;
  padding: 10px, 24px;
}

.btn-brand {
  background-color: var(--c-brand) !important;
  border-color: var(--c-brand) !important;
  color: white !important;
}

.btn-brand:hover {
  background-color: white !important;
  border-color: white !important;
  color: gray !important;
}

/* Footer */
footer {
  background-color: #20262E;
  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;
}

/* Kontent sampul gambar*/
.cover-container {
  position: relative;
  width: 100%;
  height: 100vh; /* Gambar memenuhi seluruh layar */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}
.cover-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Gambar akan memenuhi area tanpa distorsi */
}
.cover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4); /* Efek hitam transparan */
}
.cover-text {
  position: absolute;
  left: 10%;
  color: white;
  text-align: left;
  max-width: 50%;
}
.cover-text h6 {
  font-weight: bold;
  margin-bottom: 10px;
}
.cover-text h2 {
  font-size: 32px;
  font-weight: bold;
}

.fade-in {
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* section hero utama*/ 
.image-box {
  position: relative;
  width: 100%;
  height: 50vh;
  background: url('../image/PLTS\ Lombok\ 4.png') no-repeat center center/cover;
  display: flex;
  justify-content: center;
  align-items: center;
  justify-content: flex-start;
  padding-left: 150px; /* Memberikan jarak dari dinding kiri */
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  opacity: 10;
  transform: translateY(30px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.40); /* Efek overlay hitam transparan */
}

.text-box {
  position: absolute;
  bottom: 34%;
  left: 50%;
  transform: translateX(-50%);
  text-align: left;
  color: white;
  width: 100%;
  padding-left: 45px;
}

.text-box h1 {
  font-weight: bold;
  font-size: 20px;
}
.text-box h2 {
  font-weight: bold;
  font-size: 24px;
}

.text-box h5 {
  font-size: 18px;
  margin-top: 5px;
}

/* Fade-in effect */
.fade-in {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Responsif */
@media (max-width: 1024px) {
  .image-box {
      width: 95%; /* Lebih fleksibel di tablet */
      height: 350px;
  }
}

@media (max-width: 768px) {
  .image-box {
      width: 98%; /* Lebih melebar di layar kecil */
      height: 300px;
  }
}

@media (max-width: 576px) {
  .image-box {
      width: 100%; /* Penuhi layar untuk smartphone */
      height: 250px;
  }
}

/* Container untuk gambar agar berada di tengah */
.image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  margin: 50px ;
}

/* Gaya gambar: lebih besar & responsif */
.image-container img {
  width: 90%; /* Ukuran gambar besar */
  max-width: 500px;
  border-radius: 10px;
  transition: transform 0.3s ease-in-out;
}

/* Efek interaktif saat dihover */
.image-container img:hover {
  transform: scale(1.05);
  box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2);
}

/* Jarak antar elemen teks */
.content-text {
  max-width: 900px;
  text-align: center;
  margin: 10px auto;
  font-size: 1.1rem;
  line-height: 1.6;
}

/* kontent deskripri company */
.container-custom {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 20px;
  position: relative;
}

/* Pastikan background muncul dan tidak tertimpa class 'card' dari Bootstrap */
.card.left-card {
  background: rgba(255, 178, 74, 1.0);
  padding: 48px;
  border-radius: 10px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
  width: 90%;
  position: relative;
  max-width: 550px;
  z-index: 2;
  transform: translateX(-30px); /* Menumpuk ke kanan */
}

.card.right-card {
  background: rgba(255, 178, 74, 0.6);
  padding: 48px;
  border-radius: 10px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
  width: 90%;
  max-width: 550px;
  z-index: 1;
  position: relative;
}

.icon {
  width: 80px;
  height: auto;
  margin-right: 10px;
}

.fade-in {
  opacity: 1;
  transform: translateY(0);
  transition: all 1s ease-out;
}

/* Responsive: tumpuk vertikal di mobile */
@media (max-width: 768px) {
  .container-custom {
    flex-direction: column;
    align-items: center;
  }

  .left-card,
  .right-card {
    width: 100%;
    transform: translateX(0); /* Reset tumpukan di mobile */
  }
}
