@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Permanent+Marker&family=Teko:wght@300;400;500;600&family=Inter:wght@300;400;500&display=swap');

:root {
  --pink: #FF1493;
  --pink-mid: #e8007f;
  --pink-dark: #c4006a;
  --pink-light: #ff69b4;
  --red: #cc0033;
  --white: #ffffff;
  --off-white: #f5f5f5;
  --text: #111111;
  --text-muted: #555555;
  --gray-light: #e8e8e8;
}

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

html { scroll-behavior: smooth; overflow-x: hidden; width: 100%; background: var(--white); }

body {
  background: var(--white);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  width: 100%;
}

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--white); }
::-webkit-scrollbar-thumb { background: var(--pink); border-radius: 2px; }

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 14px 60px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  background: var(--white);
  border-bottom: 4px solid var(--pink);
  box-shadow: 0 2px 20px rgba(255,20,147,0.15);
  transition: padding 0.3s;
}

nav.scrolled { padding: 10px 60px; }

.nav-logo img {
  height: 44px;
  filter: drop-shadow(0 0 6px rgba(255,20,147,0.4));
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  justify-content: center;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-family: 'Teko', sans-serif;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 2px;
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 3px;
  background: var(--pink);
  transition: width 0.3s;
}

.nav-links a:hover { color: var(--pink); }
.nav-links a:hover::after { width: 100%; }

.nav-tag {
  font-family: 'Permanent Marker', cursive;
  font-size: 11px;
  color: var(--pink);
  white-space: nowrap;
  justify-self: end;
}

/* ─── SPRAY TEXTURE ─── */
.spray {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.25) 1px, transparent 1px),
    radial-gradient(circle, rgba(255,255,255,0.12) 1px, transparent 1px),
    radial-gradient(circle, rgba(255,255,255,0.08) 2px, transparent 2px);
  background-size: 18px 18px, 9px 9px, 30px 30px;
  background-position: 0 0, 4px 4px, 8px 8px;
  mix-blend-mode: soft-light;
}

/* ─── DRIPS SVG ─── */
.drips {
  position: absolute;
  top: 0; left: 0; right: 0;
  pointer-events: none;
  z-index: 1;
}

.drips svg { width: 100%; display: block; }

/* ─── HERO ─── */
#hero {
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: var(--pink);
}

.hero-scribbles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.hero-scribbles .el {
  position: absolute;
  pointer-events: none;
  opacity: 0.85;
}

/* morcego — esquerda, baixo do meio */
.el-bat { top: 45%; left: 0; width: min(320px, 26vw); transform: translate(-10%, -50%); }
/* baixo esquerdo */
.el-bl  { bottom: 0; left: 0; width: min(300px, 24vw); transform: translate(-6%, 8%); }
/* baixo direito */
.el-br  { bottom: 0; right: 0; width: min(280px, 23vw); transform: translate(6%, 8%); }
/* meio esquerdo */
.el-ml  { top: 20%; left: 0; width: min(180px, 15vw); transform: translate(-12%, 0); }
/* meio direito, cima */
.el-mr  { top: 20%; right: 0; width: min(220px, 18vw); transform: translate(10%, 0); }
/* meio direito, baixo */
.el-mr2 { top: 55%; right: 0; width: min(260px, 21vw); transform: translate(10%, 0); }

.hero-content {
  position: relative;
  text-align: center;
  z-index: 2;
}

.hero-kana {
  font-family: 'Teko', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  margin-bottom: 30px;
}

.hero-logo {
  width: min(700px, 85vw);
  filter: drop-shadow(0 4px 24px rgba(0,0,0,0.25));
  margin-bottom: 30px;
}

.hero-tagline {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px;
  letter-spacing: 4px;
  color: rgba(255,255,255,0.95);
  margin-bottom: 50px;
}

.hero-tagline span { color: var(--white); text-decoration: underline; text-decoration-color: rgba(255,255,255,0.5); }

.hero-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  padding: 14px 48px;
  background: var(--white);
  color: var(--pink);
  border: none;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 4px;
  text-decoration: none;
  clip-path: polygon(14px 0%, 100% 0%, calc(100% - 14px) 100%, 0% 100%);
  transform: rotate(-1.5deg);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
  transform: rotate(-1.5deg) scale(1.05);
  box-shadow: 0 0 36px rgba(255,255,255,0.55);
}

.btn-outline {
  padding: 11px 44px;
  background: transparent;
  color: var(--white);
  border: 4px solid var(--white);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 4px;
  text-decoration: none;
  clip-path: polygon(14px 0%, 100% 0%, calc(100% - 14px) 100%, 0% 100%);
  transform: rotate(1.5deg);
  transition: background 0.2s, transform 0.2s;
}

