
/* Custom base styles for better accessibility and modern design */
@layer base {
  html {
    scroll-behavior: smooth;
  }
  
  body {
    font-family: system-ui, -apple-system, sans-serif;
    color: #000;
    -webkit-font-smoothing: antialiased;
  }
  
  /* Focus styles for better accessibility */
  *:focus {
    outline: none;
    box-shadow: 0 0 0 2px #1a73e8, 0 0 0 4px rgba(26, 115, 232, 0.1);
  }
  
  /* Mobile-first responsive typography */
  h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
  }
  
  /* Smooth transitions for interactive elements */
  a, button {
    transition: all 0.2s ease-in-out;
  }
}

/* Custom component styles */
@layer components {
  /* Modern card component */
  .card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 24px;
    transition: all 0.3s ease;
  }
  
  .card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
  }
  
  /* Modern button styles */
  .btn-primary {
    background: linear-gradient(135deg, #F2AC57, #f59e0b);
    color: white;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(242, 172, 87, 0.3);
    border: none;
    transition: all 0.3s ease;
    transform: translateY(0);
  }
  
  .btn-primary:hover {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 6px 20px rgba(242, 172, 87, 0.4);
    transform: translateY(-2px);
  }
  
  .btn-secondary {
    background: linear-gradient(135deg, #0e50af, #0c3d82);
    color: white;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(14, 80, 175, 0.3);
    border: none;
    transition: all 0.3s ease;
    transform: translateY(0);
  }
  
  .btn-secondary:hover {
    background: linear-gradient(135deg, #0c3d82, #0a2e5e);
    box-shadow: 0 6px 20px rgba(14, 80, 175, 0.4);
    transform: translateY(-2px);
  }
  
  /* Modern navigation link styles */
  .nav-link {
    display: block;
    padding: 8px 16px;
    color: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    transition: all 0.2s ease;
  }
  
  .nav-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.2);
  }
  
  .nav-link-active {
    display: block;
    padding: 8px 16px;
    color: white;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease;
  }
  
  .nav-link-active:hover {
    background: rgba(255, 255, 255, 0.2);
  }
  
  /* Glassmorphism effect */
  .glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
  }
  
  /* Modern form inputs */
  .form-input {
    display: block;
    width: 100%;
    padding: 12px 16px;
    color: #000;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
  }
  
  .form-input:focus {
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
  }
  
  .form-input::placeholder {
    color: rgba(0, 0, 0, 0.5);
  }
}

/* Custom utility classes */
@layer utilities {
  /* Text gradient utilities */
  .text-gradient-blue {
    background: linear-gradient(135deg, #0e50af, #0a2e5e);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  
  .text-gradient-orange {
    background: linear-gradient(135deg, #f59e0b, #b45309);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  
  /* Animation utilities */
  .animate-fade-in {
    animation: fadeIn 0.5s ease-in-out;
  }
  
  .animate-slide-up {
    animation: slideUp 0.3s ease-out;
  }
  
  .animate-bounce-gentle {
    animation: bounceGentle 2s infinite;
  }
  
  /* Custom scrollbar */
  .scrollbar-custom {
    scrollbar-width: thin;
    scrollbar-color: #9ABBD9 transparent;
  }
  
  .scrollbar-custom::-webkit-scrollbar {
    width: 6px;
  }
  
  .scrollbar-custom::-webkit-scrollbar-track {
    background: transparent;
  }
  
  .scrollbar-custom::-webkit-scrollbar-thumb {
    background-color: #9ABBD9;
    border-radius: 3px;
  }
  
  .scrollbar-custom::-webkit-scrollbar-thumb:hover {
    background-color: #4d94ff;
  }
}

/* Keyframe animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes bounceGentle {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

/* Legacy scrolling animation (maintain compatibility) */
@keyframes loop {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Sponsors section auto-scroll styles */
#container {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.scroll {
  display: flex;
  animation: loop 30s linear infinite;
  width: fit-content;
}

.scroll:hover {
  animation-play-state: paused;
}

.item {
  flex-shrink: 0;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 25px;
  pointer-events: none;
}

.fade::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100px;
  height: 100%;
  background: linear-gradient(to right, rgba(249, 250, 251, 1), rgba(249, 250, 251, 0));
}

.fade::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100%;
  background: linear-gradient(to left, rgba(249, 250, 251, 1), rgba(249, 250, 251, 0));
}

/* Mobile-specific optimizations */
@media (max-width: 768px) {
  .mobile-optimized {
    font-size: 0.875rem;
    line-height: 1.625;
  }
  
  .scroll {
    animation-duration: 20s;
  }
  
  .item {
    padding: 0 1rem;
  }
}

/* Print styles */
@media print {
  .no-print {
    display: none !important;
  }
  
  body {
    color: #000 !important;
    background: #fff !important;
  }
}