/* Aztara Prompts - Custom CSS */

/* ===== CSS VARIABLES ===== */
:root {
  /* Colors */
  --primary-color: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #8b5cf6;
  --secondary-color: #06b6d4;
  --accent-color: #f59e0b;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
  
  /* Grays */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  
  /* Typography */
  --font-family-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  
  /* Spacing */
  --section-padding: 5rem 0;
  --container-max-width: 1200px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Transitions */
  --transition-fast: 0.15s ease-in-out;
  --transition-normal: 0.3s ease-in-out;
  --transition-slow: 0.5s ease-in-out;
}

/* ===== GLOBAL STYLES ===== */
* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-family-sans);
  line-height: 1.6;
  color: var(--gray-700);
  scroll-behavior: smooth;
}

.container {
  max-width: var(--container-max-width);
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  color: var(--gray-900);
}

.display-4 {
  font-weight: var(--font-weight-bold);
  line-height: 1.1;
}

.display-5 {
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
}

.lead {
  font-size: 1.125rem;
  font-weight: var(--font-weight-normal);
}

/* ===== BUTTONS ===== */
.btn {
  font-weight: var(--font-weight-medium);
  border-radius: 0.5rem;
  padding: 0.75rem 1.5rem;
  transition: all var(--transition-normal);
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: white;
}

.btn-outline-primary {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  background: transparent;
}

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

.btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  background: transparent;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  color: white;
  transform: translateY(-2px);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

/* ===== NAVIGATION ===== */
.navbar {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95) !important;
  transition: all var(--transition-normal);
  padding: 1rem 0;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: var(--shadow-md);
}

.navbar-brand {
  font-weight: var(--font-weight-bold);
  font-size: 1.5rem;
  color: var(--primary-color) !important;
}

.navbar-nav .nav-link {
  font-weight: var(--font-weight-medium);
  color: var(--gray-700) !important;
  margin: 0 0.5rem;
  transition: color var(--transition-fast);
}

.navbar-nav .nav-link:hover {
  color: var(--primary-color) !important;
}

/* ===== HERO SECTION ===== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 50%, var(--secondary-color) 100%);
  z-index: -2;
}

.hero-background::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../images/hero-bg.jpg') center/cover;
  opacity: 0.1;
  z-index: -1;
}

.hero-content {
  z-index: 2;
}

.hero-stats {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item h3 {
  color: white;
  margin-bottom: 0.25rem;
}

.stat-item small {
  color: rgba(255, 255, 255, 0.8);
  font-weight: var(--font-weight-medium);
}

.hero-image {
  position: relative;
  z-index: 2;
}

.floating-card {
  animation: float 6s ease-in-out infinite;
}

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

.floating-card .card {
  border: none;
  border-radius: 1rem;
  box-shadow: var(--shadow-xl);
}

/* ===== VALUE PROPOSITION ===== */
.value-card {
  padding: 2rem;
  border-radius: 1rem;
  transition: transform var(--transition-normal);
  height: 100%;
}

.value-card:hover {
  transform: translateY(-5px);
}

.value-icon i {
  font-size: 3rem;
  color: var(--primary-color);
}

/* ===== FEATURES SECTION ===== */
.feature-card {
  padding: 2.5rem;
  border-radius: 1rem;
  background: white;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  border: 1px solid var(--gray-200);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.feature-icon i {
  font-size: 3rem;
  color: var(--primary-color);
}

/* ===== CATEGORIES SECTION ===== */
.category-card {
  background: white;
  padding: 1.5rem;
  border-radius: 0.75rem;
  text-align: center;
  transition: all var(--transition-normal);
  border: 1px solid var(--gray-200);
  cursor: pointer;
  height: 100%;
}

.category-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.category-icon {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 0.75rem;
}

.use-case-tag {
  background: var(--gray-100);
  padding: 0.75rem 1rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: var(--font-weight-medium);
  color: var(--gray-700);
  transition: all var(--transition-fast);
  cursor: pointer;
  text-align: center;
  border: 1px solid var(--gray-200);
}

.use-case-tag:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

/* ===== HOW IT WORKS ===== */
.step-card {
  position: relative;
  padding: 2rem;
}

.step-number {
  position: absolute;
  top: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 3rem;
  height: 3rem;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--font-weight-bold);
  font-size: 1.25rem;
  box-shadow: var(--shadow-md);
}

.step-icon i {
  font-size: 2.5rem;
  color: var(--primary-color);
}

/* ===== TESTIMONIALS ===== */
.testimonial-card {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal);
  border: 1px solid var(--gray-200);
}

.testimonial-card:hover {
  transform: translateY(-5px);
}

.testimonial-author {
  display: flex;
  align-items: center;
  margin-top: 1.5rem;
}

.author-image {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 1rem;
}

.stars i {
  color: var(--warning-color);
  font-size: 1.125rem;
}

/* ===== PRICING ===== */
.pricing-card {
  background: white;
  border-radius: 1rem;
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  border: 2px solid var(--gray-200);
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.pricing-featured {
  border-color: var(--primary-color);
  transform: scale(1.05);
}

.pricing-featured:hover {
  transform: scale(1.05) translateY(-5px);
}

.pricing-badge {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-color);
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: var(--font-weight-medium);
}

.price {
  margin-bottom: 2rem;
}

.price-amount {
  font-size: 3rem;
  font-weight: var(--font-weight-bold);
  color: var(--primary-color);
}

.price-period {
  font-size: 1.125rem;
  color: var(--gray-500);
  font-weight: var(--font-weight-medium);
}

