/*
 * Typography — All fonts loaded from Google Fonts CDN in index.html:
 *   Archivo Black  (headings, display)
 *   Rubik        (body, UI)
 *   Rubik        (cards, details)
 *   DM Mono        (code, terminal)
 */

/* Display heading styles */
.font-display {
  font-family: 'Archivo Black', system-ui, sans-serif !important;
  letter-spacing: -0.02em;
  font-weight: 600;
}

.font-display-black {
  font-family: 'Archivo Black', system-ui, sans-serif !important;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  font-size: clamp(1.5rem, 4vw, 3rem);
}

/* Heading styles */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Archivo Black', system-ui, sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em;
  margin: 0;
}

/* Rubik for body elements */
html,
body,
div,
span,
p,
a,
button,
input,
textarea,
select,
label {
  font-family: 'Rubik', system-ui, sans-serif;
  letter-spacing: 0.02em;
  word-spacing: 0.05em;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 0.9;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 0.95;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  line-height: 1;
}

/* Brutalist Gradient - using cream and accent colors */
.text-gradient {
  background: linear-gradient(45deg, var(--accent-cream), var(--accent-primary), var(--accent-cream));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% auto;
}

/* Brutalist button styles */
.btn-brutalist {
  background: var(--mono-text-primary);
  color: var(--mono-background);
  border: 3px solid var(--mono-text-primary);
  font-family: 'Rubik', sans-serif;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 1rem 2rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-brutalist:hover {
  transform: translate(-4px, -4px);
  box-shadow: 4px 4px 0 var(--accent-primary);
}

.btn-brutalist:active {
  transform: translate(-2px, -2px);
  box-shadow: 2px 2px 0 var(--accent-primary);
}

/* Brutalist card styles */
.card-brutalist {
  background: var(--mono-paper);
  border: 3px solid var(--mono-border);
  position: relative;
}

.card-brutalist::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 6px;
  right: -6px;
  bottom: -6px;
  background: var(--mono-border);
  z-index: -1;
}

.bg-size-200 {
  background-size: 200% auto;
}

/* Background Effects */
.bg-gradient-glow {
  background: radial-gradient(circle at center, #FFE44D 0%, #FFD60A 100%);
}

.backdrop-blur-card {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: linear-gradient(145deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.02));
  border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Animations */
@keyframes gradient-text {
  0% {
    background-position: 0% center;
  }

  50% {
    background-position: 100% center;
  }

  100% {
    background-position: 0% center;
  }
}

.animate-gradient-text {
  animation: gradient-text 8s linear infinite;
}

@keyframes glow {

  0%,
  100% {
    opacity: 0.5;
  }

  50% {
    opacity: 1;
  }
}

.animate-glow {
  animation: glow 2s ease-in-out infinite;
}

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

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.5);
}

/* Smooth transitions */
.transition-smooth {
  transition: all 0.3s ease-in-out;
}

/* Glow effects */
.glow-effect {
  box-shadow: 0 0 20px rgba(200, 168, 0, 0.3);
}

.glow-effect:hover {
  box-shadow: 0 0 30px rgba(200, 168, 0, 0.5);
  transform: scale(1.02);
}

/* Text balance for better typography */
.text-balance {
  text-wrap: balance;
}