/* WorthyTech — services.php only. Index “Our Services” / sliders stay in style.css */

/* ========== Hero ========== */
.services-hero-section {
  position: relative;
  overflow: hidden;
  padding: clamp(7rem, 18vw, 11rem) 0 clamp(4rem, 10vw, 7.5rem);
  text-align: center;
  color: #fff;
  background: radial-gradient(
      circle at 20% -10%,
      rgba(45, 70, 109, 0.25),
      transparent 60%
    ),
    radial-gradient(
      circle at 100% 20%,
      rgba(176, 184, 193, 0.25),
      transparent 60%
    ),
    linear-gradient(135deg, #333333 0%, #2d466d 100%);
}

.services-hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.25;
  z-index: 0;
  pointer-events: none;
}

.animated-background {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.animated-background::before,
.animated-background::after {
  content: "";
  position: absolute;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(45, 70, 109, 0.12) 0%, transparent 70%),
    radial-gradient(circle, rgba(176, 184, 193, 0.12) 0%, transparent 70%);
  top: -50%;
  left: -50%;
  animation: svcDiagonalFlow 25s linear infinite;
  z-index: 0;
}

.animated-background::after {
  animation-delay: -10s;
  opacity: 0.6;
}

@keyframes svcDiagonalFlow {
  0% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(60px, 60px) rotate(180deg); }
  100% { transform: translate(0, 0) rotate(360deg); }
}

.floating-rings {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  pointer-events: none;
}

.services-hero-section .ring {
  position: absolute;
  border: 2px solid transparent;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    rgba(45, 70, 109, 0.3),
    rgba(176, 184, 193, 0.2),
    transparent 70%
  );
  animation: svcHeroRingSpin 30s linear infinite;
}

.ring-1 { width: 400px; height: 400px; animation-duration: 30s; opacity: 0.4; }
.ring-2 { width: 550px; height: 550px; animation-duration: 40s; opacity: 0.3; }
.ring-3 { width: 700px; height: 700px; animation-duration: 50s; opacity: 0.25; }

