/* ArfiaaTech Design System CSS */
/* Theme variables and custom styles for Nyata */

/* Base variables */
:root {
  --radius: 1rem;
  /* Soft border colors - minimal opacity for subtle effect */
  --border-soft: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
}

.light {
  --border-soft: rgba(0, 0, 0, 0.06);
  --border-hover: rgba(0, 0, 0, 0.12);
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Anchor link scroll margin for fixed header */
a[href^="#"] {
  scroll-margin-top: 80px;
}

/* Theme-specific variables */
.dark {
  --bg-primary: #1a2332;
  --bg-card: #1f2d3f;
  --bg-muted: #2d3f55;
  --border-color: #2d3f55;
  --text-primary: #FFFFFF;
  --text-secondary: #8BA5B8;
}

.light {
  --bg-primary: #FAFAFA;
  --bg-card: #FFFFFF;
  --bg-muted: #E5E5E5;
  --border-color: #D9D9D9;
  --text-primary: #1a2332;
  --text-secondary: #4A5568;
}

/* Additional animation delays for staggered animations */
.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; }

/* Logo float animation variant */
@keyframes logo-float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.animate-logo-float {
  animation: logo-float 4s ease-in-out infinite;
}

/* Pulse dot animation */
@keyframes pulse-dot {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }
}

.animate-pulse-dot {
  animation: pulse-dot 2s ease-in-out infinite;
}

/* Gradient text for multi-color headlines */
.gradient-text {
  background: linear-gradient(135deg, #E74C3C 0%, #3498DB 50%, #F39C12 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Color-specific text classes */
.text-brand-red { color: #E74C3C; }
.text-brand-blue { color: #3498DB; }
.text-brand-orange { color: #F39C12; }
.text-brand-sparkle { color: #8BA5B8; }

/* Background color classes */
.bg-brand-red { background-color: #E74C3C; }
.bg-brand-blue { background-color: #3498DB; }
.bg-brand-orange { background-color: #F39C12; }
.bg-brand-red\/10 { background-color: rgba(231, 76, 60, 0.1); }
.bg-brand-blue\/10 { background-color: rgba(52, 152, 219, 0.1); }
.bg-brand-orange\/10 { background-color: rgba(243, 156, 18, 0.1); }

/* Border color classes */
.border-brand-red { border-color: #E74C3C; }
.border-brand-blue { border-color: #3498DB; }
.border-brand-orange { border-color: #F39C12; }

/* Theme transition */
.theme-transition {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Disable transitions during theme change */
.theme-changing * {
  transition: none !important;
}

/* Glass morphism effect (optional) */
.glass {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.light .glass {
  background: rgba(255, 255, 255, 0.8);
}

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

::-webkit-scrollbar-track {
  background: var(--bg-muted);
}

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

::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}

/* Focus visible styles for accessibility */
*:focus-visible {
  outline: 2px solid #3498DB;
  outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

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

/* Utility for showing elements */
.not-sr-only {
  position: static;
  width: auto;
  height: auto;
  padding: 0;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

/* Soft border utility - for subtle dividers */
.border-soft {
  border-color: var(--border-soft);
}

.border-soft-top {
  border-top: 1px solid var(--border-soft);
}

.border-soft-bottom {
  border-bottom: 1px solid var(--border-soft);
}

/* Soft backgrounds - minimal tint instead of borders */
.bg-soft-dark {
  background: rgba(255, 255, 255, 0.03);
}

.light .bg-soft-dark {
  background: rgba(0, 0, 0, 0.02);
}

.bg-soft-hover {
  background: rgba(255, 255, 255, 0.06);
}

.light .bg-soft-hover {
  background: rgba(0, 0, 0, 0.04);
}
