/* =========================================================
   Galeria 3D — tilt com profundidade
   ========================================================= */

:root {
  --bg: #120b26;
  --text: #f2efff;
  --muted: #b3a8d9;
  --accent: #9a7bff;
  --accent-2: #ff7bd5;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  padding-top: 58px;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ---------- cabeçalho com blobs ---------- */
.galeria-hero {
  position: relative;
  height: calc(100vh - 58px);
  min-height: 560px;
}

@supports (height: 100dvh) {
  .galeria-hero { height: calc(100dvh - 58px); }
}
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    radial-gradient(circle at 20% 80%, rgba(154, 123, 255, 0.25), transparent 45%),
    radial-gradient(circle at 80% 20%, rgba(255, 123, 213, 0.22), transparent 45%),
    linear-gradient(180deg, #1b1140, #120b26);
}

.blob {
  position: absolute;
  width: 420px; height: 420px;
  left: 8%; top: 10%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(154, 123, 255, 0.55), transparent 65%);
  filter: blur(10px);
  will-change: transform;
}

.blob-2 {
  left: auto; right: 6%; top: 46%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 123, 213, 0.5), transparent 65%);
}

.blob-3 {
  left: 46%; top: -12%;
  width: 300px; height: 300px;
  background: radial-gradient(circle at 35% 30%, rgba(61, 216, 255, 0.45), transparent 65%);
}

.hero-content { position: relative; z-index: 5; padding: 0 20px; }

.tag {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.galeria-hero h1 {
  font-size: clamp(2.6rem, 9vw, 5.5rem);
  font-weight: 800;
  letter-spacing: 2px;
  line-height: 1;
}

.galeria-hero h1 span {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sub {
  margin-top: 16px;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255, 255, 255, 0.92);
}
.sub strong { color: #fff; }
code { background: rgba(0, 0, 0, 0.35); padding: 2px 8px; border-radius: 6px; font-size: 0.9em; }

/* ---------- grade ---------- */
.galeria { padding: 100px 20px; }

.grade {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 26px;
  max-width: 1080px;
  margin: 0 auto;
}

.tilt-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 34px 24px;
  text-align: center;
  perspective: 900px;
  will-change: transform;
}

.tilt-inner { transform-style: preserve-3d; }

.emoji {
  display: inline-block;
  font-size: 3rem;
  margin-bottom: 14px;
  will-change: transform;
}

.tilt-card h3 { margin-bottom: 6px; font-size: 1.2rem; }
.tilt-card p { color: var(--muted); font-size: 0.92rem; }

/* ---------- textos ---------- */
.texto {
  padding: 90px 20px;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.texto h2 { font-size: 1.9rem; margin-bottom: 14px; }
.texto p { color: var(--muted); margin-bottom: 12px; }

footer {
  padding: 30px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
footer a { color: #9a7bff; }

/* ---------- reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-reveal].visible {
  opacity: 1;
  transform: translateY(0);
}
