@tailwind base;
@tailwind components;
@tailwind utilities;

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Open+Sans:wght@400;500;600&display=swap');

@layer base {
  :root {
    --background: 210 20% 98%;
    --foreground: 215 25% 15%;

    --card: 0 0% 100%;
    --card-foreground: 215 25% 15%;

    --popover: 0 0% 100%;
    --popover-foreground: 215 25% 15%;

    --primary: 210 90% 35%;
    --primary-foreground: 0 0% 100%;

    --secondary: 160 60% 40%;
    --secondary-foreground: 0 0% 100%;

    --muted: 210 20% 94%;
    --muted-foreground: 215 15% 45%;

    --accent: 45 100% 50%;
    --accent-foreground: 215 25% 15%;

    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 210 40% 98%;

    --border: 214.3 31.8% 85%;
    --input: 214.3 31.8% 85%;
    --ring: 210 90% 35%;

    --radius: 0.75rem;

    /* Custom brand colors */
    --brand-dark: 215 50% 18%;
    --brand-blue: 210 90% 35%;
    --brand-light-blue: 200 85% 50%;
    --brand-green: 160 60% 40%;
    --brand-yellow: 45 100% 50%;
    --brand-orange: 25 95% 55%;

    /* Gradients */
    --gradient-hero: linear-gradient(135deg, hsl(215 50% 18%) 0%, hsl(210 90% 25%) 100%);
    --gradient-cta: linear-gradient(135deg, hsl(160 60% 40%) 0%, hsl(160 70% 35%) 100%);
    --gradient-accent: linear-gradient(135deg, hsl(45 100% 50%) 0%, hsl(25 95% 55%) 100%);

    --sidebar-background: 0 0% 98%;
    --sidebar-foreground: 240 5.3% 26.1%;
    --sidebar-primary: 240 5.9% 10%;
    --sidebar-primary-foreground: 0 0% 98%;
    --sidebar-accent: 240 4.8% 95.9%;
    --sidebar-accent-foreground: 240 5.9% 10%;
    --sidebar-border: 220 13% 91%;
    --sidebar-ring: 217.2 91.2% 59.8%;
  }

  .dark {
    --background: 215 50% 10%;
    --foreground: 210 40% 98%;
    --card: 215 50% 12%;
    --card-foreground: 210 40% 98%;
    --popover: 215 50% 12%;
    --popover-foreground: 210 40% 98%;
    --primary: 200 85% 50%;
    --primary-foreground: 215 50% 10%;
    --secondary: 160 60% 45%;
    --secondary-foreground: 0 0% 100%;
    --muted: 215 40% 20%;
    --muted-foreground: 215 20% 65%;
    --accent: 45 100% 50%;
    --accent-foreground: 215 50% 10%;
    --destructive: 0 62.8% 30.6%;
    --destructive-foreground: 210 40% 98%;
    --border: 215 40% 25%;
    --input: 215 40% 25%;
    --ring: 200 85% 50%;
    --sidebar-background: 240 5.9% 10%;
    --sidebar-foreground: 240 4.8% 95.9%;
    --sidebar-primary: 224.3 76.3% 48%;
    --sidebar-primary-foreground: 0 0% 100%;
    --sidebar-accent: 240 3.7% 15.9%;
    --sidebar-accent-foreground: 240 4.8% 95.9%;
    --sidebar-border: 240 3.7% 15.9%;
    --sidebar-ring: 217.2 91.2% 59.8%;
  }
}

@layer base {
  * {
    @apply border-border;
  }

  body {
    @apply bg-background text-foreground font-sans;
    font-family: 'Open Sans', sans-serif;
  }

  h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
  }
}

@layer components {
  .hero-gradient {
    background: var(--gradient-hero);
  }

  .cta-gradient {
    background: var(--gradient-cta);
  }

  .accent-gradient {
    background: var(--gradient-accent);
  }

  .text-shadow {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  }

  .card-hover {
    @apply transition-all duration-300 ease-out;
  }

  .card-hover:hover {
    @apply -translate-y-2 shadow-xl;
  }
}

@layer utilities {
  .animate-float {
    animation: float 3s ease-in-out infinite;
  }

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

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