/* Variabel Warna Kustom */
:root {
  --primary-color: #0369A1;
  --secondary-color: #0EA5E9;
  --accent-color: #F59E0B;
  --dark-color: #1E293B;
  --light-color: #F8FAFC;
  --gray-color: #64748B;
  --success-color: #10B981;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--dark-color);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
}

/* Header Styles */
.header {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  padding: 15px 0;
  transition: all 0.3s ease;
}

.header.scrolled {
  padding: 10px 0;
}

.logo h1 {
  font-size: 28px;
  font-weight: 700;
  margin: 0;
}

.logo span {
  color: var(--primary-color);
}

.navmenu ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
}

.navmenu li {
  position: relative;
  padding: 0 15px;
}

.navmenu a {
  color: var(--dark-color);
  font-weight: 500;
  padding: 10px 0;
  position: relative;
  text-decoration: none; /* buang underline bawaan */
}

.navmenu a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.navmenu a:hover::after,
.navmenu .active::after {
  width: 100%; /* animasi garis bawah saat hover/aktif */
}

.navmenu a:hover,
.navmenu .active {
  color: var(--primary-color);
}


.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  padding: 10px 25px;
  border-radius: 5px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  transform: translateY(-2px);
}

.btn-outline-primary {
  border-color: var(--primary-color);
  color: var(--primary-color);
  padding: 10px 25px;
  border-radius: 5px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--dark-color);
}

/* Hero Section */
.hero {
  padding: 120px 0 80px;
  background: linear-gradient(135deg, var(--light-color) 0%, #E0F2FE 100%);
  position: relative;
  overflow: hidden;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--dark-color);
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: var(--gray-color);
}

.hero-btns {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
}

.hero-stats {
  display: flex;
  gap: 30px;
  margin-top: 40px;
}

.stat-item {
  text-align: center;
}

.stat-item h3 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 5px;
}

.stat-item p {
  font-size: 1rem;
  color: var(--gray-color);
  margin: 0;
}

.hero-image {
  position: relative;
}

.hero-image img {
  border-radius: 10px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Section Styles */
.section-title {
  text-align: center;
  padding-bottom: 60px;
}

.section-title h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.section-title h2:after {
  content: '';
  position: absolute;
  width: 80px;
  height: 3px;
  background: var(--primary-color);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

.section-title p {
  color: var(--gray-color);
  max-width: 700px;
  margin: 0 auto;
}

/* Clients Section */
.clients {
  padding: 80px 0;
  background: white;
}

.clients-carousel-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
  margin: 0 auto;
}

.clients-carousel {
  display: flex;
  width: 100%;
}

.clients-track {
  display: flex;
  animation: scroll 30s linear infinite;
  width: max-content;
}

/* Kotak logo seragam */
.client-logo {
  flex: 0 0 auto;
  width: 150px;           /* fix lebar */
  height: 100px;          /* fix tinggi */
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 15px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 6px;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all 0.3s ease;
}

.client-logo:hover {
  filter: grayscale(0);
  opacity: 1;
  transform: scale(1.05); /* animasi hover biar lebih hidup */
}

/* Logo di dalam kotak */
.client-logo img {
  max-width: 100%;
  max-height: 80%;
  object-fit: contain;    /* biar proporsional */
}

/* Animasi scroll */
@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Pause animation on hover */
.clients-carousel:hover .clients-track {
  animation-play-state: paused;
}


/* Services Section */
.services {
  padding: 100px 0;
  background-color: white;
}

.service-card {
  background: white;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.service-card:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 0;
  background: var(--primary-color);
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.service-card:hover:before {
  height: 100%;
}

.service-icon {
  width: 70px;
  height: 70px;
  background: rgba(3, 105, 161, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--primary-color);
  font-size: 30px;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.service-card p {
  color: var(--gray-color);
}

/* About Section */
.about {
  padding: 100px 0;
  background-color: var(--light-color);
}

.about-content {
  position: relative;
}

.about-image {
  position: relative;
}

.about-image img {
  border-radius: 10px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.experience-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--primary-color);
  color: white;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(3, 105, 161, 0.2);
}

.experience-badge h3 {
  font-size: 2.5rem;
  margin: 0;
  line-height: 1;
}

.experience-badge p {
  margin: 0;
  font-size: 0.9rem;
}

/* CTA Section */
.cta {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  text-align: center;
}

.cta h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.cta p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 30px;
  opacity: 0.9;
}

/* Footer */
.footer {
  background: var(--dark-color);
  color: white;
  padding: 80px 0 40px;
}

.footer h4 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer h4:after {
  content: '';
  position: absolute;
  width: 40px;
  height: 2px;
  background: var(--primary-color);
  bottom: 0;
  left: 0;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: white;
  padding-left: 5px;
}

.footer-contact p {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.footer-contact i {
  margin-right: 10px;
  color: var(--primary-color);
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--primary-color);
  transform: translateY(-3px);
}

.copyright {
  text-align: center;
  padding-top: 40px;
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
}

/* Mobile Nav Active State */
.mobile-nav-active {
  overflow: hidden;
}

.mobile-nav-active .header {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: white;
  padding: 0;
}

.mobile-nav-active .navmenu {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.mobile-nav-active .navmenu ul {
  display: flex;
  flex-direction: column;
  gap: 30px;
  text-align: center;
}

.mobile-nav-active .logo,
.mobile-nav-active .btn-primary {
  display: none;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .navmenu ul {
    display: none;
  }
  
  .mobile-nav-toggle {
    display: block;
  }
  
  .clients-track {
    animation: scroll 20s linear infinite;
  }
  
  .client-logo {
    padding: 20px 30px;
  }
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-btns {
    flex-direction: column;
  }
  
  .hero-stats {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
  
  .clients-track {
    animation: scroll 15s linear infinite;
  }
  
  .client-logo {
    padding: 15px 20px;
  }
  
  .client-logo img {
    max-height: 40px;
  }
}

/* Contact Section */
.contact {
  padding: 100px 0;
  background: #fff;
}

.contact .info-box,
.contact .form-box {
  background: #fff;
  border-radius: 8px;
  border-top: 3px solid var(--primary-color);
}

.contact .info-box i {
  font-size: 24px;
  color: var(--primary-color);
  float: left;
  width: 40px;
  height: 40px;
  background: rgba(3,105,161,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-right: 15px;
}

.contact .info-box h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--dark-color);
}

.contact .info-box p {
  font-size: 14px;
  color: var(--gray-color);
  margin-bottom: 20px;
}

.contact .form-control {
  border-radius: 5px;
  padding: 12px;
  border: 1px solid #ddd;
}

.contact .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: none;
}

.contact button {
  background: var(--primary-color);
  border: none;
  padding: 12px 30px;
  border-radius: 5px;
  font-weight: 500;
}

.contact button:hover {
  background: var(--secondary-color);
}
.contact .info-box,
.contact .form-box {
  background: #fff;
  border-radius: 8px;
  border-top: 3px solid var(--primary-color);
  height: 100%; /* Biar tingginya ikut rata */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.info-item i {
  font-size: 24px;
  color: #0d6efd; /* biru */
  margin-right: 12px;
}

.info-item h4 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 5px 0;
  color: #2c3e50;
}

.info-item p {
  margin: 0;
  color: #444;
  line-height: 1.5;
}


/* Products Section */
.products {
  padding: 100px 0;
}

.product-brand {
  width: 200px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  margin: 20px auto;
  padding: 15px;
  background: #fff;
  border-radius: 12px;                   /* lebih bulat */
  box-shadow: 0 4px 10px rgba(0,0,0,0.05); /* shadow default */
  transition: all 0.3s ease;
  text-align: center;
}

/* Hover lebih menarik */
.product-brand:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.15);
  background: linear-gradient(135deg, #f8fafc, #ffffff); /* gradasi halus */
}

