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

@import url('https://rsms.me/inter/inter.css');

:root {
  font-family: 'Inter', system-ui, sans-serif;
}

@supports (font-variation-settings: normal) {
  :root {
    font-family: 'Inter var', system-ui, sans-serif;
  }
}

.font-light {
  font-variation-settings: 'wght' 300;
}

.font-medium {
  font-variation-settings: 'wght' 500;
}

/* Smooth transitions */
a,
button {
  @apply transition-all duration-200;
}

/* Hover effects */
a:hover,
button:hover {
  @apply opacity-80;
}

/* Add some custom utility classes */
@layer utilities {
  .text-balance {
    text-wrap: balance;
  }
}

/* Custom components */
@layer components {
  .brutalist-card {
    @apply bg-gray-900 border border-gray-800 rounded-lg overflow-hidden transition-all duration-300;
  }

  .brutalist-card:hover {
    @apply border-gray-700;
  }

  .brutalist-button {
    @apply px-6 py-3 bg-white text-black font-medium rounded-lg hover:bg-gray-100 transition-all duration-300;
  }

  .brutalist-heading {
    @apply font-bold tracking-tight;
  }

  .brutalist-subheading {
    @apply font-semibold tracking-tight;
  }
}

/* Webkit browsers (Chrome, Safari, newer versions of Opera) */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: black;
    border-left: 2px solid #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border: 2px solid #1a1a1a;
    transition: all 0.3s ease;
}

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

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #333 black;
}

/* For Edge and other browsers that support standard scrollbar styling */
* {
    scrollbar-width: thin;
}

*::-webkit-scrollbar-corner {
    background: black;
}

/* Optional: Style for when the scrollbar corner meets both scrollbars */
*::-webkit-scrollbar-corner {
    background: black;
    border-left: 2px solid #1a1a1a;
    border-top: 2px solid #1a1a1a;
}

/* Technical grid background */
.technical-grid {
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
}

/* Diagonal lines pattern */
.diagonal-lines {
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.1) 1px,
    transparent 1px,
    transparent 10px
  );
}