:root {
    --bg: #0c0c0f;
    --bg-2: #101015;
    --text: #e5e5e5;
    --muted: #bfbfbf;
    --red: #e11d2e;       /* vermelho Stranger Things */
    --red-2: #ff3b3b;
    --accent: #6dd5ff;    /* azul neon sutil */
    --card: #151519;
    --border: #26262c;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  }
  
  * { box-sizing: border-box }
  html, body { height: 100% }
  body {
    margin: 0; background: var(--bg); color: var(--text);
    font-family: 'Space Mono', ui-monospace, monospace;
  }
  
  /* ruído sutil ao fundo */
  .noise {
    position: fixed; inset: 0; pointer-events: none; opacity: 0.06; mix-blend-mode: soft-light;
    background-image: url("https://grainy-gradients.vercel.app/noise.svg");
  }
  
  /* Navegação e hero */
  .nav {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 24px; border-bottom: 1px solid var(--border); background: linear-gradient(180deg, rgba(16,16,20,0.9), rgba(16,16,20,0.6));
    position: sticky; top: 0; backdrop-filter: blur(6px); z-index: 20;
  }
  .brand { text-decoration: none; display: inline-flex; flex-direction: column; line-height: 1; }
  .brand-line { font-family: 'Cinzel', serif; font-weight: 700; font-size: 18px; letter-spacing: 6px; color: var(--text); }
  .brand-line.accent { color: var(--red); text-shadow: 0 0 8px rgba(225,29,46,0.6); }
  
  .nav-links a {
    color: var(--muted); text-decoration: none; margin-left: 16px; font-weight: 700;
  }
  .nav-links a:hover { color: var(--text) }
  
  .btn {
    border: none; padding: 10px 16px; border-radius: 8px; cursor: pointer;
    background: var(--red); color: #fff; box-shadow: 0 0 16px rgba(225,29,46,0.4);
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  }
  .btn:hover { transform: translateY(-2px); box-shadow: 0 0 22px rgba(225,29,46,0.6); }
  .btn.outline { background: transparent; border: 1px solid var(--red); color: var(--red) }
  .btn.ghost { background: transparent; border: 1px dashed var(--border); color: var(--muted) }
  .btn.small { padding: 8px 12px; border-radius: 6px }
  .btn.glow { background: linear-gradient(90deg, var(--red), var(--red-2)); }
  
  .hero {
    position: relative; min-height: 68vh; display: grid; place-items: center;
    background: radial-gradient(1200px 500px at 50% -20%, rgba(225,29,46,0.18), transparent 60%),
                linear-gradient(180deg, var(--bg), var(--bg-2));
  }
  .hero-content { text-align: center; padding: 72px 24px 48px }
  .title {
    font-family: 'Cinzel', serif; font-weight: 700; font-size: clamp(40px, 7vw, 80px);
    letter-spacing: 6px; color: var(--text); text-shadow: 0 0 20px rgba(225,29,46,0.25);
  }
  .subtitle { color: var(--muted); margin-top: 10px }
  .cta { margin-top: 24px; display: inline-flex; gap: 12px }
  
  /* Luzes estilo parede de Natal */
  .hero-lights { position: absolute; bottom: 10px; width: 100%; display: flex; justify-content: center; gap: 10px; }
  .light {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; border-radius: 50%; font-size: 12px; color: #000;
    background: #ffd166; box-shadow: 0 0 14px rgba(255, 209, 102, .9);
    animation: blink 2.6s infinite;
  }
  .l2 { background: #8ecae6; box-shadow: 0 0 14px rgba(142,202,230, .9); animation-delay: .3s }
  .l3 { background: #ffadad; box-shadow: 0 0 14px rgba(255,173,173, .9); animation-delay: .6s }
  .l4 { background: #bde0fe; box-shadow: 0 0 14px rgba(189,224,254, .9); animation-delay: .9s }
  .l5 { background: #caffbf; box-shadow: 0 0 14px rgba(202,255,191, .9); animation-delay: 1.2s }
  .l6 { background: #ffd6a5; box-shadow: 0 0 14px rgba(255,214,165, .9); animation-delay: 1.5s }
  
  @keyframes blink {
    0%, 70% { filter: brightness(1) }
    80% { filter: brightness(0.5) }
    90% { filter: brightness(1.3) }
    100% { filter: brightness(1) }
  }
  
  /* seção padrão */
  .section { padding: 56px 24px; max-width: 1100px; margin: 0 auto }
  .section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 20px }
  .section-head h2 {
    font-family: 'Cinzel', serif; font-size: 28px; letter-spacing: 4px; color: var(--text);
  }
  .section-desc { color: var(--muted); max-width: 700px }
  
  /* filtros */
  .filters { display: flex; gap: 8px; flex-wrap: wrap }
  .chip {
    border: 1px solid var(--border); color: var(--muted); padding: 8px 12px; border-radius: 20px;
    background: #121219; cursor: pointer; transition: all .2s ease;
  }
  .chip:hover { border-color: var(--red); color: var(--text) }
  .chip.active { background: var(--red); border-color: var(--red); color: #fff }
  
  /* cards */
  .grid.cards {
    display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px;
  }
  .card {
    grid-column: span 4; background: var(--card); border: 1px solid var(--border);
    border-radius: 14px; overflow: hidden; box-shadow: var(--shadow);
    transition: transform .2s ease, box-shadow .2s ease;
  }
  .card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(225,29,46,0.25) }
  
  .card-media { position: relative; aspect-ratio: 16/9; overflow: hidden }
  .card-media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.9) contrast(1.05) }
  .badge {
    position: absolute; top: 10px; left: 10px; background: rgba(0,0,0,0.6); color: #fff;
    padding: 6px 10px; border-radius: 999px; font-size: 12px; border: 1px solid var(--border);
  }
  .card-body { padding: 14px }
  .card-body h3 { margin: 6px 0 8px; color: #fff }
  .card-body p { color: var(--muted); margin: 0 0 12px }
  .card-actions { display: flex; gap: 8px }
  
  /* timeline de projetos */
  .timeline {
    position: relative; margin-top: 12px; border-left: 2px dashed var(--border); padding-left: 18px;
  }
  .tl-item { position: relative; padding: 12px 0 24px }
  .tl-dot {
    position: absolute; left: -10px; top: 8px; width: 16px; height: 16px; border-radius: 50%;
    background: var(--red); box-shadow: 0 0 10px rgba(225,29,46,0.7);
  }
  .tl-content h3 { margin: 0 0 6px; color: #fff; }
  .tl-content p { margin: 0 0 10px; color: var(--muted);}
  
  /* formulário de contato */
  .contact { display: grid; gap: 12px; max-width: 680px }
  .field { display: grid; gap: 6px }
  label { color: var(--muted) }
  input, textarea {
    background: #121219; border: 1px solid var(--border); border-radius: 10px; color: var(--text);
    padding: 10px 12px; outline: none; transition: border .2s ease, box-shadow .2s ease;
  }
  input:focus, textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(225,29,46,0.2) }
  
  /* footer upside down */
  .footer {
    margin-top: 40px; background: linear-gradient(180deg, var(--bg-2), #0a0a0c);
    border-top: 1px solid var(--border);
  }
  .upside-down {
    text-align: center; padding: 28px; color: #cfcfcf;
    transform: scaleY(-1); /* mundo invertido */
  }
  .footer .upside-down p { transform: scaleY(-1) } /* texto normal */
  
  @media (max-width: 1024px) {
    .card { grid-column: span 6 }
  }
  @media (max-width: 640px) {
    .nav-links { display: none }
    .section { padding: 40px 16px }
    .card { grid-column: span 12 }
    .brand-line { font-size: 16px; letter-spacing: 5px }
  }
  