/* ========================================
   Services Page Enhancement - Sophisticated & Delightful
   Quantique Minds - Sapphire Professional Theme
   ======================================== */

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

.services-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 30% 20%,
    rgba(107, 33, 168, 0.3) 0%,
    transparent 50%
  ),
  radial-gradient(
    circle at 70% 80%,
    rgba(8, 145, 178, 0.2) 0%,
    transparent 50%
  );
  animation: gradientShift 8s ease-in-out infinite;
}

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

@keyframes gradientShift {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.1);
  }
}

.services-hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 800px;
  padding: 2rem;
}

.services-hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: white;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.services-gradient-text {
  background: linear-gradient(
    135deg,
    #ffffff 0%,
    var(--color-accent) 50%,
    #ffffff 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: textShimmer 3s ease-in-out infinite;
}

@keyframes textShimmer {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.services-hero-description {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin-bottom: 2rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Services Stats Section */
.services-stats {
  background: linear-gradient(
    180deg,
    rgba(247, 250, 252, 0.95) 0%,
    rgba(255, 255, 255, 1) 100%
  );
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.services-stats::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-premium);
  opacity: 0.6;
}

.services-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

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

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

.services-stat-card:hover::before {
  opacity: 1;
}

.services-stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(107, 33, 168, 0.1);
  border-color: rgba(107, 33, 168, 0.2);
}

.services-stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-secondary);
  margin-bottom: 0.5rem;
  line-height: 1;
}

.services-stat-label {
  font-size: 0.9rem;
  color: var(--neutral-600);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Enhanced Service Cards */
.services-enhanced .service-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  padding: 2.5rem;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
}

.services-enhanced .service-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.4s ease;
  border-radius: 24px;
}

.services-enhanced .service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    transparent 0%,
    rgba(107, 33, 168, 0.1) 50%,
    rgba(8, 145, 178, 0.1) 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: 24px;
}

.services-enhanced .service-card:hover {
  transform: translateY(-12px) rotateX(5deg);
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(107, 33, 168, 0.3);
  box-shadow: 
    0 25px 80px rgba(0, 0, 0, 0.15),
    0 12px 40px rgba(107, 33, 168, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

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

.services-enhanced .service-card:hover::after {
  opacity: 1;
}

/* Service Icon Enhancement */
.services-enhanced .service-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    rgba(107, 33, 168, 0.15) 0%,
    rgba(8, 145, 178, 0.15) 100%
  );
  border-radius: 28px;
  font-size: 2.5rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.services-enhanced .service-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.2) 0%,
    rgba(255, 255, 255, 0.1) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 28px;
}

.services-enhanced .service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
  background: linear-gradient(
    135deg,
    rgba(107, 33, 168, 0.25) 0%,
    rgba(8, 145, 178, 0.25) 100%
  );
}

.services-enhanced .service-card:hover .service-icon::before {
  opacity: 1;
}

/* Gradient Icon Fallbacks */
.service-icon-gradient {
  background: linear-gradient(
    135deg,
    var(--color-secondary) 0%,
    var(--color-accent) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 3rem;
  font-weight: 800;
}

/* Enhanced Service Features */
.services-enhanced .service-features {
  margin: 1.5rem 0;
}

.services-enhanced .service-features li {
  display: flex;
  align-items: center;
  margin-bottom: 0.8rem;
  color: var(--neutral-700);
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.services-enhanced .service-features li::before {
  content: "✓";
  margin-right: 0.8rem;
  font-weight: 800;
  color: var(--color-accent);
  font-size: 1.1rem;
}

.services-enhanced .service-card:hover .service-features li {
  color: var(--neutral-800);
}

/* Enhanced Service Link */
.services-enhanced .service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-secondary);
  font-weight: 600;
  text-decoration: none;
  margin-top: auto;
  padding: 0.8rem 1.5rem;
  background: linear-gradient(
    135deg,
    rgba(107, 33, 168, 0.1) 0%,
    rgba(8, 145, 178, 0.1) 100%
  );
  border-radius: 12px;
  border: 1px solid rgba(107, 33, 168, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 10;
  overflow: hidden;
  cursor: pointer;
}

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

.services-enhanced .service-link:hover {
  background: linear-gradient(
    135deg,
    rgba(107, 33, 168, 0.2) 0%,
    rgba(8, 145, 178, 0.2) 100%
  );
  border-color: rgba(107, 33, 168, 0.4);
  transform: translateX(5px);
}

.services-enhanced .service-link:hover::after {
  transform: translateX(3px);
}

/* Decorative Elements */
.services-decorator {
  position: absolute;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    rgba(107, 33, 168, 0.1) 0%,
    rgba(8, 145, 178, 0.1) 100%
  );
  blur: 40px;
  animation: float 6s ease-in-out infinite;
}

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

