/* ==========================================================================
   PRODUCT PAGE STYLESHEET (product.css)
   Featured Product Cards with Rich Front Showcase & Slide-Up Panel Animation
   ========================================================================== */

/* Section Badge */
.section-badge {
  display: inline-block;
  background: rgba(35, 91, 243, 0.1) !important;
  color: var(--secondary-blue, #235bf3) !important;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  padding: 6px 18px;
  border-radius: 50px;
  text-transform: uppercase;
  margin-bottom: 16px;
  border: 1px solid rgba(35, 91, 243, 0.25) !important;
}

/* -------------------- Products Hero -------------------- */
.products-hero {
  text-align: center;
  background: linear-gradient(180deg, #FFFFFF 0%, #F1F5F9 100%) !important;
  border-bottom: 1px solid var(--border-color, #E2E8F0);
  padding-top: 60px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.split-heading {
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  display: flex;
  font-weight: 800;
  justify-content: center;
  gap: 12px;
  color: var(--dark-navy, #0F172A) !important;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.split-heading span {
  color: var(--dark-navy, #0F172A) !important;
  opacity: 1 !important;
}

.split-heading .text-left {
  color: var(--dark-navy, #0F172A) !important;
  opacity: 1 !important;
  animation: slideLeft 0.8s ease forwards;
}

.split-heading .text-right {
  color: var(--secondary-blue, #235bf3) !important;
  opacity: 1 !important;
  animation: slideRight 0.8s ease forwards;
}

.about-lead {
  color: var(--body-text, #475569) !important;
  max-width: 680px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.7;
}

@keyframes slideLeft {
  from {
    transform: translateX(40px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideRight {
  from {
    transform: translateX(-40px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* -------------------- Products Grid Section -------------------- */
.products-grid-section {
  padding: 60px 20px 100px;
  background: var(--light-bg, #F1F5F9);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 1120px;
  margin: 0 auto;
}

/* Product Card Container */
.product-card {
  position: relative;
  background: linear-gradient(180deg, #131b2e 0%, #0b0f19 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 26px !important;
  padding: 0 !important;
  min-height: 480px;
  height: 480px;
  overflow: hidden !important;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
  cursor: pointer;
  outline: none;
  transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  scroll-margin-top: 120px;
}

.product-card:hover,
.product-card.active,
.product-card:target,
.product-card:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35), 0 0 25px rgba(35, 91, 243, 0.25) !important;
}

/* Accent Card Borders on Hover */
.card-emerald:hover, .card-emerald.active { border-color: #10b981 !important; }
.card-blue:hover, .card-blue.active { border-color: #3b82f6 !important; }
.card-teal:hover, .card-teal.active { border-color: #0ea5e9 !important; }
.card-purple:hover, .card-purple.active { border-color: #8b5cf6 !important; }
.card-indigo:hover, .card-indigo.active { border-color: #6366f1 !important; }
.card-cyan:hover, .card-cyan.active { border-color: #06b6d4 !important; }
.card-amber:hover, .card-amber.active { border-color: #f59e0b !important; }

/* -------------------- Front Main Content -------------------- */
.product-card-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  padding: 26px 22px 22px;
  text-align: center;
  background: transparent !important;
  transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
  border-radius: 26px;
}

.product-card:hover .product-card-main,
.product-card.active .product-card-main,
.product-card:target .product-card-main,
.product-card:focus-within .product-card-main {
  opacity: 0;
  transform: translateY(-24px) scale(0.96);
  pointer-events: none;
}

/* Topbar: Category Tag + Platform Badge */
.product-card-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 10px;
}

.product-category-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 50px;
  backdrop-filter: blur(4px);
}

.tag-emerald { background: rgba(16, 185, 129, 0.22); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.45); }
.tag-blue { background: rgba(59, 130, 246, 0.22); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.45); }
.tag-teal { background: rgba(14, 165, 233, 0.22); color: #38bdf8; border: 1px solid rgba(14, 165, 233, 0.45); }
.tag-purple { background: rgba(139, 92, 246, 0.22); color: #c084fc; border: 1px solid rgba(139, 92, 246, 0.45); }
.tag-indigo { background: rgba(99, 102, 241, 0.22); color: #818cf8; border: 1px solid rgba(99, 102, 241, 0.45); }
.tag-cyan { background: rgba(6, 182, 212, 0.22); color: #22d3ee; border: 1px solid rgba(6, 182, 212, 0.45); }
.tag-amber { background: rgba(245, 158, 11, 0.22); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.45); }

.product-badge-platform {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.12);
  padding: 4px 12px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(4px);
}

/* Card Body (Vertically Centered Content) */
.product-card-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: auto 0;
  width: 100%;
  padding: 8px 0;
}

/* Clearly Visible Product Logo Box */
.product-img-box {
  width: 116px;
  height: 116px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 10px;
  margin: 0 auto 16px auto;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
  backdrop-filter: blur(10px);
}

.product-card:hover .product-img-box {
  transform: scale(1.08);
}

.product-card-img {
  width: 100%;
  height: 100%;
  max-width: 96px;
  max-height: 96px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.45));
}

/* Accent Glows for Visible Logo Box */
.card-emerald .product-img-box {
  background: radial-gradient(circle, rgba(16, 185, 129, 0.22) 0%, rgba(255, 255, 255, 0.05) 75%);
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35), 0 0 28px rgba(16, 185, 129, 0.3);
}

.card-blue .product-img-box {
  background: radial-gradient(circle, rgba(59, 130, 246, 0.22) 0%, rgba(255, 255, 255, 0.05) 75%);
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35), 0 0 28px rgba(59, 130, 246, 0.3);
}

.card-teal .product-img-box {
  background: radial-gradient(circle, rgba(14, 165, 233, 0.22) 0%, rgba(255, 255, 255, 0.05) 75%);
  border-color: rgba(14, 165, 233, 0.5);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35), 0 0 28px rgba(14, 165, 233, 0.3);
}

.card-indigo .product-img-box {
  background: radial-gradient(circle, rgba(99, 102, 241, 0.22) 0%, rgba(255, 255, 255, 0.05) 75%);
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35), 0 0 28px rgba(99, 102, 241, 0.3);
}

.card-cyan .product-img-box {
  background: radial-gradient(circle, rgba(6, 182, 212, 0.22) 0%, rgba(255, 255, 255, 0.05) 75%);
  border-color: rgba(6, 182, 212, 0.5);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35), 0 0 28px rgba(6, 182, 212, 0.3);
}

.card-amber .product-img-box {
  background: radial-gradient(circle, rgba(245, 158, 11, 0.22) 0%, rgba(255, 255, 255, 0.05) 75%);
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35), 0 0 28px rgba(245, 158, 11, 0.3);
}

/* Product Title */
.product-card-title {
  margin: 0 0 10px !important;
  font-size: 1.55rem !important;
  font-weight: 800 !important;
  color: #FFFFFF !important;
  letter-spacing: -0.015em;
  line-height: 1.25;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85);
}

/* Tagline / Subtitle */
.product-card-tagline {
  font-size: 0.92rem;
  line-height: 1.52;
  color: #f1f5f9 !important;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.75);
  margin: 0 0 16px;
  max-width: 95%;
}

/* Feature Tag Pills */
.product-card-features {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-bottom: 0;
}

.feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 5px 12px;
  border-radius: 8px;
  backdrop-filter: blur(4px);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.feature-tag i {
  color: #38bdf8;
  font-size: 0.88rem;
}

/* Bottom Hint Button */
.product-card-hint {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 14px;
}

.product-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #FFFFFF !important;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 6px 18px;
  border-radius: 50px;
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: all 0.3s ease;
}

.product-card:hover .product-hint {
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}

/* -------------------- Slide-Up Panel Animation -------------------- */
.product-slideup {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 34px 28px 28px;
  box-sizing: border-box;
  background: linear-gradient(180deg, #102C57 0%, #0F172A 100%);
  border-radius: 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 5;
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.48s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
  overflow: hidden;
}

.product-card:hover .product-slideup,
.product-card.active .product-slideup,
.product-card:target .product-slideup,
.product-card:focus-within .product-slideup {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Custom Scrollbar for Slide-Up */
.product-slideup::-webkit-scrollbar {
  width: 5px;
}
.product-slideup::-webkit-scrollbar-track {
  background: transparent;
}
.product-slideup::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.55);
  border-radius: 4px;
}

.product-slideup-inner {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: auto 0;
}

/* Mini Logo Badge inside Slide-up */
.product-slideup-badge {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: #FFFFFF !important;
  border: 2px solid rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  margin-bottom: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 20px rgba(56, 189, 248, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover .product-slideup-badge {
  transform: scale(1.06);
}

/* Accent Glows for Mini Logo Badges */
.card-emerald .product-slideup-badge { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 20px rgba(16, 185, 129, 0.45); }
.card-blue .product-slideup-badge { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 20px rgba(59, 130, 246, 0.45); }
.card-teal .product-slideup-badge { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 20px rgba(14, 165, 233, 0.45); }
.card-purple .product-slideup-badge { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 20px rgba(139, 92, 246, 0.45); }
.card-indigo .product-slideup-badge { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 20px rgba(99, 102, 241, 0.45); }
.card-cyan .product-slideup-badge { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 20px rgba(6, 182, 212, 0.45); }
.card-amber .product-slideup-badge { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 20px rgba(245, 158, 11, 0.45); }

.product-slideup-mini-img {
  width: 50px !important;
  height: 50px !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain;
  margin-bottom: 0 !important;
  display: block;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.15));
}

.product-slideup-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #FFFFFF !important;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

/* Description Text */
.product-slideup-desc {
  font-size: 0.92rem;
  line-height: 1.62;
  color: #e2e8f0 !important;
  margin: 0 0 20px;
  max-width: 96%;
}

/* Action Button */
.product-btn-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 28px;
  border-radius: 50px;
  background: var(--secondary-blue, #235bf3);
  color: #FFFFFF !important;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none !important;
  box-shadow: 0 4px 18px rgba(35, 91, 243, 0.45);
  transition: all 0.25s ease;
  white-space: nowrap;
}

.product-btn-action:hover {
  background: var(--primary-blue, #102C57);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16, 44, 87, 0.65);
}

.product-btn-action i {
  transition: transform 0.25s ease;
}

.product-btn-action:hover i {
  transform: translateX(3px);
}

/* -------------------- Responsive Design -------------------- */
@media (min-width: 821px) {
  /* Center the last card ONLY if there is an odd number of cards */
  .product-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: 520px;
    width: 100%;
    margin: 0 auto;
  }
}

@media (max-width: 820px) {
  .products-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 520px;
  }

  .product-card {
    min-height: 470px;
    height: 470px;
  }
}

@media (max-width: 575.98px) {
  .products-grid-section {
    padding: 10px 16px 60px;
  }

  .product-card {
    min-height: 450px;
    height: 450px;
    border-radius: 22px !important;
  }

  .product-card-main {
    padding: 22px 18px 18px;
  }

  .product-img-box {
    width: 90px;
    height: 90px;
    padding: 12px;
    margin: 0 auto 12px auto;
    border-radius: 18px;
  }

  .product-card-title {
    font-size: 1.3rem !important;
  }

  .product-card-tagline {
    font-size: 0.84rem;
    margin-bottom: 12px;
  }

  .feature-tag {
    font-size: 0.72rem;
    padding: 3px 8px;
  }

  .product-hint {
    font-size: 0.78rem;
    padding: 5px 14px;
  }

  .product-slideup {
    padding: 24px 18px 20px;
    border-radius: 22px !important;
  }

  .product-slideup-badge {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    padding: 8px;
    margin-bottom: 12px;
  }

  .product-slideup-mini-img {
    width: 42px !important;
    height: 42px !important;
  }

  .product-slideup-title {
    font-size: 1.15rem;
  }

  .product-slideup-desc {
    font-size: 0.88rem;
    line-height: 1.55;
    margin-bottom: 16px;
  }

  .product-btn-action {
    padding: 8px 22px;
    font-size: 0.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-card,
  .product-card-main,
  .product-img-box,
  .product-slideup {
    transition: none !important;
    animation: none !important;
  }
}
