/* Qwantum Security section (homepage) — reduced port of the live
   homepage section. Styling copied from Content/home.css (section, cards, CTA)
   and Content/qwantum.css (buttons), scoped to #magtek-home so it cannot
   affect the rest of the site. rem values resolved at the site's 10px root and
   written as px. */

#magtek-home .qwantum-section {
  padding: 60px 0;
  background: linear-gradient(135deg, #0a1628 0%, #0f1b2e 25%, #162845 50%, #1a2f4d 75%, #1e3a5f 100%);
  position: relative;
  overflow: hidden;
  color: #fff;
  z-index: 2;
}

#magtek-home .qwantum-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(96, 165, 250, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 40% 20%, rgba(147, 197, 253, 0.025) 0%, transparent 50%),
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="quantum-grid-home" width="25" height="25" patternUnits="userSpaceOnUse"><path d="M 25 0 L 0 0 0 25" fill="none" stroke="rgba(59,130,246,0.06)" stroke-width="0.5"/><circle cx="0" cy="0" r="1.5" fill="rgba(96,165,250,0.1)"/><circle cx="25" cy="25" r="1.5" fill="rgba(96,165,250,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23quantum-grid-home)"/></svg>');
  opacity: 0.3;
  z-index: 1;
  pointer-events: none;
}

#magtek-home .qwantum-background {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

#magtek-home .qwantum-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="qwantum-pattern" width="40" height="40" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="%23d21242" opacity="0.1"/><circle cx="20" cy="20" r="3" fill="none" stroke="%23d21242" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23qwantum-pattern)"/></svg>');
  opacity: 0.4;
}

#magtek-home .qwantum-content {
  position: relative;
  z-index: 2;
}

#magtek-home .qwantum-logo-container {
  margin-bottom: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
}

#magtek-home .qwantum-logo {
  max-width: 280px;
  height: auto;
  filter: drop-shadow(0 4px 20px rgba(59, 130, 246, 0.3));
  transition: transform 0.3s ease, filter 0.3s ease;
}

#magtek-home .qwantum-logo:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 8px 30px rgba(59, 130, 246, 0.5));
}

#magtek-home .qwantum-section .section-title {
  color: #fff;
}

#magtek-home .qwantum-section .section-subtitle {
  color: #fff;
}

#magtek-home .product-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 20px;
}

/* Give the cards real separation from the header (the live page had feature
   cards + stats in between; the reduced version does not). */
#magtek-home .qwantum-products {
  margin-top: 48px;
}

#magtek-home .qwantum-section .product-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(96, 165, 250, 0.2);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

#magtek-home .qwantum-section .product-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(96, 165, 250, 0.4);
  transform: translateY(-8px);
  box-shadow: 0 12px 35px rgba(59, 130, 246, 0.15);
}

#magtek-home .qwantum-section .product-card.featured {
  border: 2px solid rgba(59, 130, 246, 0.5);
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
}

#magtek-home .product-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

#magtek-home .product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
}

#magtek-home .product-content {
  padding: 20px;
}

#magtek-home .product-content h3 {
  font-size: 25px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 10px;
}

#magtek-home .product-content p {
  color: #fff;
  line-height: 1.6;
  margin: 0 0 15px;
  font-size: 15px;
}

#magtek-home .qwantum-cta {
  margin-top: 40px;
}

#magtek-home .qwantum-note {
  font-size: 15px;
  color: #fff;
  font-style: italic;
  margin-top: 18px;
}

/* Button (from qwantum.css) */
#magtek-home .qwantum-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 56px;
  min-height: 56px;
  padding: 0 28px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  font-family: inherit;
  border-radius: 12px;
  border-width: 2px;
  border-style: solid;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translate3d(0, 0, 0);
}

#magtek-home .qwantum-btn-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #fff;
  border-color: rgba(37, 99, 235, 0.8);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 -1px 0 rgba(0, 0, 0, 0.2) inset, 0 4px 8px rgba(0, 0, 0, 0.12), 0 8px 16px rgba(0, 0, 0, 0.08);
}

#magtek-home .qwantum-btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.15) 50%, transparent 100%);
  transition: left 0.5s ease;
  z-index: 0;
}

#magtek-home .qwantum-btn-primary:hover,
#magtek-home .qwantum-btn-primary:focus {
  background: linear-gradient(135deg, #4f96ff 0%, #3b82f6 100%);
  color: #fff;
  text-decoration: none;
  transform: translate3d(0, -3px, 0);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.3) inset, 0 -1px 0 rgba(0, 0, 0, 0.25) inset, 0 6px 12px rgba(0, 0, 0, 0.15), 0 12px 24px rgba(0, 0, 0, 0.12);
}

#magtek-home .qwantum-btn-primary:hover::before {
  left: 100%;
}

#magtek-home .qwantum-btn-primary:active {
  transform: translate3d(0, 1px, 0);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.15) inset, 0 2px 4px rgba(0, 0, 0, 0.15) inset, 0 2px 4px rgba(59, 130, 246, 0.15);
}

#magtek-home .qwantum-btn-primary span {
  position: relative;
  z-index: 1;
}

@media (max-width: 767px) {
  #magtek-home .qwantum-logo {
    max-width: 200px;
  }

  #magtek-home .qwantum-logo-container {
    margin-bottom: 20px;
  }

  #magtek-home .product-showcase {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  #magtek-home .qwantum-products {
    margin-top: 32px;
  }

  #magtek-home .product-image {
    height: 180px;
  }

  #magtek-home .product-content h3 {
    font-size: 20px;
  }

  #magtek-home .product-content p {
    font-size: 16px;
  }
}
