/* ===============================
   BORNEO STEEL CORPORATE STYLE - RESPONSIVE OPTIMIZED
   Background: PUTIH / ABU TERANG
   =============================== */

/* ---------- GLOBAL ---------- */
:root {
  --primary: #0f4c81;
  --primary-dark: #09375e;
  --accent: #1976d2;
  --bg: #f8f9fa;
  --text: #222;
  --muted: #666;
  --radius: 10px;
  --shadow: 0 3px 10px rgba(0,0,0,0.08);
  --transition: all 0.25s ease;
}

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: "Poppins", Arial, sans-serif;
  background: #f8f9fa;
  color: #222;
  line-height: 1.6;
  box-sizing: border-box;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* ---------- HEADER HERO ---------- */
.header {
  background: linear-gradient(to right, var(--primary), var(--accent));
  color: white;
  text-align: center;
  padding: 100px 20px;
  border-bottom: 5px solid var(--primary-dark);
  box-shadow: var(--shadow);
}

.header h1 {
  font-size: 48px;
  letter-spacing: 1px;
  margin: 0 0 10px 0;
  text-transform: uppercase;
}

.header p {
  font-size: 18px;
  opacity: 0.9;
  max-width: 650px;
  margin: 0 auto;
}

/* =========================
   NAVBAR
   ========================= */
.navbar {
  width: 100%;
  background: #ffffff;
  border-bottom: 3px solid #004b8d;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 999;
}

.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
}

/* Logo */
.navbar-logo .logo {
  height: 100px;
  width: auto;
  display: block;
}

/* Links */
.navbar-links {
  list-style: none;
  display: flex;
  gap: 32px;
  margin: 0;
  padding: 0;
}

.navbar-links li {
  display: inline-block;
}

.navbar-links .nav-link {
  text-decoration: none;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  color: #004b8d;
  font-size: 15px;
  transition: color 0.3s, border-bottom 0.3s;
  position: relative;
  padding-bottom: 4px;
}

.navbar-links .nav-link:hover {
  color: #007bff;
}

/* Garis animasi di bawah link */
.navbar-links .nav-link::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #007bff;
  transition: width 0.3s;
}

.navbar-links .nav-link:hover::after {
  width: 100%;
}

/* ---------- HAMBURGER MENU ---------- */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  background: #004b8d;
  height: 3px;
  width: 100%;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Animasi toggle (jadi X) */
.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ---------- FULLWIDTH GRADIENT SECTIONS ---------- */
.fullwidth-section {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  position: relative;
  padding: 80px 20px;
  box-sizing: border-box;
  overflow-x: hidden;
}

.fullwidth-section .section-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.fullwidth-section.blue-gradient {
  background: linear-gradient(to right, #42e0e0, #0066cc);
  color: white;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.fullwidth-section h1 {
  font-size: 30px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 15px;
}

.fullwidth-section h2 {
  font-size: 28px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 15px;
}

.fullwidth-section p {
  font-size: 18px;
  color: #f1f1f1;
  line-height: 1.7;
  max-width: 900px;
  margin: 0 auto;
}

/* ---------- PRODUCT GRID ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 25px;
  justify-items: center;
  width: 100%;
  box-sizing: border-box;
}

.card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: all 0.25s ease;
  height: 420px;
  width: 100%;
  max-width: 300px;
  box-sizing: border-box;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.card img.product-img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  background: #f8f9fa;
  padding: 10px;
  max-width: 100%;
}

.card h3 {
  font-size: 16px;
  color: var(--primary-dark);
  text-align: center;
  margin: 10px 10px 0 10px;
  height: auto;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card p {
  color: #444;
  font-size: 14px;
  margin: 4px 15px;
  text-align: left;
}

.card .button {
  margin: 12px auto 15px auto;
  display: block;
  width: 80%;
  text-align: center;
}

/* ---------- PRODUCT CAROUSEL ---------- */
.productSwiper {
  width: 100%;
  padding-bottom: 60px;
  position: relative;
  overflow: hidden;
}

.productSwiper .swiper-slide {
  display: flex;
  justify-content: center;
}

.productSwiper .card {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  width: 100%;
  max-width: 280px;
  height: auto;
  box-sizing: border-box;
}

.productSwiper .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.productSwiper .product-img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  margin-bottom: 12px;
  max-width: 100%;
}

.swiper-pagination {
  bottom: -20px !important;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 12px;
}

.swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: #c7c7c7;
  opacity: 1;
  margin: 0 5px !important;
  border-radius: 50%;
  transition: background 0.3s ease, transform 0.3s ease;
}

.swiper-pagination-bullet-active {
  background: #004b8d;
  transform: scale(1.3);
}

.swiper-button-prev,
.swiper-button-next {
  color: #004b8d;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  top: 40%;
  transition: background 0.3s, color 0.3s;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
  background: #004b8d;
  color: #fff;
}

