:root {
  --deep: #0d0420;
  --night: #1a0b3d;
  --purple: #3b1a86;
  --violet: #6a1fc2;
  --magenta: #c2359a;
  --gold: #f6a01a;
  --lilac: #cfa9ff;
  --stage-gradient: linear-gradient(
    to right,
    var(--violet),
    var(--magenta),
    var(--gold)
  );

  /* faz as classes .border-dark / .text-dark do Bootstrap usarem o roxo profundo */
  --bs-dark-rgb: 13, 4, 32;
}

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

body,
html {
  height: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  background-color: var(--night);
  color: #fff;
}

main {
  min-height: 100vh;
}

/* =========== Scrollbar Custom =========== */

/* width */
::-webkit-scrollbar {
  width: 10px;
}

/* Track */
::-webkit-scrollbar-track {
  background: var(--deep);
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.6);
  border-radius: 10px;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: linear-gradient(
    to bottom,
    var(--violet),
    var(--magenta),
    var(--gold)
  );
  border-top: 5px solid;
  border-bottom: 5px solid;
  border-color: var(--deep);
}

/* =========== Titles =========== */

.title_primary {
  font-family: "Lilita One", sans-serif;
  font-weight: 400;
  font-style: normal;
  color: var(--gold);
  text-shadow: 0 3px 0 rgba(13, 4, 32, 0.55);
}

.title_secondary {
  font-family: "Lilita One", sans-serif;
  font-weight: 400;
  font-style: normal;
  color: #fff;
  text-shadow: 0 3px 0 rgba(13, 4, 32, 0.55);
}

.title_tertiary {
  font-family: "Lilita One", sans-serif;
  font-weight: 400;
  font-style: normal;
  color: var(--lilac);
  text-shadow: 0 3px 0 rgba(13, 4, 32, 0.55);
}

/* =========== Navbar Section =========== */
.bg-dark {
  background-color: rgba(13, 4, 32, 0.92) !important;
}

.navbar {
  border-bottom: 3px solid var(--violet);
  backdrop-filter: blur(6px);
}

.nav-underline {
  position: relative;
  display: inline-block;
  padding-bottom: 6px;
}

.nav-underline::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 5px;
  border-radius: 25px;
  width: 0%;
  background: var(--stage-gradient);
  transition: width 0.3s ease;
}

.nav-underline:hover::after,
.nav-underline:focus::after,
.nav-underline.active::after {
  width: 100%;
}

.dropdown-menu-dark {
  background-color: var(--night);
  border: 2px solid var(--violet);
}

.dropdown-menu-dark .dropdown-item:hover,
.dropdown-menu-dark .dropdown-item:focus {
  background-color: var(--purple);
}

/* =========== Navtabs Section =========== */

.nav-tabs .nav-link {
  color: var(--gold);
}

.nav-tabs .nav-link.active {
  color: #fff;
  background-color: var(--violet);
  border-color: var(--gold);
}

/* =========== Hero Section =========== */

.hero {
  margin-top: 91px;
  background-color: var(--night);
}

.hero img {
  height: auto;
}

.logo-hero {
  max-width: 450px;
  margin-top: 8rem;
}

@media (max-width: 768px) {
  .logo-hero {
    max-width: 250px;
    margin-top: 2rem;
  }
}

/* =========== Special Buttons Section =========== */

.btn-gradient {
  background: var(--stage-gradient);
  border: none;
  border-radius: 0%;
  text-shadow: 0 1px 3px rgba(13, 4, 32, 0.6);
  transition:
    background 0.4s ease,
    transform 0.2s ease,
    box-shadow 0.3s ease;
}

.btn-gradient:hover {
  background: linear-gradient(
    to right,
    var(--gold),
    var(--magenta),
    var(--violet)
  );
  transform: scale(1.03);
  box-shadow: 0 0 18px rgba(194, 53, 154, 0.55);
}

/* =========== Special Text Section =========== */

