@import url('https://fonts.googleapis.com/css2?family=Urbanist:wght@400;700&display=swap');

body {
  background-color: #0a0a0a;
  color: #ffffff;
  font-family: 'Urbanist', sans-serif;
  overflow-x: hidden;
}

/* HERO SECTION */
.box-hero {
  padding: 180px 20px 120px;
  text-align: center;
  position: relative;
  background: #0a0a0a;
  overflow: hidden;
}

#hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1; /* Atrás do conteúdo */
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

/* Efeito Glitch no Título */
.glitch-wrapper {
  margin-bottom: 30px;
}

.glitch {
  font-family: 'Press Start 2P', cursive;
  font-size: 3.5rem;
  position: relative;
  color: #fff;
  margin: 0;
  line-height: 1.2;
}

.glitch.sub {
  color: #00f3ff; /* Ciano */
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.glitch::before {
  left: 2px;
  text-shadow: -1px 0 #ff00ff; /* Magenta */
  clip: rect(44px, 450px, 56px, 0);
  animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
  left: -2px;
  text-shadow: -1px 0 #00f3ff; /* Ciano */
  clip: rect(44px, 450px, 56px, 0);
  animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
  0% { clip: rect(30px, 9999px, 10px, 0); }
  20% { clip: rect(80px, 9999px, 90px, 0); }
  40% { clip: rect(10px, 9999px, 50px, 0); }
  60% { clip: rect(60px, 9999px, 20px, 0); }
  80% { clip: rect(20px, 9999px, 70px, 0); }
  100% { clip: rect(90px, 9999px, 30px, 0); }
}

@keyframes glitch-anim2 {
  0% { clip: rect(10px, 9999px, 80px, 0); }
  20% { clip: rect(70px, 9999px, 20px, 0); }
  40% { clip: rect(30px, 9999px, 10px, 0); }
  60% { clip: rect(90px, 9999px, 60px, 0); }
  80% { clip: rect(50px, 9999px, 30px, 0); }
  100% { clip: rect(20px, 9999px, 90px, 0); }
}

.box-hero p {
  font-size: 1.2rem;
  color: #ccc;
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto;
}

/* Formas Flutuantes */
.floating-shape {
  position: absolute;
  border: 2px solid rgba(255, 255, 255, 0.1);
  z-index: 1;
}

.shape-1 {
  width: 150px;
  height: 150px;
  top: 10%;
  left: 5%;
  border-color: #ff00ff;
  transform: rotate(15deg);
  animation: float 6s ease-in-out infinite;
}

.shape-2 {
  width: 100px;
  height: 100px;
  bottom: 20%;
  right: 10%;
  border-color: #00f3ff;
  border-radius: 50%;
  animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(10deg); }
}

/* MANIFESTO */
.manifesto-section {
  padding: 80px 40px;
  background: #111;
  border-top: 1px solid #222;
  border-bottom: 1px solid #222;
}

.manifesto-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  border: 1px dashed #333;
  padding: 40px;
}

.manifesto-text h2 {
  font-size: 2rem;
  color: #fff;
  margin-bottom: 20px;
  font-weight: bold;
}

.manifesto-text p {
  font-size: 1.1rem;
  color: #aaa;
  line-height: 1.8;
}

/* SERVIÇOS CRIATIVOS */
.creative-services {
  padding: 100px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header-center {
  text-align: center;
  margin-bottom: 60px;
}

.creative-badge {
  background: linear-gradient(90deg, #00f3ff, #ff00ff);
  color: #000;
  padding: 5px 15px;
  font-weight: bold;
  font-size: 0.8rem;
  display: inline-block;
  margin-bottom: 15px;
  transform: skew(-10deg);
}

.section-header-center h2 {
  font-size: 2.5rem;
  color: #fff;
  font-weight: bold;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.creative-card {
  background: #161616;
  padding: 30px;
  border: 1px solid #333;
  transition: all 0.3s;
  position: relative; /* Necessário para o glare absoluto */
  transform-style: preserve-3d; /* Habilita 3D */
  overflow: hidden; /* Mantém o glare dentro do card */
}

/* Efeito de Brilho (Glare) */
.glare {
  position: absolute;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
  mix-blend-mode: overlay;
}

/* Removemos o hover simples antigo para usar o JS 3D */
.creative-card:hover {
  box-shadow: 0 20px 50px rgba(0, 243, 255, 0.2);
  border-color: #fff;
}

.creative-card.highlight:hover {
  box-shadow: 5px 5px 0 #ff00ff;
}

.card-number {
  font-family: 'Press Start 2P', cursive;
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 20px;
}

.creative-card:hover .card-number {
  color: #fff;
}

.creative-card h3 {
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 15px;
  font-weight: bold;
}

.creative-card p {
  color: #888;
  line-height: 1.5;
  font-size: 0.95rem;
}

/* CTA */
.box-cta {
  padding: 100px 20px;
  text-align: center;
  background: radial-gradient(circle, #1a1a1a 0%, #0a0a0a 100%);
}

.cta-content h2 {
  font-size: 2rem;
  color: #fff;
  margin-bottom: 20px;
  font-weight: bold;
}

.cta-content p {
  color: #ccc;
  margin-bottom: 40px;
}

.cta-btn {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
  padding: 15px 40px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  transition: all 0.3s;
  display: inline-block;
}

.cta-btn:hover {
  background: #fff;
  color: #000;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
  .glitch { font-size: 2rem; }
}

/* SCROLL REVEAL CLASSES */
.reveal-hidden {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease-out;
}

.active-glitch {
  opacity: 1;
  transform: translateY(0);
}