@keyframes svcHeroRingSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.tech-corners {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.corner {
  position: absolute;
  width: 220px;
  height: 220px;
  opacity: 0.5;
}

.corner-left { bottom: 40px; left: 40px; }
.corner-right { top: 40px; right: 40px; }

.tech-line {
  position: absolute;
  width: 2px;
  height: 150px;
  background: linear-gradient(
    180deg,
    rgba(45, 70, 109, 0.15) 0%,
    rgba(45, 70, 109, 0.85) 50%,
    rgba(176, 184, 193, 0.15) 100%
  );
  left: 50%;
  box-shadow: 0 0 15px rgba(45, 70, 109, 0.45);
}

.tech-dot {
  position: absolute;
  bottom: 10%;
  left: 45%;
  width: 14px;
  height: 14px;
  background: radial-gradient(circle, #b0b8c1 0%, rgba(176, 184, 193, 0.2) 70%);
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(176, 184, 193, 0.8);
}

.tech-hexagon {
  position: absolute;
  top: 20%;
  left: 30%;
  width: 60px;
  height: 35px;
  background: linear-gradient(135deg, rgba(176, 184, 193, 0.4), rgba(45, 70, 109, 0.5));
  box-shadow: 0 0 25px rgba(45, 70, 109, 0.6);
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  animation: svcRotateHex 10s linear infinite;
}

@keyframes svcRotateHex {
  0% { transform: rotate(0deg) scale(1); opacity: 0.7; }
  50% { transform: rotate(180deg) scale(1.1); opacity: 1; }
  100% { transform: rotate(360deg) scale(1); opacity: 0.7; }
}

.services-hero-section .container {
  z-index: 4;
}

.services-hero-title {
  font-size: 3rem;
  font-weight: 800;
  color: #ffffff;
  position: relative;
  z-index: 3;
  opacity: 0;
  transform: translateY(40px);
  animation: svcSlideInUp 1.5s ease forwards;
  text-shadow: 0 0 20px rgba(45, 70, 109, 0.25);
}

.services-hero-highlight {
  position: relative;
  display: inline-block;
  background: linear-gradient(90deg, #e2e8f0, #ffffff, #cbd5e1, #f8fafc);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: svcHeroGradientShift 4s ease-in-out infinite;
}

.services-hero-highlight::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 10%;
  width: 80%;
  height: 3px;
  background: linear-gradient(90deg, #2d466d, #b0b8c1);
  border-radius: 5px;
  animation: svcUnderlinePulse 2s ease-in-out infinite;
}

@keyframes svcUnderlinePulse {
  0%, 100% { opacity: 0.6; transform: scaleX(0.9); }
  50% { opacity: 1; transform: scaleX(1.1); }
}

@keyframes svcHeroGradientShift {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.services-hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 1.2rem;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 3;
  opacity: 0;
  transform: translateY(40px);
  animation: svcSlideInUp 1.8s ease forwards;
}

@keyframes svcSlideInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== Services grid ========== */
.services-grid-section {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #f8f6ff 100%);
  padding: 100px 0;
  overflow: hidden;
}

.services-grid-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 25% 30%, rgba(45, 70, 109, 0.08), transparent 60%),
    radial-gradient(circle at 80% 70%, rgba(176, 184, 193, 0.08), transparent 60%);
  animation: svcSoftShift 15s ease-in-out infinite alternate;
  z-index: 0;
  pointer-events: none;
}

@keyframes svcSoftShift {
  from { transform: translate(0, 0); }
  to { transform: translate(50px, 40px); }
}

.services-grid-section .container {
  z-index: 1;
}

.services-page-card {
  position: relative;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(45, 70, 109, 0.1);
  border-radius: 20px;
  backdrop-filter: blur(15px);
  box-shadow: 0 8px 25px rgba(45, 70, 109, 0.08);
  text-align: center;
  color: var(--dark-color, #333);
  padding: 2.5rem 2rem;
  transition: all 0.4s ease;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.services-page-card:hover {
  transform: translateY(-10px);
  border-color: rgba(45, 70, 109, 0.25);
  box-shadow: 0 10px 30px rgba(45, 70, 109, 0.2);
  background: rgba(255, 255, 255, 0.9);
}

.services-page-card .icon-wrapper {
  position: relative;
  width: 90px;
  height: 90px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2d466d, #b0b8c1);
  border-radius: 50%;
  color: #fff;
  font-size: 2rem;
  z-index: 2;
  box-shadow: 0 6px 15px rgba(45, 70, 109, 0.25);
  transition: all 0.3s ease;
}

.services-page-card:hover .icon-wrapper {
  transform: scale(1.1);
  box-shadow: 0 0 25px rgba(45, 70, 109, 0.4);
}

.services-page-card .icon-glow {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45, 70, 109, 0.3), transparent 70%);
  filter: blur(15px);
  animation: svcIconGlowPulse 3s ease-in-out infinite;
  z-index: 1;
}

@keyframes svcIconGlowPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.15); }
}

.service-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(90deg, #2d466d, #b0b8c1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}

.service-card-description {
  color: var(--gray-700, #475569);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.services-page-card .service-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  width: 100%;
}

.services-page-card .service-features li {
  color: var(--gray-700, #475569);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.services-page-card .service-features li i {
  color: #2d466d;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.service-btn {
  background: linear-gradient(135deg, #2d466d, #b0b8c1);
  border: none;
  color: #fff !important;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  transition: all 0.3s ease;
  font-weight: 600;
  margin-top: auto;
}

.service-btn:hover {
  background: linear-gradient(135deg, #243d5a, #243d5a);
  box-shadow: 0 6px 20px rgba(45, 70, 109, 0.3);
  transform: translateY(-2px);
  color: #fff !important;
}

/* ========== Process ========== */
.process-section {
  position: relative;
  padding: 100px 0;
  color: #ffffff;
  background: linear-gradient(135deg, #333333 0%, #2d466d 100%);
  overflow: hidden;
  text-align: center;
}

.process-section .animated-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(45, 70, 109, 0.1), transparent 60%),
    radial-gradient(circle at 80% 70%, rgba(176, 184, 193, 0.1), transparent 60%);
  animation: svcBgMove 12s ease-in-out infinite alternate;
  z-index: 0;
  pointer-events: none;
}

@keyframes svcBgMove {
  0% { background-position: 0% 0%; }
  100% { background-position: 100% 100%; }
}

.process-title {
  font-size: 2.6rem;
  font-weight: 800;
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
}

.process-title .highlight-text {
  background: linear-gradient(90deg, #e2e8f0, #ffffff, #cbd5e1);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  animation: svcHeroGradientShift 4s ease-in-out infinite;
}

.process-title .highlight-text::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #2d466d, #b0b8c1);
  border-radius: 3px;
}

.process-description {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.75);
  max-width: 750px;
  margin: 0 auto 3rem;
  position: relative;
  z-index: 2;
}

.process-row {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 2rem;
  flex-wrap: nowrap;
  position: relative;
  z-index: 2;
}

.process-step {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 2.5rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  box-shadow: 0 0 20px rgba(176, 184, 193, 0.15);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.process-step:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 30px rgba(45, 70, 109, 0.3);
}

.process-step-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #2d466d, #b0b8c1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(45, 70, 109, 0.35);
}

.process-step-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    rgba(255, 255, 255, 0.2),
    transparent 60%,
    rgba(255, 255, 255, 0.2)
  );
  animation: svcRotateLight 6s linear infinite;
}

