/* ========================================
   SERVICES PAGE - MODERN PROFESSIONAL STYLES
   ======================================== */

/* Enhanced Hero Section */
.page-hero {
  padding-top: 120px;
  padding-bottom: 80px;
  background: linear-gradient(135deg, #e31e24 0%, #c0191f 50%, #1a1a1a 100%);
  position: relative;
  overflow: hidden;
  color: #fff;
}

.page-hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: float 20s ease-in-out infinite;
}

.page-hero::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  animation: float 15s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

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

.page-hero .section-title {
  color: #fff;
  font-size: 3.5rem;
  margin-bottom: 20px;
  animation: fadeInUp 0.8s ease;
}

.page-hero p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  animation: fadeInUp 1s ease;
}

/* Enhanced Services Grid */
#services-section {
  background: linear-gradient(135deg, #f9f9f9 0%, #ffffff 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

/* Services Section Background Animation */
#services-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 30%, rgba(227, 30, 36, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(227, 30, 36, 0.04) 0%, transparent 50%);
  animation: floatShapes 20s ease-in-out infinite;
  z-index: 0;
  pointer-events: none;
}

#services-section::after {
  content: "";
  position: absolute;
  top: -100px;
  left: -100px;
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, rgba(227, 30, 36, 0.1) 0%, transparent 100%);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  animation: morphShape 12s ease-in-out infinite;
  z-index: 0;
  pointer-events: none;
}

