/* Services-specific styles */

/* Services Hero Section */
.services-hero {
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 50%, var(--gray-100) 100%);
  padding: var(--space-3xl) var(--space-xl);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-2xl);
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
  min-height: 500px;
}

.services-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="services-grid" width="25" height="25" patternUnits="userSpaceOnUse"><circle cx="12.5" cy="12.5" r="1" fill="rgba(59,130,246,0.1)"/><path d="M0 12.5h25M12.5 0v25" stroke="rgba(16,185,129,0.05)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23services-grid)"/></svg>');
  opacity: 0.7;
}

.services-hero-content {
  position: relative;
  z-index: 2;
}

.services-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: var(--space-lg);
  line-height: 1.1;
}

.highlight-services {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}

.services-hero p {
  font-size: 1.3rem;
  color: var(--gray-600);
  margin-bottom: var(--space-2xl);
  line-height: 1.6;
}

.services-stats {
  display: flex;
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent-blue);
  line-height: 1;
}

.stat-label {
  display: block;
  font-size: 0.9rem;
  color: var(--gray-500);
  margin-top: var(--space-xs);
  font-weight: 500;
}

.services-hero-visual {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

.floating-icons {
  position: relative;
  width: 300px;
  height: 300px;
}

.icon-orbit {
  position: relative;
  width: 100%;
  height: 100%;
  animation: orbit-rotate 20s linear infinite;
}

.tech-icon {
  position: absolute;
  width: 60px;
  height: 60px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--gray-200);
  animation: icon-float 3s ease-in-out infinite;
}

.web-icon { top: 0; left: 50%; transform: translateX(-50%); animation-delay: 0s; }
.cloud-icon { top: 25%; right: 0; animation-delay: 0.5s; }
.ai-icon { bottom: 25%; right: 0; animation-delay: 1s; }
.mobile-icon { bottom: 0; left: 50%; transform: translateX(-50%); animation-delay: 1.5s; }
.security-icon { bottom: 25%; left: 0; animation-delay: 2s; }
.data-icon { top: 25%; left: 0; animation-delay: 2.5s; }

@keyframes orbit-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes icon-float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-xl);
}

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-secondary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--accent-green);
}

.service-card h3 {
  color: var(--primary-blue);
  margin-bottom: var(--space-lg);
  font-size: 1.5rem;
  font-weight: 600;
}

/* Services Showcase */
.services-showcase {
  margin: var(--space-3xl) 0;
}

.services-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: var(--space-2xl);
  margin-bottom: var(--space-3xl);
}

.service-card-modern {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  min-height: 350px;
}

.service-card-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.service-card-modern:hover::before {
  transform: scaleX(1);
}

.service-card-modern:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-xl);
  border-color: var(--accent-blue);
}

.service-icon {
  margin-bottom: var(--space-lg);
}

.icon-container {
  position: relative;
  display: inline-block;
}

.service-emoji {
  font-size: 3rem;
  display: block;
  position: relative;
  z-index: 2;
}

.icon-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: glow-pulse 2s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
  50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.8; }
}

.service-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: var(--space-md);
}

.service-content p {
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
}

.service-features {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.feature-tag {
  background: var(--gray-100);
  color: var(--gray-700);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.service-card-modern:hover .feature-tag {
  background: var(--accent-blue);
  color: var(--white);
  transform: translateY(-2px);
}

.service-hover-content {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s ease;
}

.service-card-modern:hover .service-hover-content {
  opacity: 1;
  max-height: 300px;
}

.service-details {
  list-style: none;
  margin-bottom: var(--space-lg);
}

.service-details li {
  color: var(--gray-600);
  margin-bottom: var(--space-sm);
  padding-left: var(--space-lg);
  position: relative;
}

.service-details li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-green);
  font-weight: bold;
}

.service-cta {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  color: var(--white);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-lg);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.service-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.service-background-pattern {
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  opacity: 0.05;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="currentColor" stroke-width="2"/><circle cx="50" cy="50" r="20" fill="currentColor"/></svg>');
  transition: all 0.4s ease;
}

.service-card-modern:hover .service-background-pattern {
  opacity: 0.1;
  transform: rotate(45deg) scale(1.2);
}

/* Process Timeline */
.services-process {
  background: var(--gray-50);
  padding: var(--space-3xl) var(--space-xl);
  border-radius: var(--radius-xl);
  margin: var(--space-3xl) 0;
}

.process-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.process-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: var(--space-md);
}

.highlight-process {
  background: linear-gradient(135deg, var(--accent-green), var(--accent-blue));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.process-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-xl);
  position: relative;
}

.timeline-item {
  text-align: center;
  position: relative;
  padding: var(--space-xl);
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.timeline-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.timeline-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
  font-size: 2rem;
  position: relative;
  animation: timeline-bounce 2s ease-in-out infinite;
}

.timeline-item:nth-child(1) .timeline-icon { animation-delay: 0s; }
.timeline-item:nth-child(2) .timeline-icon { animation-delay: 0.5s; }
.timeline-item:nth-child(3) .timeline-icon { animation-delay: 1s; }
.timeline-item:nth-child(4) .timeline-icon { animation-delay: 1.5s; }

@keyframes timeline-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.timeline-content h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: var(--space-sm);
}

.timeline-content p {
  color: var(--gray-600);
  line-height: 1.6;
}

/* Services CTA */
.services-cta {
  background: linear-gradient(135deg, var(--white) 0%, var(--gray-50) 100%);
  padding: var(--space-3xl) var(--space-xl);
  border-radius: var(--radius-xl);
  margin: var(--space-3xl) 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
  position: relative;
  overflow: hidden;
}

.cta-content {
  position: relative;
  z-index: 2;
}

.cta-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: var(--space-md);
}

.highlight-cta {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cta-content p {
  font-size: 1.2rem;
  color: var(--gray-600);
  margin-bottom: var(--space-xl);
}

.cta-buttons {
  display: flex;
  gap: var(--space-lg);
}

.cta-button.primary {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  color: var(--white);
  padding: var(--space-lg) var(--space-2xl);
  border-radius: var(--radius-xl);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.cta-button.primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.cta-button.primary:hover::before {
  left: 100%;
}

.cta-button.primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

.cta-button.secondary {
  background: transparent;
  color: var(--accent-blue);
  padding: var(--space-lg) var(--space-2xl);
  border: 2px solid var(--accent-blue);
  border-radius: var(--radius-xl);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.cta-button.secondary:hover {
  background: var(--accent-blue);
  color: var(--white);
  transform: translateY(-3px);
}

.cta-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 2;
}

.success-metrics {
  position: relative;
}

.metric-circle {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: conic-gradient(var(--accent-green) 0deg, var(--accent-green) 342deg, var(--gray-200) 342deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: metric-rotate 3s ease-in-out infinite;
}

.metric-circle::before {
  content: '';
  position: absolute;
  width: 160px;
  height: 160px;
  background: var(--white);
  border-radius: 50%;
}

.metric-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent-green);
  position: relative;
  z-index: 2;
}

.metric-label {
  font-size: 0.9rem;
  color: var(--gray-600);
  position: relative;
  z-index: 2;
  margin-top: var(--space-xs);
}

@keyframes metric-rotate {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(5deg); }
}

/* Responsive Design for Services */
@media (max-width: 768px) {
  .services-hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: var(--space-2xl) var(--space-lg);
  }
  
  .services-stats {
    justify-content: center;
  }
  
  .services-grid-modern {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  
  .service-card-modern {
    min-height: auto;
  }
  
  .process-timeline {
    grid-template-columns: 1fr;
  }
  
  .services-cta {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
}