.process-step-icon i {
  position: relative;
  z-index: 1;
}

@keyframes svcRotateLight {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.process-step h5 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #fff;
}

.process-step p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
  margin: 0;
}

/* ========== Technologies ========== */
.technologies-section {
  background: linear-gradient(180deg, #ffffff 0%, #faf5ff 100%);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.technologies-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 25% 30%, rgba(45, 70, 109, 0.08), transparent 70%),
    radial-gradient(circle at 80% 70%, rgba(176, 184, 193, 0.08), transparent 70%);
  animation: svcSoftFloat 15s ease-in-out infinite alternate;
  z-index: 0;
  pointer-events: none;
}

@keyframes svcSoftFloat {
  from { background-position: 0 0, 100px 100px; }
  to { background-position: 100px -100px, -100px 100px; }
}

.technologies-section-title {
  font-size: 2.6rem;
  font-weight: 800;
  color: #111;
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
}

.technologies-section-title .highlight-gradient {
  background: linear-gradient(90deg, #2d466d, #b0b8c1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}

.technologies-section-title .highlight-gradient::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #2d466d, #b0b8c1);
  border-radius: 3px;
}

.technologies-section-desc {
  color: #555;
  font-size: 1.1rem;
  margin-bottom: 3rem;
  z-index: 2;
  position: relative;
}

.tech-grid {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 2rem;
  flex-wrap: nowrap;
  z-index: 2;
  position: relative;
}

.tech-card {
  background: #fff;
  border-radius: 20px;
  padding: 2.5rem 1.8rem;
  text-align: center;
  border: 1px solid rgba(45, 70, 109, 0.15);
  box-shadow: 0 10px 25px rgba(45, 70, 109, 0.05);
  transition: all 0.4s ease;
  position: relative;
  flex: 1;
}

.tech-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(176, 184, 193, 0.2);
}

.tech-card-icon {
  font-size: 2.8rem;
  background: linear-gradient(135deg, #2d466d, #b0b8c1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
  display: block;
}

.tech-category-title {
  font-weight: 700;
  font-size: 1.3rem;
  color: #1f1f1f;
  margin-bottom: 1rem;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

.tech-tags span {
  background: linear-gradient(135deg, rgba(45, 70, 109, 0.08), rgba(176, 184, 193, 0.08));
  color: #333;
  border: 1px solid rgba(45, 70, 109, 0.2);
  padding: 6px 14px;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.tech-tags span:hover {
  background: linear-gradient(135deg, #2d466d, #b0b8c1);
  color: #fff;
  box-shadow: 0 0 12px rgba(176, 184, 193, 0.4);
  transform: scale(1.05);
}

/* ========== CTA ========== */
.cta-section-refined-services {
  position: relative;
  background: linear-gradient(135deg, #333333 0%, #2d466d 50%, #333333 100%);
  color: var(--white, #fff);
  padding: 90px 0;
  overflow: hidden;
  z-index: 1;
}

.cta-section-refined-services::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(45, 70, 109, 0.15), transparent 70%),
    radial-gradient(circle at 80% 70%, rgba(176, 184, 193, 0.15), transparent 70%);
  animation: svcSubtleGlow 10s ease-in-out infinite alternate;
  z-index: 0;
  pointer-events: none;
}

@keyframes svcSubtleGlow {
  0%, 100% { opacity: 0.9; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.05); }
}

.cta-title-services {
  font-size: 2.8rem;
  font-weight: 800;
  color: #fff;
  position: relative;
  z-index: 3;
}

.cta-title-services .highlight-gradient {
  background: linear-gradient(90deg, #e2e8f0, #ffffff, #cbd5e1, #f8fafc);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: svcCtaGradientMove 3s ease infinite;
}

@keyframes svcCtaGradientMove {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 200% center; }
}

.cta-divider-services {
  width: 100px;
  height: 4px;
  margin: 1.2rem auto 1.5rem;
  border-radius: 10px;
  background: linear-gradient(90deg, #2d466d, #b0b8c1);
  animation: svcGlowBar 3s ease-in-out infinite;
  z-index: 3;
  position: relative;
}

@keyframes svcGlowBar {
  0%, 100% { opacity: 0.6; transform: scaleX(0.8); }
  50% { opacity: 1; transform: scaleX(1.1); }
}

.cta-description-services {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 720px;
  margin: 0 auto 2rem;
  line-height: 1.6;
  z-index: 3;
  position: relative;
}

.cta-buttons-services {
  position: relative;
  z-index: 4;
}

.btn-refined-services {
  background: linear-gradient(135deg, #2d466d, #b0b8c1);
  color: #fff !important;
  padding: 0.8rem 2.4rem;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  margin: 0 10px;
  transition: all 0.4s ease;
  box-shadow: 0 0 15px rgba(45, 70, 109, 0.3);
  position: relative;
  z-index: 5;
}

.btn-refined-services:hover {
  background: linear-gradient(135deg, #b0b8c1, #2d466d);
  transform: translateY(-3px);
  box-shadow: 0 0 25px rgba(45, 70, 109, 0.5);
  color: #fff !important;
}

.btn-outline-refined-services {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.7);
  color: #fff !important;
  padding: 0.8rem 2.4rem;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.4s ease;
  position: relative;
  z-index: 5;
}

.btn-outline-refined-services:hover {
  background: linear-gradient(135deg, #2d466d, #b0b8c1);
  border-color: transparent;
  box-shadow: 0 0 25px rgba(45, 70, 109, 0.5);
  color: #fff !important;
}

.floating-tech-icons i {
  position: absolute;
  font-size: 3rem;
  color: rgba(45, 70, 109, 0.15);
  animation: svcFloatTech 15s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

.floating-tech-icons i:nth-child(1) { top: 10%; left: 15%; animation-delay: 0s; }
.floating-tech-icons i:nth-child(2) { bottom: 15%; right: 20%; animation-delay: 2s; }
.floating-tech-icons i:nth-child(3) { top: 25%; right: 10%; animation-delay: 4s; }
.floating-tech-icons i:nth-child(4) { bottom: 20%; left: 10%; animation-delay: 6s; }
.floating-tech-icons i:nth-child(5) { top: 50%; right: 40%; animation-delay: 8s; }

@keyframes svcFloatTech {
  0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.8; }
  50% { transform: translateY(-30px) rotate(10deg); opacity: 1; }
}

/* ========== Responsive ========== */
@media (max-width: 1200px) {
  .tech-grid {
    flex-wrap: wrap;
  }
  .tech-card {
    flex: 0 0 calc(50% - 1rem);
  }
}

@media (max-width: 992px) {
  .services-page-card {
    padding: 2rem 1.5rem;
  }
  .process-row {
    flex-wrap: wrap;
    gap: 1.5rem;
  }
  .process-step {
    flex: 1 1 calc(50% - 1rem);
  }
}

@media (max-width: 768px) {
  .services-hero-title {
    font-size: 2.2rem;
  }
  .services-hero-subtitle {
    font-size: 1.1rem;
  }
  .ring-1 { width: 250px; height: 250px; }
  .ring-2 { width: 350px; height: 350px; }
  .ring-3 { width: 450px; height: 450px; }

  .services-page-card {
    padding: 1.8rem 1.2rem;
  }
  .services-page-card .icon-wrapper {
    width: 70px;
    height: 70px;
    font-size: 1.6rem;
  }

  .process-step {
    flex: 1 1 100%;
  }

  .tech-card {
    flex: 0 0 100%;
  }

  .cta-title-services {
    font-size: 2rem;
  }

  .btn-refined-services,
  .btn-outline-refined-services {
    display: block;
    width: 100%;
    max-width: 280px;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}
