/* Cookie Popup Styles */
.cookie-popup {
  position: fixed;
  bottom: -200px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  padding: 1.5rem 2rem;
  border-radius: 1.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  max-width: 600px;
  width: 90%;
  transition: bottom 0.5s ease-in-out;
  border: 2px solid #e5e7eb;
}

.cookie-popup.show {
  bottom: 20px;
}

.cookie-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 640px) {
  .cookie-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .cookie-content p {
    margin-bottom: 0;
  }
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #16a34a;
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: #15803d;
}

/* Form Focus States */
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}

/* Button Hover Effects */
button,
a {
  transition: all 0.3s ease;
}

/* Image Loading */
img {
  max-width: 100%;
  height: auto;
}

/* Prevent FOUC */
body {
  opacity: 1;
  transition: opacity 0.3s ease-in;
}

/* Mobile Menu Animation */
#mobileMenu {
  transition: all 0.3s ease-in-out;
}

/* Error Message Styles */
.error-message {
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Section Spacing */
section {
  position: relative;
}

/* Link Hover Effects */
a {
  text-decoration: none;
}

/* Card Hover Effects */
.hover\:shadow-2xl {
  transition: box-shadow 0.3s ease;
}

/* Responsive Typography */
@media (max-width: 640px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Focus Visible for Keyboard Navigation */
*:focus-visible {
  outline: 2px solid #16a34a;
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  header,
  footer,
  .cookie-popup {
    display: none;
  }
}

/* Added flip card styles for interactive service cards */
.flip-card {
  perspective: 1000px;
  cursor: pointer;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.flip-card-inner.flipped {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.flip-card-back {
  transform: rotateY(180deg);
}

/* Added hover scale effect for cards */
.hover\:scale-105:hover {
  transform: scale(1.05);
}

/* Added smooth transitions for all interactive elements */
.transition-all {
  transition: all 0.3s ease;
}