.text-gradient {
  background: var(--stage-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

/* =========== Text Section =========== */
.text-primary {
  color: var(--gold) !important;
}
.text-secondary {
  color: var(--lilac) !important;
}

.text-small {
  font-size: 0.8rem;
}

.custom-link {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.3s ease;
}

.custom-link:hover,
.custom-link:focus {
  color: #ffd27a;
}

/* =========== Carousel Speakers / Mensagens Section =========== */

.custom-arrow {
  width: 50px;
  height: 50px;
  background-color: var(--violet);
  border: 5px solid var(--deep);
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: all 0.3s ease;
  z-index: 1;
}

.custom-arrow:hover {
  opacity: 1;
  background-color: var(--magenta);
  transform: translateY(-50%) scale(1.1);
}

.carousel-control-prev.custom-arrow {
  left: -10px;
}

.carousel-control-next.custom-arrow {
  right: -10px;
}

.custom-arrow span {
  color: white;
  font-size: 1rem;
  line-height: 1;
}

/* cartões de mensagem: leve fundo para dar leitura sobre o degradê */
.carousel-item .row > .border-dark {
  background-color: rgba(13, 4, 32, 0.55);
}

/* =========== Accordion Section =========== */

.accordion-button:not(.collapsed) {
  background-color: var(--violet);
  color: white !important;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.125);
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.25rem rgba(246, 160, 26, 0.45);
}

.accordion-body {
  background-color: #f4eeff;
  color: #2a1466;
}

/* =========== Background Sections ===========
   Os fundos em imagem (bg-1.jpg ... bg-5.jpg) foram trocados por degradês
   com "luzes de palco" para combinar com a arte do topo. */

.section__lighter {
  background-color: var(--purple);
  background-image:
    radial-gradient(
      ellipse at 12% 0%,
      rgba(255, 255, 255, 0.16),
      transparent 45%
    ),
    radial-gradient(
      ellipse at 95% 15%,
      rgba(194, 53, 154, 0.35),
      transparent 50%
    ),
    linear-gradient(160deg, #2b1170 0%, #4a1fa8 100%);
  background-repeat: no-repeat;
  background-size: cover;
}

.section__light {
  background-color: var(--night);
  background-image:
    radial-gradient(
      ellipse at 85% 0%,
      rgba(106, 31, 194, 0.45),
      transparent 55%
    ),
    linear-gradient(180deg, #1a0b3d 0%, #2b1170 100%);
  background-repeat: no-repeat;
  background-size: cover;
}

.section__orange {
  background-color: var(--purple);
  background-image:
    radial-gradient(
      ellipse at 100% 100%,
      rgba(246, 160, 26, 0.4),
      transparent 55%
    ),
    radial-gradient(ellipse at 0% 0%, rgba(194, 53, 154, 0.3), transparent 50%),
    linear-gradient(135deg, #3b1a86 0%, #5a1fa0 100%);
  background-repeat: no-repeat;
  background-size: cover;
}

.section__pink {
  background-color: var(--purple);
  background-image:
    radial-gradient(
      ellipse at 50% 0%,
      rgba(255, 255, 255, 0.14),
      transparent 50%
    ),
    linear-gradient(160deg, #4a1fa8 0%, #8a2bb0 55%, #b8339a 100%);
  background-repeat: no-repeat;
  background-size: cover;
}

.section__green {
  background-color: var(--night);
  background-image:
    radial-gradient(
      ellipse at 0% 100%,
      rgba(106, 31, 194, 0.5),
      transparent 55%
    ),
    linear-gradient(200deg, #120a33 0%, #2a1470 100%);
  background-repeat: no-repeat;
  background-size: cover;
}

/* =========== Footer Section =========== */

footer {
  color: white;
  text-align: center;
  padding: 10px 0;
  border-top: 3px solid var(--gold);
}

/* =========== Tips Section: Flip Card =========== */

.flip-card {
  perspective: 1000px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  padding-top: 100%; /* mantém proporção quadrada */
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.flip-card:hover:not(.no-flip) .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border: 5px solid var(--deep);
  overflow: hidden;
}

.flip-card-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.flip-card-back {
  background: linear-gradient(160deg, var(--deep), var(--purple));
  color: white;
  transform: rotateY(180deg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  text-align: center;
}

.no-flip .flip-card-back {
  display: none;
}
