/* Cookie Popup Styles */
.cookie-popup {
  position: fixed;
  bottom: -200px;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  color: white;
  padding: 1.5rem;
  box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.3);
  transition: bottom 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 9999;
  border-top: 2px solid #ff5700;
}

.cookie-popup.show {
  bottom: 0;
}

.cookie-popup-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cookie-popup-content p {
  flex: 1;
  min-width: 250px;
}

@media (max-width: 768px) {
  .cookie-popup-content {
    flex-direction: column;
    text-align: center;
  }

  .cookie-popup-content button {
    width: 100%;
  }
}

/* Base Styles */
body {
  overflow-x: hidden;
  background-color: #f5f3ed;
}

/* Smooth transitions */
a,
button {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Form Styles */
input:focus,
textarea:focus,
select:focus {
  outline: none;
}

.border-red-500 {
  border-color: #ef4444 !important;
}

.text-red-500 {
  color: #ef4444 !important;
}

/* Image loading */
img {
  transition: opacity 0.3s ease, transform 0.5s ease;
}

img[src*="placeholder"] {
  background-color: #e8e5dc;
}

/* Header shadow on scroll */
header {
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

/* Mobile menu animation */
#mobileMenu {
  transition: all 0.3s ease-in-out;
}

/* Smooth scrolling */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* Added flip card styles */
.flip-card {
  perspective: 1000px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.4, 0.2, 0.2, 1);
  transform-style: preserve-3d;
}

.flip-card.flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.flip-card-back {
  transform: rotateY(180deg);
}

/* Added expandable card styles */
.expandable-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.expandable-card.expanded {
  transform: scale(1.05);
  z-index: 10;
}

.expandable-card .card-expanded-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.expandable-card.expanded .card-expanded-content {
  max-height: 200px;
}

/* Added service card styles */
.service-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Added scroll reveal animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.8s ease-out forwards;
}

/* Added gradient overlays */
.gradient-overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

/* Added hover effects for images */
.group:hover img {
  transform: scale(1.05);
}

/* Added backdrop blur utilities */
.backdrop-blur-sm {
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Added custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f5f3ed;
}

::-webkit-scrollbar-thumb {
  background: #000;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #ff5700;
}

/* Added loading animation for images */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.loading-shimmer {
  animation: shimmer 2s infinite linear;
  background: linear-gradient(to right, #f0f0f0 4%, #e0e0e0 25%, #f0f0f0 36%);
  background-size: 1000px 100%;
}

/* Added text balance for better typography */
h1,
h2,
h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

/* Added focus visible styles for accessibility */
*:focus-visible {
  outline: 2px solid #ff5700;
  outline-offset: 2px;
}

/* Added reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Added print styles */
@media print {
  header,
  footer,
  .cookie-popup {
    display: none;
  }
}
