/* ========================================
   Individual Service Pages Enhancement
   Quantique Minds - Professional & Delightful
   ======================================== */

/* Enhanced Hero Section for Service Details */
.service-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;
}

.service-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;
}

.service-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);
  }
}

/* Service-specific color variations */
.ai-ml-hero {
  background: linear-gradient(
    135deg,
    #0F172A 0%,
    #1e293b 25%,
    #6B21A8 75%,
    #0891B2 100%
  );
}

.digital-transformation-hero {
  background: linear-gradient(
    135deg,
    #0F172A 0%,
    #374151 25%,
    #D97706 75%,
    #0891B2 100%
  );
}

.custom-software-hero {
  background: linear-gradient(
    135deg,
    #0F172A 0%,
    #1e293b 25%,
    #059669 75%,
    #6B21A8 100%
  );
}

.cloud-devops-hero {
  background: linear-gradient(
    135deg,
    #0F172A 0%,
    #1e3a8a 25%,
    #0891B2 75%,
    #D97706 100%
  );
}

.data-analytics-hero {
  background: linear-gradient(
    135deg,
    #0F172A 0%,
    #581c87 25%,
    #7c3aed 75%,
    #0891B2 100%
  );
}

.cyber-security-hero {
  background: linear-gradient(
    135deg,
    #0F172A 0%,
    #7f1d1d 25%,
    #dc2626 75%,
    #6B21A8 100%
  );
}

/* Enhanced Service Detail Cards */
.service-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;
}

.service-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;
}

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

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

/* Technology Stack Enhancement */
.tech-stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

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

.tech-category:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(107, 33, 168, 0.2);
  transform: translateY(-4px);
}

.tech-category h3 {
  color: var(--color-secondary);
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tech-tag {
  background: linear-gradient(
    135deg,
    rgba(107, 33, 168, 0.15) 0%,
    rgba(8, 145, 178, 0.15) 100%
  );
  color: var(--color-accent);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(107, 33, 168, 0.2);
  transition: all 0.3s ease;
}

.tech-tag:hover {
  background: linear-gradient(
    135deg,
    rgba(107, 33, 168, 0.25) 0%,
    rgba(8, 145, 178, 0.25) 100%
  );
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(107, 33, 168, 0.2);
}

/* Enhanced Statistics Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

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

.stat-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(107, 33, 168, 0.1) 0%,
    rgba(8, 145, 178, 0.1) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 20px;
}

.stat-item:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(107, 33, 168, 0.3);
  box-shadow: 0 20px 40px rgba(107, 33, 168, 0.15);
}

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

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--color-secondary);
  margin-bottom: 0.5rem;
  line-height: 1;
  position: relative;
  z-index: 2;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--neutral-600);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  z-index: 2;
}

/* Success Stories Enhancement */
.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;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

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

.success-story:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(107, 33, 168, 0.2);
  transform: translateX(8px);
}

.success-metric {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(
    135deg,
    rgba(107, 33, 168, 0.2) 0%,
    rgba(8, 145, 178, 0.2) 100%
  );
  color: var(--color-secondary);
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  font-weight: 700;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(107, 33, 168, 0.3);
}

.success-metric .metric-value {
  font-size: 1.5rem;
  color: var(--color-accent);
}

/* Enhanced Feature Lists */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.feature-list li:hover {
  background: rgba(107, 33, 168, 0.05);
  border-radius: 12px;
  padding-left: 1rem;
  border-bottom-color: rgba(107, 33, 168, 0.2);
}

.feature-list li::before {
  content: "✓";
  color: var(--color-accent);
  font-weight: 800;
  font-size: 1.2rem;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 145, 178, 0.15);
  border-radius: 50%;
  border: 2px solid rgba(8, 145, 178, 0.3);
}

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

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

.service-cta:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 30px rgba(107, 33, 168, 0.4);
}

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

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

.service-cta:hover::after {
  transform: translateX(4px);
}

/* Animated Section Decorations */
.section-decorator {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    rgba(107, 33, 168, 0.1) 0%,
    rgba(8, 145, 178, 0.1) 100%
  );
  filter: blur(60px);
  animation: decoratorFloat 8s ease-in-out infinite;
}

.section-decorator:nth-child(1) {
  top: 20%;
  left: -10%;
  animation-delay: 0s;
}

.section-decorator:nth-child(2) {
  bottom: 30%;
  right: -15%;
  animation-delay: 4s;
}

@keyframes decoratorFloat {
  0%, 100% {
    transform: translateY(0px) scale(1);
    opacity: 0.6;
  }
  50% {
    transform: translateY(-30px) scale(1.2);
    opacity: 0.8;
  }
}

/* Scroll Animation Classes */
.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-animate.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Service-specific accent colors */
.ai-ml-accent {
  --service-accent: #6B21A8;
  --service-accent-light: rgba(107, 33, 168, 0.2);
}

.digital-transformation-accent {
  --service-accent: #D97706;
  --service-accent-light: rgba(217, 119, 6, 0.2);
}

.custom-software-accent {
  --service-accent: #059669;
  --service-accent-light: rgba(5, 150, 105, 0.2);
}

.cloud-devops-accent {
  --service-accent: #0891B2;
  --service-accent-light: rgba(8, 145, 178, 0.2);
}

.data-analytics-accent {
  --service-accent: #7c3aed;
  --service-accent-light: rgba(124, 58, 237, 0.2);
}

.cyber-security-accent {
  --service-accent: #dc2626;
  --service-accent-light: rgba(220, 38, 38, 0.2);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .service-detail-hero {
    min-height: 60vh;
    padding: 2rem 1rem;
  }
  
  .service-detail-card {
    padding: 2rem 1.5rem;
    margin: 1.5rem 0;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .stat-item {
    padding: 1.5rem 1rem;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
  
  .tech-stack-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .success-story {
    padding: 2rem 1.5rem;
  }
  
  .service-cta {
    padding: 0.875rem 1.5rem;
    font-size: 0.9rem;
  }
}

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

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