/* Services Page Specific Styles */
/* Ensure header and footer are always visible */
.header,
.footer {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Basic visibility check - remove this after confirming content is visible */
.services-hero,
.services-overview,
.service-detail,
.services-cta {
  display: block !important;
  min-height: 100px;
}

/* Fallback styles to ensure content is visible */
.service-overview-card,
.service-content,
.strategy-card,
.benefit-card,
.factor-card,
.services-overview,
.service-detail,
.services-cta {
  opacity: 1 !important;
  transform: translateY(0) !important;
  visibility: visible !important;
}

/* Ensure all text content is visible */
.service-overview-card h3,
.service-overview-card p,
.service-text h2,
.service-text p,
.service-intro,
.challenge h3,
.solution h3,
.benefit-card h4,
.benefit-card p,
.strategy-card h4,
.strategy-card p,
.factor-card h4,
.factor-card p {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Services Hero Section - Separate Styles */
.services-hero {
  background: linear-gradient(135deg, #04518e 0%, #00a6fb 50%, #04518e 100%);
  color: var(--white-color);
  padding: 140px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.services-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("./assects/banner-4.webp") center/cover;
  opacity: 0.15;
  z-index: 1;
  animation: slowZoom 20s ease-in-out infinite alternate;
}

.services-hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at center,
    transparent 0%,
    rgba(0, 0, 0, 0.3) 100%
  );
  z-index: 1;
}

.services-hero .container {
  position: relative;
  z-index: 3;
  max-width: 800px;
}

.services-hero .hero-content {
  animation: heroContentSlideIn 1s ease-out;
}

.services-hero .hero-content h1 {
  animation: heroContentSlideIn 1s ease-out forwards;
}

.services-hero .hero-content p {
  animation: heroContentSlideIn 1s ease-out 0.3s both;
}

.services-hero h1 {
  font-size: 4rem;
  margin-bottom: 25px;
  color: var(--white-color);
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.2;
  position: relative;
  z-index: 2;
}

.services-hero h1::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--white-color),
    transparent
  );
  border-radius: 2px;
}

.services-hero p {
  font-size: 1.3rem;
  max-width: 700px;
  margin: 0 auto;
  opacity: 0.95;
  line-height: 1.6;
  font-weight: 300;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Services Hero Animations */
@keyframes slowZoom {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.1);
  }
}

