@import "tailwindcss";
@import "tw-animate-css";

@custom-variant dark (&:is(.dark *));

:root {
  /* Updated color tokens to match yellow/black/white design brief */
  --background: #ffffff;
  --foreground: #1f1f1f;
  --card: #f9f9f9;
  --card-foreground: #1f1f1f;
  --popover: #ffffff;
  --popover-foreground: #1f1f1f;
  --primary: #fbbe00;
  --primary-foreground: #1f1f1f;
  --secondary: #000000;
  --secondary-foreground: #ffffff;
  --muted: #f1f1f1;
  --muted-foreground: #6b7280;
  --accent: #000000;
  --accent-foreground: #fbbe00;
  --destructive: #dc2626;
  --destructive-foreground: #ffffff;
  --border: #e0e0e0;
  --input: #f9f9f9;
  --ring: #fbbe00;
  --chart-1: #fbbe00;
  --chart-2: #1f1f1f;
  --chart-3: #000000;
  --chart-4: #f1f1f1;
  --chart-5: #fbbe00;
  --radius: 0.5rem;
  --sidebar: #1f1f1f;
  --sidebar-foreground: #ffffff;
  --sidebar-primary: #fbbe00;
  --sidebar-primary-foreground: #1f1f1f;
  --sidebar-accent: #000000;
  --sidebar-accent-foreground: #fbbe00;
  --sidebar-border: #404040;
  --sidebar-ring: #fbbe00;
}

.dark {
  /* Updated dark theme colors for yellow/black/white palette */
  --background: #1f1f1f;
  --foreground: #ffffff;
  --card: #2a2a2a;
  --card-foreground: #ffffff;
  --popover: #1f1f1f;
  --popover-foreground: #ffffff;
  --primary: #fbbe00;
  --primary-foreground: #1f1f1f;
  --secondary: #ffffff;
  --secondary-foreground: #1f1f1f;
  --muted: #2a2a2a;
  --muted-foreground: #9ca3af;
  --accent: #fbbe00;
  --accent-foreground: #1f1f1f;
  --destructive: #ef4444;
  --destructive-foreground: #ffffff;
  --border: #404040;
  --input: #2a2a2a;
  --ring: #fbbe00;
  --chart-1: #fbbe00;
  --chart-2: #ffffff;
  --chart-3: #000000;
  --chart-4: #2a2a2a;
  --chart-5: #fbbe00;
  --sidebar: #000000;
  --sidebar-foreground: #ffffff;
  --sidebar-primary: #fbbe00;
  --sidebar-primary-foreground: #1f1f1f;
  --sidebar-accent: #fbbe00;
  --sidebar-accent-foreground: #1f1f1f;
  --sidebar-border: #404040;
  --sidebar-ring: #fbbe00;
}

@theme inline {
  --color-background: var(--background);
  --color-foreground: var(--foreground);
  --color-card: var(--card);
  --color-card-foreground: var(--card-foreground);
  --color-popover: var(--popover);
  --color-popover-foreground: var(--popover-foreground);
  --color-primary: var(--primary);
  --color-primary-foreground: var(--primary-foreground);
  --color-secondary: var(--secondary);
  --color-secondary-foreground: var(--secondary-foreground);
  --color-muted: var(--muted);
  --color-muted-foreground: var(--muted-foreground);
  --color-accent: var(--accent);
  --color-accent-foreground: var(--accent-foreground);
  --color-destructive: var(--destructive);
  --color-destructive-foreground: var(--destructive-foreground);
  --color-border: var(--border);
  --color-input: var(--input);
  --color-ring: var(--ring);
  --color-chart-1: var(--chart-1);
  --color-chart-2: var(--chart-2);
  --color-chart-3: var(--chart-3);
  --color-chart-4: var(--chart-4);
  --color-chart-5: var(--chart-5);
  --radius-sm: calc(var(--radius) - 4px);
  --radius-md: calc(var(--radius) - 2px);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 4px);
  --color-sidebar: var(--sidebar);
  --color-sidebar-foreground: var(--sidebar-foreground);
  --color-sidebar-primary: var(--sidebar-primary);
  --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
  --color-sidebar-accent: var(--sidebar-accent);
  --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
  --color-sidebar-border: var(--sidebar-border);
  --color-sidebar-ring: var(--sidebar-ring);
}

@layer base {
  * {
    @apply border-border outline-ring/50;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  }
  body {
    @apply bg-background text-foreground;
    font-family: "Open Sans", sans-serif;
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
  }
}

/* Added animation keyframes for website interactions */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.animate-slide-in-left {
  animation: slideInLeft 0.6s ease-out;
}

.animate-slide-in-right {
  animation: slideInRight 0.6s ease-out;
}

.animate-pulse-hover:hover {
  animation: pulse 0.3s ease-in-out;
}
