/* Custom styles extending Tailwind */
:root {
  --primary-color: #003366;
  --secondary-color: #0066cc;
  --accent-color: #14b8a6;
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-light: #f5f5f5;
}

/* Smooth scrolling for all browsers */
html {
  scroll-behavior: smooth;
}

/* Improve touch targets for mobile */
@media (max-width: 768px) {
  a, button {
    min-height: 44px;
    min-width: 44px;
  }
  
  .nav-link {
    padding: 12px 16px;
  }
}

.text-gradient {
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  background-image: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

/* Animation for fade-in elements */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

/* Custom animation delays */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* Mobile menu animation */
#mobile-menu {
  transition: max-height 0.3s ease-out;
  max-height: 0;
  overflow: hidden;
}

#mobile-menu:not(.hidden) {
  max-height: 500px;
}

/* Loading state for links */
a[target="_blank"]:active {
  opacity: 0.7;
}

/* Better focus states for accessibility */
a:focus, button:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

/* Optimize images */
img {
  max-width: 100%;
  height: auto;
}