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

::-webkit-scrollbar-track {
  background: #0B1B3D;
}

::-webkit-scrollbar-thumb {
  background: #8A6508;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #9D7410;
}

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}

/* Skip link for keyboard users */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  background: #ffffff;
  color: #0B1B3D;
  border-radius: 6px;
  z-index: 1000;
  box-shadow: 0 8px 20px rgba(11, 27, 61, 0.25);
}

/* Keyboard focus visibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #9D7410;
  outline-offset: 2px;
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, #8A6508 0%, #9D7410 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Glass Effect */
.glass {
  background: rgba(11, 27, 61, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Photo Ring Animation */
.photo-ring {
  position: relative;
}

.photo-ring::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8A6508 0%, #9D7410 50%, #8A6508 100%);
  z-index: -1;
  animation: rotate 8s linear infinite;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* Hover Card Effect */
.hover-card {
  transition: all 0.3s ease;
}

.hover-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(11, 27, 61, 0.15);
}

/* Timeline */
.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, #8A6508, #1E3A8A);
  transform: translateX(-50%);
}

/* Mobile Menu */
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.mobile-menu.open {
  transform: translateX(0);
}

/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .animate-float,
  .animate-bounce,
  .animate-pulse-slow,
  .animate-spin {
    animation: none !important;
    transform: none !important;
  }

  .hover-card:hover {
    transform: none;
    box-shadow: inherit;
  }
}

/* Fallback color utilities if Tailwind CDN config is unavailable */
.bg-primary { background-color: #0B1B3D; }
.bg-secondary { background-color: #1E3A8A; }
.bg-accent { background-color: #8A6508; }
.bg-accent-light { background-color: #9D7410; }
.bg-light-bg { background-color: #F8FAFC; }

.text-primary { color: #0B1B3D; }
.text-secondary { color: #1E3A8A; }
.text-accent { color: #8A6508; }
.text-soft-text { color: #475569; }

.border-medium-gray { border-color: #CBD5E1; }