.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  transform: rotate(1.5deg) scale(1.05);
}

.hero-scroll {
  position: absolute;
  bottom: 40px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.75);
  font-family: 'Permanent Marker', cursive;
  font-size: 13px;
  letter-spacing: 2px;
  animation: bounce 2s ease-in-out infinite;
  z-index: 2;
}

.hero-scroll::after {
  content: '';
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.7), transparent);
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ─── SECTION BASE ─── */
section { padding: 100px 60px; max-width: 1200px; margin: 0 auto; }

.section-header { margin-bottom: 70px; }

.section-label {
  font-family: 'Teko', sans-serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 14px;
  color: var(--pink);
}

.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(60px, 8vw, 100px);
  line-height: 0.9;
  letter-spacing: 3px;
}

/* on white sections */
.on-white .section-title { color: var(--text); }
.on-white .section-title .outline {
  color: var(--pink);
  -webkit-text-stroke: 0;
  text-shadow: 6px 6px 0 var(--text);
}
.on-white .section-divider { width: 60px; height: 4px; background: var(--pink); margin-top: 20px; }

/* on pink sections */
.on-pink .section-title { color: var(--white); }
.on-pink .section-title .outline {
  color: var(--white);
  -webkit-text-stroke: 0;
  text-shadow: 6px 6px 0 var(--pink-dark);
}
.on-pink .section-label { color: rgba(255,255,255,0.8); }
.on-pink .section-divider { width: 60px; height: 4px; background: var(--white); margin-top: 20px; }

/* ─── HISTÓRIA (white) ─── */
.historia-wrap {
  background: var(--white);
  position: relative;
}

.historia-grid {
  max-width: 720px;
  margin: 0 auto;
}

.historia-text p { margin-bottom: 18px; }

.historia-text p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.9;
  margin-bottom: 20px;
  font-weight: 300;
}

.historia-text p strong { color: var(--pink); font-weight: 600; }

.historia-quote {
  color: var(--pink);
  font-family: 'Permanent Marker', cursive;
  font-size: 20px;
  border-left: 4px solid var(--pink);
  padding: 12px 0 12px 22px;
  margin: 28px 0 32px;
  line-height: 1.5;
  letter-spacing: 0.5px;
}

/* ─── EXODIA — neon glow + flicker ─── */
.exodia {
  display: inline-block;
  position: relative;
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 400;
  font-size: 1.6em;
  letter-spacing: 5px;
  color: var(--pink);
  padding: 0 6px;
  margin: 0 4px;
  line-height: 1;
  vertical-align: middle;
  transform: translateY(-2px);
  animation: exodia-flicker 4.8s infinite;
  text-shadow:
    0 0 4px rgba(255, 255, 255, 0.85),
    0 0 11px var(--pink),
    0 0 22px var(--pink),
    0 0 42px var(--pink-mid),
    0 0 80px var(--pink-mid),
    0 0 120px var(--pink-dark);
  transition: text-shadow 0.3s, transform 0.3s;
  will-change: text-shadow, opacity;
}

.exodia::after {
  content: '';
  position: absolute;
  inset: -18px -10px;
  background: radial-gradient(ellipse at center, rgba(255, 20, 147, 0.22), transparent 70%);
  z-index: -1;
  pointer-events: none;
  filter: blur(4px);
  animation: exodia-aura 2.6s ease-in-out infinite alternate;
}

.exodia:hover {
  transform: translateY(-2px) scale(1.05);
  text-shadow:
    0 0 6px rgba(255, 255, 255, 1),
    0 0 16px var(--pink),
    0 0 36px var(--pink),
    0 0 64px var(--pink-mid),
    0 0 120px var(--pink-mid),
    0 0 180px var(--pink-dark);
}

@keyframes exodia-flicker {
  0%, 18%, 22%, 25%, 53%, 57%, 100% {
    opacity: 1;
    text-shadow:
      0 0 4px rgba(255, 255, 255, 0.85),
      0 0 11px var(--pink),
      0 0 22px var(--pink),
      0 0 42px var(--pink-mid),
      0 0 80px var(--pink-mid),
      0 0 120px var(--pink-dark);
  }
  20%, 24%, 55% {
    opacity: 0.4;
    text-shadow: none;
  }
  40% {
    text-shadow:
      0 0 6px rgba(255, 255, 255, 1),
      0 0 18px var(--pink),
      0 0 38px var(--pink),
      0 0 72px var(--pink-mid),
      0 0 120px var(--pink-mid),
      0 0 180px var(--pink-dark);
  }
}