.services-decorator:nth-child(2) {
  bottom: 20%;
  right: 10%;
  animation-delay: 2s;
}

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

/* Enhanced Grid Layout */
.services-enhanced .services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 2.5rem;
  margin: 4rem 0;
  position: relative;
}

/* Section Background Enhancement */
.services-enhanced .services {
  background: linear-gradient(
    180deg,
    rgba(247, 250, 252, 0.95) 0%,
    rgba(255, 255, 255, 0.98) 50%,
    rgba(247, 250, 252, 1) 100%
  );
  position: relative;
  overflow: hidden;
}

.services-enhanced .services::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(
      circle at 20% 30%,
      rgba(107, 33, 168, 0.03) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(8, 145, 178, 0.03) 0%,
      transparent 50%
    );
  pointer-events: none;
}

/* Entrance Animations */
.services-enhanced .service-card {
  opacity: 0;
  transform: translateY(30px);
  animation: slideInUp 0.6s ease-out forwards;
}

.services-enhanced .service-card:nth-child(1) { animation-delay: 0.1s; }
.services-enhanced .service-card:nth-child(2) { animation-delay: 0.2s; }
.services-enhanced .service-card:nth-child(3) { animation-delay: 0.3s; }
.services-enhanced .service-card:nth-child(4) { animation-delay: 0.4s; }
.services-enhanced .service-card:nth-child(5) { animation-delay: 0.5s; }
.services-enhanced .service-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes slideInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile Responsive Enhancements */
@media (max-width: 768px) {
  .services-hero {
    min-height: 50vh;
    padding: 2rem 1rem;
  }
  
  .services-hero-title {
    font-size: 2.5rem;
  }
  
  .services-hero-description {
    font-size: 1.1rem;
  }
  
  .services-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .services-stat-card {
    padding: 1.5rem 1rem;
  }
  
  .services-enhanced .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 2rem 0;
  }
  
  .services-enhanced .service-card {
    padding: 2rem 1.5rem;
  }
  
  .services-enhanced .service-card:hover {
    transform: translateY(-8px) rotateX(2deg);
  }
  
  .services-enhanced .service-icon {
    width: 80px;
    height: 80px;
    font-size: 2rem;
  }
}

/* Performance Optimizations */
@media (prefers-reduced-motion: reduce) {
  .services-enhanced .service-card,
  .services-enhanced .service-icon,
  .services-enhanced .service-link,
  .services-decorator {
    animation: none;
    transition: none;
  }
  
  .services-enhanced .service-card:hover {
    transform: none;
  }
}

/* High Contrast Support */
@media (prefers-contrast: high) {
  .services-enhanced .service-card {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid var(--color-primary);
  }
  
  .services-enhanced .service-link {
    background: var(--color-secondary);
    color: white;
  }
}

/* ========================================
   Sophisticated Services Footer with Glass Morphism
   Sapphire-Purple Theme from Hero Gradient
   ======================================== */

/* Color Variables for Services Footer */
.footer {
  --services-primary-rgb: 15, 23, 42;      /* #0F172A - Deep Sapphire */
  --services-secondary-rgb: 107, 33, 168;  /* #6B21A8 - Royal Purple */
  --services-accent-rgb: 8, 145, 178;      /* #0891B2 - Electric Teal */
}

