/* ===================================
   SERVICES PAGE - RADICAL REDESIGN
   =================================== */

/* Services Hero Section */
.services-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #1B5E20 0%, #2E7D32 50%, #388E3C 100%);
}

.services-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(255,255,255,0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255,152,0,0.05) 0%, transparent 50%),
    radial-gradient(circle at 40% 20%, rgba(141,110,99,0.05) 0%, transparent 50%);
  animation: pulse-gradient 10s ease-in-out infinite;
}

@keyframes pulse-gradient {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.services-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 35px,
      rgba(255,255,255,.02) 35px,
      rgba(255,255,255,.02) 70px
    );
}

.services-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  animation: fadeInUp 1s ease;
}

.services-hero-icon {
  width: 100px;
  height: 100px;
  background: rgba(255, 152, 0, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 30px;
  box-shadow: 0 15px 50px rgba(255, 152, 0, 0.3);
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

.services-hero-icon i {
  font-size: 3rem;
  color: #fff;
}

.services-hero-content h1 {
  font-size: 4.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 20px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  line-height: 1.2;
}

.services-hero-content p {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.6;
}

/* Services Section */
.services-section {
  padding: 120px 0;
  background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 50%, #f8f9fa 100%);
  position: relative;
}

.services-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, 
    transparent 0%, 
    #2E7D32 10%, 
    #2E7D32 90%, 
    transparent 100%);
  opacity: 0.2;
}

/* Service Card Large - Redesigned */
.service-card-large {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 100px;
  padding: 60px;
  background: #fff;
  border-radius: 30px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card-large::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(to bottom, #2E7D32, #388E3C);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.5s ease;
}

.service-card-large:hover::before {
  transform: scaleY(1);
}

.service-card-large:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 80px rgba(46, 125, 50, 0.15);
}

.service-card-large::after {
  content: '';
  position: absolute;
  bottom: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(46, 125, 50, 0.03) 0%, transparent 70%);
  border-radius: 50%;
  transition: transform 0.5s ease;
}

.service-card-large:hover::after {
  transform: translate(-50px, -50px) scale(1.5);
}

/* Reverse Layout for Alternating Cards */
.service-card-reverse {
  grid-template-columns: 1fr 400px;
}

.service-card-reverse .service-card-icon-large {
  order: 2;
}

.service-card-reverse .service-card-content {
  order: 1;
}

/* Service Icon Large */
.service-card-icon-large {
  position: relative;
  width: 100%;
  height: 400px;
  background: linear-gradient(135deg, #2E7D32, #388E3C);
  border-radius: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 60px rgba(46, 125, 50, 0.3);
  overflow: hidden;
  transition: transform 0.5s ease;
}

.service-card-large:hover .service-card-icon-large {
  transform: scale(1.05) rotateY(10deg);
}

.service-card-icon-large::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
  animation: rotate-shine 10s linear infinite;
}

@keyframes rotate-shine {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.service-card-icon-large i {
  font-size: 6rem;
  color: #fff;
  position: relative;
  z-index: 1;
  animation: pulse-icon 2s ease-in-out infinite;
}

@keyframes pulse-icon {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* Service Content */
.service-card-content h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #1B5E20;
  margin-bottom: 20px;
  line-height: 1.3;
  position: relative;
  padding-bottom: 20px;
}

.service-card-content h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #FF9800, transparent);
  border-radius: 2px;
}

.service-card-content > p {
  font-size: 1.15rem;
  color: #666;
  line-height: 1.8;
  margin-bottom: 30px;
}

/* Service Items Grid */
.service-items-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-bottom: 30px;
}

.service-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 20px;
  background: linear-gradient(135deg, rgba(46, 125, 50, 0.05), rgba(56, 142, 60, 0.03));
  border-radius: 12px;
  border: 1px solid rgba(46, 125, 50, 0.1);
  transition: all 0.3s ease;
}

.service-item:hover {
  background: linear-gradient(135deg, rgba(46, 125, 50, 0.1), rgba(56, 142, 60, 0.08));
  border-color: #2E7D32;
  transform: translateX(-5px);
}

.service-item i {
  font-size: 1.1rem;
  color: #2E7D32;
  flex-shrink: 0;
}

.service-item span {
  font-size: 1rem;
  color: #333;
  font-weight: 600;
}

