/* Index page specific styles */

/* Card styles for index page */
.card {
  border-radius: 0.75rem;
  padding: 1rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  transition: transform .2s ease, box-shadow .2s ease;
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  color: var(--text-primary);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(2,6,23,.08);
}

.card-sm {
  padding: 0.75rem;
}

.card-sm .card-icon {
  width: 2.25rem;
  height: 2.25rem;
}

.card-sm .icon-lg {
  width: 1.25rem;
  height: 1.25rem;
}

.card-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.card-title {
  margin-top: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
}

.card-text {
  margin-top: 0.5rem;
  color: var(--text-secondary);
}

/* Icon cards for hero section */
.icon-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  border-radius: 0.75rem;
  background: rgba(255,255,255,0.35);
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow: 0 10px 30px rgba(2,6,23,0.08), inset 0 1px 0 rgba(255,255,255,0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.icon-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(2,6,23,0.12), inset 0 1px 0 rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.42);
}

.icon-xl {
  width: 2.5rem;
  height: 2.5rem;
  color: #5271ff;
}

.icon-lg {
  width: 1.75rem;
  height: 1.75rem;
}

/* Service cards */
.service-card {
  background: var(--bg-card);
  border-radius: 1.5rem;
  padding: 2.5rem;
  text-align: center;
  border: 1px solid var(--border-primary);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, #5271ff 0%, #3b82f6 100%);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

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

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: var(--brand-primary);
}

.service-icon {
  font-size: 4rem;
  color: var(--brand-primary);
  margin-bottom: 1.5rem;
  display: block;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-weight: 700;
}

.service-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Glassmorphic cards for design section */
.glassmorphic-card {
  border-radius: 1rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.glassmorphic-card:hover {
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Status badges */
.status-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  display: inline-block;
}

.status-badge.online {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
}

.status-badge.offline {
  background: #ef4444;
  color: white;
}

/* Hero section enhancements */
.hero-section {
  background: linear-gradient(135deg, #5271ff 0%, #3b82f6 50%, #10b981 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../../images/svg-bgs/dddepth-322.jpg') center/cover;
  opacity: 0.1;
  z-index: 0;
}

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

/* Services grid specific to index */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* Stats section */
.stats-section {
  background: var(--bg-secondary);
  padding: 4rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

/* Process steps specific styling */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

/* Testimonials section */
.testimonials-section {
  background: var(--bg-secondary);
  padding: 4rem 0;
}

/* CTA section */
.cta-section {
  background: linear-gradient(135deg, #5271ff 0%, #3b82f6 100%);
  color: white;
  padding: 4rem 0;
  text-align: center;
}

/* Responsive adjustments for index page */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .hero-section {
    min-height: 80vh;
    text-align: center;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
