/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden !important;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

:focus-visible {
  outline: 2px dashed var(--orange);
  outline-offset: 4px;
}

/* Variáveis */
:root {
  --black: #060606;
  --black-2: #0e0e0e;
  --black-3: #161616;
  --black-4: #1e1e1e;
  --orange: #ff4500;
  --orange-2: #ff6a00;
  --orange-dim: rgba(255, 69, 0, 0.12);
  --orange-glow: rgba(255, 69, 0, 0.25);
  --white: #f5f0eb;
  --white-dim: rgba(245, 240, 235, 0.65);
  --white-faint: rgba(245, 240, 235, 0.08);
  --border: rgba(245, 240, 235, 0.07);
  --border-hot: rgba(255, 69, 0, 0.4);
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'Barlow', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --r: 4px;
  --r-lg: 8px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base */
body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

main,
footer {
  position: relative;
  z-index: 3;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 0.95;
  letter-spacing: 0.01em;
}

h4,
h5,
h6 {
  font-family: var(--font-body);
  font-weight: 700;
}

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

::-webkit-scrollbar-track {
  background: var(--black);
}

::-webkit-scrollbar-thumb {
  background: var(--orange);
}

/* Utilitários */
.text-orange {
  color: var(--orange);
}

.text-white {
  color: var(--white);
}

.text-dim {
  color: var(--white-dim);
}

.display-title-xl {
  font-size: clamp(2.8rem, 10vw, 10rem);
  line-height: 0.9;
  text-transform: uppercase;
}

.display-title-lg {
  font-size: clamp(2.2rem, 7vw, 6rem);
  line-height: 0.92;
  text-transform: uppercase;
}

.display-title-md {
  font-size: clamp(1.8rem, 6vw, 5rem);
  line-height: 0.9;
  text-transform: uppercase;
}

.page-header {
  padding-top: clamp(100px, 14vw, 160px);
  padding-bottom: clamp(32px, 5vw, 60px);
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.section-relative {
  position: relative;
  z-index: 1;
}

.max-w-md {
  max-width: 480px;
}

.max-w-lg {
  max-width: 520px;
}

.mt-md {
  margin-top: 24px;
}

.mb-0 {
  margin-bottom: 0 !important;
}

.mb-sm {
  margin-bottom: 20px;
}

.mb-md {
  margin-bottom: 32px;
}

.mb-lg {
  margin-bottom: 40px;
}

.mb-xl {
  margin-bottom: 60px;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.mono-tags {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.03),
    rgba(255, 255, 255, 0.01)
  );
  color: rgba(255, 255, 255, 0.75);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 10px;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease,
    color 0.25s ease;
  backdrop-filter: blur(10px);
  cursor: default;
}

.mono-tags i {
  font-size: 14px;
  color: #ff5a00;
  transition: transform 0.25s ease;
}

.mono-tags:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 90, 0, 0.4);
  background: linear-gradient(
    to bottom,
    rgba(255, 90, 0, 0.12),
    rgba(255, 90, 0, 0.03)
  );
  color: #fff;
  box-shadow:
    0 0 20px rgba(255, 90, 0, 0.12),
    inset 0 0 20px rgba(255, 90, 0, 0.03);
}

.mono-tags:hover i {
  transform: scale(1.1);
}

.w-100 {
  width: 100%;
}

.justify-center {
  justify-content: center;
}

/* Responsividade */
@media (max-width: 768px) {
  .max-w-md,
  .max-w-lg {
    max-width: 100%;
  }

  .page-header {
    padding-top: clamp(80px, 12vw, 120px);
    padding-bottom: clamp(24px, 4vw, 40px);
  }

  .mono-tags {
    font-size: 10px;
    padding: 10px 14px;
  }
}

@media (max-width: 480px) {
  .max-w-md,
  .max-w-lg {
    max-width: 100%;
  }

  .mb-xl {
    margin-bottom: 36px;
  }

  .mb-lg {
    margin-bottom: 24px;
  }

  .mb-md {
    margin-bottom: 20px;
  }

  .tech-stack {
    gap: 8px;
  }

  .mono-tags {
    font-size: 9px;
    padding: 8px 12px;
    letter-spacing: 1.5px;
  }
}

@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;
  }
}