.swiper-button-prev::after,
.swiper-button-next::after {
  font-size: 18px;
  font-weight: bold;
}

.swiper-button-prev {
  left: -50px;
}

.swiper-button-next {
  right: -50px;
}

/* ---------- BUTTON ---------- */
.button {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 10px 22px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.3px;
  border: 1px solid rgba(255,255,255,0.1);
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
  transition: all 0.25s ease;
  text-align: center;
  margin: 5px;
  box-sizing: border-box;
}

.button:hover {
  background: linear-gradient(135deg, var(--accent), var(--primary));
  box-shadow: 0 6px 15px rgba(0,0,0,0.25);
  transform: translateY(-2px);
}

/* ---------- FORM ---------- */
form {
  max-width: 500px;
  margin-top: 20px;
  width: 100%;
  box-sizing: border-box;
}

label {
  font-weight: 600;
  display: block;
  margin-top: 10px;
}

input, textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: var(--radius);
  font-size: 14px;
  margin-top: 5px;
  transition: var(--transition);
  box-sizing: border-box;
}

input:focus, textarea:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 2px rgba(15,76,129,0.1);
}

/* ---------- PALET WARNA PRODUK ---------- */
.color-palette {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0;
}

.color-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid #ccc;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.color-dot:hover {
  transform: scale(1.1);
  box-shadow: 0 3px 6px rgba(0,0,0,0.2);
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--primary-dark);
  color: white;
  padding: 50px 0 25px;
  margin-top: 70px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-left {
  flex: 1;
  min-width: 240px;
}

.footer-logo {
  width: 350px;
  background: white;
  padding: 10px 15px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.3);
  margin-bottom: 15px;
  object-fit: contain;
  max-width: 100%;
  height: auto;
}

.footer-left p {
  color: #d0d0d0;
  font-size: 14px;
  line-height: 1.6;
}

.footer-right {
  flex: 1.5;
  min-width: 300px;
}

.footer-right h4 {
  color: #fff;
  font-size: 18px;
  margin-bottom: 12px;
  border-left: 4px solid var(--accent);
  padding-left: 10px;
}

.footer-right p {
  margin: 6px 0;
  font-size: 14px;
  color: #e2e2e2;
}

.footer-right a {
  margin: 6px 0;
  font-size: 14px;
  color: #e2e2e2;
}

.footer-bottom {
  text-align: center;
  font-size: 13px;
  color: #ccc;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 40px;
  padding-top: 15px;
}

/* ---------- MODAL DETAIL PRODUK ---------- */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
}

.modal-content {
  background: white;
  margin: 5% auto;
  padding: 25px;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  position: relative;
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
  text-align: center;
  box-sizing: border-box;
}

.modal-content img {
  width: 100%;
  max-height: 250px;
  object-fit: contain;
  border-radius: 10px;
  margin-bottom: 15px;
  max-width: 100%;
  height: auto;
}

.modal-content h2 {
  color: #003366;
  font-size: 22px;
  margin-bottom: 10px;
}

.modal-content p {
  color: #333;
  font-size: 15px;
  margin-bottom: 10px;
}

.modal-content .color-palette {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.close {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 28px;
  color: #666;
  cursor: pointer;
  transition: 0.2s ease;
}

.close:hover {
  color: #003366;
}

/* ---------- MAP ---------- */
#map {
  width: 100%;
  height: 400px;
  border-radius: var(--radius);
  border: 1px solid #ddd;
  box-shadow: var(--shadow);
  max-width: 100%;
}

/* ---------- ANIMATION ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-delay-1 { transition-delay: 0.1s; }
.fade-delay-2 { transition-delay: 0.2s; }
.fade-delay-3 { transition-delay: 0.3s; }

/* =======================================================
   RESPONSIVE DESIGN - OPTIMIZED
   ======================================================= */

@media (min-width: 1600px) {
  .container, .fullwidth-section .section-content {
    max-width: 1400px;
  }
  .header h1 {
    font-size: 60px;
  }
  .fullwidth-section h1,
  .fullwidth-section h2 {
    font-size: 40px;
  }
}

@media (max-width: 1024px) {
  .container,
  .fullwidth-section .section-content {
    padding: 0 15px;
  }
  .header {
    padding: 70px 15px;
  }
  .grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
  }
  .card {
    max-width: 280px;
    height: auto;
  }
  .productSwiper .card {
    width: 200px;
    padding: 12px;
  }
}

@media (max-width: 920px) {
  .hamburger {
    display: flex;
  }

  .navbar-container {
    padding: 10px 16px;
  }

  .navbar-links {
    flex-direction: column;
    width: 100%;
    background: #fff;
    border-top: 1px solid #ddd;
    display: none;
    margin-top: 8px;
    animation: slideDown 0.3s ease forwards;
  }

  .navbar-links.show {
    display: flex;
  }

  .navbar-links li {
    width: 100%;
    text-align: center;
  }

  .navbar-links .nav-link {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    font-size: 16px;
  }

  .navbar-links .nav-link:hover {
    background: #004b8d;
    color: white;
  }

  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .navbar-logo .logo {
    height: 60px;
  }
}

