/* ============================================================
   PT. Dwi Sakti Indotech — Custom Styles
   Source: static-html/styles.css
   DO NOT mix with Laravel/Vite default styles.
   ============================================================ */

/* ---- Smooth Scroll ---------------------------------------- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

/* ---- Base Typography -------------------------------------- */
body {
  font-family: "Open Sans", "Roboto", "Segoe UI", Helvetica, Arial, sans-serif;
  background-color: #f8fafc;
  color: #333;
}

h1, h2, h3, h4, h5, h6, .heading-font {
  font-family: "Montserrat", sans-serif;
}

/* ---- Custom Scrollbar ------------------------------------- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
}
::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
}

/* ---- Hide Scrollbar (for horizontal carousels) ------------ */
.hide-scrollbar::-webkit-scrollbar {
  display: none;
}
.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ---- Bubble Container (About Section) --------------------- */
.bubble-container {
  position: relative;
  background-color: #0a3068;
  border-radius: 40px;
  padding: 4rem;
}
.bubble-container::after {
  content: "";
  position: absolute;
  bottom: -30px;
  left: 10%;
  border-width: 30px 30px 0 0;
  border-style: solid;
  border-color: #0a3068 transparent transparent transparent;
}

/* ---- Industry Card ---------------------------------------- */
.industry-card {
  background-color: white;
  border-radius: 9999px;
  border: 4px solid #facc15;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* ---- Separator Line --------------------------------------- */
.separator-line {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1rem 0;
}
.separator-line::before,
.separator-line::after {
  content: "";
  height: 2px;
  width: 100px;
  background: linear-gradient(to right, transparent, #0a3068, transparent);
}
.separator-line::after {
  background: linear-gradient(to right, transparent, #e30613, transparent);
}

/* ---- Diamond Shapes --------------------------------------- */
.diamond {
  width: 10px;
  height: 10px;
  transform: rotate(45deg);
}
.diamond-blue {
  background-color: #0f3a82;
}
.diamond-red {
  background-color: #e63946;
}
.diamond-outline {
  border: 2px solid #e31837;
}

/* ---- Dark Blue Swoosh Overlay ----------------------------- */
.dark-blue-swoosh {
  background: linear-gradient(
    135deg,
    rgba(8, 28, 85, 0) 40%,
    rgba(8, 28, 85, 1) 60%
  );
  pointer-events: none;
}

/* ---- Glass Card Effects ----------------------------------- */
.glass-card {
  background: rgba(91, 110, 246, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}
.glass-card-alt {
  background: rgba(78, 96, 234, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* ---- Hover Lift Effect ------------------------------------ */
.hover-lift {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}
.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px 0 rgba(0, 0, 0, 0.4);
}

/* ---- Layered Card (depth effect) -------------------------- */
.layered-card-base {
  position: relative;
}
.layered-card-base::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 12px;
  right: -12px;
  bottom: 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: inherit;
  z-index: -1;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}
.hover-lift:hover::before {
  top: -8px;
  left: 8px;
  right: -8px;
  bottom: 8px;
}

/* ---- Section Title (with left red bar) -------------------- */
.section-title-wrapper {
  margin-top: 5rem;
  margin-bottom: 3rem;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 1.25rem;
}
.section-title {
  color: #0f172a;
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  position: relative;
  padding-left: 1.25rem;
  line-height: 1.2;
}
.section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background-color: #dc2626;
}
@media (min-width: 768px) {
  .section-title {
    font-size: 1.5rem;
  }
}

/* ---- Card Container --------------------------------------- */
.card-container {
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  padding: 0.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fff;
  overflow: hidden;
  box-shadow:
    0 1px 3px 0 rgb(0 0 0 / 0.1),
    0 1px 2px -1px rgb(0 0 0 / 0.1);
}
.card-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 0.25rem;
}

/* ---- Label Container -------------------------------------- */
.label-container {
  background-color: #f1f5f9;
  border-left: 4px solid #002366;
  border-radius: 0.25rem;
  padding: 0.75rem 1.5rem;
  text-align: left;
  font-weight: bold;
  color: #1e293b;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  letter-spacing: 0.025em;
  font-size: 1.125rem;
}

/* ---- Service Card ----------------------------------------- */
.service-card {
  background-color: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 2rem;
  margin-bottom: 2.5rem;
  box-shadow:
    0 4px 6px -1px rgb(0 0 0 / 0.1),
    0 2px 4px -2px rgb(0 0 0 / 0.1);
  transition: box-shadow 0.3s ease;
}
.service-card:hover {
  box-shadow:
    0 10px 15px -3px rgb(0 0 0 / 0.1),
    0 4px 6px -4px rgb(0 0 0 / 0.1);
}

/* ---- Grid Utilities --------------------------------------- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

/* ---- Hero Banner ------------------------------------------ */
.hero-banner {
  background-color: #002366;
  color: white;
  text-align: center;
  padding: 3rem 2rem;
  position: relative;
  overflow: hidden;
}
.hero-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.3;
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 1;
}
.hero-title {
  color: #facc15;
  font-weight: bold;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}
.hero-subtitle {
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
}

/* ---- Card Label / Tab Header ------------------------------ */
.card-label {
  position: absolute;
  top: -16px;
  left: 24px;
  background: #ef4444;
  color: white;
  padding: 4px 16px;
  border-radius: 8px;
  font-weight: bold;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 10px rgba(239, 68, 68, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ---- Badge Blue ------------------------------------------- */
.badge-blue {
  background-color: #062974;
  color: white;
  padding: 0.25rem 1rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: -0.5rem;
  position: relative;
  z-index: 10;
}

/* ---- Product Card ----------------------------------------- */
.product-card {
  border: 1px solid #93c5fd;
  border-radius: 0.75rem;
  padding: 1rem;
  background-color: white;
  position: relative;
  margin-top: 0.5rem;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.product-card:hover {
  box-shadow:
    0 8px 16px -2px rgba(0, 0, 0, 0.15),
    0 4px 6px -2px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

/* ---- Arrow Icon ------------------------------------------- */
.arrow-icon {
  background-color: #062974;
  color: white;
  border-radius: 0.25rem;
  padding: 0.25rem;
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
}

/* ---- Section Background ----------------------------------- */
.section-bg-light {
  background-color: #e2e8f0;
}

/* ---- Contact Card ----------------------------------------- */
.contact-card {
  border: 1px solid #cbd5e1;
  border-radius: 0.75rem;
  padding: 1.5rem;
  background-color: white;
  text-align: center;
  width: 100%;
  max-width: 300px;
}

/* ---- Divider Line ----------------------------------------- */
.divider-line {
  position: relative;
  width: 150px;
  height: 2px;
  margin: 20px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.divider-line::before,
.divider-line::after {
  content: "";
  position: absolute;
  width: 40%;
  height: 1px;
  top: 50%;
}
.divider-line::before {
  left: 0;
  background: linear-gradient(to right, transparent, #0f3a82);
}
.divider-line::after {
  right: 0;
  background: linear-gradient(to left, transparent, #e63946);
}

/* ---- Divider Diamonds ------------------------------------- */
.divider-diamonds {
  display: flex;
  gap: 5px;
  z-index: 1;
}

/* ---- Category Box ----------------------------------------- */
.category-box {
  border: 3px solid #0f3a82;
}

/* ---- Cert Frame ------------------------------------------- */
.cert-frame {
  border: 12px solid #0033a0;
  border-radius: 20px;
  padding: 10px;
  position: relative;
}
.cert-frame::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 10%;
  right: 10%;
  height: 12px;
  background: white;
}
.cert-frame::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 10%;
  right: 10%;
  height: 12px;
  background: white;
}

/* ---- Diamond Divider -------------------------------------- */
.diamond-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.diamond-divider::before,
.diamond-divider::after {
  content: "";
  height: 1px;
  background-color: #0033a0;
  width: 40px;
}

/* ---- Client Box ------------------------------------------- */
.client-box {
  border-radius: 0.75rem;
  border: 3px solid #b0bbd5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  aspect-ratio: 16 / 9;
  background-color: white;
}
.client-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* ---- Decorative Line -------------------------------------- */
.decorative-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  margin-bottom: 3rem;
}
.decorative-line::before,
.decorative-line::after {
  content: "";
  height: 2px;
  width: 150px;
}
.decorative-line::before {
  background-color: #003366;
}
.decorative-line::after {
  background-color: #e31837;
}

/* ---- Marquee Animation ------------------------------------ */
.marquee-container {
  display: flex;
  overflow: hidden;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}
.marquee-content {
  flex-shrink: 0;
  display: flex;
  justify-content: space-around;
  min-width: 100%;
  animation: scrollMarquee 30s linear infinite;
}
.marquee-container:hover .marquee-content {
  animation-play-state: paused;
}
@keyframes scrollMarquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

/* ---- Fade In Animation ------------------------------------ */
.animate-fade-in {
  animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---- Shared Section Typography ---------------------------- */
.section-heading {
  font-family: "Montserrat", sans-serif;
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 700;
  color: #1e3a8a;
  margin-bottom: 1rem;
}
@media (min-width: 768px) {
  .section-heading {
    font-size: 2.25rem;
    line-height: 2.5rem;
  }
}

.section-subtitle {
  color: #4b5563;
  font-weight: 400;
  font-size: 0.875rem;
  line-height: 1.625;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 768px) {
  .section-subtitle {
    font-size: 1rem;
    line-height: 1.5rem;
  }
}

/* ---- Product Detail Modal (Zoom & Drag) ------------------- */
#product-modal {
  transition: opacity 0.2s ease;
}
#product-modal.hidden {
  display: none;
}
#modal-image-wrapper {
  overflow: hidden;
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
}
#modal-image-wrapper.grabbing {
  cursor: grabbing;
}
#modal-image-wrapper.grabbable {
  cursor: grab;
}
#modal-img {
  transform-origin: center center;
  transition: transform 0.15s ease;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  margin: auto;
}
#modal-img.no-transition {
  transition: none;
}
