/* ==========================================
   1. RESET & VARIABLE DEFINITIONS
   ========================================== */
:root {
  --primary: #1e3a8a;
  --primary-hover: #1d4ed8;
  --secondary: #d97706;
  --secondary-hover: #b45309;
  --dark: #0f172a;
  --light: #f8fafc;
  --gray: #64748b;
  --border: #e2e8f0;
  --whatsapp: #25d366;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: 
    linear-gradient(rgba(248, 250, 252, 0.92), rgba(248, 250, 252, 0.92)),
    url('../images/background.jpg') center/cover no-repeat fixed;
  color: var(--dark);
  font-family: 'Inter', 'Plus Jakarta Sans', sans-serif;
  line-height: 1.6;
}

/* Helper Class */
.icon-mr {
  margin-right: 8px;
}

/* ==========================================
   2. HEADER & NAVIGATION (FLOATING CAPSULE)
   ========================================== */
header {
  background-color: transparent;
  position: sticky;
  top: 1rem;
  z-index: 1000;
  padding: 0 1rem;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.6rem 1.8rem;
  background-color: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.logo-img {
  height: 80px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.5rem;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: #f8fafc;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  transition: all 0.3s ease;
  display: inline-block;
}

.nav-links a:hover, 
.nav-links a.active {
  color: #fff;
  background-color: var(--secondary);
}

.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.4rem;
}

/* ==========================================
   3. HERO & LAYOUT COMPONENTS
   ========================================== */
.hero {
  border-radius: 16px;
  color: #fff;
  margin: 1rem auto;
  max-width: 1200px;
}

.hero-section {
  background: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.8)), url('../images/background.jpg') center/cover no-repeat;
  padding: 7rem 2rem;
  text-align: center;
}

.hero h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.15rem;
  max-width: 750px;
  margin: 0 auto 1.5rem;
  color: #cbd5e1;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.btn-offer {
  background: var(--secondary);
  padding: 0.8rem 1.8rem;
  font-size: 1rem;
}

.btn-service {
  background: transparent;
  border: 2px solid #fff;
  padding: 0.8rem 1.8rem;
  font-size: 1rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-title h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2.2rem;
  color: var(--primary);
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  display: block;
  width: 60%;
  height: 3px;
  background: var(--secondary);
  margin: 8px auto 0;
  border-radius: 2px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card-body {
  padding: 1.5rem;
}

.card-body h3 {
  margin-bottom: 0.5rem;
  color: var(--primary);
  font-size: 1.25rem;
}

.card-clickable {
  cursor: pointer;
}

.btn-detail {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.6rem 1.2rem;
  background: var(--dark);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  text-decoration: none;
}

.card:hover .btn-detail,
.btn-detail:hover {
  background: var(--secondary);
  color: #ffffff;
}

/* ==========================================
   4. MARQUEE / SLIDER FOTO BERJALAN
   ========================================== */
.photo-marquee-section {
  background: transparent;
  padding: 3rem 0;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 2rem 0;
}

.section-title-marquee {
  margin-bottom: 1.5rem;
}

.section-subtitle {
  color: var(--gray);
  font-size: 0.95rem;
}

.marquee-container {
  display: flex;
  width: 100%;
  overflow: hidden;
  user-select: none;
  position: relative;
}

.marquee-track {
  display: flex;
  gap: 1.5rem;
  animation: marqueeScroll 25s linear infinite;
  min-width: 100%;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-item {
  flex: 0 0 280px;
  height: 190px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  position: relative;
}

.marquee-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.marquee-item:hover img {
  transform: scale(1.08);
}

.marquee-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(15, 23, 42, 0.85));
  color: #ffffff;
  padding: 0.8rem 1rem 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
}

@keyframes marqueeScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ==========================================
   5. STATS & ABOUT SECTION COMPONENTS
   ========================================== */
.stat-section {
  background: var(--dark);
  color: white;
  padding: 3rem 2rem;
  margin: 2rem auto;
  max-width: 1200px;
  border-radius: 16px;
}

.stat-grid {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 2rem;
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  color: var(--secondary);
  margin-bottom: 0.2rem;
}

.stat-label {
  color: #cbd5e1;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  align-items: start;
}

.badge-group {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.badge {
  color: #fff;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.badge-primary {
  background: var(--primary);
}

.badge-secondary {
  background: var(--secondary);
}

.about-lead {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--dark);
  margin-bottom: 1.2rem;
  font-weight: 500;
}

.about-text {
  line-height: 1.8;
  color: var(--gray);
  margin-bottom: 1.5rem;
}

.vision-mission-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.card-vision {
  padding: 1.8rem;
  border-top: 4px solid var(--primary);
}

.card-title-vision {
  color: var(--primary);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.card-text-vision {
  color: var(--dark);
  line-height: 1.6;
}

.card-mission {
  padding: 1.8rem;
  border-top: 4px solid var(--secondary);
}

.card-title-mission {
  color: var(--primary);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.mission-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.icon-check {
  color: #16a34a;
  margin-right: 8px;
}

/* ==========================================
   6. MODAL & FORM COMPONENTS
   ========================================== */
.modal-overlay, .modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease-in-out;
  padding: 1rem;
}

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

.modal-box, .modal-content {
  background: #ffffff;
  border-radius: 12px;
  max-width: 600px;
  width: 100%;
  overflow: hidden;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
  transform: scale(0.9);
  transition: transform 0.3s ease-in-out;
  position: relative;
  padding: 0;
}

.modal-overlay.active .modal-box, .modal.show .modal-content {
  transform: scale(1);
}

.modal-close, .close-modal {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(15, 23, 42, 0.6);
  color: #ffffff;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 10;
}

.modal-close:hover, .close-modal:hover {
  background: var(--dark);
}

.modal-img {
  width: 100%;
  max-height: 250px;
  object-fit: cover;
}

.modal-body, .modal-content-inner {
  padding: 1.8rem;
}

.modal-features {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.5rem;
}

.modal-features li {
  margin-bottom: 0.5rem;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
}

.modal-features li i {
  color: #16a34a;
}

.btn-modal-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: var(--whatsapp);
  color: white;
  padding: 0.8rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s;
}

