/* ================================
   MODERN SERVICES SECTION STYLES
   ================================ */

/* Services Section */
.services-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.services-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: whitesmoke !important;
  pointer-events: none;
}

.services-section .container {
  position: relative;
  z-index: 2;
}

.services-section h2 {
  font-size: 3.5rem;
  font-weight: 800;
  color: #2c3e50;
  margin-bottom: 20px;
  text-align: center;
  position: relative;
  letter-spacing: -1px;
}

.services-section h2::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #6a148b, #9c27b0);
  border-radius: 2px;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 30px;
  margin-top: 60px;
  padding: 0 20px;
}

/* Service Card */
.service-card {
  background: white;
  border-radius: 20px;
  padding: 0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  transform: translateY(20px);
  opacity: 0;
  border: 1px solid rgba(106, 20, 139, 0.1);
}

.service-card.animate-in {
  transform: translateY(0);
  opacity: 1;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--card-color, #6a148b), var(--card-color, #6a148b)88);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

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

.service-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Card Header */
.card-header {
  padding: 40px 30px 20px;
  text-align: center;
  position: relative;
}

.card-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--card-color, #6a148b), var(--card-color, #6a148b)dd);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card-icon::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
  transform: translateX(-100%) translateY(-100%) rotate(45deg);
  transition: transform 0.6s ease;
}

.service-card:hover .card-icon::before {
  transform: translateX(100%) translateY(100%) rotate(45deg);
}

.card-icon i {
  font-size: 2.2rem;
  color: white;
  z-index: 2;
  position: relative;
}

.card-title h3 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 8px;
  line-height: 1.3;
}

.card-subtitle {
  font-size: 1rem;
  color: #7f8c8d;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
}

/* Card Body */
.card-body {
  padding: 0 30px 20px;
}

.card-description {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 25px;
  text-align: center;
}

.card-stats {
  display: flex;
  justify-content: space-between;
  gap: 15px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  padding: 15px 10px;
  background: #f8f9fa;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.stat-item:hover {
  background: var(--card-color, #6a148b);
  color: white;
  transform: translateY(-3px);
}

.stat-item i {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--card-color, #6a148b);
  transition: color 0.3s ease;
}

.stat-item:hover i {
  color: white;
}

.stat-item span {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Card Footer */
.card-footer {
  padding: 0 30px 40px;
}

.learn-more-btn {
  width: 100%;
  padding: 18px 30px;
  background-color: linear-gradient(135deg, var(--card-color, #6a148b), var(--card-color, #6a148b)dd);
  border: none;
  border-radius: 50px;
  color: #6a148b;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
}

.learn-more-btn::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;
}

.learn-more-btn:hover::before {
  left: 100%;
}

.learn-more-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.learn-more-btn i {
  transition: transform 0.3s ease;
}

.learn-more-btn:hover i {
  transform: translateX(5px);
}

/* ================================
   MODAL STYLES
   ================================ */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  position: relative;
}

.modal-content {
  background: white;
  border-radius: 25px;
  overflow: hidden;
  position: relative;
  transform: scale(0.9) translateY(50px);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-content.animate-in {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.modal-close:hover {
  background: white;
  transform: rotate(90deg) scale(1.1);
}

.modal-close i {
  font-size: 1.2rem;
  color: #333;
}

/* Modal Header */
.modal-header {
  padding: 60px 40px 40px;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.modal-header::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="modalPattern" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23modalPattern)"/></svg>');
}

.modal-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 25px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.modal-icon i {
  font-size: 3rem;
  color: white;
}

.modal-title h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 10px;
  position: relative;
  z-index: 2;
}

.modal-title p {
  font-size: 1.2rem;
  opacity: 0.9;
  font-weight: 400;
  margin: 0;
  position: relative;
  z-index: 2;
}

/* Modal Body */
.modal-body {
  padding: 50px 40px;
}

.service-overview,
.service-details,
.service-benefits,
.service-process {
  margin-bottom: 40px;
}

.service-overview h3,
.service-details h3,
.service-benefits h3,
.service-process h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 20px;
  position: relative;
  padding-left: 25px;
}

.service-overview h3::before,
.service-details h3::before,
.service-benefits h3::before,
.service-process h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  background: linear-gradient(135deg, #6a148b, #9c27b0);
  border-radius: 50%;
}

.service-overview p {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #555;
}

/* Service List */
.service-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 15px;
}

.service-list li {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  background: #f8f9fa;
  border-radius: 12px;
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
}

.service-list li:hover {
  background: #e9ecef;
  border-left-color: #6a148b;
  transform: translateX(5px);
}

.service-list li i {
  color: #28a745;
  font-size: 1.1rem;
  margin-right: 15px;
  flex-shrink: 0;
}

/* Benefits Grid */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.benefit-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 25px 15px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.benefit-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  border-color: #6a148b;
}

