@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");
@import url("https://cdn-uicons.flaticon.com/4.0.0/uicons-regular-rounded/css/uicons-regular-rounded.css");

* {
  font-family: "Inter", sans-serif;
}

/* Ensure Font Awesome icons are visible */
.fas {
  display: inline-block !important;
  font-style: normal !important;
  font-variant: normal !important;
  text-rendering: auto !important;
  line-height: 1 !important;
}

/* Service card icons */
.service-card .fas {
  font-size: 2rem !important;
  color: #00a199 !important;
  margin-bottom: 1rem !important;
}

.gradient-bg {
  background: linear-gradient(135deg, #006b5c 0%, #00a199 100%);
}

.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.service-card {
  transition: all 0.3s ease;
  border: 1px solid #e5e7eb;
}

.service-card:hover {
  border-color: #00a199;
  box-shadow: 0 10px 30px rgba(0, 161, 153, 0.1);
}

.nav-link {
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #00a199;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.fade-in {
  animation: fadeIn 0.6s ease-in;
}

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

.mobile-menu {
  right: 0;
  left: auto;
  transform: translateX(100%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.3s ease-in, opacity 0.3s ease-in;
}

.mobile-menu.active {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  overflow: auto;
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: white;
  padding: 2rem;
  border-radius: 1rem;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: #6b7280;
  background: none;
  border: none;
}

.modal-close:hover {
  color: #1f2937;
}

.modal-header {
  margin-bottom: 1.5rem;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.modal-body {
  margin-bottom: 1.5rem;
}

.modal-photo {
  width: 100%;
  height: auto;
  max-height: 50vh;
  object-fit: contain;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  cursor: zoom-in;
  touch-action: manipulation;
}

.modal-photo.zoomed {
  cursor: zoom-out;
}

.modal-description {
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.modal-footer {
  text-align: center;
}

.modal-btn {
  background-color: #00a199;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.modal-btn:hover {
  background-color: #006b5c;
}

.modal-whatsapp-btn {
  background-color: #00a199;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0.5rem;
}

.modal-whatsapp-btn:hover {
  background-color: #006b5c;
  color: white;
}

.modal-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.image-zoom-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.image-zoom-overlay.active {
  display: flex;
}

.image-zoom-inner {
  position: relative;
  max-width: 95vw;
  max-height: 95vh;
  width: auto;
}

.image-zoomed-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 0.75rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.image-zoom-close {
  position: absolute;
  top: -0.75rem;
  right: -0.75rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: none;
  background: white;
  color: #111;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.image-zoom-close:hover {
  background: #f3f4f6;
}

/* Certifications Modal Styles */
.certifications-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  overflow: auto;
}

.certifications-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.certifications-modal-content {
  background-color: white;
  padding: 2rem;
  border-radius: 1rem;
  max-width: 900px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.certifications-modal-header {
  text-align: center;
  margin-bottom: 2rem;
}

.certifications-modal-title {
  font-size: 2rem;
  font-weight: bold;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.certifications-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  background: #f9fafb;
  padding: 2rem;
}

.certifications-carousel-container {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.certification-slide {
  min-width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.certification-image {
  max-width: 100%;
  max-height: 500px;
  object-fit: contain;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  cursor: zoom-in;
  touch-action: manipulation;
  pointer-events: auto;
}

.certifications-carousel-controls {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
  pointer-events: none;
  z-index: 10;
}

.certifications-carousel-btn {
  background-color: rgba(0, 161, 153, 0.9);
  color: white;
  border: none;
  border-radius: 50%;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
  pointer-events: all;
  position: relative;
  z-index: 11;
}

.certifications-carousel-btn:hover {
  background-color: rgba(0, 107, 92, 0.9);
}

.certifications-carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.certifications-indicator {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background-color: #d1d5db;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.certifications-indicator.active {
  background-color: #00a199;
}

/* Image Protection for Certifications */
.certifications-modal {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.certification-image {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  pointer-events: none;
}

.certifications-carousel {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Hamburger menu animation */
#mobileMenuBtn {
  transition: all 0.3s ease;
}

#mobileMenuBtn.active {
  transform: rotate(90deg);
}

#mobileMenuBtn i {
  transition: transform 0.3s ease;
}

#mobileMenuBtn.active i {
  transform: rotate(90deg);
}

@media (max-width: 640px) {
  .modal-content {
    max-width: 95%;
    padding: 1.25rem;
    max-height: 85vh;
  }

  .modal-photo {
    max-height: 40vh;
  }
}
