/* ==========================================================================
   PSI PHI INDIA — Products & Clients Page Styles
   ========================================================================== */

/* ---------- PAGE HERO ---------- */
.products-hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(13, 27, 42, 0.92) 0%,
    rgba(26, 58, 92, 0.85) 40%,
    rgba(42, 90, 140, 0.78) 100%
  );
  z-index: 1;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 0 2rem;
}

.hero-badge {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: rgba(232, 168, 56, 0.15);
  border: 1px solid rgba(232, 168, 56, 0.35);
  border-radius: 100px;
  color: var(--accent-light);
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
}

.hero-heading {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.text-accent {
  color: var(--accent);
}

.hero-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
  max-width: 640px;
  margin: 0 auto 2.5rem;
  font-weight: 400;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 1.5rem 2.5rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  backdrop-filter: blur(12px);
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.hero-stat-value {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
}

.hero-stat-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.15);
}

/* Hero Scroll Indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.45);
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.scroll-arrow {
  animation: bounceDown 2s ease-in-out infinite;
}

@keyframes bounceDown {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(6px); }
}

/* ---------- SECTION COMMON ---------- */
/* .section and .container are handled globally in styles.css */

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 4rem;
}

.section-label {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-desc {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ---------- SERVICES DETAIL SECTION ---------- */
.services-section {
  background: var(--light);
}

.services-detail-grid {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.service-detail-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.service-detail-card:hover {
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

/* Reverse layout for alternating cards */
.service-detail-card.reverse {
  direction: rtl;
}
.service-detail-card.reverse > * {
  direction: ltr;
}

/* Service Image */
.service-detail-image {
  position: relative;
  height: 100%;
  min-height: 380px;
  overflow: hidden;
}

.service-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.service-detail-card:hover .service-detail-image img {
  transform: scale(1.05);
}

.service-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26, 58, 92, 0.6), transparent 60%);
  display: flex;
  align-items: flex-start;
  padding: 1.5rem;
}

.service-number {
  font-family: 'Outfit', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.25);
  line-height: 1;
}

/* Service Content */
.service-detail-content {
  padding: 2.5rem 2.5rem 2.5rem 0;
}

.service-detail-card.reverse .service-detail-content {
  padding: 2.5rem 0 2.5rem 2.5rem;
}

.service-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 14px;
  color: #ffffff;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 12px rgba(26, 58, 92, 0.25);
}

.service-detail-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.service-detail-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
}

.service-detail-desc {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.service-detail-desc strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Service Features List */
.service-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.service-features li svg {
  flex-shrink: 0;
  color: var(--accent);
}

/* ---------- PRODUCTS GALLERY SECTION ---------- */
.products-section {
  background: #ffffff;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.product-card {
  border-radius: 16px;
  overflow: hidden;
  background: var(--light);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.product-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  transform: translateY(-6px);
}

/* Product Image Container */
.product-image {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.1);
}

/* Product Overlay */
.product-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(13, 27, 42, 0.95) 0%,
    rgba(26, 58, 92, 0.85) 50%,
    rgba(42, 90, 140, 0.6) 100%
  );
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.product-card:hover .product-overlay {
  opacity: 1;
}

.product-overlay-content {
  transform: translateY(12px);
  transition: transform 0.4s ease;
}

.product-card:hover .product-overlay-content {
  transform: translateY(0);
}

.product-category {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(232, 168, 56, 0.2);
  border: 1px solid rgba(232, 168, 56, 0.4);
  border-radius: 100px;
  color: var(--accent-light);
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.product-overlay-content h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.product-overlay-content p {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
}

/* Product Info Bar */
.product-info {
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.product-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.product-tag {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  background: rgba(26, 58, 92, 0.08);
  border-radius: 100px;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--primary-light);
  white-space: nowrap;
}

/* ---------- CLIENTS SHOWCASE SECTION ---------- */
.clients-section {
  background: var(--light);
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

/* Last client card spans full width and centers */
.clients-grid .client-card:last-child {
  grid-column: 1 / -1;
  max-width: 580px;
  justify-self: center;
  width: 100%;
}

.client-card {
  position: relative;
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.4s ease, transform 0.4s ease;
  display: flex;
}

.client-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

/* Left Accent Bar */
.client-accent-bar {
  width: 5px;
  flex-shrink: 0;
  background: linear-gradient(to bottom, var(--accent), var(--accent-light));
  border-radius: 0;
  transition: width 0.3s ease;
}

.client-card:hover .client-accent-bar {
  width: 7px;
}

/* Client Content */
.client-content {
  padding: 2rem;
  flex: 1;
}

.client-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.client-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(26, 58, 92, 0.08), rgba(42, 90, 140, 0.12));
  border-radius: 14px;
  color: var(--primary);
  flex-shrink: 0;
}

