/* ========================================
   MODERN SERVICE PAGE STYLES (service.html)
   Complete modern styling for better visual appeal
======================================== */

/* Import additional Google Fonts for variety */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

/* Global improvements for service page */
.sub_page .service_section {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: 
    linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%),
    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"><filter id="noiseFilter"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="1" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noiseFilter)" opacity="0.03"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grain)"/></svg>');
  position: relative;
  overflow: hidden;
}

.sub_page .service_section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(0, 187, 240, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(102, 126, 234, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(118, 75, 162, 0.04) 0%, transparent 50%);
  pointer-events: none;
}

/* Enhanced heading container */
.service_section .heading_container {
  position: relative;
  z-index: 2;
  margin-bottom: 60px;
}

.service_section .heading_container h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  color: #1a202c;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.service_section .heading_container h2 span {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.service_section .heading_container p {
  font-size: 1.25rem;
  color: #4a5568;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
  font-weight: 400;
}

/* Featured Service Card - Modern Hero Style */
.featured-service {
  position: relative;
  z-index: 2;
  margin-bottom: 80px;
}

.service-card.featured {
  background: 
    linear-gradient(135deg, #667eea 0%, #764ba2 100%),
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="featured-texture" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="0.8" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100%" height="100%" fill="url(%23featured-texture)"/></svg>');
  border-radius: 24px;
  padding: 60px 40px;
  color: white;
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 20px 60px rgba(102, 126, 234, 0.3),
    0 8px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 40px;
  min-height: 300px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-card.featured::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.service-card.featured:hover {
  transform: translateY(-8px);
  box-shadow: 
    0 32px 80px rgba(102, 126, 234, 0.4),
    0 12px 32px rgba(0, 0, 0, 0.15);
}

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

.service-card.featured .service-icon {
  width: 120px;
  height: 120px;
  min-width: 120px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.service-card.featured:hover .service-icon {
  transform: scale(1.05) rotate(2deg);
  background: rgba(255, 255, 255, 0.2);
}

.service-card.featured .service-icon img {
  width: 60px;
  height: 60px;
  filter: brightness(0) invert(1);
}

.service-card.featured .service-content {
  flex: 1;
  position: relative;
  z-index: 1;
}

.service-card.featured .service-content h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: white;
  line-height: 1.2;
}

.service-card.featured .service-content p {
  font-size: 1.125rem;
  line-height: 1.7;
  margin-bottom: 32px;
  opacity: 0.95;
  color: white;
}

.service-card.featured .service-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.service-card.featured .feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-card.featured .feature-item:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateX(4px);
}

.service-card.featured .feature-item i {
  font-size: 1rem;
  color: #4ade80;
  min-width: 16px;
}

.service-card.featured .feature-item span {
  font-size: 0.95rem;
  font-weight: 500;
  color: white;
}

/* Services Grid - Modern Card Layout */
.services_grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 32px;
  margin-bottom: 100px;
  position: relative;
  z-index: 2;
}

.services_grid .service-card {
  background: white;
  border-radius: 20px;
  padding: 40px 32px;
  text-align: center;
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.08),
    0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.8);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.services_grid .service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.05), transparent);
  transition: left 0.6s ease;
}

.services_grid .service-card:hover {
  transform: translateY(-12px);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.12),
    0 8px 24px rgba(102, 126, 234, 0.15);
  border-color: rgba(102, 126, 234, 0.2);
}

.services_grid .service-card:hover::before {
  left: 100%;
}

.services_grid .service-card .service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  transition: all 0.3s ease;
  position: relative;
}

.services_grid .service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

.services_grid .service-card .service-icon img {
  width: 40px;
  height: 40px;
  filter: brightness(0) invert(1);
}

.services_grid .service-card .service-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.services_grid .service-card .service-content h5 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.375rem;
  font-weight: 600;
  color: #1a202c;
  margin-bottom: 16px;
  line-height: 1.3;
}

