/* Cookie Popup Styles */
.cookie-popup {
  position: fixed;
  bottom: -100%;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
  color: white;
  padding: 1.5rem;
  box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  transition: bottom 0.5s ease;
  backdrop-filter: blur(10px);
}

.cookie-popup.show {
  bottom: 0;
}

.cookie-popup-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.cookie-popup-content p {
  flex: 1;
  margin: 0;
  min-width: 250px;
  color: #dbeafe;
}

@media (max-width: 768px) {
  .cookie-popup-content {
    flex-direction: column;
    text-align: center;
  }

  .cookie-popup-content button {
    width: 100%;
  }
}

/* Header scroll effect */
header.scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

/* Smooth transitions */
* {
  scroll-behavior: smooth;
}

/* Custom focus styles */
input:focus,
textarea:focus,
button:focus {
  outline: none;
}

/* Hover effects for images */
img {
  transition: transform 0.4s ease;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #1e40af;
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: #1e3a8a;
}

/* Animation for fade in */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-visible {
  opacity: 1;
  animation: fadeInUp 0.6s ease-out;
}

/* Card flip effect */
.card-flip {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s;
  cursor: pointer;
}

.card-flip.flipped {
  transform: rotateY(180deg);
}

.card-front,
.card-back {
  backface-visibility: hidden;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.card-back {
  transform: rotateY(180deg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

/* Card expand effect */
.card-expand {
  transition: all 0.3s ease;
  cursor: pointer;
}

.card-expand.expanded {
  transform: scale(1.02) !important;
  z-index: 10;
}

/* Glass effect for cards */
.backdrop-blur-sm {
  backdrop-filter: blur(8px);
}

/* Smooth button transitions */
button,
a {
  transition: all 0.3s ease;
}

/* Loading state for forms */
.loading {
  pointer-events: none;
  opacity: 0.6;
}

/* Rounded corners consistency */
.rounded-3xl {
  border-radius: 1.5rem;
}

.rounded-2xl {
  border-radius: 1rem;
}

.rounded-full {
  border-radius: 9999px;
}

/* Shadow enhancements */
.shadow-lg {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.shadow-xl {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.shadow-2xl {
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

/* Hover lift effect */
.hover\:-translate-y-1:hover {
  transform: translateY(-4px);
}

/* Text drop shadow for better readability on images */
.drop-shadow-lg {
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
}

/* Gradient text effect */
.gradient-text {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Smooth color transitions */
.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 300ms;
}

/* Animation delays for staggered effects */
.animation-delay-100 {
  animation-delay: 100ms;
}

.animation-delay-200 {
  animation-delay: 200ms;
}

.animation-delay-300 {
  animation-delay: 300ms;
}

/* Blur overlay effect */
.blur-overlay {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.1);
}

/* Improved focus states for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* Print styles */
@media print {
  header,
  footer,
  .cookie-popup {
    display: none;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .card-flip {
    transform: none !important;
  }

  .card-flip.flipped {
    transform: none !important;
  }

  .card-back {
    position: relative;
    transform: none !important;
    margin-top: 1rem;
  }
}
