:root {
  --bg-color: #0a0a0a;
  --text-color: #ffffff;
  --accent-color: #c47bfb;
  --secondary-text: #e0e0e0;
  --polaroid-border: #fdfdfd;
  --section-bg: rgba(18, 18, 18, 0.85);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Oxygen,
    Ubuntu,
    Cantarell,
    "Open Sans",
    "Helvetica Neue",
    sans-serif;
  line-height: 1.6;
  font-size: 1rem;
}

@font-face {
  font-display: swap;
  font-family: "Rubik";
  font-style: normal;
  font-weight: 700;
  src: url("static/fonts/rubik-v31-latin-700.woff2") format("woff2");
}

.hero-image {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.8)),
    url("static/landing.webp");
  background-size: cover;
  background-position: center;
  z-index: -10;
  filter: blur(2px);
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 1em;
}

section {
  background-color: var(--section-bg);
  backdrop-filter: blur(10px); /* Glassmorphism effect */
  -webkit-backdrop-filter: blur(10px);
  padding: 2.5em;
  border-radius: 16px;
  margin-bottom: 3em;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 800px) {
  section {
    padding: 2em;
  }
}

header {
  margin: auto;
  text-align: center;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: opacity 0.1s ease-out;
}

.header-actions {
  display: flex;
  gap: 15px;
  margin-top: 2.5em;
}

.btn {
  padding: 12px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(0.8rem, 1.5vw, 0.9rem);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-primary {
  background-color: var(--accent-color);
  color: var(--bg-color);
  border: 2px solid var(--accent-color);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--accent-color);
  transform: translateY(-3px);
}

.btn-secondary {
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: 2px solid white;
}

.btn-secondary:hover {
  background-color: white;
  color: black;
  transform: translateY(-3px);
}

h1,
h2,
h3 {
  font-family: "Rubik", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.8em;
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

h2 {
  font-size: clamp(1.25rem, 3.2vw, 2rem);
  border-bottom: 3px solid var(--accent-color);
  display: inline-block;
  padding-bottom: 5px;
}

h3 {
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  color: var(--accent-color);
  margin-bottom: 0.5em;
  display: flex;
  align-items: center;
  gap: 10px;
}

p {
  margin-bottom: 1.2em;
  color: var(--secondary-text);
}

p a,
footer a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

p a i,
footer a i {
  text-decoration: none;
  display: inline-block;
}

b,
strong {
  color: var(--text-color);
}

.purple-highlight {
  color: var(--accent-color);
  font-weight: 700;
}

.text-purple {
  color: var(--accent-color);
}

.main-logo {
  border-radius: 50%;
  border: 4px solid var(--text-color);
  margin: 0 auto 20px auto;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.header-intro {
  font-size: clamp(1rem, 1.1vw, 1.2rem);
  max-width: 700px;
  margin: auto;
  text-shadow: 0 8px 20px rgba(0, 0, 0, 0.8);
}

header > .purple-highlight {
  font-size: clamp(1rem, 1.1vw, 1.6rem);
}

.row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2em;
}

@media (max-width: 768px) {
  .row {
    gap: 0.5em;
  }
}

.feature-list p i {
  color: var(--accent-color);
  margin-right: 8px;
  font-size: 1.1em;
}

.gallery-section {
  margin: 2em 0;
  text-align: center;
}

.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2em;
  margin-top: 2em;
}

.polaroid-frame {
  background-color: var(--polaroid-border);
  padding: 10px 10px 25px 10px;
  transition: transform 0.3s ease;
  max-width: 300px;
  color: black; /* Reset text color for polaroid */
}

.polaroid-frame img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.polaroid-frame img {
  cursor: zoom-in;
}

.polaroid-frame:nth-child(1) {
  transform: rotate(2deg);
}
.polaroid-frame:nth-child(2) {
  transform: rotate(-2deg);
}
.polaroid-frame:nth-child(3) {
  transform: rotate(1.5deg);
}
.polaroid-frame:nth-child(4) {
  transform: rotate(-1.5deg);
}
.polaroid-frame:nth-child(5) {
  transform: rotate(2.5deg);
}
.polaroid-frame:nth-child(6) {
  transform: rotate(-2.5deg);
}
.polaroid-frame:nth-child(7) {
  transform: rotate(1deg);
}
.polaroid-frame:nth-child(8) {
  transform: rotate(-1deg);
}
.polaroid-frame:nth-child(9) {
  transform: rotate(3deg);
}
.polaroid-frame:nth-child(10) {
  transform: rotate(-3deg);
}
.polaroid-frame:nth-child(11) {
  transform: rotate(1.8deg);
}
.polaroid-frame:nth-child(12) {
  transform: rotate(-1.8deg);
}
.polaroid-frame:nth-child(13) {
  transform: rotate(2.2deg);
}
.polaroid-frame:nth-child(14) {
  transform: rotate(-2.2deg);
}
.polaroid-frame:nth-child(15) {
  transform: rotate(0.8deg);
}
.polaroid-frame:nth-child(16) {
  transform: rotate(-0.8deg);
}

