/* ============================================
WORK PROCESS CARDS - RESPONSIVE DESIGN
Professional Card Layout & Alignment
============================================ */

:root {
  --card-bg: #1a1a1a;
  --card-border: #333333;
  --card-padding: 0.8rem;
  --card-gap: 2rem;
  --card-radius: 16px;
  --card-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  --card-hover-shadow: 0 15px 45px rgba(255, 0, 0, 0.25);
  --card-transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

/* ============================================
WORK PROCESS CONTAINER
============================================ */

.work-process-section {
  padding: 80px 0 !important;
}

.work-process-header {
  text-align: center;
  margin-bottom: 80px;
}

.work-process-header h2 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: #FFFFFF;
  letter-spacing: -1px;
}

.work-process-header .h5 {
  font-size: 1.3rem;
  color: #FF0000;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 30px;
}

.work-process-header p {
  font-size: 1.05rem;
  color: #C0C0C0;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ============================================
PRODUCT TAB CARDS
============================================ */

.product-tab {
    border-radius: var(--card-radius) !important;
    overflow: hidden;
    margin-bottom: 32px !important;
  background-color: var(--card-bg) !important;
  border: 1px solid var(--card-border) !important;
  border-radius: 12px !important;
  padding: var(--card-padding) !important;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: var(--card-transition);
  overflow: hidden;
  position: relative;
}

.product-tab a {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 12px;
}

.product-tab:hover {
  transform: translateY(-12px);
  box-shadow: var(--card-hover-shadow);
  border-color: #FF0000;
  background-color: rgba(26, 26, 26, 0.8);
}

.product-tab::before {
  /* Removed the top line pseudo-element to prevent it from overshadowing rounded corners */
  /* If you want a highlight, use a box-shadow instead, or a border with border-radius matching the card. */
}

.product-tab:hover::before {
  opacity: 1;
}

/* ============================================
PRODUCT IMAGE
============================================ */

.products-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #000000, #1a1a1a);
  flex-shrink: 0;
}

.products-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  display: block; /* remove inline spacing artifacts */
  border-radius: 16px !important; /* ensure image corners match the container */
  -webkit-mask-image: -webkit-radial-gradient(white, black); /* help anti-aliasing on some browsers */
}

.product-tab:hover .products-image img {
  transform: scale(1.08);
}

/* ============================================
PRODUCT HEADING & TEXT
============================================ */

.product-heading1,
.product-subheading {
  color: #FFFFFF !important;
  font-weight: 700 !important;
  font-size: 1.35rem !important;
  margin-bottom: 8px !important;
  line-height: 1.4 !important;
  text-align: center !important;
  letter-spacing: -0.5px;
}

.product-tab p {
  color: #C0C0C0 !important;
  font-size: 0.95rem !important;
  line-height: 1.7 !important;
  text-align: center !important;
  margin-bottom: 20px !important;
  flex-grow: 1;
  padding: 0 10px !important;
}

/* ============================================
GRID LAYOUT - RESPONSIVE
============================================ */

.work-process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--card-gap);
  width: 100%;
}

/* ============================================
BOOTSTRAP RESPONSIVE OVERRIDES
============================================ */

@media (min-width: 1200px) {
  .product-tab {
    padding: 2.5rem 2rem;
  }

  .products-image {
    height: 240px;
    margin-bottom: 30px;
  }

  .product-heading1,
  .product-subheading {
    font-size: 1.4rem;
    margin-bottom: 25px;
  }

  .product-tab p {
    font-size: 0.98rem;
    padding: 0 15px;
  }
}

@media (max-width: 1024px) {
  .work-process-header h2 {
    font-size: 2.2rem;
  }

  .product-tab {
    padding: 2rem;
  }

  .products-image {
    height: 210px;
    margin-bottom: 20px;
  }

  .product-heading1,
  .product-subheading {
    font-size: 1.2rem;
    margin-bottom: 18px;
  }

  .product-tab p {
    font-size: 0.92rem;
  }

  .work-process-section {
    padding: 60px 0 !important;
  }

  .work-process-header {
    margin-bottom: 60px;
  }
}

