/* Reset default */
.html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  color: #fff;
  background: white
}

.img {
  width: 100%;
  height: auto;
  display: block;
}
 

/* Navbar */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 50px;
  background: #fff;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 9999;
}

header .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #333;
}

header .logo img {
  height: 50px;
  width: 180px; 
}

header nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

.navbar {
  list-style: none;
  display: flex;
  gap: 30px;
  z-index: 1000;
}

.navbar li a {
  text-decoration: none;
  color: black;
  padding: 10px 20px;
  border-radius: 8px;
  transition: 0.3s;
}

/* Hover effect */
.navbar li a:hover {
  background: rgba(0, 30, 255, 0.1); 
}

/* Aktif (menu yang dipilih) */
.navbar li a.active {
  background: #073e88;
  color: white;
}

header nav ul li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

header nav ul li a.active,
header nav ul li a:hover {
  color: #5f9ae8; /* warna biru ungu seperti di desain */
}

/* === HAMBURGER === */
.hamburger {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: #073e88;
  z-index: 110;
}

/* RESPONSIVE (tampilan HP / tablet) */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  /* Navbar default disembunyikan */
  .navbar {
    display: none;
    position: absolute;
    top: 70px;
    right: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    width: 200px;
    transition: all 0.3s ease;
  }

  /* Navbar muncul saat aktif */
  .navbar.active {
    display: block;
  }

  .navbar ul {
    flex-direction: column;
    text-align: center;
    padding: 10px 0;
  }

  .navbar ul li {
    margin: 8px 0;
  }

  .navbar ul li a {
    color: #073e88;
  }
}

/* LAYANAN IMAGE ONLY */
.hero {
  position: relative;
  height: 250px;
  background: url("layanan-hero.jpg") center/cover no-repeat;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  color: white;
  padding-top: 90px;
  background-attachment: scroll;
  overflow:hidden;
}

.hero .overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: transparent;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-left: 50px;     /* Jarak dari sisi kiri */
  padding-bottom: 40px;   /* Jarak dari bawah agar tidak menempel */
  text-align: center;
}

.hero h1 {
  position: relative;
  z-index: 2;
  font-size: 40px;
  font-weight: 700;
  font-family: 'Times New Roman', Times, serif
}

/* ==== RESPONSIVE DESIGN ==== */

/* Laptop / Tablet */
@media (max-width: 1024px) {
  .hero {
    min-height: 50vh;
    background-position: center center;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }
}

/* HP sedang (lebar < 768px) */
@media (max-width: 768px) {
  .hero {
    height: 45vh;
    background-size: cover;
    background-position: center;
  }

  .hero-content h1 {
    font-size: 2rem;
  }
}

/* HP kecil (lebar < 480px) */
@media (max-width: 480px) {
  .hero {
    height: 40vh;
    background-size: cover;
    background-position: center;
    width: 100%;
  }

  .hero-content h1 {
    font-size: 1.6rem;
    padding: 0 10px;
  }
}

/* TRANSFORMASIKAN CARA KERJA */
/* ======== SOLUSI SECTION ======== */
.solusi-section {
  padding: 80px 60px;
  background-color: #fff;
  color: #000;
}

.solusi-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  max-width: 1200px;
  margin: 0 auto;
}

.solusi-content {
  flex: 1;
}

.solusi-content h1 {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.3;
  color: #000;
  margin-bottom: 20px;
  font-family: 'Times New Roman', Times, serif;
}

.solusi-content p {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
  margin-bottom: 25px;
  text-align: justify;
  font-family: 'Times New Roman', Times, serif;
}

/* GRID dua layanan (Software Dev & Training) */
.solusi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.solusi-item h3 {
  color: #073e88;
  font-size: 20px;
  margin-bottom: 10px;
  font-family: 'Times New Roman', Times, serif;
}

.solusi-item p {
  color: #333;
  font-size: 15px;
  line-height: 1.7;
  font-family: 'Times New Roman', Times, serif;
}

.footer-text {
  margin-top: 30px;
  font-size: 15px;
  color: #333;
  font-family: 'Times New Roman', Times, serif;
}

