/* ========================================
   Individual Product Pages Enhancement
   Quantique Minds - Product-Specific Themes
   ======================================== */

/* Enhanced Hero Section for Product Details */
.product-detail-hero {
  position: relative;
  background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    #1e293b 25%,
    var(--color-secondary) 75%,
    var(--color-accent) 100%
  );
  min-height: 80vh;
  padding-top: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 25% 25%,
    rgba(107, 33, 168, 0.4) 0%,
    transparent 50%
  ),
  radial-gradient(
    circle at 75% 75%,
    rgba(8, 145, 178, 0.3) 0%,
    transparent 50%
  );
  animation: gradientFloat 10s ease-in-out infinite;
}

.product-detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.1);
  backdrop-filter: blur(1px);
}

@keyframes gradientFloat {
  0%, 100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.2) rotate(10deg);
  }
}

/* Product-specific hero color variations */
.caring-touch-hero {
  background: linear-gradient(
    135deg,
    #0F172A 0%,
    #064e3b 25%,
    #059669 75%,
    #10B981 100%
  );
}

.optima-fusion-hero {
  background: linear-gradient(
    135deg,
    #0F172A 0%,
    #581c87 25%,
    #7c3aed 75%,
    #a855f7 100%
  );
}

.buildweave-hero {
  background: linear-gradient(
    135deg,
    #0F172A 0%,
    #3730a3 25%,
    #4f46e5 75%,
    #6366f1 100%
  );
}

/* Enhanced Product Detail Cards */
.product-detail-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 3rem;
  margin: 2.5rem 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.product-detail-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.05) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 20px;
}

.product-detail-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(107, 33, 168, 0.25);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.15),
    0 8px 25px rgba(107, 33, 168, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.product-detail-card:hover::before {
  opacity: 1;
}

/* Product-specific card theming */
.caring-touch-theme .product-detail-card {
  border-color: rgba(16, 185, 129, 0.15);
}

.caring-touch-theme .product-detail-card:hover {
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.15),
    0 8px 25px rgba(16, 185, 129, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.optima-fusion-theme .product-detail-card {
  border-color: rgba(168, 85, 247, 0.15);
}

.optima-fusion-theme .product-detail-card:hover {
  border-color: rgba(168, 85, 247, 0.3);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.15),
    0 8px 25px rgba(168, 85, 247, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.buildweave-theme .product-detail-card {
  border-color: rgba(99, 102, 241, 0.15);
}

.buildweave-theme .product-detail-card:hover {
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.15),
    0 8px 25px rgba(99, 102, 241, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Enhanced Stats Cards */
.product-stat-item {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.product-stat-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.05) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 16px;
}

.product-stat-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.12);
}

.product-stat-item:hover::before {
  opacity: 1;
}

.product-stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.product-stat-label {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  letter-spacing: 0.025em;
}

/* Enhanced Feature Cards */
.feature-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2.5rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.03) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 20px;
}

.feature-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: block;
}

/* Product CTA Styling */
.product-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, var(--color-secondary), var(--color-accent));
  color: white;
  text-decoration: none;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(107, 33, 168, 0.2);
}

.product-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.05) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(107, 33, 168, 0.3);
}

.product-cta:hover::before {
  opacity: 1;
}

.product-cta::after {
  content: "→";
  transition: transform 0.3s ease;
}

.product-cta:hover::after {
  transform: translateX(3px);
}

/* Product-specific CTA theming */
.caring-touch-theme .product-cta {
  background: linear-gradient(135deg, #059669, #10B981);
  box-shadow: 0 4px 15px rgba(5, 150, 105, 0.2);
}

.caring-touch-theme .product-cta:hover {
  box-shadow: 0 8px 25px rgba(5, 150, 105, 0.3);
}

.optima-fusion-theme .product-cta {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.2);
}

.optima-fusion-theme .product-cta:hover {
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.3);
}

.buildweave-theme .product-cta {
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.2);
}

.buildweave-theme .product-cta:hover {
  box-shadow: 0 8px 25px rgba(79, 70, 229, 0.3);
}

/* Decorative Elements */
.section-decorator {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.05) 100%
  );
  animation: float 8s ease-in-out infinite;
  pointer-events: none;
}

.section-decorator:first-child {
  top: 15%;
  left: 5%;
  animation-delay: 0s;
}

.section-decorator:last-child {
  bottom: 15%;
  right: 5%;
  animation-delay: 4s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) scale(1);
    opacity: 0.6;
  }
  50% {
    transform: translateY(-25px) scale(1.1);
    opacity: 0.8;
  }
}

/* Success Stories and Case Studies */
.success-story {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2.5rem;
  margin: 2rem 0;
  position: relative;
  overflow: hidden;
}

.success-story::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(135deg, var(--color-secondary), var(--color-accent));
  border-radius: 0 2px 2px 0;
}

.success-metric {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.success-metric-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

/* Tech Stack Grid */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.tech-category {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.tech-category:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.08);
}

.tech-category h3 {
  color: var(--color-accent);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.tech-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.tech-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.3s ease;
}

.tech-badge:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .product-detail-hero {
    min-height: 70vh;
    padding-top: 120px;
  }
  
  .product-detail-card {
    padding: 2rem;
    margin: 1.5rem 0;
  }
  
  .product-detail-card:hover {
    transform: translateY(-4px);
  }
  
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .success-story {
    padding: 2rem 1.5rem;
  }
  
  .product-cta {
    padding: 0.875rem 1.5rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .product-detail-card {
    padding: 1.5rem;
  }
  
  .tech-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .success-story {
    padding: 2rem 1.5rem;
  }
  
  .product-cta {
    padding: 0.875rem 1.5rem;
    font-size: 0.9rem;
  }
}

/* Performance & Accessibility */
@media (prefers-reduced-motion: reduce) {
  .product-detail-card,
  .product-stat-item,
  .tech-badge,
  .product-cta,
  .section-decorator {
    animation: none;
    transition: none;
  }
  
  .product-detail-card:hover,
  .product-stat-item:hover,
  .product-cta:hover {
    transform: none;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .product-detail-card {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
  }
  
  .tech-badge {
    background: var(--color-secondary);
    color: white;
    border: 2px solid var(--color-primary);
  }
  
  .product-cta {
    background: var(--color-primary);
    border: 2px solid var(--color-secondary);
  }
}