.pricing-features ul li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--gray-100);
}

.pricing-features ul li:last-child {
  border-bottom: none;
}

/* ===== FAQ ===== */
.accordion-item {
  border: 1px solid var(--gray-200);
  border-radius: 0.5rem !important;
  margin-bottom: 1rem;
}

.accordion-button {
  font-weight: var(--font-weight-medium);
  color: var(--gray-700);
  background: white;
  border: none;
  border-radius: 0.5rem !important;
}

.accordion-button:not(.collapsed) {
  background: var(--gray-50);
  color: var(--primary-color);
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.25rem rgba(99, 102, 241, 0.25);
}

/* ===== FOOTER ===== */
footer {
  background: var(--gray-900) !important;
}

.footer-brand img {
  filter: brightness(0) invert(1);
}

.social-links a {
  font-size: 1.5rem;
  transition: color var(--transition-fast);
}

.social-links a:hover {
  color: var(--primary-color) !important;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .hero-section {
    text-align: center;
    padding: 2rem 0;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-stats {
    margin: 2rem 0;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
  }
  
  .hero-buttons .btn {
    width: 100%;
    margin: 0 !important;
  }
  
  .value-card,
  .feature-card,
  .testimonial-card,
  .pricing-card {
    margin-bottom: 2rem;
  }
  
  .step-card {
    margin-bottom: 3rem;
  }
  
  .category-card {
    margin-bottom: 1rem;
  }
  
  .use-case-tag {
    margin-bottom: 0.5rem;
  }
}

@media (max-width: 576px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .display-5 {
    font-size: 2rem;
  }
  
  .btn-lg {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }
  
  .value-card,
  .feature-card,
  .testimonial-card,
  .pricing-card {
    padding: 1.5rem;
  }
  
  .step-card {
    padding: 1.5rem;
  }
}

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

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .floating-card {
    animation: none;
  }
}

/* Focus styles for keyboard navigation */
.btn:focus,
.nav-link:focus,
.accordion-button:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #0000ff;
    --gray-700: #000000;
    --gray-900: #000000;
  }
}

/* ===== UTILITY CLASSES ===== */
.text-primary {
  color: var(--primary-color) !important;
}

.bg-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%) !important;
}

.shadow-custom {
  box-shadow: var(--shadow-lg);
}

.border-radius-lg {
  border-radius: 1rem;
}

.transition-all {
  transition: all var(--transition-normal);
}


/* ===== ADDITIONAL ACCESSIBILITY STYLES ===== */

/* Screen reader only content */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Skip link styles */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-color);
  color: white;
  padding: 8px 16px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 10001;
  transition: top 0.3s;
  font-weight: var(--font-weight-medium);
}

.skip-link:focus {
  top: 6px;
  color: white;
  text-decoration: none;
}

/* Enhanced focus indicators */
*:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Remove outline for mouse users, keep for keyboard users */
.js-focus-visible *:focus:not(.focus-visible) {
  outline: none;
}

/* Button focus states */
.btn:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.25);
}

/* Link focus states */
a:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Form element focus states */
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.25);
}

/* Card focus states for keyboard navigation */
.category-card:focus,
.use-case-tag:focus,
.pricing-card:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Ensure sufficient color contrast */
.text-muted {
  color: var(--gray-600) !important; /* Ensures 4.5:1 contrast ratio */
}

/* High contrast mode adjustments */
@media (prefers-contrast: high) {
  .btn-outline-primary {
    border-width: 3px;
  }
  
  .btn-outline-light {
    border-width: 3px;
  }
  
  .card {
    border-width: 2px;
    border-color: var(--gray-900);
  }
  
  .category-card,
  .pricing-card,
  .testimonial-card,
  .feature-card {
    border-width: 2px;
    border-color: var(--gray-900);
  }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .floating-card {
    animation: none !important;
  }
  
  .fade-in-up {
    animation: none !important;
  }
}

/* Print styles for accessibility */
@media print {
  .navbar,
  .btn,
  .hero-background {
    display: none !important;
  }
  
  .hero-section {
    background: white !important;
    color: black !important;
    min-height: auto !important;
  }
  
  .hero-content {
    color: black !important;
  }
  
  a {
    color: black !important;
    text-decoration: underline !important;
  }
  
  .card {
    border: 1px solid black !important;
    box-shadow: none !important;
  }
}

/* Touch target size for mobile accessibility */
@media (max-width: 768px) {
  .btn,
  .nav-link,
  .category-card,
  .use-case-tag {
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .navbar-toggler {
    min-height: 44px;
    min-width: 44px;
  }
}

/* Error states for form validation */
.is-invalid {
  border-color: var(--danger-color) !important;
  box-shadow: 0 0 0 0.2rem rgba(239, 68, 68, 0.25) !important;
}

.invalid-feedback {
  display: block;
  width: 100%;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--danger-color);
}

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

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

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

/* Notification accessibility */
.notification {
  role: alert;
  aria-live: polite;
}

.notification-close {
  background: none;
  border: none;
  color: inherit;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  margin-left: 1rem;
}

.notification-close:focus {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

/* Ensure proper heading hierarchy */
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

/* Responsive font sizes for accessibility */
@media (max-width: 576px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }
  h4 { font-size: 1.25rem; }
  h5 { font-size: 1.125rem; }
  h6 { font-size: 1rem; }
  
  .display-4 { font-size: 2rem; }
  .display-5 { font-size: 1.75rem; }
}

