* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
}

/* Updated mobile menu styles for new design */
.mobile-menu {
  display: none;
}

.mobile-menu-active {
  display: block !important;
}

/* Redesigned cookie popup to match reference */
.cookie-popup {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  max-width: 420px;
  background: white;
  padding: 24px;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(139, 92, 246, 0.15);
  z-index: 9999;
  animation: slideUp 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: 1px solid rgba(139, 92, 246, 0.1);
}

@keyframes slideUp {
  from {
      transform: translateY(100px);
      opacity: 0;
  }
  to {
      transform: translateY(0);
      opacity: 1;
  }
}

.cookie-content {
  color: #374151;
}

.cookie-content p {
  margin-bottom: 1rem;
  font-size: 14px;
  line-height: 1.6;
  color: #6b7280;
}

@media (max-width: 768px) {
  .cookie-popup {
      left: 20px;
      right: 20px;
      max-width: none;
  }
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Enhanced focus states matching purple theme */
a:focus,
button:focus,
input:focus,
textarea:focus {
  outline: 2px solid #9333ea;
  outline-offset: 2px;
}

/* Custom scrollbar with purple accent */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #f9fafb;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #9333ea 0%, #6366f1 100%);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #7e22ce 0%, #4f46e5 100%);
}

/* Added gradient background utilities */
.gradient-bg {
  background: linear-gradient(135deg, #f3e8ff 0%, #e0e7ff 100%);
}

/* Form error state with purple theme */
.border-red-500 {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Glass morphism effect for cards */
.glass-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Enhanced card shadows matching reference design */
.card-shadow {
  box-shadow: 0 4px 6px -1px rgba(139, 92, 246, 0.1), 0 2px 4px -1px rgba(139, 92, 246, 0.06);
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.card-shadow:hover {
  box-shadow: 0 20px 25px -5px rgba(139, 92, 246, 0.15), 0 10px 10px -5px rgba(139, 92, 246, 0.08);
  transform: translateY(-2px);
}

/* Flip card 3D effect */
.flip-card {
  perspective: 1000px;
  transform-style: preserve-3d;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.flip-card:hover {
  transform: scale(1.05) rotateY(5deg);
}

/* FAQ accordion styles */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.faq-icon {
  transition: transform 0.3s ease;
}

/* Gradient text utility */
.gradient-text {
  background: linear-gradient(135deg, #9333ea 0%, #6366f1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Pulse animation for live indicator */
@keyframes pulse {
  0%, 100% {
      opacity: 1;
  }
  50% {
      opacity: 0.5;
  }
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Button hover lift effect */
.hover-lift {
  transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(139, 92, 246, 0.2);
}

/* Backdrop blur for header */
.backdrop-blur-md {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Stats animation on hover */
.transform:hover {
  transition: transform 0.3s ease;
}

/* Team card enhanced styles */
.group:hover img {
  transform: scale(1.05);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Smooth transitions for all interactive elements */
a, button, input, textarea, select {
  transition: all 0.2s ease;
}

/* Focus visible for accessibility */
*:focus-visible {
  outline: 2px solid #9333ea;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Responsive text sizing */
@media (max-width: 640px) {
  h1 {
      font-size: 2rem !important;
  }
  h2 {
      font-size: 1.75rem !important;
  }
}

/* Loading state for buttons */
button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Enhanced link hover states */
a {
  position: relative;
}

a:not(.no-underline):hover {
  text-decoration: none;
}

/* Image lazy loading fade in */
img {
  transition: opacity 0.3s ease;
}

img[loading="lazy"] {
  opacity: 0;
}

img[loading="lazy"].loaded {
  opacity: 1;
}
