/* Fonts are loaded in index.html for better performance */

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

@layer base {
  :root {
    --background: 0 0% 100%;
    --foreground: 240 10% 4%;

    --card: 0 0% 100%;
    --card-foreground: 240 10% 4%;

    --popover: 0 0% 100%;
    --popover-foreground: 240 10% 4%;

    /* Apple Blue Color */
    --primary: 221.2 83.2% 53.3%;
    --primary-foreground: 210 40% 98%;

    --secondary: 240 4.8% 95.9%;
    --secondary-foreground: 240 5.9% 10%;

    --muted: 240 4.8% 95.9%;
    --muted-foreground: 240 3.8% 40%;

    --accent: 240 4.8% 95.9%;
    --accent-foreground: 240 5.9% 10%;

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

    --border: 240 5.9% 90%;
    --input: 240 5.9% 90%;
    --ring: 240 10% 4%;

    --radius: 1rem;

    /* Apple-style gradients and effects */
    --gradient-primary: linear-gradient(135deg, hsl(221.2 83.2% 53.3%) 0%, hsl(210 100% 66%) 100%);
    --gradient-hero: radial-gradient(circle at 50% 50%, hsl(210 40% 98%) 0%, hsl(0 0% 100%) 100%);
    --gradient-card: linear-gradient(180deg, hsl(0 0% 100%) 0%, hsl(240 4.8% 98%) 100%);
    --gradient-glow: radial-gradient(circle at center, hsla(221, 83%, 53%, 0.05) 0%, transparent 70%);
    
    --shadow-glow: 0 0 40px hsla(221, 83%, 53%, 0.08);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.08);

    --font-display: 'Outfit', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
  }

  .dark {
    --background: 240 10% 4%;
    --foreground: 0 0% 98%;
    /* Add dark mode overrides if needed, but the user asked for LIGHT/CLASSIC */
  }
}

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

  body {
    @apply bg-background text-foreground antialiased;
    font-family: var(--font-body);
    font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  }

  h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    @apply tracking-tight;
  }
}

@layer utilities {
  .text-gradient {
    @apply bg-clip-text text-transparent bg-gradient-to-r from-primary to-blue-400 font-bold;
  }

  .bg-gradient-hero {
    background: var(--gradient-hero);
  }

  .bg-gradient-card {
    background: var(--gradient-card);
  }

  .bg-gradient-glow {
    background: var(--gradient-glow);
  }

  .glass-effect {
    @apply bg-white/70 backdrop-blur-md border border-white/20;
  }

  /* Compact spacing utility */
  .section-padding {
    @apply py-16 sm:py-20;
  }

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

  .animate-slide-up {
    animation: slide-up 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  .animate-fade-in {
    animation: fade-in 0.8s ease-out forwards;
  }

  .card-apple {
    @apply bg-white rounded-3xl border border-black/[0.03] shadow-[0_2px_10px_-3px_rgba(0,0,0,0.07),0_10px_15px_-3px_rgba(0,0,0,0.05)] hover:shadow-[0_20px_40px_-15px_rgba(0,0,0,0.1)] transition-all duration-500;
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(1deg); }
}

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

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.grid-pattern {
  background-image: radial-gradient(circle at 1px 1px, hsl(240 5.9% 90%) 1px, transparent 0);
  background-size: 40px 40px;
}