.services_grid .service-card .service-content p {
  color: #4a5568;
  line-height: 1.6;
  font-size: 1rem;
  flex: 1;
  margin-bottom: 0;
}

/* Detailed Services Section */
.service_details_section {
  background: white;
  position: relative;
  overflow: hidden;
}

.service_details_section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  z-index: 1;
}

.services_detailed {
  position: relative;
  z-index: 2;
}

.service_detail_card {
  display: flex;
  align-items: center;
  gap: 60px;
  margin-bottom: 80px;
  padding: 50px;
  background: white;
  border-radius: 24px;
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.06),
    0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(226, 232, 240, 0.6);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.service_detail_card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  transform: scaleY(0);
  transition: transform 0.4s ease;
}

.service_detail_card:hover {
  transform: translateY(-4px);
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.1),
    0 4px 12px rgba(102, 126, 234, 0.1);
}

.service_detail_card:hover::before {
  transform: scaleY(1);
}

.service_detail_card.reverse {
  flex-direction: row-reverse;
}

.service_detail_card .service_image {
  flex: 0 0 400px;
  height: 300px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.service_detail_card .service_image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.service_detail_card:hover .service_image img {
  transform: scale(1.05);
}

.service_detail_card .service_content {
  flex: 1;
}

.service_detail_card .service_content h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 20px;
  line-height: 1.3;
}

.service_detail_card .service_content p {
  color: #4a5568;
  line-height: 1.8;
  font-size: 1.125rem;
  margin-bottom: 32px;
}

.service_detail_card .service_benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.service_detail_card .benefit_item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 12px;
  transition: all 0.3s ease;
  border: 1px solid rgba(226, 232, 240, 0.6);
}

.service_detail_card .benefit_item:hover {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  transform: translateX(4px);
  border-color: transparent;
}

.service_detail_card .benefit_item i {
  font-size: 1.125rem;
  color: #667eea;
  min-width: 20px;
  transition: color 0.3s ease;
}

.service_detail_card .benefit_item:hover i {
  color: white;
}

.service_detail_card .benefit_item span {
  font-size: 0.95rem;
  font-weight: 500;
  color: #374151;
  transition: color 0.3s ease;
}

.service_detail_card .benefit_item:hover span {
  color: white;
}

/* Enhanced animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes glow {
  0%, 100% {
    box-shadow: 
      0 20px 60px rgba(102, 126, 234, 0.3),
      0 8px 20px rgba(0, 0, 0, 0.1);
  }
  50% {
    box-shadow: 
      0 25px 70px rgba(102, 126, 234, 0.4),
      0 12px 28px rgba(0, 0, 0, 0.15);
  }
}

/* Animation delays for staggered effect */
.services_grid .service-card {
  opacity: 0;
  transform: translateY(40px);
}

.services_grid .service-card:nth-child(1) { animation: fadeInUp 0.8s ease-out 0.1s both; }
.services_grid .service-card:nth-child(2) { animation: fadeInUp 0.8s ease-out 0.2s both; }
.services_grid .service-card:nth-child(3) { animation: fadeInUp 0.8s ease-out 0.3s both; }
.services_grid .service-card:nth-child(4) { animation: fadeInUp 0.8s ease-out 0.4s both; }
.services_grid .service-card:nth-child(5) { animation: fadeInUp 0.8s ease-out 0.5s both; }
.services_grid .service-card:nth-child(6) { animation: fadeInUp 0.8s ease-out 0.6s both; }

.service_detail_card {
  opacity: 0;
  transform: translateX(-40px);
}

.service_detail_card:nth-child(odd) { animation: slideInLeft 1s ease-out 0.2s both; }
.service_detail_card:nth-child(even) { 
  animation: slideInRight 1s ease-out 0.3s both; 
  transform: translateX(40px);
}

