/* Services Page Styles */

/* Hero Section */
.services-hero {
  position: relative;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 180px;
  overflow: hidden;
}

.services-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.services-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(0, 127, 95, 0.92) 0%,
    rgba(1, 79, 67, 0.96) 50%,
    rgba(1, 40, 30, 0.95) 100%
  );
  z-index: 2;
}

.services-hero-elements {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.floating-element {
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
  animation: float 8s ease-in-out infinite;
}

.element-1 {
  width: 400px;
  height: 400px;
  background: #ffd700;
  top: -150px;
  right: -100px;
  animation-delay: 0s;
  box-shadow: 0 0 100px rgba(255, 215, 0, 0.3);
}

.element-2 {
  width: 300px;
  height: 300px;
  background: #007f5f;
  bottom: -100px;
  left: -80px;
  animation-delay: 2s;
  box-shadow: 0 0 80px rgba(0, 127, 95, 0.2);
}

.element-3 {
  width: 250px;
  height: 250px;
  background: #ffd700;
  top: 40%;
  left: 5%;
  animation-delay: 4s;
  box-shadow: 0 0 60px rgba(255, 215, 0, 0.2);
}

.services-hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: white;
  animation: fadeInUp 1.2s ease-out 0.2s both;
  max-width: 900px;
}

.services-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  background: rgba(255, 215, 0, 0.2);
  padding: 0.9rem 2rem;
  border-radius: 50px;
  margin-bottom: 2rem;
  backdrop-filter: blur(15px);
  border: 1.5px solid rgba(255, 215, 0, 0.4);
  font-size: 1rem;
  font-weight: 700;
  color: #ffd700;
  animation: slideDown 0.8s ease-out;
  text-transform: uppercase;
  letter-spacing: 2px;
  box-shadow: 0 8px 32px rgba(255, 215, 0, 0.15);
}

.services-hero-badge i {
  font-size: 1.3rem;
  animation: spin 3s linear infinite;
}

.services-hero-title {
  font-size: 4rem;
  font-weight: 900;
  margin-bottom: 1.2rem;
  line-height: 1.2;
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.4);
  animation: fadeInUp 1.2s ease-out 0.4s both;
  background: linear-gradient(180deg, #ffffff 0%, #f0f0f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.services-hero-subtitle {
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: 1.5px;
  margin-bottom: 2.5rem;
  opacity: 0.98;
  animation: fadeInUp 1.2s ease-out 0.6s both;
  color: #f0f0f0;
}

.services-hero-line {
  width: 120px;
  height: 5px;
  background: linear-gradient(90deg, #ffd700 0%, #f0e68c 50%, transparent 100%);
  margin: 0 auto;
  animation: slideInRight 1.2s ease-out 0.8s both;
  border-radius: 10px;
}

/* Services Section */
.services-section {
  padding: 7rem 2rem;
  background: linear-gradient(180deg, #f5f5f5 0%, #ffffff 50%, #f9f9f9 100%);
  position: relative;
  overflow: hidden;
}

.services-section::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(0, 127, 95, 0.05) 0%,
    transparent 70%
  );
  border-radius: 50%;
  z-index: 0;
}

.services-section::after {
  content: "";
  position: absolute;
  bottom: -30%;
  right: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(255, 215, 0, 0.04) 0%,
    transparent 70%
  );
  border-radius: 50%;
  z-index: 0;
}

.services-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4rem;
  position: relative;
  z-index: 1;
}

/* Service Cards */
.service-card {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 127, 95, 0.08);
  transition: all 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  animation: fadeInUp 0.9s ease-out both;
  border: 1px solid rgba(0, 127, 95, 0.08);
  height: 100%;
  min-height: 700px;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #007f5f, #ffd700, #007f5f);
  z-index: 10;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.service-card:hover::before {
  opacity: 1;
}

.service-card:hover {
  transform: translateY(-20px) scale(1.02);
  box-shadow: 0 40px 80px rgba(0, 127, 95, 0.18);
  border-color: rgba(0, 127, 95, 0.15);
}

