/* ============================================
   Products & Services Section
   Color scheme adapted from original site:
   - Accent: #df1f29 (original site red)
   - Dark BG: #151515
   - Card BG: #1a1a1a
   - Text: #ffffff, #999999
   ============================================ */

/* Section base */
.products-section {
  position: relative;
  z-index: 5;
  background-color: #151515;
  padding: 100px 40px 80px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

/* Decorative background elements */
.products-section::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(223, 31, 41, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.products-section::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -150px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(223, 31, 41, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.products-section__inner {
  max-width: 1230px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Header area */
.products-section__header {
  text-align: center;
  margin-bottom: 70px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.products-section__header.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.products-section__label {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.25em;
  color: #df1f29;
  text-transform: uppercase;
  margin-bottom: 16px;
  position: relative;
  padding: 0 20px;
}

.products-section__label::before,
.products-section__label::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 30px;
  height: 1px;
  background: #df1f29;
}

.products-section__label::before {
  left: -20px;
}

.products-section__label::after {
  right: -20px;
}

.products-section__title {
  font-size: calc(32px + 1.5vw);
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 20px;
  line-height: 1.3;
  letter-spacing: 0.05em;
}

.products-section__subtitle {
  font-size: calc(14px + 0.3vw);
  font-weight: 300;
  color: #999999;
  line-height: 1.8;
  max-width: 600px;
  margin: 0 auto;
}

/* Cards grid */
.products-section__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* Individual card */
.product-card {
  background: #1a1a1a;
  border-radius: 12px;
  padding: 40px 32px 36px;
  position: relative;
  overflow: hidden;
  cursor: default;
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1),
              box-shadow 0.5s cubic-bezier(0.23, 1, 0.32, 1),
              background 0.4s ease;
  opacity: 0;
  transform: translateY(50px);
}

.product-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Card top accent line */
.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #df1f29, #ff4d4d);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.product-card:hover::before {
  transform: scaleX(1);
}

/* Card hover glow */
.product-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 0%, rgba(223, 31, 41, 0.06) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.product-card:hover::after {
  opacity: 1;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(223, 31, 41, 0.08);
  background: #1e1e1e;
}

/* Card icon */
.product-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, #df1f29, #ff4d4d);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1),
              box-shadow 0.4s ease;
}

.product-card__icon svg {
  color: #ffffff;
}

.product-card:hover .product-card__icon {
  transform: scale(1.08);
  box-shadow: 0 8px 25px rgba(223, 31, 41, 0.3);
}

/* Floating particle effect behind icon */
.product-card__icon::after {
  content: '';
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(223, 31, 41, 0.15) 0%, transparent 70%);
  animation: iconPulse 3s ease-in-out infinite;
  z-index: -1;
}

@keyframes iconPulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.3); opacity: 0.2; }
}

/* Card title */
.product-card__title {
  font-size: 22px;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 16px;
  position: relative;
  z-index: 1;
  transition: color 0.3s ease;
}

.product-card:hover .product-card__title {
  color: #ffffff;
}

/* Card description */
.product-card__desc {
  font-size: 15px;
  font-weight: 300;
  color: #999999;
  line-height: 1.8;
  margin: 0 0 28px;
  position: relative;
  z-index: 1;
}

/* Card CTA link */
.product-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #df1f29;
  text-decoration: none;
  position: relative;
  z-index: 1;
  transition: gap 0.3s ease, color 0.3s ease;
}

.product-card__link svg {
  transition: transform 0.3s ease;
}

.product-card__link:hover {
  gap: 12px;
  color: #ff4d4d;
}

.product-card__link:hover svg {
  transform: translateX(4px);
}

/* Scroll hint */
.products-section__scroll-hint {
  margin-top: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.4;
  transition: opacity 0.3s ease;
  z-index: 3;
}

.products-section__scroll-hint:hover {
  opacity: 0.8;
}

.products-section__scroll-hint span {
  font-size: 11px;
  color: #666666;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.scroll-mouse {
  width: 22px;
  height: 34px;
  border: 2px solid #666666;
  border-radius: 12px;
  position: relative;
  display: flex;
  justify-content: center;
}

.scroll-mouse__wheel {
  width: 3px;
  height: 8px;
  background: #df1f29;
  border-radius: 2px;
  margin-top: 6px;
  animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(10px); }
}

/* ============================================
   Responsive: Tablet (768px - 1024px)
   ============================================ */
@media (max-width: 1024px) {
  .products-section {
    padding: 80px 30px 70px;
  }

  .products-section__header {
    margin-bottom: 50px;
  }

  .products-section__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .product-card {
    padding: 32px 24px 28px;
  }

  .product-card__icon {
    width: 48px;
    height: 48px;
    margin-bottom: 22px;
  }

  .product-card__title {
    font-size: 20px;
  }

  .product-card__desc {
    font-size: 14px;
  }
}

/* ============================================
   Responsive: Mobile (< 768px)
   ============================================ */
@media (max-width: 767px) {
  .products-section {
    padding: 60px 20px 100px;
    min-height: auto;
  }

  .products-section__header {
    margin-bottom: 40px;
  }

  .products-section__label {
    font-size: 11px;
    letter-spacing: 0.2em;
  }

  .products-section__title {
    font-size: 28px;
  }

  .products-section__subtitle {
    font-size: 14px;
  }

  .products-section__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .product-card {
    padding: 28px 24px 24px;
  }

  .product-card__icon {
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
  }

  .product-card__title {
    font-size: 19px;
    margin-bottom: 12px;
  }

  .product-card__desc {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .products-section__scroll-hint {
    display: none;
  }
}

/* ============================================
   Animations for staggered card reveal
   ============================================ */
@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-card.is-visible {
  animation: cardFadeIn 0.7s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

/* Header animation */
@keyframes headerFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.products-section__header.is-visible {
  animation: headerFadeIn 0.8s ease forwards;
}