#services-section > * {
  position: relative;
  z-index: 1;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.service-card {
  background: linear-gradient(135deg, #fff 0%, #f9f9f9 100%);
  padding: 40px 30px;
  border-radius: 20px;
  border: 2px solid transparent;
  box-shadow: 0 8px 25px rgba(227, 30, 36, 0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
  text-align: center;
}

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

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, #e31e24, #ff4757, #e31e24);
  background-size: 200% 100%;
  animation: shimmer 3s linear infinite;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

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

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.service-card::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(227, 30, 36, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover::after {
  opacity: 1;
}

.service-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 20px 50px rgba(227, 30, 36, 0.25);
  border-color: #e31e24;
}

.service-icon {
  font-size: 3.5rem;
  color: #e31e24;
  margin: 0 auto 20px auto;
  transition: all 0.4s ease;
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, rgba(227, 30, 36, 0.1), rgba(255, 71, 87, 0.1));
  width: 90px;
  height: 90px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(227, 30, 36, 0.2);
}

.service-card:hover .service-icon {
  transform: rotate(10deg) scale(1.15);
  background: linear-gradient(135deg, #e31e24, #ff4757);
  color: #fff;
  box-shadow: 0 10px 25px rgba(227, 30, 36, 0.4);
}

.service-card h3 {
  font-family: "Montserrat", sans-serif;
  font-size: 1.8rem;
  color: #1a1a1a;
  margin-bottom: 15px;
  position: relative;
  z-index: 1;
  transition: color 0.3s ease;
}

.service-card:hover h3 {
  color: #e31e24;
}

.service-card > p {
  font-size: 1rem;
  color: #555;
  line-height: 1.7;
  margin-bottom: 25px;
  position: relative;
  z-index: 1;
}

.service-features {
  margin-top: 25px;
  padding-top: 25px;
  border-top: 2px solid #f0f0f0;
  position: relative;
  z-index: 1;
}

.service-features h4 {
  font-family: "Montserrat", sans-serif;
  font-size: 1.1rem;
  color: #1a1a1a;
  margin-bottom: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
}

.service-features h4::before {
  content: "";
  width: 30px;
  height: 3px;
  background: linear-gradient(90deg, #e31e24, #ff4757);
  border-radius: 2px;
}

.service-features ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-features li {
  padding: 12px 15px;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #fff 0%, #f9f9f9 100%);
  border-radius: 10px;
  border-left: 4px solid #e31e24;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
}

.service-features li::before {
  content: "✓";
  color: #fff;
  font-weight: bold;
  font-size: 0.9rem;
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, #e31e24, #ff4757);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(227, 30, 36, 0.3);
}

.service-features li:hover {
  transform: translateX(8px);
  box-shadow: 0 5px 15px rgba(227, 30, 36, 0.15);
  border-left-color: #ff4757;
  background: linear-gradient(135deg, #fff 0%, rgba(227, 30, 36, 0.05) 100%);
}

/* Section Heading */
.section-heading {
  text-align: center;
  margin-bottom: 60px;
  opacity: 0;
  transform: translateY(30px);
}

.section-heading.animate {
  opacity: 1;
  transform: translateY(0);
}

.section-heading h2 {
  font-family: "Montserrat", sans-serif;
  font-size: 2.8rem;
  color: #1a1a1a;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-heading h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #e31e24, #ff4757);
  border-radius: 2px;
}

.section-heading p {
  font-size: 1.1rem;
  color: #555;
  max-width: 700px;
  margin: 0 auto;
}

/* Enhanced CTA Section */
.cta-section {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: #fff;
  text-align: center;
  padding: 80px 20px;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: rgba(227, 30, 36, 0.1);
  border-radius: 50%;
  animation: float 20s ease-in-out infinite;
}

.cta-section::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: rgba(227, 30, 36, 0.05);
  border-radius: 50%;
  animation: float 15s ease-in-out infinite reverse;
}

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

.cta-section h2 {
  font-family: "Montserrat", sans-serif;
  font-size: 2.8rem;
  margin-bottom: 20px;
  color: #fff;
  animation: fadeInUp 0.8s ease;
}

.cta-section p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
  animation: fadeInUp 1s ease;
}

.cta-section .btn {
  font-size: 1.1rem;
  padding: 18px 50px;
  animation: fadeInUp 1.2s ease;
  position: relative;
  overflow: hidden;
}

.cta-section .btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.cta-section .btn:hover::before {
  width: 300px;
  height: 300px;
}

.cta-section .btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(227, 30, 36, 0.5);
}

/* Loading State */
.services-loading {
  text-align: center;
  padding: 60px 20px;
  color: #555;
}

.services-loading i {
  font-size: 3rem;
  color: #e31e24;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Error State */
.services-error {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, #fff 0%, #f9f9f9 100%);
  border-radius: 20px;
  border: 2px dashed #e31e24;
}

.services-error p {
  font-size: 1.1rem;
  color: #e31e24;
  margin: 0;
}

/* Stagger Animation Delays */
.service-card:nth-child(1) { transition-delay: 0.1s; }
.service-card:nth-child(2) { transition-delay: 0.2s; }
.service-card:nth-child(3) { transition-delay: 0.3s; }
.service-card:nth-child(4) { transition-delay: 0.4s; }
.service-card:nth-child(5) { transition-delay: 0.5s; }
.service-card:nth-child(6) { transition-delay: 0.6s; }
.service-card:nth-child(7) { transition-delay: 0.7s; }
.service-card:nth-child(8) { transition-delay: 0.8s; }
.service-card:nth-child(9) { transition-delay: 0.9s; }

/* Responsive Design */
@media (max-width: 991px) {
  .page-hero .section-title {
    font-size: 2.5rem;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
  
  .cta-section h2 {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .page-hero {
    padding-top: 100px;
    padding-bottom: 60px;
  }
  
  .page-hero .section-title {
    font-size: 2rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .service-card {
    padding: 30px 20px;
  }
  
  .service-icon {
    width: 70px;
    height: 70px;
    font-size: 2.5rem;
  }
  
  .section-heading h2 {
    font-size: 2rem;
  }
  
  .cta-section {
    padding: 60px 20px;
  }
  
  .cta-section h2 {
    font-size: 1.8rem;
  }
}

/* Animation Classes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Background Animation Keyframes */
@keyframes floatShapes {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
  33% {
    transform: translate(20px, -20px) scale(1.05);
    opacity: 0.9;
  }
  66% {
    transform: translate(-15px, 15px) scale(0.95);
    opacity: 0.95;
  }
}

@keyframes morphShape {
  0%, 100% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    transform: rotate(0deg);
  }
  25% {
    border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
    transform: rotate(90deg);
  }
  50% {
    border-radius: 30% 70% 70% 30% / 70% 30% 30% 70%;
    transform: rotate(180deg);
  }
  75% {
    border-radius: 70% 30% 30% 70% / 30% 70% 70% 30%;
    transform: rotate(270deg);
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  #services-section::before,
  #services-section::after {
    animation: none !important;
    opacity: 0.3;
  }
}

.fade-in-up {
  animation: fadeInUp 0.8s ease forwards;
}

/* Breadcrumb Styling */
.breadcrumb {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.3s ease;
}

.breadcrumb a:hover {
  color: #fff;
}

.breadcrumb i {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.7rem;
}

.breadcrumb span {
  color: rgba(255, 255, 255, 0.9);
}
