/* Complete redesign with gradient backgrounds and modern card styles */

/* Cookie Popup Styles */
.cookie-popup {
  position: fixed;
  bottom: -100%;
  left: 0;
  right: 0;
  padding: 20px;
  z-index: 9999;
  transition: bottom 0.5s ease-in-out;
}

.cookie-popup.show {
  bottom: 20px;
}

/* Smooth Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

/* Form Error State */
input.border-red-500,
textarea.border-red-500 {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #2563eb;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #1d4ed8;
}

/* Play Button Pulse Animation */
@keyframes pulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.05);
    box-shadow: 0 0 0 20px rgba(37, 99, 235, 0);
  }
}

.play-button {
  animation: pulse 2s infinite;
}

/* Flip Card Styles for Interactive Cards */
.flip-card {
  perspective: 1000px;
  cursor: pointer;
  min-height: 400px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: left;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.flip-card:hover .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;
  border-radius: 24px;
}

.flip-card-front {
  background: inherit;
}

.flip-card-back {
  background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
  transform: rotateY(180deg);
}

/* Team Card Hover Effects */
.team-card {
  transition: all 0.3s ease;
}

.team-card:hover {
  transform: translateY(-8px);
}

.team-image {
  transition: transform 0.5s ease;
}

.team-card:hover .team-image {
  transform: scale(1.1);
}

/* Gradient Background Animation */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

body {
  background-size: 200% 200%;
  animation: gradientShift 15s ease infinite;
}

/* Backdrop Blur Support */
@supports (backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px)) {
  .backdrop-blur-md {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .backdrop-blur-sm {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
}

/* Button Styles */
button:focus,
a:focus {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

/* Hover Effects for Links */
a {
  transition: all 0.3s ease;
}

/* Mobile Menu Animation */
#mobileMenu {
  transition: all 0.3s ease-in-out;
}

/* Image Loading Effect */
img {
  transition: opacity 0.3s ease-in-out;
}

img[src*="placeholder"] {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Shadow Effects for Cards */
.shadow-xl {
  box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.15);
}

.shadow-2xl {
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.25);
}

/* Smooth Transitions */
* {
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Print Styles */
@media print {
  .cookie-popup,
  header,
  footer {
    display: none;
  }
}

/* Accessibility - High Contrast Mode */
@media (prefers-contrast: high) {
  body {
    background: white;
    color: black;
  }

  a {
    text-decoration: underline;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .flip-card:hover .flip-card-inner {
    transform: none;
  }
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
  .flip-card-inner {
    transform: none !important;
  }

  .flip-card-front,
  .flip-card-back {
    position: relative;
    transform: none !important;
  }

  .flip-card:hover .flip-card-back {
    display: block;
  }
}