.service-card-1 {
  animation-delay: 0.1s;
}
.service-card-2 {
  animation-delay: 0.2s;
}
.service-card-3 {
  animation-delay: 0.3s;
}
.service-card-4 {
  animation-delay: 0.4s;
}
.service-card-5 {
  animation-delay: 0.5s;
}
.service-card-6 {
  animation-delay: 0.6s;
}
.service-card-7 {
  animation-delay: 0.7s;
}
.service-card-8 {
  animation-delay: 0.8s;
}
.service-card-9 {
  animation-delay: 0.9s;
}

.service-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #007f5f 0%, #014f43 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 900;
  z-index: 5;
  box-shadow: 0 12px 35px rgba(0, 127, 95, 0.4);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 3px solid rgba(255, 255, 255, 0.2);
}

.service-card:hover .service-badge {
  transform: scale(1.15) rotate(-10deg);
  box-shadow: 0 18px 50px rgba(0, 127, 95, 0.5);
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  color: #014f43;
}

.service-image {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
  background: linear-gradient(135deg, #007f5f 0%, #014f43 100%);
  flex-shrink: 0;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: all 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.service-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(0, 127, 95, 0) 0%,
    rgba(1, 79, 67, 0.2) 100%
  );
  transition: all 0.6s ease;
  z-index: 2;
}

.service-card:hover .service-image img {
  transform: scale(1.12) rotate(3deg);
  filter: brightness(1.1);
}

.service-card:hover .service-image-overlay {
  background: linear-gradient(
    180deg,
    rgba(0, 127, 95, 0.15) 0%,
    rgba(1, 79, 67, 0.35) 100%
  );
}

/* Service Content */
.service-content {
  padding: 2.8rem 2.2rem;
  flex-grow: 1;
  flex-shrink: 1;
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
  min-height: 0;
}

.service-content h3 {
  font-size: 1.45rem;
  font-weight: 800;
  color: #014f43;
  line-height: 1.35;
  margin: 0;
  transition: all 0.4s ease;
  flex-shrink: 0;
  word-wrap: break-word;
}

.service-card:hover .service-content h3 {
  color: #007f5f;
  transform: translateX(5px);
}

.service-intro {
  font-size: 0.93rem;
  color: #666;
  line-height: 1.75;
  margin: 0;
  flex-shrink: 0;
}

.service-features {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding-top: 1.2rem;
  border-top: 2px solid #f0f0f0;
  margin-top: auto;
  flex-shrink: 0;
}

.feature {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  font-size: 0.91rem;
  color: #555;
  transition: all 0.3s ease;
  padding: 0;
  line-height: 1.5;
}

.feature i {
  color: #007f5f;
  font-size: 1rem;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.service-card:hover .feature {
  color: #014f43;
  padding-left: 0.6rem;
  font-weight: 600;
}

.service-card:hover .feature i {
  color: #ffd700;
  transform: scale(1.25) rotate(15deg);
}

/* CTA Section */
.services-cta {
  background: linear-gradient(135deg, #007f5f 0%, #014f43 50%, #003d33 100%);
  padding: 6rem 2rem;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.services-cta::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(255, 215, 0, 0.12) 0%,
    transparent 70%
  );
  border-radius: 50%;
  z-index: 1;
}

.services-cta::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(255, 215, 0, 0.08) 0%,
    transparent 70%
  );
  border-radius: 50%;
  z-index: 1;
}

.services-cta-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  animation: fadeInUp 1s ease-out;
}

