/* Updated color scheme and added flip card animations */

* {
  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;
  color: #1f2937;
}

html {
  scroll-behavior: smooth;
}

/* Updated scrollbar colors to match new theme */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #fef3c7;
}

::-webkit-scrollbar-thumb {
  background: #f97316;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #ea580c;
}

/* Updated focus colors to orange */
a:focus,
button:focus,
input:focus,
textarea:focus {
  outline: 2px solid #f97316;
  outline-offset: 2px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Updated input focus to orange */
input:focus,
textarea:focus,
select:focus {
  border-color: #f97316 !important;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

button,
a {
  transition: all 0.3s ease;
}

#cookiePopup {
  transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

#mobileMenu {
  transition: all 0.3s ease;
}

.shadow-lg {
  transition: box-shadow 0.3s ease;
}

/* Added flip card styles */
.flip-card {
  perspective: 1000px;
  cursor: pointer;
}

.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-back {
  transform: rotateY(180deg);
}

/* Added team card expandable styles */
.team-card-expandable {
  transition: all 0.3s ease;
}

.team-card-expandable.expanded {
  grid-column: span 2;
}

@media (max-width: 1024px) {
  .team-card-expandable.expanded {
    grid-column: span 1;
  }
}

.team-full-bio {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.team-card-expandable.expanded .team-full-bio {
  max-height: 500px;
}

/* Added hover scale effects */
.transform {
  transition: transform 0.3s ease;
}

.hover\:scale-105:hover {
  transform: scale(1.05);
}

@media (max-width: 640px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  h3 {
    font-size: 1.5rem;
  }
}

@media print {
  header,
  footer,
  #cookiePopup,
  #burgerBtn {
    display: none;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.loading {
  opacity: 0.6;
  pointer-events: none;
}

.border-red-500 {
  border-color: #ef4444 !important;
  animation: shake 0.3s ease;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}

.gradient-text {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.container {
  max-width: 1280px;
}

iframe {
  border: 0;
}

/* Added smooth animations for stats */
@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stat-number {
  animation: countUp 0.6s ease-out;
}

/* Updated footer link hover to orange */
footer a {
  position: relative;
  display: inline-block;
}

footer a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: #f97316;
  transition: width 0.3s ease;
}

footer a:hover::after {
  width: 100%;
}

@media (max-width: 768px) {
  section {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
}

@media (prefers-contrast: high) {
  body {
    color: #000;
  }

  .bg-blue-900 {
    background-color: #000 !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Added pulse animation for CTA buttons */
@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.7);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(249, 115, 22, 0);
  }
}

.bg-orange-500:hover {
  animation: pulse 1.5s infinite;
}
