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

/* Custom styles for the application */
@layer base {
  * {
    border-color: #374151;
  }

  body {
    @apply bg-zinc-950 text-zinc-100;
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
    margin: 0;
    padding: 0;
  }

  .font-oswald {
    font-family: 'Oswald', sans-serif;
  }
}

@layer components {
  .container {
    @apply mx-auto px-6;
  }

  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
  }

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

  /* Ensure reveal elements are properly positioned */
  .reveal>* {
    will-change: transform;
  }

  .gradient-text {
    background: linear-gradient(to right, #f97316, #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .steel-texture {
    background-color: #1a1a1a;
    background-image: url("https://www.transparenttextures.com/patterns/carbon-fibre.png");
  }

  .spark {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #f97316;
    border-radius: 50%;
    pointer-events: none;
    animation: sparks 1s ease-out forwards;
  }
}

@layer utilities {
  .text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  }

  .shadow-glow {
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.3);
  }
}

/* Keyframes for spark animation */
@keyframes sparks {
  0% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }

  100% {
    transform: translateY(-500px) scale(0);
    opacity: 0;
  }
}

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

::-webkit-scrollbar-track {
  background: #09090b;
}

::-webkit-scrollbar-thumb {
  background: #3f3f46;
  border-radius: 4px;
}

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

/* Decoding Text Effect Base */
.decode-link {
  position: relative;
  text-decoration: none;
  display: inline-block;
  color: white;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  padding-bottom: 2px;
  font-family: 'JetBrains Mono', 'Courier New', Courier, monospace;
  min-width: 120px;
  letter-spacing: 0.1em;
}