#services h2 {
  font-size: clamp(2.5rem, 3.5vw, 3.5rem);
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.7);
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  letter-spacing: 1px;
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
  margin-bottom: 45px;
}

#services h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, #e67e00, #d35400);
  border-radius: 2px;
}

.services-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.service-tab {
  padding: 12px 20px;
  margin-top: 5px;
  background: rgba(255,255,255,0.1);
  color: white;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 600;
  white-space: nowrap;
  backdrop-filter: blur(5px);
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  border: 1px solid transparent;
  font-size: 20px;
}

.service-tab:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

.service-tab.active {
  background: linear-gradient(to right, #e67e00, #d35400);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(230, 126, 0, 0.4);
  border-color: rgba(230, 126, 0, 0.5);
}

@keyframes fadeOutDown {
  to {
    opacity: 0;
    transform: translateY(20px);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-subtitle {
  font-size: 44px;
  color: #fff;
  margin-bottom: 30px;
  font-weight: 700; 
}

@media (max-width: 768px) {
  .section-subtitle {
    font-size: 34px;
  }
}

.service-block {
  display: none;
  animation-duration: 0.5s;
  animation-fill-mode: both;
  will-change: transform, opacity;
  padding: 50px 40px 40px;
}

.service-block.active {
  display: block;
  animation-name: fadeInUp;
}

.service-block.leaving {
  display: block;
  animation-name: fadeOutDown;
}

@media (max-width: 768px) {
  .services-tabs {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 10px;
  }
  
  .service-tab {
    font-size: 13px;
    padding: 6px 12px;
  }
  
  h2 {
    width: 100%;
  }
}

.cta-banner {
  background: rgba(255,255,255,0.1);
  color: white;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 30px;
  border-radius: 8px;
  margin-top: 40px;
  font-size: 28px;
  font-weight: 500;
  backdrop-filter: blur(5px);
  display: flex;
  justify-content: center;
}

.cta-banner p {
  font-size: calc(4px + 1vw); 
  white-space: nowrap;
  text-overflow: ellipsis;
  text-align: center;
  margin: 0;
  padding: 0;
  transition: font-size 0.3s ease; 
  color: #fff;
}

@media (max-width: 1200px) {
  .cta-banner p {
    font-size: calc(14px + 0.8vw);
  }
}

@media (max-width: 768px) {
  .cta-banner p {
    font-size: calc(12px + 1.5vw);
    white-space: normal; 
    text-overflow: clip;
  }
}