/**
 * BFL Tech Studio - Styles
 * Neo-Brutalist Design System
 */

/* ============================================
   BASE STYLES
   ============================================ */
:root {
  /* Colors */
  --color-primary: #0000ff;
  --color-secondary: #ff00ff;
  --color-accent: #ffff00;
  --color-black: #000000;
  --color-white: #ffffff;
  --color-gray-100: #f0f0f0;
  --color-gray-200: #e5e5e5;
  --color-text-muted: #cccccc;

  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;

  /* Typography */
  --font-family: 'Inter', sans-serif;
  --font-weight-normal: 400;
  --font-weight-bold: 700;
  --font-weight-black: 900;

  /* Borders */
  --border-width-sm: 2px;
  --border-width-md: 4px;
  --border-width-lg: 8px;
  --border-radius-sm: 0.5rem;
  --border-radius-md: 0.75rem;
  --border-radius-lg: 1rem;

  /* Shadows */
  --shadow-sm: 4px 4px 0px var(--color-black);
  --shadow-md: 8px 8px 0px var(--color-black);
  --shadow-lg: 12px 12px 0px var(--color-black);

  /* Transitions */
  --transition-fast: 0.2s ease-out;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.6s cubic-bezier(0.215, 0.610, 0.355, 1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
  background-color: var(--color-white);
  color: var(--color-black);
  overflow-x: hidden;
  scroll-behavior: smooth;
  line-height: 1.6;
}

/* ============================================
   NEO-BRUTALIST COMPONENTS
   ============================================ */

/* Shadows */
.neo-shadow {
  box-shadow: var(--shadow-md);
  transition: all var(--transition-fast);
}

.neo-shadow-sm {
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

/* Buttons */
.neo-button {
  display: inline-block;
  font-weight: var(--font-weight-bold);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  border: var(--border-width-sm) solid var(--color-black);
  transition: all var(--transition-fast);
}

.neo-button:hover {
  box-shadow: var(--shadow-sm);
  transform: translate(4px, 4px);
}

.neo-button:active {
  box-shadow: none;
  transform: translate(8px, 8px);
}

/* Cards */
.neo-card {
  transition: all var(--transition-fast);
}

.neo-card:hover {
  transform: translate(-4px, -4px);
  box-shadow: var(--shadow-lg);
}

/* ============================================
   ANIMATIONS
   ============================================ */

/* Scroll Animations */
.scroll-animate {
  opacity: 0;
  transform: translateY(40px);
  transition: 
    opacity var(--transition-slow), 
    transform var(--transition-slow);
}

.scroll-animate.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Marquee */
.marquee {
  white-space: nowrap;
  overflow: hidden;
}

.marquee-content {
  display: inline-block;
  padding-left: 100%;
  animation: marquee 20s linear infinite;
}

@keyframes marquee {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(-100%, 0);
  }
}

/* Pulse Animation */
@keyframes pulse {
  0%, 100% {
    opacity: 0.5;
  }
  50% {
    opacity: 0.8;
  }
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ============================================
   BACKGROUNDS & PATTERNS
   ============================================ */
.dotted-bg {
  background-color: var(--color-white);
  background-image: radial-gradient(var(--color-black) 1px, transparent 1px);
  background-size: 16px 16px;
}

/* ============================================
   HIGHLIGHTS & EFFECTS
   ============================================ */
.highlight {
  position: relative;
  display: inline-block;
}

.highlight::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: -4px;
  right: -4px;
  height: 10px;
  background-color: var(--color-accent);
  z-index: -1;
  transition: all var(--transition-normal);
}

.highlight:hover::after {
  bottom: 0;
  height: 100%;
}

/* ============================================
   TEXT STROKE
   ============================================ */
.text-stroke {
  -webkit-text-stroke: 3px var(--color-black);
  paint-order: stroke fill;
}

/* ============================================
   LANGUAGE SWITCHER
   ============================================ */
.lang-switch button {
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity var(--transition-fast);
  padding: 0;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
}

.lang-switch button.active {
  opacity: 1;
  font-weight: var(--font-weight-black);
}

.lang-switch button:hover:not(.active) {
  opacity: 0.8;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.rotate-3 {
  transform: rotate(3deg);
}

.rotate-45 {
  transform: rotate(45deg);
}

.-rotate-6 {
  transform: rotate(-6deg);
}

/* ============================================
   RESPONSIVE UTILITIES
   ============================================ */
@media (max-width: 768px) {
  .neo-shadow {
    box-shadow: var(--shadow-sm);
  }
  
  .neo-card:hover {
    box-shadow: var(--shadow-md);
  }
}

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

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
}

