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

@layer base {
  :root {
    --background: 0 0% 100%;
    --foreground: 20 60% 15%;
    --card: 0 0% 100%;
    --card-foreground: 20 60% 15%;
    --popover: 0 0% 100%;
    --popover-foreground: 20 60% 15%;
    --primary: 24 91% 54%;
    --primary-foreground: 0 0% 100%;
    --secondary: 20 60% 15%;
    --secondary-foreground: 0 0% 100%;
    --muted: 0 0% 96%;
    --muted-foreground: 0 0% 45%;
    --accent: 24 91% 54%;
    --accent-foreground: 0 0% 100%;
    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 0 0% 98%;
    --border: 0 0% 90%;
    --input: 0 0% 90%;
    --ring: 24 91% 54%;
    --radius: 0.625rem;
    
    /* Brand Colors */
    --orange: #f47a1f;
    --dark-brown: #3c1c10;
    --white: #ffffff;
    --black: #000000;
    --gray: #808080;
    --light-gray: #d6d6d6;
    
    /* Animation Easings */
    --ease-crunch: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-dramatic: cubic-bezier(0.87, 0, 0.13, 1);
    --ease-elastic: cubic-bezier(0.68, -0.6, 0.32, 1.6);
    --ease-expo-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-expo-in: cubic-bezier(0.7, 0, 0.84, 0);
  }
}

@layer base {
  * {
    @apply border-border;
  }
  html {
    scroll-behavior: smooth;
  }
  body {
    @apply bg-background text-foreground;
    font-family: 'Open Sans', sans-serif;
    overflow-x: hidden;
  }
  h1, h2, h3, h4, h5, h6 {
    font-family: 'Lilita One', cursive;
    letter-spacing: 0.02em;
  }
}

@layer utilities {
  .font-display {
    font-family: 'Lilita One', cursive;
  }
  .font-body {
    font-family: 'Open Sans', sans-serif;
  }
  .font-accent {
    font-family: 'Yanone Kaffeesatz', sans-serif;
  }
  .font-rubik {
    font-family: 'Rubik', sans-serif;
  }
  .font-barlow {
    font-family: 'Barlow Condensed', sans-serif;
  }
  
  .text-orange {
    color: var(--orange);
  }
  .bg-orange {
    background-color: var(--orange);
  }
  .text-dark-brown {
    color: var(--dark-brown);
  }
  .bg-dark-brown {
    background-color: var(--dark-brown);
  }
  
  .animate-float {
    animation: float 4s ease-in-out infinite;
  }
  .animate-float-delayed {
    animation: float 4s ease-in-out infinite;
    animation-delay: 2s;
  }
  .animate-pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
  }
  .animate-slide-up {
    animation: slide-up 0.6s var(--ease-expo-out) forwards;
  }
  .animate-fade-in {
    animation: fade-in 0.5s var(--ease-smooth) forwards;
  }
  .animate-scale-in {
    animation: scale-in 0.5s var(--ease-crunch) forwards;
  }
}

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

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(244, 122, 31, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(244, 122, 31, 0.6);
  }
}

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

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

@keyframes scale-in {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Scroll animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease-expo-out), transform 0.6s var(--ease-expo-out);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

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

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

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

::-webkit-scrollbar-thumb:hover {
  background: #e06a0f;
}

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