@keyframes heroContentSlideIn {
  0% {
    opacity: 0;
    transform: translateY(50px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Services Overview */
.services-overview {
  padding: 80px 0;
  background: var(--background-color);
}

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

.service-overview-card {
  background: var(--white-color);
  padding: 40px 30px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-overview-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

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

.service-overview-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  transition: all 0.3s ease;
}

.service-overview-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
}

/* .service-icon i {
  font-size: 2rem;
  color: var(--white-color);
} */
.service-icon img {
  width: 70%;
  height: 70%;
  object-fit: cover;
  transition: all 0.3s ease;
}
.service-overview-card h3 {
  font-size: 1.5rem;
  line-height: normal;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.service-overview-card p {
  color: var(--light-text-color);
  margin-bottom: 25px;
  line-height: 1.6;
}

.service-link {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.service-link:hover {
  color: var(--primary-color);
  gap: 12px;
}

/* Service Detail Sections */
.service-detail {
  padding: 100px 0;
  background: var(--white-color);
}

.service-detail.reverse {
  background: var(--background-color);
}

.service-detail.reverse .service-content {
  flex-direction: row-reverse;
}

.service-content {
  display: block;
  /* max-width: 900px; */
  margin: 0 auto;
}

.service-text {
  padding: 0;
  width: 100%;
}

.service-detail.reverse .service-text {
  padding: 0;
}

.service-intro {
  font-size: 1.1rem;
  color: var(--light-text-color);
  margin-bottom: 30px;
  line-height: 1.7;
}

/* Challenge Solution Grid */
.challenge-solution {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin: 40px 0;
}

.challenge,
.solution {
  background: var(--white-color);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-left: 5px solid;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.challenge::before,
.solution::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, currentColor, transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.challenge:hover::before,
.solution:hover::before {
  opacity: 1;
}

.challenge {
  border-left-color: #dc3545;
  background: linear-gradient(135deg, #fff 0%, #fff5f5 100%);
}

.challenge:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(220, 53, 69, 0.15);
}

.solution {
  border-left-color: #28a745;
  background: linear-gradient(135deg, #fff 0%, #f0fff4 100%);
}

.solution:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(40, 167, 69, 0.15);
}

.challenge h3,
.solution h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  font-size: 1.3rem;
  font-weight: 600;
  line-height: normal;
  position: relative;
}

.challenge h3 i {
  color: #dc3545;
  font-size: 1.5rem;
  background: rgba(220, 53, 69, 0.1);
  padding: 10px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.challenge:hover h3 i {
  background: rgba(220, 53, 69, 0.2);
  transform: scale(1.1);
}

.solution h3 i {
  color: #28a745;
  font-size: 1.5rem;
  background: rgba(40, 167, 69, 0.1);
  padding: 10px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.solution:hover h3 i {
  background: rgba(40, 167, 69, 0.2);
  transform: scale(1.1);
}

.challenge ul,
.solution ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.challenge li,
.solution li {
  margin-bottom: 12px;
  padding: 12px 15px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  position: relative;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.challenge li:hover,
.solution li:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateX(5px);
}

.challenge li::before {
  content: "⚠️";
  position: absolute;
  left: -25px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.challenge li:hover::before {
  opacity: 1;
}

.solution li::before {
  content: "✅";
  position: absolute;
  left: -25px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.solution li:hover::before {
  opacity: 1;
}

/* Benefits Grid */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin: 40px 0;
}

.benefit-card {
  /* text-align: center; */
  padding: 35px 25px;
  background: var(--white-color);
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
}

.benefit-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

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

.benefit-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  /* border-color: var(--accent-color); */
}

.benefit-card i {
  font-size: 3rem;
  color: var(--accent-color);
  margin-bottom: 20px;
  transition: all 0.3s ease;
  display: inline-block;
  background: linear-gradient(
    135deg,
    rgba(0, 166, 251, 0.1),
    rgba(4, 81, 142, 0.1)
  );
  padding: 20px;
  border-radius: 50%;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* .benefit-card:hover i {
  transform: scale(1.1) rotate(5deg);
  background: linear-gradient(
    135deg,
    rgba(0, 166, 251, 0.2),
    rgba(4, 81, 142, 0.2)
  );
} */
.benefit-card img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  transition: all 0.3s ease;
}
.benefit-card h4 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 1.4rem;
  font-weight: 600;
  line-height: normal;
  transition: color 0.3s ease;
}

.benefit-card p {
  color: var(--light-text-color);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
  transition: color 0.3s ease;
}

.benefit-card:hover p {
  color: var(--text-color);
}

/* Strategy Grid */
.strategy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin: 40px 0;
}

.strategy-card {
  background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
  padding: 35px 30px;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 123, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.strategy-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.strategy-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  /* border-color: var(--accent-color); */
}

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

.strategy-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.strategy-card:hover .strategy-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
}

.strategy-icon i {
  font-size: 1.8rem;
  color: var(--white-color);
  transition: all 0.3s ease;
}

.strategy-card:hover .strategy-icon i {
  transform: scale(1.1);
}

.strategy-card h4 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 1.4rem;
  font-weight: 600;
  line-height: normal;
  transition: color 0.3s ease;
}

.strategy-card:hover h4 {
  color: var(--accent-color);
}

.strategy-card p {
  color: var(--text-color);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 0;
}

/* Nutrition Highlight */
.nutrition-highlight {
  margin: 40px 0;
}

.highlight-box {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  color: var(--white-color);
  padding: 30px;
  border-radius: 15px;
  position: relative;
  overflow: hidden;
}

.highlight-box::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.highlight-box h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: var(--white-color);
}

.highlight-box ul {
  list-style: none;
  padding: 0;
}

.highlight-box li {
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
}

.highlight-box li::before {
  content: "✓";
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Factors Grid */
.nutrition-factors {
  margin: 40px 0;
}

.nutrition-factors h3 {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 30px;
  color: var(--primary-color);
  line-height: normal;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

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

.factor-card {
  text-align: center;
  padding: 35px 25px;
  background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 20px;
  border: 1px solid rgba(0, 123, 255, 0.1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.factor-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.factor-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  /* border-color: var(--accent-color); */
}

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

.factor-card i {
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 20px;
  transition: all 0.3s ease;
  display: inline-block;
}

.factor-card:hover i {
  transform: scale(1.1) rotate(5deg);
  color: var(--primary-color);
}

.factor-card h4 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 1.3rem;
  font-weight: 600;
  line-height: normal;
  transition: color 0.3s ease;
}

.factor-card:hover h4 {
  color: var(--accent-color);
}

.factor-card p {
  color: var(--text-color);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 0;
}

/* Protein Sources */
.protein-sources {
  margin: 40px 0;
}

.protein-sources h3 {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 30px;
  color: var(--primary-color);
  line-height: normal;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.sources-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 30px;
  justify-content: center;
}

.source-tag {
  background: linear-gradient(
    135deg,
    var(--accent-color),
    var(--primary-color)
  );
  color: var(--white-color);
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.source-tag::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.source-tag:hover {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 123, 255, 0.4);
  border-color: rgba(255, 255, 255, 0.3);
}

.source-tag:hover::before {
  left: 100%;
}

/* Key Points */
.key-points {
  margin: 40px 0;
  padding: 35px 30px;
  background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 20px;
  border: 1px solid rgba(0, 123, 255, 0.1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.key-points::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(
    180deg,
    var(--primary-color),
    var(--accent-color)
  );
  transition: all 0.3s ease;
}

.key-points:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  border-color: var(--accent-color);
}

.key-points:hover::before {
  width: 6px;
}

.key-points h3 {
  color: var(--primary-color);
  margin-bottom: 25px;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: normal;
  display: flex;
  align-items: center;
  gap: 12px;
}

.key-points h3::before {
  content: "🛡️";
  font-size: 1.3rem;
}

.key-points ul {
  list-style: none;
  padding: 0;
}

.key-points li {
  margin-bottom: 15px;
  padding: 15px 20px 15px 35px;
  position: relative;
  line-height: 1.7;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 10px;
  border-left: 3px solid transparent;
  transition: all 0.3s ease;
}

.key-points li:hover {
  background: rgba(255, 255, 255, 0.9);
  border-left-color: var(--accent-color);
  transform: translateX(5px);
}

.key-points li::before {
  content: "✓";
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent-color);
  font-weight: bold;
  font-size: 1.1rem;
  background: rgba(0, 123, 255, 0.1);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.key-points li:hover::before {
  background: rgba(0, 123, 255, 0.2);
  transform: translateY(-50%) scale(1.1);
}

/* Call to Action */
.services-cta {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  color: var(--white-color);
  padding: 80px 0;
  text-align: center;
}

.cta-content h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--white-color);
}

.cta-content p {
  font-size: 1.1rem;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--white-color);
  color: var(--primary-color);
}

