/* GDPR Popup Styles */
#gdpr-popup {
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
  animation: gdprFadeIn 0.7s;
}
@keyframes gdprFadeIn {
  from { opacity: 0; transform: translateY(40px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}/* Custom CSS Styles */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom animations */
.portfolio-item {
  transition: transform 0.3s ease;
}

.portfolio-item:hover {
  transform: translateY(-5px);
}

/* Feature icons animation */
@keyframes featureIconPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.features-section img {
  transition: transform 0.3s ease;
}

.features-section img:hover {
  animation: featureIconPulse 1.5s infinite;
}

/* Custom styling for form inputs and focus states */
input:focus, 
textarea:focus,
button:focus,
a:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.4);
}

/* Skip-to-content link for accessibility */
.skip-to-content {
  position: absolute;
  left: -9999px;
  top: -9999px;
  z-index: 999;
  background: #0d9488;
  color: white;
  padding: 10px 15px;
  border-radius: 0 0 5px 5px;
  text-decoration: none;
}

.skip-to-content:focus {
  left: 0;
  top: 0;
}

/* Animation for header on page load */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

header {
  animation: fadeInDown 0.5s ease-out;
}

/* Custom styles for buttons */
button {
  cursor: pointer;
}

/* Add custom styling for active navigation links */
a.active {
  color: #bfdbfe;
  font-weight: bold;
}

/* Animation for section reveals */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Custom styling for cards */
.service-card:hover .service-icon {
  transform: scale(1.1);
}

.service-icon {
  transition: transform 0.3s ease;
}

.service-card img.service-icon {
  height: 16rem; /* Equivalent to h-64 in Tailwind */
  object-fit: cover;
}

/* Slideshow/Carousel Styles */
.slideshow-container {
  position: relative;
  width: 100%;
  max-height: 600px;
  overflow: hidden;
}

.mySlides {
  width: 100%;
  position: relative;
}

.mySlides img {
  width: 100%;
  display: block;
}

/* Fade animation for slideshow */
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {opacity: 0.4}
  to {opacity: 1}
}

/* Prev and Next buttons for slideshow */
.prev, .next {
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
}

.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
  background-color: rgba(0, 0, 0, 0.5);
}

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

.modal-content {
  background-color: white;
  margin: 10% auto;
  padding: 20px;
  border-radius: 8px;
  width: 80%;
  max-width: 800px;
  animation: modalFadeIn 0.3s;
  position: relative; /* Ensure this is a positioning context */
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.close-modal {
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

/* Explicit styling for modal body and details to debug */
#serviceModalBody {
  /* Styles for modal body can go here if needed */
}

#serviceModalDetails {
  /* Restore original/default styling, remove debug overrides */
  color: inherit; /* Inherit from parent, likely .text-gray-600 from modalBody */
  background-color: transparent;
  padding: 0;
  border: none;
  position: static;
  display: block;
  width: auto;
  max-width: 100%;
  margin: 0;
  text-align: left;
  transform: none;
  float: none;
  opacity: 1;
  font-weight: normal;
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: none;
  background-color: #0d9488;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  z-index: 99;
  cursor: pointer;
  transition: all 0.3s;
}

.back-to-top:hover {
  background-color: #0f766e;
}

/* Custom form success message */
.form-success-message {
  display: none;
  background-color: #10b981;
  color: white;
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 15px;
  text-align: center;
}

/* Form validation styles */
.is-valid {
  border-color: #10b981 !important;
}

.is-invalid {
  border-color: #ef4444 !important;
}

.validation-feedback {
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* Partner logos hover effect */
.grayscale {
  filter: grayscale(100%);
  transition: all 0.3s ease;
}

.grayscale:hover {
  filter: grayscale(0%);
}

.partner-logos img {
  height: 5rem; /* Equivalent to h-20 in Tailwind */
  filter: grayscale(100%);
  transition: all 0.3s ease;
}

.partner-logos img:hover {
  filter: grayscale(0%);
}

/* Responsive adjustments for small screens */
@media (max-width: 768px) {
  .slideshow-container {
    max-height: 400px;
  }
  
  .prev, .next {
    padding: 8px;
    font-size: 18px;
  }
  
  .dots-container {
    bottom: 10px;
  }
  
  .dot {
    width: 8px;
    height: 8px;
    margin: 0 3px;
  }
  
  .service-card {
    height: auto;
    margin-bottom: 1rem;
  }
  
  .partner-logos {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .back-to-top {
    right: 15px;
    bottom: 15px;
    width: 35px;
    height: 35px;
    line-height: 35px;
  }
  
  /* Improve form spacing on mobile */
  form input, 
  form textarea, 
  form button {
    margin-bottom: 0.5rem;
  }
}

/* Print-friendly styles */
@media print {
  /* Hide elements not needed for printing */
  header nav, 
  .slideshow-container .prev,
  .slideshow-container .next,
  .dots-container,
  .back-to-top,
  #mobile-menu,
  #menu-toggle,
  footer form,
  #contact-form button[type="reset"] {
    display: none !important;
  }
  
  /* Force background color to white and text to black */
  body, section {
    background-color: white !important;
    color: black !important;
  }
  
  /* Make all text black for better printing */
  * {
    color: black !important;
    text-shadow: none !important;
    box-shadow: none !important;
  }
  
  /* Force header to be visible on all pages */
  header {
    position: static;
    background: white !important;
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
  }
  
  header .text-white {
    color: black !important;
  }
  
  /* Adjusting layout for print */
  .container {
    width: 100% !important;
    max-width: 100% !important;
  }
  
  /* Ensure each section starts on a new page */
  section {
    page-break-before: always;
    padding: 0.5cm 0 !important;
  }
  
  /* Make links more visible in print */
  a {
    text-decoration: underline;
  }
  
  a::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
  }
  
  /* Make sure images print well */
  img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }
  
  /* Make sure the logo prints */
  header img {
    display: block !important;
  }
}