@media (max-width: 850px) {
  .header h1 {
    font-size: 34px;
  }
  .header p,
  .fullwidth-section p {
    font-size: 16px;
  }
  .fullwidth-section h1,
  .fullwidth-section h2 {
    font-size: 24px;
  }
  .card h3 {
    font-size: 14px;
    height: auto;
    min-height: 40px;
  }

  .swiper-button-prev,
  .swiper-button-next {
    display: none;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 15px;
    line-height: 1.5;
    overflow-x: hidden;
  }

  .container,
  .fullwidth-section .section-content {
    padding: 0 10px;
  }

  section {
    padding: 40px 10px;
  }

  h1, h2 {
    font-size: 20px;
    text-align: center;
  }

  p {
    font-size: 14px;
    text-align: center;
  }

  .header {
    padding: 50px 10px;
  }
  .header h1 {
    font-size: 26px;
  }
  .header p {
    font-size: 15px;
  }

  .grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    padding: 0 5px;
  }
  .card {
    width: 100%;
    height: auto;
    max-width: 100%;
  }
  .card img {
    height: 150px;
  }
  .card h3 {
    font-size: 14px;
    min-height: 35px;
  }

  .productSwiper {
    width: 100%;
    overflow: hidden;
    padding: 20px 0 40px;
  }
  .productSwiper .card {
    width: 90vw;
    max-width: 280px;
    height: auto;
    margin: 0 auto;
  }
  .swiper-button-next,
  .swiper-button-prev,
  .swiper-pagination {
    display: none !important;
  }

  form {
    width: 100%;
    max-width: 100%;
    padding: 0 5px;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  .footer-left,
  .footer-right {
    align-items: center;
    text-align: center;
    width: 100%;
  }
  .footer-logo {
    width: 80%;
    max-width: 280px;
    margin: 0 auto 15px;
  }
  .footer-right p {
    font-size: 13px;
  }

  #map {
    height: 300px;
    width: 100%;
    margin: 0 auto;
  }

  .modal-content {
    width: 95vw;
    max-width: 400px;
    padding: 20px;
    margin: 10% auto;
  }
}

@media (max-width: 600px) {
  .container,
  .fullwidth-section .section-content {
    padding: 0 8px !important;
  }

  .header {
    padding: 30px 8px;
  }
  .header h1,
  .fullwidth-section h1,
  .fullwidth-section h2 {
    font-size: 20px;
  }
  .fullwidth-section p,
  .header p {
    font-size: 13px;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 0 5px;
  }
  .card {
    max-width: 95vw;
    height: auto;
    padding: 15px;
    margin: 0 auto;
  }
  .card img {
    height: 140px;
  }

  .productSwiper {
    width: 100%;
    padding: 15px 0 30px;
  }
  .productSwiper .card {
    width: 85vw;
    max-width: 260px;
    padding: 10px;
    margin: 0 auto;
  }

  .color-dot {
    width: 12px;
    height: 12px;
  }

  .footer-content {
    flex-direction: column;
    gap: 15px;
  }
  .footer-left, .footer-right {
    text-align: center;
    align-items: center;
    margin: 0 auto;
    width: 100%;
  }
  .footer-logo {
    width: 85%;
    max-width: 250px;
  }

  #map {
    height: 250px;
  }

  .modal-content {
    width: 92vw;
    padding: 15px;
    margin: 15% auto;
  }

  .button {
    width: 90%;
    max-width: 280px;
    padding: 12px 15px;
    font-size: 14px;
    margin: 8px auto;
    display: block;
  }

  form {
    width: 100%;
    padding: 0;
  }
  input, textarea {
    padding: 12px;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .header {
    padding: 25px 5px;
  }
  .header h1 {
    font-size: 18px;
  }
  .header p {
    font-size: 12px;
  }
  .fullwidth-section h1,
  .fullwidth-section h2 {
    font-size: 18px;
  }
  .button {
    font-size: 13px;
    padding: 10px 12px;
    width: 95%;
  }
  .card {
    max-width: 98vw;
    padding: 10px;
  }
  .card img {
    height: 120px;
  }
  .color-dot {
    width: 10px;
    height: 10px;
  }
  .navbar-logo .logo {
    height: 50px;
  }
  .productSwiper .card {
    width: 90vw;
    max-width: 240px;
  }
  .footer-logo {
    width: 90%;
    max-width: 200px;
  }
}

img.product-img, .modal-content img {
  max-width: 100%;
  height: auto;
}

section, .fullwidth-section {
  overflow-x: hidden;
  box-sizing: border-box;
}

* {
  box-sizing: border-box;
}

*:before,
*:after {
  box-sizing: border-box;
}