/* ===================================
   PRODUCTS PAGE STYLES
   ===================================

   TABLE OF CONTENTS:
   1. Products Hero Section
   2. Product Navigation
   3. Product Section Layout
   4. Product Header
   5. Product Introduction
   6. Product Details & Specs
   7. Features List
   8. Applications Grid
   9. Customization CTA
   10. Responsive Design

   =================================== */

/* ===================================
   1. PRODUCTS HERO SECTION
   =================================== */

.products-hero {
  position: relative;
  min-height: 60vh;
  background: var(--bg-black);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: calc(var(--header-height) * -1);
  padding-top: var(--header-height);
}

/* Metal texture overlay */
.products-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(255, 255, 255, 0.03) 2px,
      rgba(255, 255, 255, 0.03) 4px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 2px,
      rgba(255, 255, 255, 0.03) 2px,
      rgba(255, 255, 255, 0.03) 4px
    );
  pointer-events: none;
  opacity: 0.5;
}

/* Diagonal accent stripe */
.products-hero::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -40%;
  width: 100%;
  height: 200%;
  background: linear-gradient(
    135deg,
    transparent 35%,
    rgba(192, 57, 43, 0.1) 45%,
    rgba(192, 57, 43, 0.25) 50%,
    rgba(192, 57, 43, 0.1) 55%,
    transparent 65%
  );
  transform: rotate(-15deg);
  pointer-events: none;
  animation: diagonalFlash 8s ease-in-out infinite;
}

@keyframes diagonalFlash {
  0% {
    transform: rotate(-15deg) translateX(-30%) translateY(-10%);
    opacity: 0;
  }
  15% {
    opacity: 0.4;
  }
  50% {
    transform: rotate(-15deg) translateX(30%) translateY(10%);
    opacity: 0.8;
  }
  85% {
    opacity: 0.4;
  }
  100% {
    transform: rotate(-15deg) translateX(-30%) translateY(-10%);
    opacity: 0;
  }
}

.products-hero__overlay {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  padding: 4rem 1rem;
}

.products-hero__title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  color: var(--bg-color);
  margin: 0 0 1.5rem 0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.products-hero__subtitle {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: rgba(255, 255, 255, 0.9);
  max-width: 700px;
  margin: 0 auto;
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* ===================================
   2. PRODUCT NAVIGATION
   =================================== */

.product-nav {
  position: sticky;
  top: var(--header-height);
  background: var(--bg-black);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  z-index: 100;
  border-bottom: 3px solid var(--secondary-color);
}

.product-nav__list {
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
  flex-wrap: wrap;
}

.product-nav__item {
  margin: 0;
  flex: 1;
  min-width: 150px;
}

.product-nav__link {
  display: block;
  padding: 1.25rem 1.5rem;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
  position: relative;
  text-align: center;
}

.product-nav__link:hover,
.product-nav__link:focus {
  color: #ffffff;
  background: rgba(192, 57, 43, 0.1);
  border-bottom-color: var(--secondary-color);
}

.product-nav__link:active {
  transform: translateY(1px);
}

/* ===================================
   3. PRODUCT SECTION LAYOUT
   =================================== */

.product-section {
  padding: 6rem 0;
  position: relative;
}

.product-section:nth-child(even) {
  background: var(--bg-light);
}

.product-section:nth-child(odd) {
  background: var(--bg-color);
}

/* Add top padding to account for sticky nav when jumping to anchor */
.product-section::before {
  content: "";
  display: block;
  height: calc(var(--header-height) + 70px);
  margin-top: calc(-1 * (var(--header-height) + 70px));
  visibility: hidden;
  pointer-events: none;
}

/* ===================================
   4. PRODUCT HEADER
   =================================== */

.product-header {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 3rem;
}

.product-header__number {
  font-size: 5rem;
  font-weight: 900;
  color: var(--secondary-color);
  opacity: 0.15;
  line-height: 1;
}

.product-header__content {
  flex: 1;
}

.product-header__title {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 900;
  color: var(--primary-color);
  margin: 0 0 0.5rem 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-header__subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-light);
  margin: 0;
  font-weight: 600;
}

/* ===================================
   5. PRODUCT INTRODUCTION
   =================================== */

.product-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
  align-items: center;
}

.product-intro__image {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  border: 3px solid var(--bg-light);
}

.product-intro__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.product-intro__image:hover img {
  transform: scale(1.05);
}

.product-intro__content {
  padding: 2rem 0;
}

.product-intro__heading {
  font-size: clamp(1.5rem, 3vw, 1.75rem);
  font-weight: 900;
  color: var(--primary-color);
  margin: 0 0 1.5rem 0;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.product-intro__description {
  font-size: clamp(1rem, 2vw, 1.1rem);
  line-height: 1.8;
  color: var(--text-color);
  margin: 0 0 1.5rem 0;
}

.product-intro__description:last-child {
  margin-bottom: 0;
}

/* ===================================
   6. PRODUCT DETAILS & SPECS
   =================================== */

.product-details {
  margin-top: 4rem;
}

.product-specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.spec-card {
  background: var(--bg-color);
  border: 3px solid var(--bg-light);
  border-radius: 8px;
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
}

.spec-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--secondary-color);
  transition: height 0.3s ease;
}

.spec-card:hover {
  border-color: var(--secondary-color);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(44, 62, 80, 0.15);
}

.spec-card:hover::before {
  height: 100%;
}

