﻿/* ============================================
   GLOBAL STYLE
============================================ */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: #f7f9fc;
  color: #333;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3 {
  margin: 0;
  font-weight: 600;
}

/* ============================================
   HEADER
============================================ */
header {
  background: #0a3d62;
  padding: 18px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

header .logo img {
  height: 55px;
}

.nav-links a {
  margin-left: 28px;
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  transition: .3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #aee0ff;
}

/* ============================================
   HERO
============================================ */
.hero {
  background: url('images/hero.png') center/cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 180px 20px;
}

.hero h1 {
  font-size: 56px;
}

.hero p {
  font-size: 20px;
  max-width: 650px;
  margin: 15px auto 0;
}

.btn {
  display: inline-block;
  margin-top: 25px;
  background: #fff;
  color: #007bff;
  padding: 12px 28px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: .3s;
}

.btn:hover {
  background: #e6f4ff;
}

/* ============================================
   GENERAL SECTION
============================================ */
.section {
  padding: 90px 120px;
  text-align: center;
}

.section h2 {
  font-size: 32px;
  margin-bottom: 15px;
  color: #0a3d62;
}

.section p {
  font-size: 17px;
  line-height: 1.7;
  max-width: 900px;
  margin: 10px auto 0;
}

/* ============================================
   PORTFOLIO
============================================ */
.portfolio-grid {
  margin-top: 40px;
  display: grid;
  gap: 25px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.portfolio-grid .item {
  background: #fff;
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* ============================================
   CUSTOMER LOGOS – FULL COLOR & CLEAN
============================================ */
.customer-logos {
  margin-top: 60px;
  text-align: center;
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 40px;
  align-items: center;
  justify-items: center;
  margin-top: 40px;
}

.logo-grid img {
  width: 100%;
  max-width: 160px;
  height: 90px;
  padding: 14px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(0,0,0,.08);
  object-fit: contain;
  filter: none;
  opacity: 1;
  transition: .3s ease;
}

.logo-grid img:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 26px rgba(0,0,0,.12);
}

/* Tablet */
@media (max-width: 1024px) {
  .logo-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }

  .logo-grid img {
    max-width: 130px;
    height: 75px;
    padding: 10px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .logo-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .logo-grid img {
    max-width: 100px;
    height: 60px;
    padding: 8px;
  }
}

/* ============================================
   CONTACT
============================================ */
.contact-wrapper {
  display: flex;
  gap: 40px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.contact-box {
  flex: 1;
  min-width: 300px;
  background: #fff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.contact-box h3 {
  color: #0a3d62;
  margin-bottom: 15px;
}

.contact-box input,
.contact-box textarea {
  width: 100%;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
  margin-bottom: 12px;
}

.btn-submit {
  background: #0077c8;
  color: #fff;
  padding: 12px 22px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}

.btn-submit:hover {
  background: #005fa3;
}

/* ============================================
   FOOTER
============================================ */
footer {
  background: #072044;
  color: #fff;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
}

/* ============================================
   RESPONSIVE GLOBAL
============================================ */
@media (max-width: 768px) {

  header {
    padding: 15px 20px;
    flex-direction: column;
    gap: 10px;
  }

  .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  .nav-links a {
    margin-left: 0;
    font-size: 14px;
  }

  .hero {
    padding: 70px 20px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero p {
    font-size: 15px;
  }

  .section {
    padding: 40px 20px;
  }

  .section h2 {
    font-size: 24px;
  }

  .section p {
    font-size: 15px;
  }
}
/* ============================================
   PRODUCT GRID – RAPIH & 1 BARIS DESKTOP
============================================ */

.product-container {
  display: flex;
  padding: 40px 60px;
  gap: 40px;
}

/* Sidebar */
.sidebar {
  width: 260px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.sidebar-title {
  background: #0a3d62;
  color: #fff;
  padding: 14px 16px;
  font-size: 17px;
  font-weight: 600;
  border-radius: 10px 10px 0 0;
  text-align: center;
}

.sidebar a {
  display: block;
  padding: 12px 18px;
  text-decoration: none;
  color: #0077c8;
  font-size: 15px;
  border-bottom: 1px solid #eee;
}

.sidebar a:hover {
  background: #e6f3ff;
}

/* Grid produk */
.product-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)); /* 🔥 selalu 1 baris di desktop */
  gap: 25px;
}

/* Card */
.product-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
}

/* Gambar */
.product-card img {
  width: 100%;
  height: 220px;        /* 🔥 tinggi seragam */
  object-fit: cover;   /* 🔥 isi penuh & rapi */
  display: block;
}

/* Content */
.p-content {
  padding: 12px 10px;
  text-align: center;
  background: #fff;
}

.p-title {
  font-size: 18px;
  font-weight: 600;
}

/* ============================================
   RESPONSIVE
============================================ */

/* Tablet */
@media (max-width: 1024px) {
  .product-container {
    flex-direction: column;
    padding: 30px;
  }

  .sidebar {
    width: 100%;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-card img {
    height: 200px;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .product-container {
    flex-direction: column;
    padding: 15px;
    gap: 20px;
  }

  .sidebar {
    width: 100%;
  }

  .product-grid {
    grid-template-columns: 1fr; /* 1 kolom */
    gap: 18px;
  }

  .product-card img {
    height: 200px;
  }

  .p-title {
    font-size: 16px;
  }
}
/* ============================================
   PRODUCT IMAGE – ZOOM EFFECT
============================================ */

/* Bungkus gambar agar zoom tidak keluar card */
.product-card {
  position: relative;
  overflow: hidden;   /* 🔥 wajib agar zoom tidak bocor */
}

/* Gambar default */
.product-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;   /* 🔥 animasi halus */
}

/* Zoom saat hover */
.product-card:hover img {
  transform: scale(1.12);             /* 🔥 tingkat zoom */
}
@media (max-width: 600px) {
  .product-card img {
    height: 180px;
  }

  .product-card:hover img {
    transform: scale(1.08);           /* 🔥 zoom lebih kecil di HP */
  }
}
/* ============================================
   LIGHTBOX POPUP
============================================ */

.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  display: none;                 /* 🔥 default tersembunyi */
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.lightbox img {
  max-width: 90%;
  max-height: 85%;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  animation: zoomIn 0.3s ease;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
  font-weight: 600;
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

        /* ===============================
           PRODUCT LAYOUT — DESKTOP
        =============================== */
        .product-container {
            display: flex;
            padding: 40px 60px;
            gap: 40px;
        }

        /* SIDEBAR */
        .sidebar {
            width: 260px;
            background: white;
            border-radius: 8px;
            box-shadow: 0 0 10px rgba(0,0,0,0.1);
        }

        .sidebar-title {
            background: #0a3d62;
            color: white;
            padding: 16px;
            font-size: 18px;
            font-weight: 600;
            text-align: center;
            border-radius: 8px 8px 0 0;
        }

        .sidebar a {
            display: block;
            padding: 12px 18px;
            color: #0077c8;
            text-decoration: none;
            font-size: 15px;
            border-bottom: 1px solid #eee;
        }

        .sidebar a:hover {
            background: #e6f3ff;
        }

        /* GRID PRODUK */
        .product-grid {
            flex: 1;
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 25px;
        }

        .product-card {
            background: white;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 3px 12px rgba(0,0,0,0.1);
        }

        .product-card img {
            width: 100%;
            height: 230px;
            object-fit: cover;
            display: block;
        }

        .p-content {
            padding: 15px;
            text-align: center;
        }

        .p-title {
            font-size: 17px;
            font-weight: 600;
        }

        /* TABLET */
        @media (max-width: 1024px) {
            .product-container {
                flex-direction: column;
                padding: 30px;
            }
            .sidebar {
                width: 100%;
            }
            .product-grid {
                grid-template-columns: repeat(2, 1fr);
            }
            .product-card img {
                height: 200px;
            }
        }

        /* MOBILE */
        @media (max-width: 600px) {
            .product-container {
                flex-direction: column;
                padding: 15px;
            }
            .sidebar {
                width: 100%;
            }
            .product-grid {
                grid-template-columns: 1fr;
                gap: 18px;
            }
            .product-card img {
                height: auto;
                object-fit: cover;
            }
            .p-title {
                font-size: 15px;
            }
        }

        /* NEXT BUTTON */
        .next-btn {
            text-align: center;
            margin: 40px 0;
        }

        .next-btn a {
            padding: 12px 22px;
            background: #0077c8;
            color: #fff;
            border-radius: 8px;
            text-decoration: none;
            font-size: 16px;
            display: inline-block;
        }

        .next-btn a:hover {
            background: #005f99;
        }
    body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  color: #333;
}

/* Default desktop */
table {
  max-width: 1200px;
  margin: auto;
}

h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

p {
  font-size: 15px;
  margin-bottom: 12px;
}

/* Gambar agar fleksibel */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {

  header {
    flex-direction: column;
    text-align: center;
  }

  .nav-links a {
    display: inline-block;
    margin: 6px 10px;
    font-size: 14px;
  }

  table, tr, td {
    display: block;
    width: 100% !important;
  }

  td {
    padding: 10px 15px;
  }

  h3 {
    font-size: 18px;
    text-align: center;
  }

  p {
    font-size: 14px;
    text-align: justify;
  }

  img {
    margin: 10px auto;
  }

  footer p {
    font-size: 13px;
    text-align: center;
    padding: 10px;
  }
}