.product-brand img {
  max-height: 70px;
  max-width: 100%;
  object-fit: contain;
  margin-bottom: 10px;
  transition: transform 0.3s ease;
}

.product-brand:hover img {
  transform: scale(1.1); /* zoom logo saat hover */
}

.product-brand p {
  font-size: 14px;
  margin: 0;
  color: #334155; /* abu gelap elegan */
  transition: color 0.3s ease;
}

.product-brand:hover p {
  color: #0369A1; /* berubah ke warna brand */
}


/* Projects Section */
.projects {
  padding: 100px 0;
}

.project-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  height: 100%;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.project-image {
  overflow: hidden;
}

.project-image img {
  transition: all 0.5s ease;
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-content {
  padding: 20px;
}

.project-content h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.project-content p {
  color: var(--gray-color);
  margin-bottom: 0;
}

/* Project Filters */
.project-filters {
  margin-bottom: 30px;
}

.btn-filter {
  background: white;
  border: 1px solid #ddd;
  padding: 8px 20px;
  margin: 0 5px 10px;
  border-radius: 30px;
  color: var(--gray-color);
  transition: all 0.3s ease;
}

.btn-filter:hover,
.btn-filter.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

/* Pagination */
.pagination .page-link {
  color: var(--primary-color);
  border: 1px solid #dee2e6;
  padding: 10px 15px;
  margin: 0 5px;
  border-radius: 5px;
}

.pagination .page-item.active .page-link {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.pagination .page-link:hover {
  color: var(--secondary-color);
}

/* Project Grid Animation */
.projects-container {
  min-height: 500px; /* Untuk menghindari layout shift saat loading */
}

/* ========== DEBUG PROJECT DETAIL ========== */

/* Paksa box info dan detail kelihatan */
.project-info,
.project-description,
.project-detail-content {
  background: #fff !important;
  color: #111 !important;
  padding: 20px !important;
  min-height: 100px;
  border: 1px solid #e5e7eb; /* abu tipis biar kelihatan */
}

/* Teks list */
.project-info li,
.project-detail-content li {
  color: #111 !important;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 8px;
  display: list-item;
}

/* Swiper slider biar nggak 0 height */
.project-details-slider {
  min-height: 400px; 
  background: #f3f4f6; /* abu terang */
}

.project-details-slider img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 8px;
}


/* ====== DEBUG FIX UNTUK PROJECT DETAIL ====== */
.project-info,
.project-description,
.project-detail-content {
  background: #fff !important;
  color: #000 !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  min-height: 200px !important;
  padding: 20px !important;
  z-index: 999 !important;
}

.project-info li,
.project-detail-content li {
  color: #000 !important;
  list-style: disc !important;
  margin-left: 20px !important;
  display: list-item !important;
}

.back-to-top {
  position: fixed;
  right: 15px;
  bottom: 15px;
  z-index: 9999;
  width: 40px;
  height: 40px;
  background: #0369A1;  /* biru Bootstrap */
  color: #fff;
  font-size: 24px;
  display: none; /* default hidden */
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  border-radius: 6px; /* sudut sedikit membulat (opsional) */
}

.back-to-top:hover {
  background: #0EA5E9; /* biru lebih gelap */
  color: #fff;
}
