/* Custom CSS Variables - Converted to RGB for better browser support */
:root {
  --background: rgb(247, 247, 247);
  --foreground: rgb(33, 33, 33);
  --card: rgb(255, 255, 255);
  --card-foreground: rgb(33, 33, 33);
  --popover: rgb(255, 255, 255);
  --popover-foreground: rgb(33, 33, 33);
  --primary: rgb(99, 102, 241);
  --primary-foreground: rgb(255, 255, 255);
  --secondary: rgb(234, 179, 8);
  --secondary-foreground: rgb(255, 255, 255);
  --muted: rgb(229, 229, 229);
  --muted-foreground: rgb(115, 115, 115);
  --accent: rgb(139, 92, 246);
  --accent-foreground: rgb(255, 255, 255);
  --destructive: rgb(239, 68, 68);
  --destructive-foreground: rgb(255, 255, 255);
  --border: rgb(229, 229, 229);
  --input: rgb(250, 250, 250);
  --ring: rgb(99, 102, 241);
  --sidebar: rgb(33, 33, 33);
  --sidebar-foreground: rgb(255, 255, 255);
  --sidebar-primary: rgb(99, 102, 241);
  --sidebar-primary-foreground: rgb(255, 255, 255);
  --sidebar-accent: rgb(234, 179, 8);
  --sidebar-accent-foreground: rgb(255, 255, 255);
  --sidebar-border: rgb(64, 64, 64);
}

/* Base body styles to ensure text is visible */
body {
  background-color: var(--background) !important;
  color: var(--foreground) !important;
}

/* Ensure all text elements have proper color */
p, h1, h2, h3, h4, h5, h6, span, div, a, li, button {
  color: inherit;
}
#hero {
  background-color: rgba(253, 248, 248, 0.313) !important;
}
.dark {
  --background: rgb(31, 31, 31);
  --foreground: rgb(243, 244, 246);
  --card: rgb(46, 46, 46);
  --card-foreground: rgb(243, 244, 246);
  --popover: rgb(46, 46, 46);
  --popover-foreground: rgb(243, 244, 246);
  --primary: rgb(129, 140, 248);
  --primary-foreground: rgb(31, 31, 31);
  --secondary: rgb(250, 204, 21);
  --secondary-foreground: rgb(31, 31, 31);
  --muted: rgb(89, 89, 89);
  --muted-foreground: rgb(166, 166, 166);
  --accent: rgb(167, 139, 250);
  --accent-foreground: rgb(31, 31, 31);
  --destructive: rgb(239, 68, 68);
  --destructive-foreground: rgb(243, 244, 246);
  --border: rgb(64, 64, 64);
  --input: rgb(56, 56, 56);
  --ring: rgb(129, 140, 248);
  --sidebar: rgb(33, 33, 33);
  --sidebar-foreground: rgb(243, 244, 246);
  --sidebar-primary: rgb(129, 140, 248);
  --sidebar-primary-foreground: rgb(31, 31, 31);
  --sidebar-accent: rgb(250, 204, 21);
  --sidebar-accent-foreground: rgb(31, 31, 31);
  --sidebar-border: rgb(64, 64, 64);
}

/* Apply CSS variables to Tailwind classes with !important to override Tailwind CDN */
.bg-background { background-color: var(--background) !important; }
.text-foreground { color: var(--foreground) !important; }
.bg-card { background-color: var(--card) !important; }
.text-card-foreground { color: var(--card-foreground) !important; }
.bg-popover { background-color: var(--popover) !important; }
.text-popover-foreground { color: var(--popover-foreground) !important; }
.bg-primary { background-color: var(--primary) !important; }
.text-primary { color: var(--primary) !important; }
.bg-primary-foreground { background-color: var(--primary-foreground) !important; }
.text-primary-foreground { color: var(--primary-foreground) !important; }
.bg-secondary { background-color: var(--secondary) !important; }
.text-secondary { color: var(--secondary) !important; }
.bg-secondary-foreground { background-color: var(--secondary-foreground) !important; }
.text-secondary-foreground { color: var(--secondary-foreground) !important; }
.bg-muted { background-color: var(--muted) !important; }
.text-muted-foreground { color: var(--muted-foreground) !important; }
.bg-accent { background-color: var(--accent) !important; }
.text-accent { color: var(--accent) !important; }
.bg-accent-foreground { background-color: var(--accent-foreground) !important; }
.text-accent-foreground { color: var(--accent-foreground) !important; }
.bg-destructive { background-color: var(--destructive) !important; }
.text-destructive { color: var(--destructive) !important; }
.bg-destructive-foreground { background-color: var(--destructive-foreground) !important; }
.text-destructive-foreground { color: var(--destructive-foreground) !important; }
.border-border { border-color: var(--border) !important; }
.bg-input { background-color: var(--input) !important; }
.bg-sidebar { background-color: var(--sidebar) !important; }
.text-sidebar-foreground { color: var(--sidebar-foreground) !important; }
.bg-sidebar-primary { background-color: var(--sidebar-primary) !important; }
.text-sidebar-primary { color: var(--sidebar-primary) !important; }
.bg-sidebar-accent { background-color: var(--sidebar-accent) !important; }
.text-sidebar-accent { color: var(--sidebar-accent) !important; }
.border-sidebar-border { border-color: var(--sidebar-border) !important; }

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

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

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

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

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.6), 0 0 60px rgba(139, 92, 246, 0.4);
  }
}

@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

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

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.5s ease-out;
}

.animate-slide-up {
  animation: slideInUp 0.6s ease-out;
}

.animate-slide-down {
  animation: slideInDown 0.6s ease-out;
}

.animate-slide-right {
  animation: slideInRight 0.6s ease-out;
}

.animate-slide-left {
  animation: slideInLeft 0.6s ease-out;
}

.animate-scale-in {
  animation: scaleIn 0.5s ease-out;
}

.animate-bounce {
  animation: bounce 2s infinite;
}

.animate-shimmer {
  animation: shimmer 2s infinite;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
  background-size: 1000px 100%;
}

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

.animate-glow {
  animation: glow 3s ease-in-out infinite;
}

.animate-gradient {
  background-size: 200% 200%;
  animation: gradient-shift 3s ease infinite;
}

.animate-rotate-slow {
  animation: rotate-slow 20s linear infinite;
}

/* Utility classes */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.text-pretty {
  text-wrap: pretty;
}

