/* ==========================================================================
   PT. BADAR TEKINDO INTEGRA - CENTRAL OVERRIDE & COMPONENT STYLING
   ========================================================================== */

/* PERBAIKAN OVERRIDE ANIMASI: Mengembalikan Efek Animasi Asli Home Section */
.products-grid, 
.service-card {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}

/* Membiarkan AOS mengontrol animasi masuk bingkai smartphone & text hero tanpa paksaan */
.phone-frame-container,
.hero-text-side,
.hero-video-side {
  visibility: visible;
}

/* KOREKSI: Mengubah Logo Navbar Agar Selalu Tampil Penuh Sejak Awal Dimuat */
.navbar .navbar-logo {
  opacity: 1 !important;
  transform: translateX(0) !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transition: none !important;
}

/* ==========================================================================
   STRUKTUR HERO GRID & FLEX LAYOUT
   ========================================================================== */
.hero {
  min-height: 100vh;
  height: auto;
  display: flex;
  align-items: center;
  padding: 140px 7% 80px;
  position: relative;
}

.hero-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 40px;
}

.hero-text-side {
  flex: 1 1 500px;
}

.hero-video-side {
  flex: 1 1 340px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* ==========================================================================
   MODIFIKASI PERBAIKAN BINGKAI SMARTPHONE (PUNCH-HOLE DESIGN KAMERA TITIK)
   ========================================================================== */
.phone-frame-container {
  width: 290px;
  height: 590px;
  background: #020202;
  border: 11px solid #1c1c1f;
  border-radius: 44px;
  box-shadow: 0 0 35px rgba(255, 0, 0, 0.35), 
              0 0 70px rgba(255, 0, 0, 0.15), 
              inset 0 0 15px rgba(0, 0, 0, 0.9);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

/* RESTRUKTURISASI: Kamera Lubang Kecil Bulat Tengah Atas (Punch-Hole) */
.phone-camera-dot {
  width: 12px;
  height: 12px;
  background: #0a0a0a;
  border: 2px solid #2a2a2a;
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  z-index: 20;
  box-shadow: inset 0 0 5px rgba(0,0,0,0.5);
}

/* Efek pantulan lensa kebiruan di dalam punch-hole camera */
.phone-camera-dot::after {
  content: '';
  position: absolute;
  width: 4px;
  height: 4px;
  background: #1a2a4a;
  border-radius: 50%;
  top: 2px;
  left: 2px;
}

/* ==========================================================================
   SINKRONISASI UKURAN SLIDER MENGGUNAKAN ANIMASI FADE IN / FADE OUT MURNI
   ========================================================================== */
.remote-screen-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
  background: #000;
  overflow: hidden;
}

/* Mengubah track menjadi kontainer tumpuk relatif untuk teknik opasitas fade */
.slider-track {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Tiap item slide diletakkan menumpuk secara absolut di posisi yang sama */
.slider-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
  z-index: 1;
}

/* Class penanda untuk item slide yang sedang aktif memancarkan visual */
.slider-item.fade-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.remote-image-content {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: fill;
}

/* Efek interaktif pendaran bertambah terang saat kursor mendekat */
.phone-frame-container:hover {
  box-shadow: 0 0 45px rgba(255, 0, 0, 0.5), 
              0 0 90px rgba(255, 0, 0, 0.25), 
              inset 0 0 15px rgba(0, 0, 0, 0.9);
  transition: box-shadow 0.4s ease;
}

/* ==========================================================================
   LABEL KETERANGAN SLIDE TANPA BINGKAI (CLEAN FADE TEXT LABELS)
   ========================================================================== */
.slide-caption-text-only {
  display: block;
  width: 290px;
  margin-top: 18px;
  font-size: 1.05rem;
  color: #ffffff;
  font-weight: 600;
  text-align: center;
  line-height: 1.4;
  min-height: 26px;
  letter-spacing: 0.5px;
  opacity: 1;
  transition: opacity 0.8s ease-in-out;
}

.slide-caption-text-only.fade-out-caption {
  opacity: 0;
}

/* ==========================================================================
   STYLING FLOATING WHATSAPP RE-PROPORTIONAL (ANTI GEPENG)
   ========================================================================== */
.tombol_contact_us {
  position: fixed;
  bottom: 25px;
  left: 25px;
  width: 60px;
  height: 60px;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.tombol_contact_us:hover {
  transform: scale(1.1);
}

.tombol_contact_us img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
}

/* ==========================================================================
   STYLING GRID LOGO PORTOPOLIO BARU (WARNA ASLI TANPA GRAYSCALE)
   ========================================================================== */
.portfolio-grid-logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.portfolio-logo-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  transition: transform 0.4s ease, background 0.4s ease, border-color 0.4s ease;
  min-height: 280px;
}

.portfolio-logo-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.05);
  border-color: #00a8ff;
}

.portfolio-logo-wrapper {
  width: 100%;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.portfolio-logo-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: none !important;
  transition: transform 0.3s ease;
}

.portfolio-logo-card:hover .portfolio-logo-img {
  transform: scale(1.05);
}

.portfolio-info-box {
  width: 100%;
}

.portfolio-logo-name {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.2rem;
}

.portfolio-logo-city {
  color: #00a8ff;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.8rem;
}

.portfolio-logo-product {
  display: inline-block;
  background: rgba(0, 168, 255, 0.1);
  color: #00a8ff;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.portfolio-logo-desc {
  color: #aaa;
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.portfolio-video-link {
  color: #ff4d4d;
  font-size: 0.85rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  transition: color 0.3s;
}

.portfolio-video-link:hover {
  color: #ff1a1a;
}

/* ==========================================================================
   STYLING JENDELA POPUP MODAL LOGIN
   ========================================================================== */
.login-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.login-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.login-modal-box {
  background: rgba(20, 20, 30, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  padding: 3rem 2.5rem;
  width: 100%;
  max-width: 420px;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  position: relative;
  transform: scale(0.8) translateY(-30px);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  color: #fff;
}

.login-modal-overlay.active .login-modal-box {
  transform: scale(1) translateY(0);
}

.login-modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: none;
  border: none;
  color: #aaa;
  cursor: pointer;
  transition: color 0.3s;
}

.login-modal-close:hover {
  color: #ff4d4d;
}

.login-modal-box h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  text-align: center;
}

.login-modal-box h2 span {
  color: #00a8ff;
}

.login-modal-box p {
  color: #aaa;
  font-size: 0.9rem;
  text-align: center;
  margin-bottom: 2rem;
}

.login-form-group {
  position: relative;
  margin-bottom: 1.5rem;
}

.login-form-group i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #00a8ff;
  width: 18px;
  height: 18px;
}

.login-form-group input {
  width: 100%;
  padding: 12px 12px 12px 2.8rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #fff;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.login-form-group input:focus {
  border-color: #00a8ff;
  box-shadow: 0 0 10px rgba(0, 168, 255, 0.2);
}

.btn-login-submit {
  width: 100%;
  padding: 12px;
  background: #00a8ff;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 168, 255, 0.4);
  transition: background 0.3s, transform 0.2s;
}

.btn-login-submit:hover {
  background: #0086cc;
}

.btn-login-submit:active {
  transform: scale(0.98);
}