/* Enhanced Section Styles - Dark Tech Premium */

/* Hero Sections (non-homepage) */
.page-hero,
.hero-section {
  background: var(--base-dark, #030D1A) !important;
  padding: 160px 20px 100px !important;
  position: relative;
  overflow: hidden;
}

.page-hero::before,
.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}

.page-hero::after,
.hero-section::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.15) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
}

/* Services Grid - Exclude services-showcase section */
.services-grid:not(.services-showcase .services-grid),
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin: 60px 0;
}

/* Ensure services-showcase grid is never affected */
.services-showcase .services-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 60px !important;
  margin: 0 !important;
}

.service-item,
.feature-item {
  background: rgba(10, 30, 60, 0.7) !important;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: 14px;
  padding: 40px 30px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-item::before,
.feature-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #0A4AFF, #00D4FF, #00FFD1);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.service-item:hover::before,
.feature-item:hover::before {
  transform: scaleX(1);
}

.service-item:hover,
.feature-item:hover {
  border-color: rgba(0, 212, 255, 0.4);
  box-shadow: 0 12px 40px rgba(0, 212, 255, 0.3), 0 0 20px rgba(0, 212, 255, 0.2);
  transform: translateY(-10px);
}

.service-icon,
.feature-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #0A4AFF 0%, #00D4FF 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 28px;
  color: white;
}

.service-item h3,
.feature-item h3 {
  color: white !important;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 15px;
}

.service-item p,
.feature-item p {
  color: rgba(255, 255, 255, 0.8) !important;
  line-height: 1.6;
}

/* Team Section */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin: 60px 0;
}

.team-member {
  background: rgba(10, 30, 60, 0.7) !important;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: 14px;
  padding: 30px;
  text-align: center;
  transition: all 0.3s ease;
}

.team-member:hover {
  border-color: rgba(0, 212, 255, 0.4);
  box-shadow: 0 12px 40px rgba(0, 212, 255, 0.3);
  transform: translateY(-10px);
}

.team-member img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid rgba(0, 212, 255, 0.3);
  margin-bottom: 20px;
  object-fit: cover;
}

.team-member h4 {
  color: white !important;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.team-member .role {
  color: var(--accent-cyan, #00D4FF) !important;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
}

.team-member p {
  color: rgba(255, 255, 255, 0.7) !important;
  font-size: 14px;
  line-height: 1.6;
}

/* Case Studies Grid */
.case-studies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin: 60px 0;
}

.case-study-item {
  background: rgba(10, 30, 60, 0.7) !important;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.case-study-item:hover {
  border-color: rgba(0, 212, 255, 0.4);
  box-shadow: 0 12px 40px rgba(0, 212, 255, 0.3);
  transform: translateY(-10px);
}

.case-study-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid rgba(0, 212, 255, 0.15);
}

.case-study-content {
  padding: 30px;
}

.case-study-item h3 {
  color: white !important;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 15px;
}

.case-study-item p {
  color: rgba(255, 255, 255, 0.8) !important;
  line-height: 1.6;
  margin-bottom: 20px;
}

.case-study-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.case-study-tag {
  padding: 6px 12px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 20px;
  color: var(--accent-cyan, #00D4FF);
  font-size: 12px;
  font-weight: 600;
}

/* Stats Section */
.stats-section {
  background: rgba(10, 30, 60, 0.7) !important;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: 14px;
  padding: 60px 40px;
  margin: 60px 0;
}

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

.stat-item {
  position: relative;
}

.stat-item::after {
  content: '';
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 60px;
  background: rgba(0, 212, 255, 0.3);
}

.stat-item:last-child::after {
  display: none;
}

.stat-number {
  font-size: 48px;
  font-weight: 800;
  background: linear-gradient(135deg, #0A4AFF 0%, #00D4FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
}

.stat-label {
  color: rgba(255, 255, 255, 0.8) !important;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, rgba(10, 74, 255, 0.2) 0%, rgba(0, 212, 255, 0.2) 100%);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 14px;
  padding: 80px 40px;
  text-align: center;
  margin: 80px 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
}

.cta-section h2 {
  color: white !important;
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.8) !important;
  font-size: 18px;
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
}

.cta-section .btn-primary {
  position: relative;
  z-index: 1;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin: 60px 0;
}

.testimonial-item {
  background: rgba(10, 30, 60, 0.7) !important;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: 14px;
  padding: 30px;
  transition: all 0.3s ease;
}

.testimonial-item:hover {
  border-color: rgba(0, 212, 255, 0.4);
  box-shadow: 0 12px 40px rgba(0, 212, 255, 0.3);
  transform: translateY(-5px);
}

.testimonial-text {
  color: rgba(255, 255, 255, 0.8) !important;
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.testimonial-author img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid rgba(0, 212, 255, 0.3);
}

.testimonial-author-info h5 {
  color: white !important;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 5px;
}

.testimonial-author-info p {
  color: var(--accent-cyan, #00D4FF) !important;
  font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
  .services-grid,
  .features-grid,
  .team-grid,
  .case-studies-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .stat-item::after {
    display: none;
  }
}