.service-text {
  font-size: 1.05rem;
  line-height: 1.9;
  color: #555;
  padding: 25px;
  background: linear-gradient(135deg, #f8f9fa, #e8f5e9);
  border-radius: 15px;
  border-right: 4px solid #2E7D32;
  position: relative;
}

.service-text::before {
  content: '"';
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 3rem;
  color: rgba(46, 125, 50, 0.15);
  font-family: Georgia, serif;
  line-height: 1;
}

/* CTA Section */
.cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #1B5E20 0%, #2E7D32 50%, #388E3C 100%);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: -50%;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 152, 0, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-card {
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta-icon {
  width: 100px;
  height: 100px;
  background: rgba(255, 152, 0, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 30px;
  box-shadow: 0 15px 50px rgba(255, 152, 0, 0.3);
  animation: float 3s ease-in-out infinite;
}

.cta-icon i {
  font-size: 2.5rem;
  color: #fff;
}

.cta-card h2 {
  font-size: 3rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 15px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.cta-card p {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 35px;
  line-height: 1.6;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 40px;
  background: #fff;
  color: #2E7D32;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  border: 2px solid transparent;
}

.btn-primary:hover {
  background: #FF9800;
  color: #fff;
  transform: translateY(-5px);
  box-shadow: 0 20px 60px rgba(255, 152, 0, 0.4);
}

.btn-primary i {
  transition: transform 0.3s ease;
}

.btn-primary:hover i {
  transform: translateLeft(5px);
}

.btn-lg {
  padding: 20px 50px;
  font-size: 1.2rem;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 1400px) {
  .service-card-large {
    grid-template-columns: 350px 1fr;
    gap: 50px;
  }
  
  .service-card-reverse {
    grid-template-columns: 1fr 350px;
  }
  
  .service-card-icon-large {
    height: 350px;
  }
}

@media (max-width: 1200px) {
  .services-hero-content h1 {
    font-size: 3.5rem;
  }
  
  .service-card-large {
    grid-template-columns: 300px 1fr;
    padding: 50px;
    gap: 40px;
  }
  
  .service-card-reverse {
    grid-template-columns: 1fr 300px;
  }
  
  .service-card-icon-large {
    height: 300px;
  }
  
  .service-card-icon-large i {
    font-size: 5rem;
  }
  
  .service-card-content h2 {
    font-size: 2.2rem;
  }
}

@media (max-width: 992px) {
  .services-hero {
    min-height: 60vh;
  }
  
  .services-hero-content h1 {
    font-size: 3rem;
  }
  
  .services-hero-content p {
    font-size: 1.3rem;
  }
  
  .services-section {
    padding: 80px 0;
  }
  
  .service-card-large,
  .service-card-reverse {
    grid-template-columns: 1fr;
    padding: 40px;
    margin-bottom: 60px;
  }
  
  .service-card-reverse .service-card-icon-large,
  .service-card-reverse .service-card-content {
    order: initial;
  }
  
  .service-card-icon-large {
    height: 250px;
    max-width: 400px;
    margin: 0 auto;
  }
  
  .service-items-grid {
    grid-template-columns: 1fr;
  }
  
  .cta-card h2 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .services-hero {
    min-height: 50vh;
    padding: 40px 0;
  }
  
  .services-hero-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
  }
  
  .services-hero-icon i {
    font-size: 2.5rem;
  }
  
  .services-hero-content h1 {
    font-size: 2.5rem;
  }
  
  .services-hero-content p {
    font-size: 1.1rem;
  }
  
  .services-section {
    padding: 60px 0;
  }
  
  .service-card-large {
    padding: 30px;
    margin-bottom: 40px;
    border-radius: 20px;
  }
  
  .service-card-icon-large {
    height: 200px;
  }
  
  .service-card-icon-large i {
    font-size: 4rem;
  }
  
  .service-card-content h2 {
    font-size: 1.8rem;
  }
  
  .service-card-content > p {
    font-size: 1rem;
  }
  
  .service-text {
    padding: 20px;
    font-size: 0.95rem;
  }
  
  .cta-section {
    padding: 60px 0;
  }
  
  .cta-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
  }
  
  .cta-icon i {
    font-size: 2rem;
  }
  
  .cta-card h2 {
    font-size: 2rem;
  }
  
  .cta-card p {
    font-size: 1.1rem;
  }
}

@media (max-width: 576px) {
  .services-hero-content h1 {
    font-size: 2rem;
  }
  
  .services-hero-content p {
    font-size: 1rem;
  }
  
  .service-card-large {
    padding: 25px 20px;
  }
  
  .service-card-content h2 {
    font-size: 1.6rem;
    padding-bottom: 15px;
  }
  
  .service-card-content h2::after {
    width: 60px;
    height: 3px;
  }
  
  .service-item {
    padding: 12px 15px;
  }
  
  .service-item span {
    font-size: 0.9rem;
  }
  
  .cta-card h2 {
    font-size: 1.8rem;
  }
  
  .cta-card p {
    font-size: 1rem;
  }
  
  .btn-primary {
    padding: 16px 35px;
    font-size: 1rem;
  }
  
  .btn-lg {
    padding: 18px 40px;
    font-size: 1.1rem;
  }
}

/* RTL Support */
html[dir="rtl"] .service-card-content h2::after {
  right: auto;
  left: 0;
  background: linear-gradient(270deg, #FF9800, transparent);
}

html[dir="rtl"] .service-item:hover {
  transform: translateX(5px);
}

html[dir="rtl"] .service-text {
  border-right: none;
  border-left: 4px solid #2E7D32;
}

html[dir="rtl"] .service-text::before {
  right: auto;
  left: 15px;
}

html[dir="rtl"] .btn-primary:hover i {
  transform: translateRight(5px);
}
