@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@200;300;400;600;700;800&display=swap');

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

@layer base {
  :root {
    --color-orange: #e8620a;
    --color-orange-glow: rgba(232, 98, 10, 0.25);
    
    --text-display: clamp(2rem, 3.5vw + 1rem, 3.5rem);
    --text-h1: clamp(1.8rem, 3vw + 0.5rem, 2.75rem);
    --text-h2: clamp(1.5rem, 2.2vw + 0.5rem, 2rem);
    
    --glass-bg-subtle: rgba(11, 18, 34, 0.45);
    --glass-border-subtle: rgba(255, 255, 255, 0.08);
  }

  body {
    @apply bg-[#080808] text-white antialiased overflow-x-hidden;
    font-family: 'Inter', sans-serif;
  }
  
  h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
  }
}

@layer components {
  /* Buttons */
  .btn-primary, .btn-secondary {
    padding: 0.875rem 2rem;
    border-radius: 0.5rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1;
  }

  .btn-primary {
    background: var(--color-orange);
    color: white;
    border: 1px solid var(--color-orange);
  }

  .btn-primary:hover {
    background: #ff7315;
    box-shadow: 0 0 20px var(--color-orange-glow);
    transform: translateY(-2px);
  }

  .btn-secondary {
    background: transparent;
    color: white;
    border: 1px solid #374151;
  }

  .btn-secondary:hover {
    border-color: var(--color-orange);
    background: rgba(232, 98, 10, 0.1);
    transform: translateY(-2px);
  }

  /* Small variant for Navbar */
  .btn-sm {
    padding: 0.6rem 1.5rem;
    font-size: 0.75rem;
  }
  
  /* Glass Cards */
  .glass-card {
    background: var(--glass-bg-subtle);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border-subtle);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .glass-card:hover {
    background: rgba(17, 28, 53, 0.6);
    border-color: rgba(232, 98, 10, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  }
  
  /* Nav */
  .nav-glass {
    @apply fixed top-0 w-full z-50 transition-all duration-300;
    background: rgba(8, 8, 8, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
  }
  .nav-glass.scrolled {
    background: rgba(8, 8, 8, 0.95);
    border-bottom-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0,0,0,0.4);
  }
  
  /* Nav Links */
  .nav-link {
    @apply relative font-outfit text-xs font-medium tracking-[0.15em] uppercase text-gray-400 transition-colors duration-300;
  }
  .nav-link::after {
    content: '';
    @apply absolute -bottom-1 left-0 w-0 h-[1px] transition-all duration-300;
    background: var(--color-orange);
  }
  .nav-link:hover, .nav-link.active {
    @apply text-white;
  }
  .nav-link:hover::after, .nav-link.active::after {
    @apply w-full;
  }
}

/* Custom Utilities */
.text-display { font-size: var(--text-display); line-height: 1.05; letter-spacing: -0.035em; }
.text-h1 { font-size: var(--text-h1); line-height: 1.1; letter-spacing: -0.025em; }
.text-h2 { font-size: var(--text-h2); line-height: 1.15; letter-spacing: -0.02em; }

/* Spotlight effect */
.card-spotlight {
  position: relative;
  overflow: hidden;
}
.card-spotlight::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(232, 98, 10, 0.08), transparent 40%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
  z-index: 0;
}
.card-spotlight:hover::before {
  opacity: 1;
}
.card-content {
  position: relative;
  z-index: 1;
}

/* Animations */
@keyframes heroSlideUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-hero {
  animation: heroSlideUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }

/* Canvas Background */
#particles-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
