/* Additional custom styles beyond Tailwind */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Focus states for accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus {
  outline: 3px solid #16a34a;
  outline-offset: 2px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f9fafb;
}

::-webkit-scrollbar-thumb {
  background: #374151;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #1f2937;
}

/* Form elements */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  transition: all 0.3s ease;
}

/* Checkbox custom styling */
input[type="checkbox"] {
  cursor: pointer;
  transition: all 0.2s ease;
}

input[type="checkbox"]:checked {
  accent-color: #16a34a;
}

/* Updated animation styles for new design */
/* Animation for sections on scroll */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

/* Added flip card 3D styles */
/* Flip Card 3D Effect */
.flip-card {
  perspective: 1000px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: left;
  transition: transform 0.6s;
  transform-style: preserve-3d;
  min-height: 320px;
}

.flip-card.flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.flip-card-back {
  transform: rotateY(180deg);
}

/* Added hover effects for new design */
/* Image hover effects - subtle zoom */
img {
  transition: transform 0.5s ease;
}

section img:hover {
  transform: scale(1.02);
}

/* Button hover effects */
button,
a[class*="bg-"] {
  transition: all 0.3s ease;
}

/* Mobile menu animation */
#mobileMenu {
  transition: all 0.3s ease-in-out;
}

/* Cookie popup animation */
#cookiePopup {
  animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

/* Added backdrop blur effects */
/* Glassmorphism effects */
.backdrop-blur-sm {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Added rounded corners styles */
/* Rounded corners consistency */
.rounded-3xl {
  border-radius: 1.5rem;
}

/* Print styles */
@media print {
  header,
  footer,
  #cookiePopup,
  #burger {
    display: none !important;
  }
}

/* Updated responsive text sizing for new typography */
/* Responsive text sizing */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem !important;
  }

  h2 {
    font-size: 2rem !important;
  }

  h3 {
    font-size: 1.25rem !important;
  }

  .flip-card-inner {
    min-height: 280px;
  }
}

/* Added loading state with subtle gradient */
/* Loading state for images */
img {
  background: linear-gradient(90deg, #f9fafb 25%, #f3f4f6 50%, #f9fafb 75%);
  background-size: 200% 100%;
}

/* Accessibility - Screen reader only content */
.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;
}

/* Added smooth transitions for all interactive elements */
/* Smooth transitions */
* {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

/* Added hero overlay gradient */
/* Hero section overlay gradient */
.bg-gradient-to-b {
  background-image: linear-gradient(to bottom, var(--tw-gradient-stops));
}

/* Added filter button active state */
/* Filter buttons active state */
.filter-btn.active {
  box-shadow: 0 4px 14px 0 rgba(22, 163, 74, 0.39);
}

/* Added team card hover overlay */
/* Team section image hover overlay */
.group:hover .group-hover\:opacity-100 {
  opacity: 1;
}