.btn-primary:hover {
  background: #f8f9fa;
  transform: translateY(-3px);
}

.btn-secondary {
  background: transparent;
  color: var(--white-color);
  border: 2px solid var(--white-color);
}

.btn-secondary:hover {
  background: var(--white-color);
  color: var(--primary-color);
}

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

/* Responsive Design */
@media (max-width: 992px) {
  .service-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .service-text {
    padding-right: 0;
    padding-left: 0;
  }

  .service-detail.reverse .service-text {
    padding-left: 0;
  }

  .challenge-solution {
    grid-template-columns: 1fr;
  }

  .services-hero h1 {
    font-size: 3rem;
  }

  .services-hero p {
    font-size: 1.1rem;
  }

  .services-hero {
    padding: 120px 0 80px;
    min-height: 50vh;
  }
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .strategy-grid {
    grid-template-columns: 1fr;
  }

  .factors-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .services-hero h1 {
    font-size: 2.5rem;
  }

  .services-hero p {
    font-size: 1rem;
  }

  .services-hero {
    padding: 100px 0 60px;
    min-height: 40vh;
  }

  .services-hero h1::after {
    width: 80px;
    height: 3px;
  }
}

@media (max-width: 480px) {
  .benefits-grid,
  .factors-grid {
    grid-template-columns: 1fr;
  }

  .sources-grid {
    justify-content: center;
  }

  .service-overview-card {
    padding: 30px 20px;
  }

  .highlight-box {
    padding: 20px;
  }

  .services-hero h1 {
    font-size: 2rem;
    margin-bottom: 20px;
  }

  .services-hero p {
    font-size: 0.95rem;
  }

  .services-hero {
    padding: 80px 0 50px;
    min-height: 35vh;
  }

  .services-hero h1::after {
    width: 60px;
    height: 2px;
  }
}