.spec-card__title {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--primary-color);
  margin: 0 0 1.5rem 0;
  padding-bottom: 1rem;
  border-bottom: 3px solid var(--bg-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.spec-card__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.spec-card__list li {
  padding: 0.75rem 0;
  color: var(--text-color);
  font-size: 1rem;
  line-height: 1.6;
  border-bottom: 1px solid var(--bg-light);
}

.spec-card__list li:last-child {
  border-bottom: none;
}

.spec-card__list li strong {
  color: var(--primary-color);
  font-weight: 700;
}

/* ===================================
   7. FEATURES LIST
   =================================== */

.product-features {
  margin-bottom: 4rem;
}

.product-features__title {
  font-size: clamp(1.75rem, 4vw, 2rem);
  font-weight: 900;
  color: var(--primary-color);
  margin: 0 0 2rem 0;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.features-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-item {
  display: flex;
  gap: 1.5rem;
  padding: 2rem;
  background: var(--bg-color);
  border-radius: 8px;
  border: 3px solid var(--bg-light);
  transition: all 0.3s ease;
}

.feature-item:hover {
  border-color: var(--secondary-color);
  box-shadow: 0 5px 20px rgba(44, 62, 80, 0.1);
  transform: translateX(5px);
}

.feature-item__icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background: var(--secondary-color);
  color: var(--bg-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 900;
}

.feature-item__content {
  flex: 1;
}

.feature-item__title {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--primary-color);
  margin: 0 0 0.75rem 0;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.feature-item__description {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-color);
  margin: 0;
}

/* ===================================
   8. APPLICATIONS GRID
   =================================== */

.product-applications {
  margin-top: 4rem;
}

.product-applications__title {
  font-size: clamp(1.75rem, 4vw, 2rem);
  font-weight: 900;
  color: var(--primary-color);
  margin: 0 0 2rem 0;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.applications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.application-card {
  background: var(--secondary-color);
  color: var(--bg-color);
  padding: 2rem 1.5rem;
  border-radius: 8px;
  text-align: center;
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  cursor: default;
  border: 3px solid transparent;
}

.application-card:hover {
  background: var(--primary-color);
  border-color: var(--secondary-color);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* ===================================
   9. CUSTOMIZATION CTA
   =================================== */

.customization-cta {
  background: var(--bg-black);
  padding: 6rem 0;
  text-align: center;
  color: var(--bg-color);
  position: relative;
  overflow: hidden;
}

/* Metal texture overlay */
.customization-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(255, 255, 255, 0.03) 2px,
      rgba(255, 255, 255, 0.03) 4px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 2px,
      rgba(255, 255, 255, 0.03) 2px,
      rgba(255, 255, 255, 0.03) 4px
    );
  pointer-events: none;
  opacity: 0.5;
}

.customization-cta::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(192, 57, 43, 0.3) 0%,
    transparent 70%
  );
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.customization-cta__content {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.customization-cta__title {
  font-size: clamp(2rem, 5vw, 2.5rem);
  font-weight: 900;
  margin: 0 0 1.5rem 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #ffffff;
}

.customization-cta__description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.8;
  margin: 0 0 3rem 0;
  opacity: 0.9;
}

.customization-cta__features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.cta-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 2px solid rgba(192, 57, 43, 0.3);
  transition: all 0.3s ease;
}

.cta-feature:hover {
  background: rgba(192, 57, 43, 0.1);
  border-color: var(--secondary-color);
  transform: translateY(-5px);
}

.cta-feature__icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--secondary-color);
  border-radius: 50%;
  transition: all 0.4s ease;
  box-shadow: 0 5px 20px rgba(192, 57, 43, 0.4);
}

.cta-feature__icon svg {
  color: #ffffff;
  transition: transform 0.3s ease;
}

.cta-feature:hover .cta-feature__icon {
  transform: scale(1.15);
  box-shadow: 0 8px 30px rgba(192, 57, 43, 0.6);
}

.cta-feature:hover .cta-feature__icon svg {
  transform: scale(1.1);
}

.cta-feature__icon--blueprint::after {
  content: "";
  position: absolute;
  width: 30px;
  height: 2px;
  background: #ffffff;
  box-shadow: 8px 0 0 #ffffff, 16px 0 0 #ffffff, 24px 0 0 #ffffff;
  left: 28px;
}

.cta-feature__text {
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ===================================
   10. RESPONSIVE DESIGN
   =================================== */

/* Tablet (768px and below) */
@media (max-width: 768px) {
  .products-hero {
    min-height: 50vh;
  }

  .product-nav__item {
    flex: 1 1 50%;
  }

  .product-nav__link {
    padding: 1rem 0.75rem;
    font-size: 0.85rem;
  }

  .product-section {
    padding: 4rem 0;
  }

  .product-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .product-header__number {
    font-size: 3.5rem;
  }

  .product-intro {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .product-specs-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .features-list {
    grid-template-columns: 1fr;
  }

  .applications-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .customization-cta {
    padding: 4rem 0;
  }

  .customization-cta__features {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

/* Mobile (576px and below) */
@media (max-width: 576px) {
  .products-hero {
    min-height: 40vh;
  }

  .product-nav__list {
    flex-direction: column;
    gap: 0;
  }

  .product-nav__item {
    flex: 1 1 100%;
    width: 100%;
  }

  .product-nav__link {
    padding: 1rem;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .product-section {
    padding: 3rem 0;
  }

  .product-header__number {
    font-size: 2.5rem;
  }

  .spec-card,
  .feature-item {
    padding: 1.5rem;
  }

  .applications-grid {
    grid-template-columns: 1fr;
  }

  .customization-cta__features {
    grid-template-columns: 1fr;
  }
}

/* Extra small devices (425px and below) */
@media (max-width: 425px) {
  .product-nav__link {
    font-size: 0.8rem;
    padding: 0.875rem 0.5rem;
  }
}

/* ===================================
   END OF PRODUCTS PAGE STYLES
   =================================== */
