/* General Styles */
body {
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f4f4;
  color: #333;
  line-height: 1.6;
}



/* Services Section */
.services-section {
  padding: 2rem;
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  color: #4CAF50;
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
}

.section-title.visible {
  opacity: 1;
  transform: translateY(0);
}

.services-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.service-card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  width: 300px;
  opacity: 1;
  transform: translateY(20px);
  transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
}

.service-card:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  transition: transform 2s ease;
  transform: translateY(5px);
  box-shadow: 0 15px 15px rgba(255, 0, 0, 0.2);
  border: 1px dotted darkgreen;
}

.service-card.visible {
  opacity: 1;
}

.service-title {
  font-size: 1.5rem;
  color: #4CAF50;
  margin-bottom: 1rem;
}

.service-description {
  font-size: 1rem;
  color: #666;
}


/* Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* Back to Top Button */
.fabs {
  position: fixed;
  bottom: 97px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #2b6777, #52ab98);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  z-index: 999;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  text-decoration: none;
  opacity: 1;
  transform: translateY(20px);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.fabs.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.fabs:hover {
  background: linear-gradient(135deg, #52ab98, #2b6777);
  transform: translateY(-1px) scale(1.09);
  box-shadow: 0 6px 25px rgba(43, 103, 119, 0.4);
}

.fabs:active {
  transform: scale(0.98);
}

/* Animation when scrolling appears */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .fabs {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
    bottom: 100px;
    right: 20px;
  }
}

@media (max-width: 480px) {
  .fabs {
    width: 50px;
    height: 50px;
    font-size: 1.1rem;
    bottom: 100px;
    right: 22px;
  }
}


/* Service Popup Styles */
.service-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.service-popup.active {
  opacity: 1;
  visibility: visible;
}

.popup-content {
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  width: 90%;
  max-width: 500px;
  position: relative;
  transform: translateY(-20px);
  transition: transform 0.3s ease;
}

.service-popup.active .popup-content {
  transform: translateY(0);
}

.close-popup {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #666;
}

.popup-title {
  font-size: 1.5rem;
  color: #4CAF50;
  margin-bottom: 1rem;
}

.popup-body {
  color: #666;
}

.popup-features {
  margin: 1rem 0;
}

.popup-features h4 {
  font-size: 1.2rem;
  color: #4CAF50;
  margin-bottom: 0.5rem;
}

.popup-features ul {
  list-style: none;
  padding-left: 0;
}

.popup-features li {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
}

.popup-features i {
  color: #4CAF50;
  margin-right: 0.5rem;
}

.apply-btn {
  background: #4CAF50;
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
}

.apply-btn:hover {
  background: #45a049;
  transform: translateY(-2px);
}


.service-icon {
  font-size: 2.5rem;
  color: #e100ff;
  /* Or your primary color */
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.1);
  color: #7c3aed;
  /* Or your secondary color */
}