.polaroid-frame:hover {
  transform: scale(1.05) rotate(0deg);
  z-index: 10;
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.5);
}


.lightbox-open {
  overflow: hidden;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.gallery-lightbox.is-open {
  display: flex;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
}

.lightbox-content {
  position: relative;
  z-index: 2;
  width: min(95vw, 1100px);
  height: min(85vh, 700px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 12px 12px;
}

#lightbox-image {
  max-width: 100%;
  max-height: 100%;
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  object-fit: contain;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  border: none;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.lightbox-close {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.lightbox-nav {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.lightbox-nav-text {
  display: none;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: rgba(196, 123, 251, 0.85);
  transform: scale(1.05);
}

.lightbox-close {
  top: 0;
  right: 0;
}

.lightbox-prev {
  left: 12px;
}

.lightbox-next {
  right: 12px;
}

@media (max-width: 768px) {
  .lightbox-content {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    padding: max(16px, env(safe-area-inset-top)) 10px
      calc(88px + max(env(safe-area-inset-bottom), 12px));
  }

  .lightbox-close {
    top: max(10px, env(safe-area-inset-top));
    right: 10px;
    width: 42px;
    height: 42px;
  }

  .lightbox-nav {
    bottom: max(16px, calc(env(safe-area-inset-bottom) + 12px));
    top: auto;
    width: auto;
    height: auto;
    border-radius: 999px;
    padding: 10px 14px;
    font-size: 0.95rem;
    font-weight: 700;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    background: rgba(0, 0, 0, 0.8);
  }

  .lightbox-nav i {
    font-size: 0.85rem;
  }

  .lightbox-nav-text {
    display: inline;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }
}

.member-card {
  display: flex;
  flex-direction: column;
}

.member-photo {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--accent-color);
  margin-bottom: 1em;
  box-shadow: 0 4px 15px rgba(221, 85, 255, 0.5);
  transition: transform 0.3s ease;
}

.member-card:hover .member-photo {
  transform: scale(1.05);
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 2.5em;
  align-items: center;
  justify-items: center;
  margin-top: 2.5em;
  padding: 1em;
}

.logo-grid img {
  width: 100%;
  max-width: 140px;
  height: auto;
  filter: opacity(0.8);
  transition: all 0.4s ease;
  border-radius: 6px;
}

.logo-grid img:hover {
  filter: brightness(1) opacity(1);
  transform: scale(1.1);
}

@media (max-width: 480px) {
  .logo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5em;
  }
}

.map-container {
  border: 4px solid var(--accent-color);
  margin: 2em 0;
  filter: contrast(110%);
  transition: filter 0.3s ease;

  /* Altura do mapa + as duas bordas */
  /* Alinhamento perfeito sem sobrar nada */
  height: 458px;
}

.contact-box {
  background: rgba(165, 94, 234, 0.1);
  padding: 2em;
  border-radius: 8px;
  border: 2px solid var(--accent-color);
  transition: background 0.3s ease;
}

.contact-box:hover {
  background: rgba(165, 94, 234, 0.2);
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 10px; /* Espaço entre Whats e Insta */
  margin-top: 15px;
}

.contact-item {
  font-weight: 700;
  color: var(--accent-color);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px; /* Espaço entre o ícone e o texto */
  transition: opacity 0.2s;
}

.contact-item:hover {
  opacity: 0.8;
}

footer {
  text-align: center;
  margin-top: 4em;
  padding: 2em 2em;
  font-size: 0.9rem;
  color: #ccc;
  background-color: var(--section-bg);
  backdrop-filter: blur(5px);
}

footer a {
  color: var(--accent-color);
  font-weight: 700;
}

footer p {
  color: #e0e0e0;
}
