/* ===================================
   PT. GIN Group - Custom Styles
   =================================== */

/* --- Global & Typography --- */
body {
  font-family: "Plus Jakarta Sans", sans-serif;
  transition: background-color 0.3s ease, color 0.3s ease;
  scroll-behavior: smooth;
}

html {
  scroll-behavior: smooth;
}

/* --- Custom Colors --- */
.text-emerald {
  color: #10b981 !important;
}

.bg-emerald {
  background-color: #10b981 !important;
}

.btn-emerald {
  background-color: #10b981;
  border-color: #10b981;
}

.btn-emerald:hover {
  background-color: #059669;
  border-color: #059669;
}

/* --- Layout Elements --- */
.full-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

/* --- Navbar Styles --- */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.navbar.shadow-md {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Pastikan logo bulat sempurna */
.brand-logo-circle {
  width: 48px;
  height: 48px;
  background: #10b981;
  border-radius: 50% !important; /* Ubah ke 50% untuk bulat sempurna */
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
  overflow: hidden;
}

.brand-logo-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Styling untuk gambar kotak di Hero */
.hero-logo-box {
  width: 200px; /* Ukuran kotak kecil yang disesuaikan */
  height: 200px;
  display: inline-block;
}

.hero-logo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Styling gambar di dalam kartu layanan */
.card-image-container {
  width: 80px; /* Sesuaikan ukuran icon gambar dalam card */
  height: 80px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-image-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.nav-link {
  position: relative;
  padding-bottom: 5px;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: #10b981;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link.active::after,
.nav-link:hover::after {
  width: 80%;
}

/* --- WhatsApp Sticky Button --- */
.wa-sticky {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  background-color: #25d366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  text-decoration: none;
}

.wa-sticky:hover {
  transform: scale(1.1);
  color: white;
}

/* --- Flip Cards --- */
.flip-card {
  background-color: transparent;
  height: 400px;
  perspective: 1000px;
  cursor: pointer;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 24px;
  overflow: hidden;
}

.flip-card-front {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.flip-card-back {
  background-color: #000;
  transform: rotateY(180deg);
}

.flip-card-back video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Section Background Colors --- */
.bg-hero {
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
}

.bg-parking {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
}

.bg-trading {
  background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
}

.bg-biomass {
  background: linear-gradient(135deg, #064e3b 0%, #10b981 100%);
}

.bg-basecourse {
  background: linear-gradient(135deg, #ea580c 0%, #fb923c 100%);
}

.bg-epc {
  background: linear-gradient(135deg, #1e40af 0%, #60a5fa 100%);
}

.bg-consultant {
  background: linear-gradient(135deg, #4338ca 0%, #818cf8 100%);
}

/* --- Contact Form --- */
.contact-form {
  transition: all 0.3s ease;
}

.form-control,
.form-select {
  border: 2px solid #e5e7eb;
  transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: #10b981;
  box-shadow: 0 0 0 0.2rem rgba(16, 185, 129, 0.25);
}

.map-container {
  height: 100%;
  min-height: 600px;
}

/* --- Footer Styles --- */
.hover-emerald:hover {
  color: #10b981 !important;
}

.social-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background: #10b981;
  color: white;
}

/* --- Dark Mode Support --- */
[data-bs-theme="dark"] body {
  background-color: #0f172a;
  color: #f8fafc;
}

[data-bs-theme="dark"] .navbar {
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid #1e293b;
}

[data-bs-theme="dark"] .bg-hero {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

[data-bs-theme="dark"] .contact-form {
  background: #1e293b !important;
}

[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select {
  background: #0f172a;
  border-color: #334155;
  color: #f8fafc;
}

[data-bs-theme="dark"] .form-control:focus,
[data-bs-theme="dark"] .form-select:focus {
  background: #0f172a;
  border-color: #10b981;
  color: #f8fafc;
}

/* --- Utilities --- */
.ls-tight {
  letter-spacing: -0.05em;
}

.lh-tight {
  line-height: 1.1;
}

/* --- Responsive Adjustments --- */
@media (max-width: 991.98px) {
  .section-title {
    font-size: 2rem;
  }

  .full-section {
    padding: 80px 0;
    min-height: auto;
  }

  .flip-card {
    height: 350px;
  }

  .map-container {
    min-height: 400px;
  }
}

@media (max-width: 767.98px) {
  .section-title {
    font-size: 1.75rem;
  }

  .flip-card {
    height: 300px;
  }

  .wa-sticky {
    width: 50px;
    height: 50px;
    font-size: 24px;
    bottom: 20px;
    right: 20px;
  }
}

/*Flip card balik ke card depan */
@media (min-width: 992px) {
  .flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
  }
}

/* Class baru untuk kontrol via JavaScript (Mobile & Desktop) */
.flip-card.is-flipped .flip-card-inner {
  transform: rotateY(180deg);
}

/* Pastikan transisinya halus */
.flip-card-inner {
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}