.client-name {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
}

.client-industry {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.client-desc {
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

/* Client Tags */
.client-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.client-tags span {
  padding: 0.3rem 0.8rem;
  background: rgba(26, 58, 92, 0.06);
  border: 1px solid rgba(26, 58, 92, 0.1);
  border-radius: 100px;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--primary-light);
  transition: background 0.3s ease, color 0.3s ease;
}

.client-card:hover .client-tags span {
  background: rgba(232, 168, 56, 0.1);
  border-color: rgba(232, 168, 56, 0.25);
  color: var(--accent);
}

/* ---------- CTA SECTION ---------- */
.cta-section {
  background: #ffffff;
  padding: 4rem 0 6rem;
}

.cta-card {
  position: relative;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 24px;
  padding: 4rem;
  overflow: hidden;
  text-align: center;
}

.cta-content {
  position: relative;
  z-index: 2;
}

.cta-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
}

.cta-desc {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto 2rem;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 2.25rem;
  background: var(--accent);
  color: var(--dark);
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 16px rgba(232, 168, 56, 0.35);
}

.cta-btn:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232, 168, 56, 0.45);
}

.cta-btn svg {
  transition: transform 0.3s ease;
}

.cta-btn:hover svg {
  transform: translateX(4px);
}

/* CTA Decorative Circles */
.cta-pattern {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.cta-circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cta-circle-1 {
  width: 300px;
  height: 300px;
  top: -80px;
  right: -60px;
  background: rgba(255, 255, 255, 0.03);
}

.cta-circle-2 {
  width: 200px;
  height: 200px;
  bottom: -50px;
  left: -30px;
  background: rgba(232, 168, 56, 0.06);
  border-color: rgba(232, 168, 56, 0.12);
}

.cta-circle-3 {
  width: 120px;
  height: 120px;
  top: 40%;
  left: 15%;
  background: rgba(255, 255, 255, 0.02);
}

/* scroll-reveal handled globally in styles.css */

/* ---------- RESPONSIVE: TABLET (≤ 768px) ---------- */
@media (max-width: 768px) {
  .products-hero {
    min-height: 70vh;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem 2rem;
  }

  .hero-stat-divider {
    width: 50px;
    height: 1px;
  }

  .section {
    padding: 4rem 0;
  }

  .section-header {
    margin-bottom: 3rem;
  }

  /* Services: Stack vertically */
  .service-detail-card {
    grid-template-columns: 1fr;
  }

  .service-detail-card.reverse {
    direction: ltr;
  }

  .service-detail-image {
    min-height: 260px;
  }

  .service-detail-content,
  .service-detail-card.reverse .service-detail-content {
    padding: 2rem;
  }

  /* Products: 2 columns */
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .product-image {
    height: 200px;
  }

  .product-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
  }

  /* Clients: single column */
  .clients-grid {
    grid-template-columns: 1fr;
  }

  .clients-grid .client-card:last-child {
    max-width: 100%;
  }

  /* CTA */
  .cta-card {
    padding: 3rem 2rem;
  }
}

/* ---------- RESPONSIVE: MOBILE (≤ 480px) ---------- */
@media (max-width: 480px) {
  .products-hero {
    min-height: 65vh;
  }

  .hero-badge {
    font-size: 0.75rem;
    padding: 0.4rem 1rem;
  }

  .hero-stats {
    padding: 1rem 1.25rem;
  }

  .hero-stat-value {
    font-size: 1.5rem;
  }

  .hero-scroll-indicator {
    display: none;
  }

  .container {
    padding: 0 1.25rem;
  }

  .section {
    padding: 3rem 0;
  }

  .services-detail-grid {
    gap: 2.5rem;
  }

  .service-detail-image {
    min-height: 200px;
  }

  .service-detail-content,
  .service-detail-card.reverse .service-detail-content {
    padding: 1.5rem;
  }

  .service-detail-title {
    font-size: 1.4rem;
  }

  /* Products: single column */
  .products-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .product-image {
    height: 220px;
  }

  /* Product overlay always visible on mobile for accessibility */
  .product-overlay {
    opacity: 1;
    background: linear-gradient(
      to top,
      rgba(13, 27, 42, 0.9) 0%,
      transparent 100%
    );
  }

  .product-overlay-content {
    transform: translateY(0);
  }

  .product-overlay-content p {
    display: none;
  }

  /* CTA */
  .cta-card {
    padding: 2.5rem 1.5rem;
    border-radius: 16px;
  }

  .cta-title {
    font-size: 1.5rem;
  }

  .cta-desc {
    font-size: 0.95rem;
  }

  .cta-circle-1 {
    width: 200px;
    height: 200px;
  }

  .cta-circle-2 {
    width: 140px;
    height: 140px;
  }
}
