html,
body {
  cursor: url('640c7797-63b2-409f-9bee-b451ff2f3ba8.png') 16 16, auto;
}

#bg-vid {
  position: fixed;
  top:  0;
  left: 0;
  width:  100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -2;
  pointer-events: none;
}

#bg-vid {
  opacity: 0.35;
  filter: brightness(0.45) contrast(1.2);
  z-index: -2;
  pointer-events: none;
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  animation: slowmo 2s cubic-bezier(.4,0,.2,1) forwards;
}

@keyframes slowmo {
  from { playback-rate: 1; }
  to   { playback-rate: 0.6; }
}

#bg-vid::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(0,0,0,.15) 0,
      rgba(0,0,0,.15) 1px,
      transparent 1px,
      transparent 2px
    );
  animation: tv-static .08s infinite;
  pointer-events: none;
}

@keyframes tv-static {
  0%   { opacity: .75; }
  50%  { opacity: .85; }
  100% { opacity: .75; }
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: -1;
}

:root {
  --bg: #0d0d0d;
  --glow: #00ffcc;
  --pink: #ff0055;
  --yellow: #fff500;
  --font: "SF Pro", "Inter", system-ui, sans-serif;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: var(--font);
  background: var(--bg);
  color: #fff;
  overflow-x: hidden;
}
::selection {
  background: var(--glow);
  color: #000;
}
section {
  min-height: auto;
  padding: 4rem 2rem;
  display: grid;
  place-content: center;
  position: relative;
}
#hero {
  min-height: 100vh;
}
.container {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  padding: 0 1rem;
}
#work h2 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  text-align: center;
  margin-bottom: 2rem;
}
.grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: start;
}
#work .grid {
  margin-top: 0.5rem;
}
#outro {
  padding-top: 2rem;
  padding-bottom: 4rem;
  text-align: center;
}
#cube {
  display: block;
  width: 150px;
  height: 150px;
  margin: 0.6rem auto 0;
}
footer {
  text-align: center;
  padding: 1.25rem 2rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.4);
}
h1, h2, h3 {
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
}
h1 {
  font-size: clamp(3rem, 10vw, 6rem);
  background: none;
  background-clip: unset;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
  color: #fff;
  text-shadow: none;
  opacity: 1;
}
.card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  padding: 2rem;
  backdrop-filter: blur(12px);
  transform: translateY(50px) scale(0.95);
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.card.in-view {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.card img {
  width: 100%;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  transition: transform 0.4s;
}
.card:hover img {
  transform: scale(1.05) rotate(2deg);
}
.tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  margin: 0.25rem 0.25rem 0 0;
  background: var(--pink);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.btn {
  margin-top: 1rem;
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--glow);
  color: #000;
  font-weight: 900;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 255, 204, 0.4);
}
footer {
  text-align: center;
  padding: 1.25rem 2rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.4);
}
.glitch {
  position: relative;
  z-index: 2;
  color: #fff;
  text-shadow: none;
}
.discord-link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  font-weight: 700;
}
.discord-link::before {
  content: "@";
  margin-right: 0.1rem;
  opacity: 0.95;
}
.discord-link:hover {
  text-decoration: underline;
}
.discord-link:visited {
  color: inherit;
}

#projects .project-card,
#projects .project-card:visited,
#projects .project-card:hover,
#projects .project-card:active {
  color: #fff;
  text-decoration: none;
}

#projects h2 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  text-align: center;
  margin-bottom: 3rem;
}

#projects .project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,.35);
}