.benefit-item i {
  font-size: 2.5rem;
  color: #6a148b;
  margin-bottom: 15px;
}

.benefit-item span {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2c3e50;
}

/* Process Steps */
.process-steps {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.process-step {
  display: flex;
  align-items: flex-start;
  gap: 25px;
  padding: 25px;
  background: #f8f9fa;
  border-radius: 15px;
  transition: all 0.3s ease;
  position: relative;
}

.process-step:hover {
  background: white;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transform: translateX(10px);
}

.step-number {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #6a148b, #9c27b0);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  flex-shrink: 0;
}

.step-content h4 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 10px;
}

.step-content p {
  font-size: 1rem;
  line-height: 1.6;
  color: #666;
  margin: 0;
}

/* Modal Footer */
.modal-footer {
  padding: 40px;
  background: #f8f9fa;
  text-align: center;
}

.contact-info p {
  font-size: 1.2rem;
  color: #555;
  margin-bottom: 25px;
  font-weight: 500;
}

.contact-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-btn {
  padding: 15px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  min-width: 160px;
  justify-content: center;
}

.phone-btn {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
}

.email-btn {
  background: linear-gradient(135deg, #dc3545, #e74c3c);
  color: white;
}

.more-btn {
  background: linear-gradient(135deg, #6a148b, #9c27b0);
  color: white;
}

.contact-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  color: white;
}

/* ================================
   RESPONSIVE DESIGN
   ================================ */

@media (max-width: 1200px) {
  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
  }
}

@media (max-width: 768px) {
  .services-section {
    padding: 80px 0;
  }
  
  .services-section h2 {
    font-size: 2.8rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 10px;
  }
  
  .service-card {
    margin: 0 10px;
  }
  
  .card-header {
    padding: 30px 20px 15px;
  }
  
  .card-icon {
    width: 70px;
    height: 70px;
  }
  
  .card-icon i {
    font-size: 2rem;
  }
  
  .card-title h3 {
    font-size: 1.4rem;
  }
  
  .card-body {
    padding: 0 20px 15px;
  }
  
  .card-stats {
    flex-direction: column;
    gap: 10px;
  }
  
  .stat-item {
    flex-direction: row;
    justify-content: center;
    padding: 12px 15px;
  }
  
  .stat-item i {
    margin-bottom: 0;
    margin-right: 8px;
  }
  
  .card-footer {
    padding: 0 20px 30px;
  }
  
  .learn-more-btn {
    padding: 15px 25px;
    font-size: 1rem;
  }
  
  /* Modal Responsive */
  .modal-overlay {
    padding: 10px;
  }
  
  .modal-content {
    border-radius: 20px;
  }
  
  .modal-header {
    padding: 40px 25px 30px;
  }
  
  .modal-title h2 {
    font-size: 2rem;
  }
  
  .modal-body {
    padding: 30px 25px;
  }
  
  .service-list {
    grid-template-columns: 1fr;
  }
  
  .benefits-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
  }
  
  .benefit-item {
    padding: 20px 10px;
  }
  
  .process-step {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  
  .modal-footer {
    padding: 30px 25px;
  }
  
  .contact-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .contact-btn {
    width: 100%;
    max-width: 250px;
  }
}

@media (max-width: 480px) {
  .services-section h2 {
    font-size: 2.2rem;
  }
  
  .card-title h3 {
    font-size: 1.2rem;
  }
  
  .card-description {
    font-size: 1rem;
  }
  
  .modal-header {
    padding: 30px 20px 25px;
  }
  
  .modal-title h2 {
    font-size: 1.8rem;
  }
  
  .modal-icon {
    width: 80px;
    height: 80px;
  }
  
  .modal-icon i {
    font-size: 2.5rem;
  }
  
  .modal-body {
    padding: 25px 20px;
  }
  
  .service-overview h3,
  .service-details h3,
  .service-benefits h3,
  .service-process h3 {
    font-size: 1.5rem;
  }
  
  .benefit-item i {
    font-size: 2rem;
  }
  
  .step-number {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}

/* ================================
   ACCESSIBILITY & ANIMATIONS
   ================================ */

/* Custom Scrollbar */
.modal-content::-webkit-scrollbar {
  width: 8px;
}

.modal-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #6a148b, #9c27b0);
  border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #9c27b0, #6a148b);
}

/* Focus States */
.learn-more-btn:focus,
.modal-close:focus,
.contact-btn:focus {
  outline: 3px solid rgba(106, 20, 139, 0.5);
  outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .service-card {
    border: 2px solid #000;
  }
  
  .modal-overlay {
    background: rgba(0, 0, 0, 0.95);
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .service-card,
  .modal-content,
  .learn-more-btn,
  .contact-btn {
    transition: none;
  }
  
  .service-card:hover {
    transform: none;
  }
}

/* Print Styles */
@media print {
  .modal-overlay {
    display: none;
  }
  
  .service-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
  }
}
