/* ========== GLOBAL RESET & BASE ========== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: #1a1f36;
  background: #f3f5fa;
  line-height: 1.6;
}

/* ========== LAYOUT HELPERS ========== */
.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.section {
  padding: 4rem 0;
}

.section h2 {
  font-size: 1.9rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 0.75rem;
  color: #101426;
}

.section-intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
  color: #5a6278;
}

/* Card style for white blocks */
.card {
  background: #ffffff;
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.1);
}

/* ========== HEADER & NAV ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.logo {
  height: 42px;
  width: auto;
}

.brand-text h1 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-text p {
  font-size: 0.75rem;
  color: #6b7280;
}

.main-nav {
  display: flex;
  gap: 1.75rem;
}

.main-nav a {
  font-size: 0.95rem;
  text-decoration: none;
  color: #374151;
  font-weight: 500;
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #2563eb, #0ea5e9);
  border-radius: 999px;
  transition: width 0.22s ease-out;
}

.main-nav a:hover::after {
  width: 100%;
}

/* ========== HERO SECTION ========== */
.hero {
  position: relative;
  height: 75vh;
  min-height: 430px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  background-image: url("../images/hero-bg.jpg");
  /* Jika file kamu hero-bg.png, ubah baris di atas menjadi:
     background-image: url("../images/hero-bg.png");
  */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
      to bottom,
      rgba(15, 23, 42, 0.58),
      rgba(15, 23, 42, 0.35),
      rgba(15, 23, 42, 0.75)
    );
}

.hero-content {
  position: relative;
  z-index: 1;
  color: #ffffff;
}

.hero h2 {
  font-size: clamp(2.1rem, 3vw + 1.4rem, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 8px 22px rgba(0, 0, 0, 0.55);
}

.hero-subtitle {
  font-size: 1rem;
  margin-bottom: 2rem;
  color: #e5edff;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
}

/* Button */
.btn-primary {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.45);
  transition:
    transform 0.15s ease-out,
    box-shadow 0.15s ease-out,
    filter 0.15s ease-out;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(37, 99, 235, 0.55);
  filter: brightness(1.08);
}

/* ========== ABOUT SECTION ========== */
.about .card p + p {
  margin-top: 1rem;
}

/* ========== PRODUCTS SECTION ========== */
.products {
  background: radial-gradient(circle at top, #e0f2fe 0, #f3f5fa 40%, #eef2ff 100%);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.product-card {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 16px;
  padding: 1.75rem 1.6rem;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.35);
  transition:
    transform 0.16s ease-out,
    box-shadow 0.16s ease-out,
    border-color 0.16s ease-out;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 44px rgba(15, 23, 42, 0.18);
  border-color: rgba(37, 99, 235, 0.55);
}

.product-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
  color: #111827;
}

.product-tagline {
  font-size: 0.85rem;
  margin-bottom: 0.8rem;
  color: #6b7280;
}

.product-card ul {
  list-style: none;
  font-size: 0.9rem;
  color: #4b5563;
}

.product-card li + li {
  margin-top: 0.35rem;
}

/* ========== CONTACT SECTION ========== */
.contact-layout {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 2rem;
}

.contact-info h2 {
  margin-bottom: 0.75rem;
}

.contact-info p {
  color: #4b5563;
  margin-bottom: 1.25rem;
}

.contact-list {
  list-style: none;
  font-size: 0.92rem;
  color: #374151;
}

.contact-list li + li {
  margin-top: 0.35rem;
}

.contact-note {
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  border-radius: 14px;
  padding: 1.6rem 1.5rem;
  color: #f9fafb;
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.5);
}

.contact-note h3 {
  margin-bottom: 0.5rem;
}

/* ========== FOOTER ========== */
.site-footer {
  padding: 1.6rem 0 2rem;
  background: #020617;
  color: #e5e7eb;
  margin-top: 2rem;
}

.footer-content {
  text-align: center;
  font-size: 0.85rem;
}

.footer-sub {
  margin-top: 0.2rem;
  color: #9ca3af;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .main-nav {
    margin-left: 0.25rem;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav {
    align-items: center;
  }

  .brand-text h1 {
    font-size: 1rem;
  }

  .hero {
    height: 65vh;
  }

  .card {
    padding: 1.8rem 1.4rem;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .main-nav {
    gap: 1.1rem;
  }

  .main-nav a {
    font-size: 0.9rem;
  }
}
