/* Custom styling for all sub-pages (likes, comments, views, etc.) */

/* Enhanced About Section for Service Sub-pages */
.service-about-section {
  background: linear-gradient(150deg,
    #00d0a0 -100%,
    #172733 90%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.service-about-section::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="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="50" cy="10" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="10" cy="50" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  z-index: 1;
}

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

.service-about-header {
  text-align: center;
  margin-bottom: 60px;
}

.service-about-header h2 {
  color: #fff;
  font-size: 3.2em;
  margin-bottom: 20px;
  font-weight: 700;
  text-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.service-about-header h3 {
  color: #f8f9fa;
  font-size: 1.4em;
  font-weight: 300;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.service-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.service-feature-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.1));
  border-radius: 25px;
  padding: 40px 30px;
  text-align: center;
  box-shadow:
    0 25px 45px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform: translateY(0);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(20px);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.service-feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  border-radius: 25px;
  pointer-events: none;
}

.service-feature-card:hover {
  transform: translateY(-15px);
  box-shadow:
    0 35px 70px rgba(0, 208, 160, 0.15),
    0 15px 35px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -1px 0 rgba(255, 255, 255, 0.2),
    0 0 40px rgba(0, 208, 160, 0.1);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.15));
  border: 1px solid rgba(0, 208, 160, 0.2);
}

.service-feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 25px;
  background: linear-gradient(45deg, #00d0a0, #00b894);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2em;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(0, 208, 160, 0.3);
}

.service-feature-card:nth-child(2) .service-feature-icon {
  background: linear-gradient(45deg, #00b894, #00a085);
  box-shadow: 0 8px 20px rgba(0, 184, 148, 0.3);
}

.service-feature-card:nth-child(3) .service-feature-icon {
  background: linear-gradient(45deg, #00a085, #008f75);
  box-shadow: 0 8px 20px rgba(0, 160, 133, 0.3);
}

.service-feature-card:nth-child(4) .service-feature-icon {
  background: linear-gradient(45deg, #00e0b0, #00d0a0);
  box-shadow: 0 8px 20px rgba(0, 224, 176, 0.3);
}

.service-feature-card:hover .service-feature-icon {
  transform: scale(1.1) rotate(10deg);
}

.service-feature-title {
  font-size: 1.4em;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 15px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 2;
}

.service-feature-description {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  font-size: 0.95em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 2;
}

/* Floating animation for icons */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

.service-feature-card:nth-child(1) .service-feature-icon {
  animation: float 3s ease-in-out infinite;
}

.service-feature-card:nth-child(2) .service-feature-icon {
  animation: float 3s ease-in-out infinite 0.5s;
}

.service-feature-card:nth-child(3) .service-feature-icon {
  animation: float 3s ease-in-out infinite 1s;
}

.service-feature-card:nth-child(4) .service-feature-icon {
  animation: float 3s ease-in-out infinite 1.5s;
}


/* Responsive adjustments */
@media (max-width: 768px) {
  .service-about-header h2 {
    font-size: 2.4em;
  }

  .service-features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 20px;
  }

  .service-feature-card {
    padding: 30px 20px;
  }
}

@media (max-width: 480px) {
  .service-about-section {
    padding: 60px 0;
  }
}