.btn-modal-wa:hover {
  background: #1eb954;
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  width: 55px;
  height: 55px;
  bottom: 30px;
  right: 30px;
  background-color: var(--whatsapp);
  color: #fff;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  text-decoration: none;
  transition: transform 0.3s, background-color 0.3s;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background-color: #1eb954;
}

/* ==========================================
   7. CONTACT PAGE SPLIT LAYOUT
   ========================================== */
.contact-split-container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 2rem;
}

.contact-sidebar {
  background: var(--dark);
  color: #ffffff;
  padding: 2.5rem 2rem;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.badge-tech {
  display: inline-block;
  background: rgba(217, 119, 6, 0.2);
  color: var(--secondary);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.contact-sidebar h2 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 0.8rem;
  color: #ffffff;
}

.contact-sidebar p {
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.info-icon {
  width: 42px;
  height: 42px;
  background: #1e293b;
  color: var(--secondary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.info-text h4 {
  font-size: 0.95rem;
  color: #ffffff;
  margin-bottom: 0.2rem;
}

.info-text p, .info-text a {
  font-size: 0.85rem;
  color: #cbd5e1;
  text-decoration: none;
}

.info-text a:hover {
  color: var(--secondary);
}

.btn-wa-direct {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--whatsapp);
  color: white;
  text-decoration: none;
  padding: 0.9rem;
  border-radius: 10px;
  font-weight: 700;
  margin-top: 2rem;
  transition: background 0.3s ease;
}

.btn-wa-direct:hover {
  background: #1eb954;
}

.form-container-card {
  background: #ffffff;
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
  border: 1px solid var(--border);
  margin-bottom: 2rem;
}

.form-container-card h3 {
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 0.3rem;
}

.form-container-card p {
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-form-modern .form-group {
  margin-bottom: 1.2rem;
}

.contact-form-modern label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.4rem;
}

.contact-form-modern input, 
.contact-form-modern select, 
.contact-form-modern textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.9rem;
  transition: all 0.3s;
}

.contact-form-modern input:focus, 
.contact-form-modern select:focus, 
.contact-form-modern textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
  outline: none;
}

.btn-submit-tech {
  width: 100%;
  background: var(--primary);
  color: white;
  border: none;
  padding: 1rem;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: background 0.3s ease;
}

.btn-submit-tech:hover {
  background: var(--primary-hover);
}

.map-card-wrapper {
  background: #ffffff;
  padding: 1.5rem;
  border-radius: 16px;
  border: 1px solid var(--border);
}

.map-card-wrapper h4 {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.map-container-inner {
  height: 300px;
  border-radius: 10px;
  overflow: hidden;
}

.map-container-inner iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ==========================================
   8. PORTOFOLIO POPUP / MODAL ENHANCEMENT
   ========================================== */
.portfolio-badge {
  display: inline-block;
  background: rgba(30, 58, 138, 0.1);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.modal-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1rem;
  background: var(--light);
  padding: 1rem;
  border-radius: 8px;
  margin: 1rem 0;
  border: 1px solid var(--border);
}

.modal-meta-item h5 {
  font-size: 0.75rem;
  color: var(--gray);
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.modal-meta-item p {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark);
  margin: 0;
}

/* ==========================================
   9. FOOTER COMPONENTS
   ========================================== */
footer {
  background-color: var(--dark);
  color: #94a3b8;
  padding-top: 3.5rem;
  margin-top: 4rem;
  border-top: 3px solid var(--secondary);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem 2.5rem 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2.5rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.logo-img-footer {
  height: 80px;
  width: auto;
  object-fit: contain;
}

.footer-logo h3 {
  color: #ffffff;
  font-size: 1.1rem;
  margin: 0;
}

.footer-logo h3 span {
  color: var(--secondary);
}

.footer-col h4 {
  color: #fff;
  margin-bottom: 1.2rem;
  font-size: 1.1rem;
}

.footer-col p {
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.8rem;
}

.footer-col ul li a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.3s;
  font-size: 0.9rem;
}

.footer-col ul li a:hover {
  color: var(--secondary);
}

.footer-bottom {
  background-color: #070c18;
  text-align: center;
  padding: 1.2rem 2rem;
  border-top: 1px solid #1e293b;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: #64748b;
}

/* ==========================================
   10. MEDIA QUERIES (RESPONSIVE)
   ========================================== */
@media (max-width: 992px) {
  .contact-split-container {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .mobile-nav-toggle {
    display: block;
  }

  nav {
    flex-wrap: wrap;
    border-radius: 20px;
    padding: 0.8rem 1.2rem;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    margin-top: 0.8rem;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    padding: 0.6rem;
    font-size: 0.95rem;
    text-align: center;
    width: 100%;
    border-radius: 8px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .whatsapp-float {
    width: 48px;
    height: 48px;
    bottom: 20px;
    right: 20px;
    font-size: 24px;
  }
}