.service-card.featured { 
  opacity: 0;
  transform: translateY(40px);
  animation: fadeInUp 1s ease-out 0.1s both; 
}

/* Subtle periodic glow effect for featured card */
.service-card.featured:hover {
  animation: glow 2s ease-in-out infinite;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .service_section .heading_container h2 {
    font-size: 3rem;
  }
  
  .services_grid {
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 28px;
  }
  
  .service_detail_card {
    gap: 40px;
    padding: 40px;
  }
}

@media (max-width: 992px) {
  .service_section .heading_container h2 {
    font-size: 2.5rem;
  }
  
  .service-card.featured {
    flex-direction: column;
    text-align: center;
    gap: 30px;
    padding: 50px 30px;
  }
  
  .service-card.featured .service-icon {
    width: 100px;
    height: 100px;
    min-width: 100px;
  }
  
  .services_grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  
  .service_detail_card {
    flex-direction: column !important;
    gap: 30px;
    text-align: center;
    padding: 35px 25px;
  }
  
  .service_detail_card.reverse {
    flex-direction: column !important;
  }
  
  .service_detail_card .service_image {
    flex: none;
    max-width: 100%;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .service_section .heading_container h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
  }
  
  .service_section .heading_container p {
    font-size: 1.125rem;
  }
  
  .service-card.featured {
    padding: 40px 25px;
    gap: 25px;
  }
  
  .service-card.featured .service-content h3 {
    font-size: 1.75rem;
  }
  
  .service-card.featured .service-content p {
    font-size: 1rem;
  }
  
  .service-card.featured .service-features {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .services_grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .services_grid .service-card {
    padding: 32px 24px;
  }
  
  .service_detail_card {
    padding: 30px 20px;
    margin-bottom: 50px;
  }
}

@media (max-width: 576px) {
  .service_section .heading_container h2 {
    font-size: 1.875rem;
  }
  
  .service-card.featured {
    padding: 30px 20px;
  }
  
  .service-card.featured .service-icon {
    width: 80px;
    height: 80px;
    min-width: 80px;
  }
  
  .service-card.featured .service-icon img {
    width: 40px;
    height: 40px;
  }
  
  .service-card.featured .service-content h3 {
    font-size: 1.5rem;
  }
  
  .services_grid .service-card {
    padding: 28px 20px;
  }
  
  .services_grid .service-card .service-icon {
    width: 70px;
    height: 70px;
  }
  
  .services_grid .service-card .service-icon img {
    width: 35px;
    height: 35px;
  }
  
  .service_detail_card {
    padding: 25px 15px;
  }
  
  .service_detail_card .service_content h4 {
    font-size: 1.5rem;
  }
  
  .service_detail_card .service_content p {
    font-size: 1rem;
  }
  
  .service_detail_card .service_benefits {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  .service-card.featured,
  .services_grid .service-card,
  .service_detail_card {
    animation: none;
  }
  
  .service-card.featured,
  .services_grid .service-card,
  .service_detail_card,
  .service-icon,
  .benefit_item {
    transition: none;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .service-card.featured {
    border: 2px solid #000;
  }
  
  .services_grid .service-card {
    border: 2px solid #000;
  }
  
  .service_detail_card {
    border: 2px solid #000;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .sub_page .service_section {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
  }
  
  .service_section .heading_container h2 {
    color: #f7fafc;
  }
  
  .service_section .heading_container p {
    color: #cbd5e0;
  }
  
  .services_grid .service-card {
    background: #2d3748;
    border-color: #4a5568;
  }
  
  .services_grid .service-card .service-content h5 {
    color: #f7fafc;
  }
  
  .services_grid .service-card .service-content p {
    color: #cbd5e0;
  }
  
  .service_detail_card {
    background: #2d3748;
    border-color: #4a5568;
  }
  
  .service_detail_card .service_content h4 {
    color: #f7fafc;
  }
  
  .service_detail_card .service_content p {
    color: #cbd5e0;
  }
}
