/* Updated with new color scheme and card flip animations */

/* Mobile Menu Styles */
.mobile-menu {
  display: none;
  padding-top: 1rem;
}

.mobile-menu.active {
  display: block;
}

@media (min-width: 1024px) {
  .mobile-menu {
    display: none !important;
  }
}

/* Cookie Popup Styles */
.cookie-popup {
  position: fixed;
  bottom: -300px;
  left: 0;
  right: 0;
  background: rgba(30, 58, 138, 0.98);
  color: white;
  padding: 1.5rem;
  z-index: 9999;
  transition: bottom 0.5s ease-in-out;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.cookie-popup.show {
  bottom: 0;
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
}

/* Form Input Focus States */
input:focus,
textarea:focus {
  outline: none;
  border-color: #1e3a8a;
}

/* Flip Card Styles */
.flip-card {
  perspective: 1000px;
  height: 400px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.flip-card.flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.flip-card-front {
  background: white;
  display: flex;
  flex-direction: column;
}

.flip-card-back {
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Smooth Transitions */
* {
  transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #facc15;
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: #eab308;
}

/* Animation for Cards */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Responsive Images */
img {
  max-width: 100%;
  height: auto;
}

/* Button Hover Effects */
button,
a {
  cursor: pointer;
}

/* Form Error States */
.border-red-500 {
  border-color: #ef4444 !important;
}

.text-red-500 {
  color: #ef4444 !important;
}

/* Gradient Backgrounds */
.bg-gradient-blue {
  background: linear-gradient(135deg, #3b82f6 0%, #1e3a8a 100%);
}

.bg-gradient-green {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.bg-gradient-purple {
  background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
}

.bg-gradient-orange {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}

.bg-gradient-red {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.bg-gradient-yellow {
  background: linear-gradient(135deg, #facc15 0%, #eab308 100%);
}

/* Backdrop Blur Support */
.backdrop-blur-sm {
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Shadow Utilities */
.shadow-custom {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* Hover Scale Effect */
.hover-scale {
  transition: transform 0.3s ease;
}

.hover-scale:hover {
  transform: scale(1.05);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .flip-card {
    height: auto;
    min-height: 350px;
  }
}