.services-cta-content h2 {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 1.2rem;
  text-shadow: 0 3px 15px rgba(0, 0, 0, 0.3);
  background: linear-gradient(180deg, #ffffff 0%, #f0f0f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.services-cta-content p {
  font-size: 1.2rem;
  margin-bottom: 3rem;
  opacity: 0.96;
  line-height: 1.8;
  letter-spacing: 0.5px;
}

.cta-button {
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  color: #014f43;
  border: none;
  padding: 1.4rem 4rem;
  font-size: 1.15rem;
  font-weight: 800;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 15px 40px rgba(255, 215, 0, 0.35);
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.6s ease;
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 20px 50px rgba(255, 215, 0, 0.45);
  background: linear-gradient(135deg, #ffed4e 0%, #ffff70 100%);
}

.cta-button a {
  color: #ffffff;
  text-decoration: none;
  display: inline-block;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(40px);
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* RESPONSIVE DESIGN */

/* Tablet - 1024px and below */
@media (max-width: 1024px) {
  .services-hero {
    min-height: 600px;
    margin-top: 160px;
  }

  .services-hero-title {
    font-size: 3.2rem;
  }

  .services-hero-subtitle {
    font-size: 1.4rem;
  }

  .services-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }

  .service-card {
    min-height: 720px;
  }

  .service-image {
    height: 280px;
  }

  .service-content {
    padding: 2.5rem 2rem;
    gap: 1.2rem;
  }

  .service-content h3 {
    font-size: 1.35rem;
  }

  .service-intro {
    font-size: 0.91rem;
  }

  .services-cta-content h2 {
    font-size: 2.5rem;
  }

  .services-cta-content p {
    font-size: 1.1rem;
  }
}

/* Tablet - 768px and below */
@media (max-width: 768px) {
  .services-hero {
    min-height: 500px;
    margin-top: 150px;
    padding: 2rem;
  }

  .services-hero-title {
    font-size: 2.4rem;
  }

  .services-hero-subtitle {
    font-size: 1.15rem;
  }

  .services-hero-badge {
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.85rem;
    padding: 0.7rem 1.5rem;
  }

  .services-section {
    padding: 4rem 1.5rem;
  }

  .services-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .service-card {
    min-height: 680px;
  }

  .service-image {
    height: 300px;
  }

  .service-content {
    padding: 2rem 1.8rem;
    gap: 1.1rem;
  }

  .service-content h3 {
    font-size: 1.28rem;
  }

  .service-intro {
    font-size: 0.9rem;
  }

  .service-content h3 {
    font-size: 1.3rem;
  }

  .service-intro {
    font-size: 0.9rem;
  }

  .feature {
    font-size: 0.87rem;
  }

  .services-cta {
    padding: 4rem 1.5rem;
  }

  .services-cta-content h2 {
    font-size: 2.1rem;
  }

  .services-cta-content p {
    font-size: 1rem;
  }

  .cta-button {
    padding: 1.1rem 2.8rem;
    font-size: 1rem;
  }
}

/* Mobile - 480px and below */
@media (max-width: 480px) {
  .services-hero {
    min-height: 400px;
    margin-top: 140px;
    padding: 1.5rem;
  }

  .services-hero-title {
    font-size: 2rem;
  }

  .services-hero-subtitle {
    font-size: 1rem;
  }

  .services-hero-badge {
    font-size: 0.75rem;
    padding: 0.6rem 1rem;
  }

  .floating-element {
    opacity: 0.04;
  }

  .element-1 {
    width: 200px;
    height: 200px;
  }

  .element-2 {
    width: 150px;
    height: 150px;
  }

  .element-3 {
    width: 120px;
    height: 120px;
  }

  .services-section {
    padding: 3rem 1rem;
  }

  .services-container {
    gap: 2rem;
  }

  .service-card {
    min-height: 650px;
  }

  .service-badge {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    top: 1rem;
    right: 1rem;
  }

  .service-image {
    height: 240px;
  }

  .service-content {
    padding: 1.8rem 1.3rem;
    gap: 1rem;
  }

  .service-content h3 {
    font-size: 1.15rem;
  }

  .service-intro {
    font-size: 0.87rem;
  }

  .service-features {
    gap: 0.8rem;
  }

  .feature {
    font-size: 0.8rem;
  }

  .services-cta {
    padding: 2.5rem 1rem;
  }

  .services-cta-content h2 {
    font-size: 1.7rem;
  }

  .services-cta-content p {
    font-size: 0.95rem;
    margin-bottom: 2rem;
  }

  .cta-button {
    padding: 1rem 2rem;
    font-size: 0.9rem;
  }
}

/* Extra small screens */
@media (max-width: 360px) {
  .services-hero-title {
    font-size: 1.7rem;
  }

  .services-cta-content h2 {
    font-size: 1.5rem;
  }

  .service-content h3 {
    font-size: 1.05rem;
  }

  .services-hero-subtitle {
    font-size: 0.9rem;
  }
}
