:root {
  --color-primary: #0F2027;
  --color-secondary: #1A3A40;
  --color-accent: #00F5A0;
}

html { 
  scroll-behavior: smooth; 
  scroll-padding-top: 5rem; 
}

body { 
  font-family: 'Outfit', system-ui, sans-serif; 
}

/* Button fixes */
button, .btn, [class*="btn-"], a[href="#consultation_form"] {
  white-space: nowrap;
  min-width: fit-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

form button[type="submit"] {
  white-space: normal;
  width: 100%;
}

/* Animations */
[data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.rotate-180 { 
  transform: rotate(180deg); 
}

/* Custom gradient backgrounds */
.bg-gradient-accent {
  background: linear-gradient(135deg, var(--color-accent), #10B981);
}

.bg-gradient-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
}

/* Decorative elements */
.decor-grid-dots {
  background-image: radial-gradient(circle, var(--color-accent) 1px, transparent 1px);
  background-size: 20px 20px;
}

.decor-grid-lines {
  background-image: linear-gradient(var(--color-accent) 1px, transparent 1px),
                    linear-gradient(90deg, var(--color-accent) 1px, transparent 1px);
  background-size: 30px 30px;
}

.decor-subtle { opacity: 0.05; }
.decor-moderate { opacity: 0.1; }
.decor-bold { opacity: 0.2; }

/* Form styles */
.form-input {
  @apply w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-accent focus:border-transparent transition-colors;
}

.form-input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 245, 160, 0.1);
}

/* Article content styles */
.article-content h2 {
  @apply text-2xl font-semibold text-primary mt-8 mb-4;
}

.article-content h3 {
  @apply text-xl font-semibold text-primary mt-6 mb-3;
}

.article-content p {
  @apply text-gray-600 leading-relaxed mb-4;
}

.article-content ul {
  @apply list-disc list-inside text-gray-600 space-y-2 mb-4;
}

.article-content ol {
  @apply list-decimal list-inside text-gray-600 space-y-2 mb-4;
}

.article-content blockquote {
  @apply border-l-4 border-accent pl-4 italic text-gray-700 my-6;
}

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

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid transparent;
  border-top: 2px solid var(--color-accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Mobile improvements */
@media (max-width: 640px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  [data-animate] {
    transform: translateY(10px);
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .text-gray-600 {
    color: #374151;
  }
  
  .text-gray-400 {
    color: #6B7280;
  }
}

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