@media (max-width: 768px) {
  .work-process-header h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
  }

  .work-process-header .h5 {
    font-size: 1.1rem;
    margin-bottom: 20px;
  }

  .work-process-header p {
    font-size: 0.95rem;
    padding: 0 1rem;
  }

  .work-process-section {
    padding: 50px 0 !important;
  }

  .work-process-header {
    margin-bottom: 40px;
  }

  .product-tab {
    padding: 1.8rem 1.5rem;
    margin-bottom: 20px;
  }

  .products-image {
    height: 200px;
    margin-bottom: 18px;
    border-radius: 8px;
  }

  .product-heading1,
  .product-subheading {
    font-size: 1.15rem;
    margin-bottom: 15px;
  }

  .product-tab p {
    font-size: 0.9rem;
    padding: 0 8px;
    margin-bottom: 15px;
  }

  /* Grid layout for tablet */
  .row[class*="col-md-3"] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
  }

  .col-md-3 {
    min-width: 100% !important;
    flex: 0 0 calc(50% - 0.75rem) !important;
    max-width: calc(50% - 0.75rem) !important;
  }
}

@media (max-width: 576px) {
  .work-process-header h2 {
    font-size: 1.5rem;
    margin-bottom: 12px;
  }

  .work-process-header .h5 {
    font-size: 0.95rem;
    margin-bottom: 15px;
  }

  .work-process-header p {
    font-size: 0.9rem;
    padding: 0 0.75rem;
  }

  .work-process-section {
    padding: 40px 0 !important;
  }

  .work-process-header {
    margin-bottom: 30px;
  }

  .product-tab {
    margin-bottom: 0 !important;
    border-radius: 16px !important;
    overflow: hidden;
  }
  .products-image img {
    border-radius: 16px !important;
  }

  .products-image {
    height: 180px;
    margin-bottom: 15px;
  }

  .product-heading1,
  .product-subheading {
    font-size: 1.05rem;
    margin-bottom: 12px;
    line-height: 1.3;
  }

  .product-tab p {
    font-size: 0.85rem;
    padding: 0 5px;
    margin-bottom: 12px;
    line-height: 1.6;
  }

  /* Full width cards on mobile */
  .col-md-3,
  .col-sm-6 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin-bottom: 50px !important;
  }

  .product-tab:hover {
    transform: translateY(-8px);
  }
}

/* ============================================
CARD ALIGNMENT UTILITIES
============================================ */

.card-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-header {
  flex-shrink: 0;
}

.card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-footer {
  flex-shrink: 0;
  margin-top: auto;
}

/* ============================================
ANIMATION EFFECTS
============================================ */

.product-tab {
  animation: cardFadeIn 0.6s ease-out forwards;
  opacity: 0;
}

.product-tab:nth-child(1) {
  animation-delay: 0.1s;
}

.product-tab:nth-child(2) {
  animation-delay: 0.2s;
}

.product-tab:nth-child(3) {
  animation-delay: 0.3s;
}

.product-tab:nth-child(4) {
  animation-delay: 0.4s;
}

@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
ACCESSIBILITY
============================================ */

@media (prefers-reduced-motion: reduce) {
  .product-tab {
    animation: none;
    opacity: 1;
  }

  .product-tab:hover {
    transform: none;
  }

  .products-image img {
    transition: none;
  }

  .product-tab:hover .products-image img {
    transform: none;
  }
}

/* ============================================
HIGH CONTRAST MODE
============================================ */

@media (prefers-contrast: more) {
  .product-tab {
    border-width: 2px;
    border-color: #FFFFFF;
  }

  .product-tab::before {
    height: 6px;
  }

  .product-heading1,
  .product-subheading {
    font-weight: 900;
  }
}

/* ============================================
PRINT STYLES
============================================ */

@media print {
  .product-tab {
    page-break-inside: avoid;
    box-shadow: none;
    border: 1px solid #333;
  }

  .product-tab:hover {
    transform: none;
    box-shadow: none;
  }

  .products-image {
    max-height: 200px;
  }
}
