/* Custom styles for AInsight website */

/* Custom color variables */
:root {
  --ai-primary: #000000;    /* Black */
  --ai-secondary: #fbbf24;  /* Yellow */
  --ai-accent: #f59e0b;     /* Darker yellow for hover states */
  --ai-light: #ffffff;      /* White */
  --ai-dark: #1f2937;       /* Dark gray for text */
}

/* Smooth scrolling for the entire page */
html {
  scroll-behavior: smooth;
}

/* Custom animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Apply fade-in animation to main sections */
main section {
  animation: fadeInUp 0.6s ease-out;
}

/* Enhanced button styles */
.btn-primary {
  background: linear-gradient(135deg, var(--ai-primary), var(--ai-dark));
  color: var(--ai-secondary);
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  background: var(--ai-secondary);
  color: var(--ai-primary);
}

.btn-secondary {
  border: 2px solid var(--ai-secondary);
  color: var(--ai-secondary);
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  background: transparent;
  cursor: pointer;
}

.btn-secondary:hover {
  background: var(--ai-secondary);
  color: var(--ai-primary);
  transform: translateY(-2px);
}

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

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

/* Custom gradient backgrounds */
.gradient-bg {
  background: linear-gradient(135deg, var(--ai-primary), var(--ai-dark));
}

.gradient-text {
  background: linear-gradient(135deg, var(--ai-primary), var(--ai-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Enhanced form styles */
.form-input {
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px 16px;
  transition: all 0.3s ease;
  font-size: 16px;
}

.form-input:focus {
  outline: none;
  border-color: var(--ai-secondary);
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.1);
}

/* Navigation enhancements */
nav a {
  position: relative;
  transition: color 0.3s ease;
}

nav a:not(.bg-ai-secondary):hover::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--ai-secondary);
  transform: scaleX(1);
  transition: transform 0.3s ease;
}

nav a:not(.bg-ai-secondary)::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--ai-secondary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

/* Ensure navigation text is always visible */
nav a {
  color: white !important;
}

nav a:hover {
  color: var(--ai-secondary) !important;
}

nav a.bg-ai-secondary {
  color: black !important;
}

/* Service icons animation */
.service-icon {
  transition: all 0.3s ease;
}

.service-icon:hover {
  animation: pulse 1s infinite;
}

/* Loading animations */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

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

.fa-spin {
  animation: spin 1s linear infinite;
}

/* Responsive typography */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem !important;
  }
  
  h2 {
    font-size: 2rem !important;
  }
  
  .text-xl {
    font-size: 1.125rem !important;
  }
}

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

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: var(--ai-secondary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--ai-accent);
}

/* Print styles */
@media print {
  nav, footer {
    display: none !important;
  }
  
  main {
    margin: 0 !important;
    padding: 0 !important;
  }
}

/* Accessibility improvements */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus styles for better accessibility */
*:focus {
  outline: 2px solid var(--ai-secondary);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .text-gray-600 {
    color: #000000 !important;
  }
  
  .bg-gray-100 {
    background-color: #ffffff !important;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}