/* Services Footer Layout */
.footer .footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

/* Glass Morphism Footer Sections with Sapphire-Purple Tint */
.footer .footer-section {
  background: rgba(var(--services-primary-rgb), 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 18px;
  padding: 2.5rem 2rem;
  border: 1px solid rgba(var(--services-primary-rgb), 0.15);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.footer .footer-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #6B21A8, #0891B2);
  border-radius: 18px 18px 0 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.footer .footer-section:hover {
  background: rgba(var(--services-primary-rgb), 0.08);
  border-color: rgba(var(--services-secondary-rgb), 0.25);
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(var(--services-secondary-rgb), 0.12), 0 6px 15px rgba(0, 0, 0, 0.1);
}

.footer .footer-section:hover::before {
  opacity: 1;
}

/* Enhanced Footer Typography with Gradient Text */
.footer .footer-section h3 {
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #ffffff, #e2e8f0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.footer .footer-section h4 {
  color: white;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  position: relative;
}

.footer .footer-section h4::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 35px;
  height: 2px;
  background: linear-gradient(90deg, #6B21A8, #0891B2);
  border-radius: 1px;
  transition: width 0.3s ease;
}

.footer .footer-section:hover h4::after {
  width: 50px;
}

.footer .footer-section p {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  margin-bottom: 1rem;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.footer .footer-section:hover p {
  color: rgba(255, 255, 255, 0.95);
}

/* Professional List Styling */
.footer .footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer .footer-section ul li {
  margin-bottom: 0.75rem;
  position: relative;
  padding-left: 1.2rem;
  transition: transform 0.2s ease;
}

.footer .footer-section ul li::before {
  content: "▶";
  position: absolute;
  left: 0;
  top: 0;
  color: #6B21A8;
  font-weight: 600;
  font-size: 0.8rem;
  transition: all 0.2s ease;
}

.footer .footer-section ul li:hover {
  transform: translateX(4px);
}

.footer .footer-section ul li:hover::before {
  transform: translateX(4px);
  color: #0891B2;
}

/* Enhanced Footer Links with Hover Effects */
.footer .footer-section a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.25rem 0;
}

.footer .footer-section a:hover {
  color: white;
  background: rgba(var(--services-secondary-rgb), 0.15);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  margin: -0.4rem -0.8rem;
  box-shadow: 0 4px 12px rgba(var(--services-secondary-rgb), 0.2);
}

.footer .footer-section a:hover::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 2px;
  background: linear-gradient(90deg, #6B21A8, #0891B2);
  border-radius: 1px;
}

/* Enhanced Contact Info */
.footer .contact-info p {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.9);
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
}

.footer .contact-info p:hover {
  background: rgba(var(--services-secondary-rgb), 0.1);
  color: white;
  transform: translateX(4px);
}

/* Sophisticated Tech Badge */
.footer .footer-tech-badge {
  margin-top: 1.5rem;
  padding: 0.75rem 1.5rem;
  background: rgba(var(--services-secondary-rgb), 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(var(--services-secondary-rgb), 0.3);
  border-radius: 25px;
  display: inline-block;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.footer .footer-tech-badge::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.6s ease;
}

.footer .footer-tech-badge:hover::before {
  left: 100%;
}

.footer .footer-tech-badge:hover {
  background: rgba(var(--services-secondary-rgb), 0.2);
  border-color: rgba(var(--services-secondary-rgb), 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(var(--services-secondary-rgb), 0.15);
}

.footer .footer-tech-badge span {
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1;
}

/* Refined Footer Bottom */
.footer .footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(var(--services-secondary-rgb), 0.2);
  text-align: center;
  margin-top: 2rem;
}

.footer .footer-bottom p {
  margin: 0.75rem 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  transition: color 0.3s ease;
}

.footer .footer-bottom p:hover {
  color: rgba(255, 255, 255, 0.95);
}

/* Responsive Footer */
@media (max-width: 1024px) {
  .footer .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .footer .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer .footer-section {
    padding: 2rem 1.5rem;
  }
}