@keyframes exodia-aura {
  from { opacity: 0.5; transform: scale(0.95); }
  to   { opacity: 1;   transform: scale(1.1); }
}

@media (prefers-reduced-motion: reduce) {
  .exodia, .exodia::after { animation: none; }
}

/* ─── MEMBROS (pink) ─── */
.membros-wrap {
  background: var(--pink);
  position: relative;
  overflow: hidden;
}

.membros-wrap > section {
  padding-top: 160px;
}

/* ─── GRID DE MEMBROS ─── */
.membros-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.membro-card {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: default;
}

.membro-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(255,20,147,0.45);
}

.membro-card.carteirinha-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}

.membro-card.carteirinha-img:hover img {
  transform: scale(1.03);
}

/* badge "Alt" para versões alternativas */
.membro-variant {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  font-family: 'Teko', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 3px 10px;
  background: rgba(0,0,0,0.65);
  color: var(--white);
  clip-path: polygon(4px 0%, 100% 0%, calc(100% - 4px) 100%, 0% 100%);
  backdrop-filter: blur(4px);
}

@media (max-width: 900px) {
  .membros-grid { gap: 14px; }
  .membro-featured { margin-bottom: 20px; }
}

@media (max-width: 600px) {
  .membros-grid { grid-template-columns: 1fr; }
}

/* ─── GALERIA (white) ─── */
.galeria-wrap { background: var(--white); position: relative; }

.galeria-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.galeria-item {
  position: relative;
  overflow: hidden;
  background: var(--off-white);
  cursor: pointer;
  aspect-ratio: 4 / 3;
}

.galeria-item.featured {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: auto;
  min-height: 480px;
}

.galeria-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s;
}

.galeria-item:hover img { transform: scale(1.05); }

.galeria-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(255,20,147,0.35), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.galeria-item:hover .galeria-overlay { opacity: 1; }

/* ─── LIGHTBOX ─── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.97);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.lightbox.active { opacity: 1; pointer-events: all; }

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  box-shadow: 0 0 60px rgba(255,20,147,0.2);
}

.lightbox-close {
  position: absolute;
  top: 20px; right: 30px;
  font-family: 'Teko', sans-serif;
  font-size: 24px;
  font-weight: 300;
  color: var(--pink);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px 10px;
  transition: color 0.2s, transform 0.2s;
}

.lightbox-close:hover { transform: scale(1.05); color: var(--pink-dark); }

/* ─── FADE-IN ON SCROLL ─── */
.membro-card,
.galeria-item {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.5s ease var(--fade-delay, 0s),
    transform 0.5s ease var(--fade-delay, 0s),
    box-shadow 0.3s;
}

.membro-card.is-visible,
.galeria-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── FOCUS VISIBLE (acessibilidade) ─── */
:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
.galeria-item:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 4px;
  box-shadow: 0 0 0 6px rgba(255,20,147,0.18);
}

.on-pink :focus-visible {
  outline-color: var(--white);
  box-shadow: 0 0 0 6px rgba(255,255,255,0.25);
}

/* ─── FOOTER ─── */
footer {
  border-top: 4px solid var(--pink);
  background: var(--white);
  padding: 50px 60px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 30px;
}

.footer-logo img {
  height: 32px;
  filter: drop-shadow(0 0 6px rgba(255,20,147,0.3));
}

.footer-text {
  font-family: 'Teko', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #aaa;
  text-align: center;
}

.footer-discord {
  font-family: 'Teko', sans-serif;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--pink);
  text-decoration: none;
  justify-self: end;
  transition: color 0.2s, text-shadow 0.2s;
}

.footer-discord:hover {
  color: var(--white);
  text-shadow: 0 0 12px rgba(255,20,147,0.8);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  nav { padding: 14px 24px; }
  nav.scrolled { padding: 10px 24px; }
  .nav-links { gap: 24px; }
  .nav-tag { display: none; }
  section { padding: 70px 24px; }
  footer { padding: 40px 24px; grid-template-columns: 1fr; text-align: center; }
  .footer-logo { display: flex; justify-content: center; }
  .historia-grid { max-width: 100%; }
  .galeria-grid { grid-template-columns: repeat(2, 1fr); }
  .galeria-item.featured { grid-column: span 2; }
}

@media (max-width: 600px) {
  .nav-links { display: none; }
  .galeria-grid { grid-template-columns: 1fr; }
  .galeria-item.featured { grid-column: span 1; }
}