/* IMAGE SIDE */
.solusi-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.solusi-image img {
  width: 100%;
  max-width: 500px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* ======== RESPONSIVE DESIGN ======== */

/* Tablet */
@media (max-width: 992px) {
  .solusi-container {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .solusi-content h1 {
    font-size: 28px;
    font-family: 'Times New Roman', Times, serif;
  }

  .solusi-content p {
    font-size: 15px;
    font-family: 'Times New Roman', Times, serif;
  }

  .solusi-item h3 {
    font-family: 'Times New Roman', Times, serif;
  }

  .solusi-image img {
    max-width: 400px;
  }
}

/* HP (lebar < 600px) */
@media (max-width: 600px) {
  .solusi-section {
    padding: 50px 20px;
  }

  .solusi-content h1 {
    font-size: 22px;
    font-family: 'Times New Roman', Times, serif;
    line-height: 1.4;
  }

  .solusi-item h3 {
    font-family: 'Times New Roman', Times, serif;
  }

  .solusi-content p,
  .solusi-item p,
  .footer-text {
    font-size: 14px;
    line-height: 1.6;
    font-family: 'Times New Roman', Times, serif;
  }

  .solusi-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .solusi-image img {
    width: 90%;
    max-width: 350px;
  }
}

/* LAYANAN PRODUK */
/* SECTION */
.produk-section {
  padding: 60px 100px;
}

/* GRID CARD */
.produk-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 25px;
  max-width: 1200px;
  margin: 0 auto;
}

.produk-container .produk-card:last-child:nth-child(odd) {
  grid-column: 2 / span 1;
  justify-self: center;
}

/* CARD */
.produk-card {
  background-color: #073e88;
  color: #ffffff;
  border-radius: 15px;
  overflow: hidden;
  flex: 1 1 calc(33.333% - 25px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.produk-card:hover {
  transform: translateY(-8px);
}

/* IMAGE BAGIAN ATAS */
.produk-image {
  position: relative;
}

.produk-image img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

/* LABEL DI ATAS GAMBAR */
.produk-label {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #073e88;
  color: #fff;
  padding: 8px 25px;
  font-weight: 700;
  border-radius: 6px;
  font-size: 18px;
}

/* KONTEN */
.produk-content {
  background-color: #073e88;
  text-align: left;
  padding: 50px 25px 25px;
  border-radius: 0 0 15px 15px;
}

.produk-content h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.produk-content p {
  font-size: 15px;
  line-height: 1.7;
  text-align: justify;
}

/* === RESPONSIVE === */

/* Laptop - 1024px ↓ */
@media (max-width: 1024px) {
  .produk-card {
    flex: 1 1 45%;
    max-width: 45%;
  }
}

/* Tablet - 768px ↓ */
@media (max-width: 768px) {
  .produk-container {
    flex-direction: column;
    align-items: center;
  }
  .produk-card {
    width: 100%;
    max-width: 420px;
  }
  .produk-image {
    height: 180px;
  }
  .produk-content h3 {
    font-size: 17px;
  }
  .produk-content p {
    font-size: 14px;
  }
}

/* HP kecil (≤480px) */
@media (max-width: 480px) {
  .produk-section {
    padding: 40px 10px;
  }

  .produk-container {
    gap: 18px;
  }

  .produk-card {
    flex: 1 1 90%;
    width: 90%;
    max-width: 90%;
  }

  .produk-image {
    aspect-ratio: 1 / 1; /* Proporsional di HP kecil */
  }

  .produk-content {
    padding: 30px;
  }

  .produk-content h3 {
    font-size: 15px;
  }

  .produk-content p {
    font-size: 13px;
    line-height: 1.5;
  }

  .produk-label {
    font-size: 13px;
    padding: 4px 10px;
  }
}


/* FOOTER SECTION */
.footer {
  position: relative;
  background: url('building.jpg') no-repeat center center/cover;
  color: #fff;
  padding: 100px 0;
  overflow: hidden;
  padding-top: 15px;
}

.footer-overlay {
  background: transparent;
  padding: 50px 20px;
}

.footer-logo {
  position: absolute;
  top: 30px;
  left: 40px;
}

.footer-logo img {
  width: 200px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 40px;
  margin-top: 150px;
  margin-bottom: -100px;
}

/* MAP SECTION */
.footer-map {
  flex: 1 1 500px;
  height: 350px;
  border-radius: 15px;
  overflow: hidden;
}

/* CONTACT CARD */
.footer-contact {
  flex: 1 1 400px;
  background-color: #ffffff;
  color: #002766;
  border-radius: 20px;
  padding: 30px 35px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.footer-title {
  background-color: #002b6b;
  color: #fff;
  padding: 12px 20px;
  border-radius: 25px;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 25px;
}

.contact-info p {
  font-size: 15px;
  margin: 5px 0;
}

.office {
  margin-top: 15px;
}

.office h4 {
  font-size: 16px;
  font-weight: 600;
  color: #002b6b;
}

.office p {
  font-size: 14px;
  color: black;
  line-height: 1.5;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .footer-content {
    flex-direction: column;
    align-items: center;
  }

  .footer-map, .footer-contact {
    width: 100%;
  }
}
