@font-face {
    font-family: 'Mersin';
    src: url('../fonts/mersin/Fontspring-DEMO-mersin-regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Neltride';
    src: url('../fonts/neltride/Neltride-Trial-BF6937c46ad92e1.otf') format('opentype'),
         url('../fonts/neltride/Neltride-Trial-BF6937c46b7aec3.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}


/* Configuração inicial */
html, body {
    height: 100%;
    background-color: rgb(237, 237, 238);
    scroll-behavior: smooth;
}

body {
    padding-top: 80px;
    color: #161616;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.5;
}

.skip-link {
    position: absolute;
    top: -48px;
    left: 16px;
    z-index: 1100;
    padding: 10px 14px;
    background: #ffffff;
    color: #111111;
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.skip-link:focus {
    top: 16px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
label:focus-visible {
    outline: 3px solid #c37cff;
    outline-offset: 3px;
}

.icon-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35em;
    height: 1.35em;
    line-height: 1;
    vertical-align: middle;
    overflow: visible;
}

.icon-inline svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: currentColor;
    overflow: visible;
}


.social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    min-height: 48px;
    padding: 10px;
    border-radius: 999px;
    line-height: 1;
    text-decoration: none;
}

.social-icons a.me-3 {
    margin-right: 0 !important;
}

.social-icons a:hover,
.social-icons a:focus-visible {
    background-color: rgba(255, 255, 255, 0.12);
}

.social-icons a svg,
.social-icons a .icon-inline {
    width: 28px;
    height: 28px;
}

.site-toast-container {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 1200;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.site-toast {
    min-width: 240px;
    max-width: 340px;
    padding: 12px 14px;
    border-radius: 12px;
    color: #ffffff;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.site-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.site-toast-success {
    background: #0f7a38;
}

.site-toast-error {
    background: #b42318;
}

@media (prefers-reduced-motion: reduce) {
    html, body {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Navbar */
.navbar {
    transition: background-color 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
    padding: 15px 0;
    background-color: rgba(12, 8, 20, 0.82) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.navbar-scrolled {
    background-color: rgba(0, 0, 0, 0.92) !important;
    padding: 10px 0;
    box-shadow: 0 2px 18px rgba(0, 0, 0, 0.25);
}

.navbar-brand img {
    transition: all 0.3s ease;
}

.navbar-scrolled .navbar-brand img {
    height: 50px;
}

.nav-link {
    color: #ffffff !important;
    font-weight: 500;
    margin: 0 10px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link:focus-visible {
    color: #d9a6ff !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #d9a6ff;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* --- Hamburger Animado (Versão Bootstrap Nativa) --- */

.navbar-toggler:focus {
    box-shadow: none !important;
    outline: none !important;
}

.hamburger {
  cursor: pointer;
  background: none; /* Remove fundo cinza padrão de botões */
}

/* Removemos a referência ao input, pois ele não existe mais */

.hamburger svg {
  height: 3em;
  transition: transform 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

.line {
  fill: none;
  stroke: white; /* Garante a cor branca */
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
  transition: stroke-dasharray 600ms cubic-bezier(0.4, 0, 0.2, 1),
              stroke-dashoffset 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

.line-top-bottom {
  stroke-dasharray: 12 63;
}

/* Em vez de checar o input, checamos se o Bootstrap diz que está aberto */

.hamburger[aria-expanded="true"] svg {
  transform: rotate(-45deg);
}

.hamburger[aria-expanded="true"] .line-top-bottom {
  stroke-dasharray: 20 300;
  stroke-dashoffset: -32.42;
}

/* Grid Footer */
.parent-f {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(5, 1fr);
    gap: 8px;
}
    
.div1-f {
    grid-column: span 3 / span 3;
    grid-row: span 5 / span 5;
    grid-column-start: 2;
    grid-row-start: 1;
}

.div2-f {
    grid-row: span 5 / span 5;
    grid-column-start: 1;
    grid-row-start: 1;
}

.div3-f {
    grid-row: span 5 / span 5;
    grid-column-start: 5;
}

.text-left-custom {
    text-align: left;
}

.link-sem-estilo {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

@media (max-width: 768px) {
    .parent-f {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .div1-f,
    .div2-f,
    .div3-f {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    .div1-f {
        order: 1;
    }

    .div2-f {
        order: 2;
    }

    .div3-f {
        order: 3;
    }
}



@supports (content-visibility: auto) {
    #servicos,
    #projetos,
    .footer {
        content-visibility: auto;
        contain-intrinsic-size: 1px 900px;
    }
}

#midia,
#contato {
    content-visibility: visible;
    contain: none;
    position: relative;
    isolation: isolate;
    border: 0;
}

#midia::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: inherit;
    pointer-events: none;
    z-index: 2;
}

#contato {
    margin-top: 0;
    padding-top: 3rem;
}

.mapa iframe[data-lazy-src] {
    min-height: 420px;
    background: #111;
}

/* Banner */
.banner-section {
    background-image: url('../img/banner2.webp');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    margin-top: -80px;
    padding-top: 80px;
    display: flex;
    align-items: center;
}


/* Banner 2 */
.banner-section2 { 
  background-color: white; 
  background-repeat: no-repeat; 
  background-size: cover; 
  background-position: center; 
  min-height: 100vh; 
  margin-top: -80px; 
  padding-top: 80px; 
  display: flex; 
  align-items: center; 
}

/* Textos no light */
.banner-section2 h1,
.banner-section2 p {
    color: #1a1a1a;
}


/* Sobre */
.sobre-section {
    background-color: white;
}

.divider {
    height: 3px;
    width: 100px;
}

.divider-p2 {
    height: 3px;
    width: 250px;
}


/* Projeto */
.projeto-section {
    background-color: #f8f9fa;
}

.bio p {
    line-height: 2rem;
    text-align: justify;
}

/* Contato */
.mapa {
    min-height: 590px;
}

.mapa iframe {
    width: 100%; 
    min-height: 590px; 
    border: none;
}

.informacoes {
    min-height: 590px;
}

.formulario {
    min-height: 590px;
}

/* Ícones de mídia social */
.social-icons a {
    transition: all 0.3s ease;
}

.social-icons a:hover {
    transform: translateY(-3px);
    color: #9400cf !important;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    line-height: 1;
    text-decoration: none;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
}

.social-icons i,
.social-icons svg {
    vertical-align: middle;
    display: inline-block;
}


/* Footer */
.footer {
    background-color: #1a1f15;
}

/* Responsividade */
@media (max-width: 767.98px) {
    .banner-section {
        text-align: center !important;
    }
    
    .banner-section .d-flex {
        justify-content: center !important;
    }
    
    .navbar-brand span {
        display: none;
    }
}

@media (max-width: 991.98px) {
    .banner-section h1 {
        font-size: 2.5rem !important;
    }
    
    .banner-section p {
        font-size: 1rem !important;
    }
}

/* Fontes */
.font-inter {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}


.font-mersin {
    font-family: 'Mersin', sans-serif;
    line-height: 1.6;
}

.font-neltride {
    font-family: 'Neltride', sans-serif;
}

/* Cartões de mídia social */
.card {
  display: flex;
  flex-direction: row;
  gap: 20px;
  padding: 0;
  margin: 0;
  background: none;
  border: none;
  box-shadow: none;
}


/* Para todos os contêineres sociais */
.socialContainer {
  width: 52px;
  height: 52px;
  background-color: #13003d;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition-duration: 0.3s;
  border-radius: 30px;
}
/* instagram*/
.containerOne:hover {
  background-color: #d62976;
  transition-duration: 0.3s;
  transform: scale(1.2);
}
/* twitter*/
.containerTwo:hover {
  background-color: #000000;
  transition-duration: 0.3s;
  transform: scale(1.2);
}
/* Facebook */
.containerFive:hover {
  background-color: #1877f2;
  transition-duration: 0.3s;
  transform: scale(1.2);
}
/* TikTok */
.containerSix:hover {
  background-color: #010101;
  transition-duration: 0.3s;
  transform: scale(1.2);
}

.containerSix .socialSvg {
  width: 30px;
  height: 30px;
}

.iconWrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.tiktokFix {
  transform: translateX(-3px);
}

.socialContainer:hover .socialSvg {
  animation: slide-in-top 0.3s both;
}

/* linkdin*/
.containerThree:hover {
  background-color: #0072b1;
  transition-duration: 0.3s;
  transform: scale(1.2);
}
/* Whatsapp*/
.containerFour:hover {
  background-color: #128c7e;
  transition-duration: 0.3s;
  transform: scale(1.2);
}

.socialContainer:active {
  transform: scale(0.9);
  transition-duration: 0.3s;
}

.socialSvg {
  width: 17px;
}

.socialSvg path {
  fill: rgb(255, 255, 255);
}

.socialContainer:hover .socialSvg {
  animation: slide-in-top 0.3s both;
}

@keyframes slide-in-top {
  0% {
    transform: translateY(-50px);
    opacity: 0;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* YouTube */
.containerSeven:hover {
  background-color: #ff0000;
  transition-duration: 0.3s;
  transform: scale(1.2);
}
.containerSeven .socialSvg {
  width: 25px;
  height: 25px;
}

/* Threads */
.containerEight:hover {
  background-color: #000000;
  transition-duration: 0.3s;
  transform: scale(1.2);
}

.threadsFix {
  transform: translateX(0.5px);
}

.containerEight .socialSvg {
  width: 25px;
  height: 25px;
}

.bg-purple-custom {
    background-color: #9400cf !important;
}

/* Mídia Grid */
.midia-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 8px;
}

.midia-grid div img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .midia-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
}

.marquee {
  overflow: hidden;
  /* hide the scrolling overflow */
  width: 100%;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 10%,
    black 90%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 10%,
    black 90%,
    transparent 100%
  );
}
.marquee_header {
  font-size: 35px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 20px;
}
.marquee__inner {
  display: flex;
  width: max-content;
  animation: marquee 15s linear infinite;
}

.marquee__group {
  display: flex;
}

.marquee__group span {
  margin: 0 1.5rem;
  white-space: nowrap;
  background: #ffffff;
  color: rgb(0, 0, 0);
  padding: 4px 16px 4px 12px;
  border-radius: 6px;
  font-size: 1.2rem;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}



/* CAROUSEL CONTAINER */
#carouselExampleIndicators {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
}

/* DESKTOP: 16:9 */
#carouselExampleIndicators .carousel-inner {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #000;
}

/* ITEM */
#carouselExampleIndicators .carousel-item {
    width: 100%;
    height: 100%;
}

/* IMAGEM */
.carousel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* MOBILE: 3:4 */
@media (max-width: 767px) {
    #carouselExampleIndicators .carousel-inner {
        aspect-ratio: 3 / 4;
    }
}


/* Botão Voltar ao Topo */
.buttontop {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgb(20, 20, 20);
  border: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0px 0px 0px 4px rgba(180, 160, 255, 0.253);
  cursor: pointer;
  transition-duration: 0.3s;
  overflow: hidden;
  position: relative;
}

.svgIcon {
  width: 12px;
  transition-duration: 0.3s;
}

.svgIcon path {
  fill: white;
}

.buttontop:hover {
  width: 140px;
  border-radius: 50px;
  transition-duration: 0.3s;
  background-color: #9400cf;
  align-items: center;
}

.buttontop:hover .svgIcon {
  /* width: 20px; */
  transition-duration: 0.3s;
  transform: translateY(-200%);
}

.buttontop::before {
  position: absolute;
  bottom: -20px;
  content: "Voltar ao topo";
  color: white;
  /* transition-duration: .3s; */
  font-size: 0px;
}

.buttontop:hover::before {
  font-size: 13px;
  opacity: 1;
  bottom: unset;
  /* transform: translateY(-30px); */
  transition-duration: 0.3s;
}

#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  display: none;
}

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

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background-color: #9400cf;
    border-radius: 10px;
    border: 2px solid #1a1a1a;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #9400cf;
}

/* Loader de palavras */
.cardtrivion {
  /* --bg-color: #111; */
  background-color: var(--bg-color);
  padding: 1rem 2rem;
  border-radius: 1.25rem;
}

.loadertrivion {
  color: rgb(124, 124, 124);
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-size: 25px;
  -webkit-box-sizing: content-box;
  box-sizing: content-box;
  height: 40px;
  padding: 10px 10px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  border-radius: 8px;
}

.words {
  overflow: hidden;
  position: relative;
}
.words::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    var(--bg-color) 10%,
    transparent 30%,
    transparent 70%,
    var(--bg-color) 90%
  );
  z-index: 20;
}

.word {
  display: block;
  height: 100%;
  padding-left: 6px;
  color: #9400cf;
  animation: spin_4991 4s infinite;
}

@keyframes spin_4991 {
  10% {
    -webkit-transform: translateY(-102%);
    transform: translateY(-102%);
  }

  25% {
    -webkit-transform: translateY(-100%);
    transform: translateY(-100%);
  }

  35% {
    -webkit-transform: translateY(-202%);
    transform: translateY(-202%);
  }

  50% {
    -webkit-transform: translateY(-200%);
    transform: translateY(-200%);
  }

  60% {
    -webkit-transform: translateY(-302%);
    transform: translateY(-302%);
  }

  75% {
    -webkit-transform: translateY(-300%);
    transform: translateY(-300%);
  }

  85% {
    -webkit-transform: translateY(-402%);
    transform: translateY(-402%);
  }

  100% {
    -webkit-transform: translateY(-400%);
    transform: translateY(-400%);
  }
}

/* Cards de Serviços */
.container-cards {
  display: flex;
  justify-content: center; /* centraliza horizontalmente */
  align-items: stretch;
  flex-wrap: wrap; /* permite quebrar para baixo */
  gap: 20px; /* espaço entre os cards */
}

.card-service {
  position: relative;
  display: flex;
  justify-content: center;
  cursor: pointer;
  width: 22em;
  max-width: 80%;
  padding: 2em 0;
  background: #FFF;
  box-shadow: 0 0 6px 0 rgba(32, 32, 36, 0.12);
  transition: all 0.35s ease;
  flex: 0 1 22em;
}

.card-service::before, .card-service::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: #9400cf;
  height: 4px;
}

.card-service::before {
  width: 0;
  opacity: 0;
  transition: opacity 0 ease, width 0 ease;
  transition-delay: 0.5s;
}

.card-service::after {
  width: 100%;
  background: white;
  transition: width 0.5s ease;
}

.card-service .content-service {
  width: 18em;
  max-width: 80%;
}

.card-service .logo-service {
  margin: 0 0 1em;
  width: 10.625em;
  transition: all 0.35s ease;
}

.card-service .h6 {
  color: #999;
  font-weight: 600;
  text-transform: uppercase;
  margin: 0;
  letter-spacing: 2px;
}

.card-service .hover_content {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.55s ease, transform 0.55s ease;
}

.card-service .hover_content p {
  margin: 1.5em 0 0;
  color: #6E6E70;
  line-height: 1.4em;
}

.card-service:hover {
  width: 24em;
  box-shadow: 0 10px 20px 0 rgba(32, 32, 36, 0.12);
}

.card-service:hover::before {
  width: 100%;
  opacity: 1;
  transition: opacity 0.5s ease, width 0.5s ease;
  transition-delay: 0;
}

.card-service:hover::after {
  width: 0;
  opacity: 0;
  transition: width 0 ease;
}

.card-service:hover .logo-service {
  margin-bottom: 0.5em;
}

.card-service:hover .hover_content {
  max-height: 500px;
  transform: none;
}

@media (max-width: 480px) {
  .card-service {
    width: 90%;
  }
}

/* Botão Serviço */
.button-service {
  position: relative;
  background: #c9c9c9;
  border: none;
  padding: 10px 20px;
  display: inline-block;
  font-size: 15px;
  font-weight: 600;
  width: 120px;
  text-transform: uppercase;
  cursor: pointer;
  transform: skew(-21deg);
  overflow: hidden;
}

.span-service {
  display: inline-block;
  transform: skew(21deg);
}

.button-service::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  right: 100%;
  left: 0;
  background: rgb(20, 20, 20);
  opacity: 0;
  z-index: -1;
  transition: all 0.5s;
}

.button-service:hover {
  color: #fff;
}

.button-service:hover::before {
  left: 0;
  right: 0;
  opacity: 1;
}

.card-service .content-service {
  width: 18em;
  max-width: 80%;
  display: flex;
  flex-direction: column;
  align-items: center; /* centraliza tudo horizontalmente */
  text-align: center;
}

/* 1. Estado Normal no Dark Mode */
body.dark-mode .button-service {
    background: #404040; /* Cinza chumbo para não ofuscar a visão */
    color: #ffffff;      /* Texto branco para contraste */
    transition: all 0.5s; /* Suaviza a troca de cor do texto se houver */
}

/* 2. Cor da animação de fundo (o slide) no Dark Mode */
body.dark-mode .button-service::before {
    /* Mudei para o Roxo da sua marca (#9400cf) para dar destaque
       já que o preto sumiria no fundo escuro */
    background: #9400cf; 
}

/* 3. Garantir que o texto continue branco no hover */
body.dark-mode .button-service:hover {
    color: #ffffff;
    box-shadow: 0 0 10px #9400cf80; /* (Opcional) Um brilho roxo suave */
}

/* Toggle Switch Tema Claro/Escuro */
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
  transform: scale(0.7); 
  transform-origin: center; 
}

.switch #input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #2196f3;
  -webkit-transition: 0.4s;
  transition: 0.4s;
  z-index: 0;
  overflow: hidden;
}

.sun-moon {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: yellow;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

#input:checked + .slider {
  background-color: black;
}

#input:focus + .slider {
  box-shadow: 0 0 1px #2196f3;
}

#input:checked + .slider .sun-moon {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
  background-color: white;
  -webkit-animation: rotate-center 0.6s ease-in-out both;
  animation: rotate-center 0.6s ease-in-out both;
}

.moon-dot {
  opacity: 0;
  transition: 0.4s;
  fill: gray;
}

#input:checked + .slider .sun-moon .moon-dot {
  opacity: 1;
}

.slider.round {
  border-radius: 34px;
}

.slider.round .sun-moon {
  border-radius: 50%;
}

#moon-dot-1 {
  left: 10px;
  top: 3px;
  position: absolute;
  width: 6px;
  height: 6px;
  z-index: 4;
}

#moon-dot-2 {
  left: 2px;
  top: 10px;
  position: absolute;
  width: 10px;
  height: 10px;
  z-index: 4;
}

#moon-dot-3 {
  left: 16px;
  top: 18px;
  position: absolute;
  width: 3px;
  height: 3px;
  z-index: 4;
}

#light-ray-1 {
  left: -8px;
  top: -8px;
  position: absolute;
  width: 43px;
  height: 43px;
  z-index: -1;
  fill: white;
  opacity: 10%;
}

#light-ray-2 {
  left: -50%;
  top: -50%;
  position: absolute;
  width: 55px;
  height: 55px;
  z-index: -1;
  fill: white;
  opacity: 10%;
}

#light-ray-3 {
  left: -18px;
  top: -18px;
  position: absolute;
  width: 60px;
  height: 60px;
  z-index: -1;
  fill: white;
  opacity: 10%;
}

.cloud-light {
  position: absolute;
  fill: #eee;
  animation-name: cloud-move;
  animation-duration: 6s;
  animation-iteration-count: infinite;
}

.cloud-dark {
  position: absolute;
  fill: #ccc;
  animation-name: cloud-move;
  animation-duration: 6s;
  animation-iteration-count: infinite;
  animation-delay: 1s;
}

#cloud-1 {
  left: 30px;
  top: 15px;
  width: 40px;
}

#cloud-2 {
  left: 44px;
  top: 10px;
  width: 20px;
}

#cloud-3 {
  left: 18px;
  top: 24px;
  width: 30px;
}

#cloud-4 {
  left: 36px;
  top: 18px;
  width: 40px;
}

#cloud-5 {
  left: 48px;
  top: 14px;
  width: 20px;
}

#cloud-6 {
  left: 22px;
  top: 26px;
  width: 30px;
}

@keyframes cloud-move {
  0% {
    transform: translateX(0px);
  }

  40% {
    transform: translateX(4px);
  }

  80% {
    transform: translateX(-4px);
  }

  100% {
    transform: translateX(0px);
  }
}

.stars {
  transform: translateY(-32px);
  opacity: 0;
  transition: 0.4s;
}

.star {
  fill: white;
  position: absolute;
  -webkit-transition: 0.4s;
  transition: 0.4s;
  animation-name: star-twinkle;
  animation-duration: 2s;
  animation-iteration-count: infinite;
}

#input:checked + .slider .stars {
  -webkit-transform: translateY(0);
  -ms-transform: translateY(0);
  transform: translateY(0);
  opacity: 1;
}

#star-1 {
  width: 20px;
  top: 2px;
  left: 3px;
  animation-delay: 0.3s;
}

#star-2 {
  width: 6px;
  top: 16px;
  left: 3px;
}

#star-3 {
  width: 12px;
  top: 20px;
  left: 10px;
  animation-delay: 0.6s;
}

#star-4 {
  width: 18px;
  top: 0px;
  left: 18px;
  animation-delay: 1.3s;
}

@keyframes star-twinkle {
  0% {
    transform: scale(1);
  }

  40% {
    transform: scale(1.2);
  }

  80% {
    transform: scale(0.8);
  }

  100% {
    transform: scale(1);
  }
}

/* Dark Mode Styles */
body.dark-mode {
    background-color: #121212;
    color: #eaeaea;
}

/* Seções que eram brancas ou cinzas precisam ficar escuras */
body.dark-mode .sobre-section,
body.dark-mode .projeto-section,
body.dark-mode .contato-section,
body.dark-mode .bg-light {
    background-color: #1e1e1e !important; /* Um cinza escuro para diferenciar do fundo */
    color: #e0e0e0;
}

/* Cards de Serviço */
body.dark-mode .card-service {
    background-color: #2d2d2d;
    box-shadow: 0 0 6px 0 rgba(255, 255, 255, 0.1);
}

body.dark-mode .card-service::after {
    background: #2d2d2d; /* Cor do fundo do card para a animação */
}

body.dark-mode .card-service .h6 {
    color: #fff !important; /* Títulos dos cards em branco */
}

body.dark-mode .card-service .hover_content p {
    color: #ccc;
}

/* Formulário de contato e Informações */
body.dark-mode .informacoes,
body.dark-mode .formulario {
    background-color: #2d2d2d !important;
    color: #fff;
}

/* Inputs do formulário */
body.dark-mode .form-control {
    background-color: #404040;
    border-color: #555;
    color: #fff;
}

body.dark-mode .form-control:focus {
    background-color: #404040;
    color: #fff;
}

body.dark-mode .banner-section2 {
    background-color: #1e1e1e; /* azul escuro moderno */
}

/* Textos no dark */
body.dark-mode .banner-section2 h1,
body.dark-mode .banner-section2 p {
    color: #e5e7eb;
}


/* ===== PROJETOS SECTION ===== */

#projetos {
    background-color: #ffffff;
}

/* Divider */
#projetos .divider {
    width: 80px;
    height: 3px;
    border-radius: 10px;
}

/* ===== CAROUSEL ===== */

#projetos .carousel-item {
    position: relative;
    height: 500px; /* Desktop */
}

@media (max-width: 767px) {
    #projetos .carousel-item {
        height: 320px; /* Mobile */
    }
}

#projetos .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Overlay */
#projetos .carousel-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

/*
#projetos .carousel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(0,0,0,0.65),
        rgba(0,0,0,0.25)
    );
    z-index: 1;
}
*/

/* Caption */
#projetos .carousel-caption {
    position: absolute;
    bottom: 30%;
    left: 10%;
    z-index: 2;
    text-align: left;
}

@media (max-width: 767px) {
    #projetos .carousel-caption {
        bottom: 15%;
        left: 8%;
    }
}

#projetos .carousel-caption h3 {
    font-weight: 600;
    margin-bottom: 8px;
}

#projetos .carousel-caption p {
    font-size: 14px;
}

/* ===== CARDS ===== */

#projetos .project-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform .4s ease, box-shadow .4s ease;
}

#projetos .project-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 45px rgba(0,0,0,0.15);
}

#projetos .project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

#projetos .project-card-body {
    padding: 20px;
}

#projetos .project-card-body h3 {
    margin-bottom: 10px;
}

#projetos .project-card-body p {
    font-size: 14px;
    color: #555;
}


/* Container do Instagram */
.instagram-wrapper {
    max-width: 420px;
    margin: 40px auto;
    padding: 16px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

/* Centraliza corretamente o embed */
.instagram-wrapper .instagram-media {
    margin: 0 auto !important;
    width: 100% !important;
    min-width: unset !important;
    max-width: 100% !important;
    border-radius: 12px !important;
    overflow: hidden;
}

/* Mobile */
@media (max-width: 576px) {
    .instagram-wrapper {
        padding: 8px;
        border-radius: 12px;
    }
}

/* Container do Instagram */
.instagram-wrapper {
    max-width: 420px;
    margin: 40px auto;
    padding: 16px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

/* Embed base */
.instagram-wrapper .instagram-media {
    width: 100% !important;
    min-width: unset !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    border-radius: 12px !important;
    overflow: hidden;
}

/* Bottom Key - pag-sobre nos */
.fancy {
 background-color: transparent;
 border: 2px solid #000;
 border-radius: 0;
 box-sizing: border-box;
 color: #fff;
 cursor: pointer;
 display: inline-block;
 font-weight: 700;
 letter-spacing: 0.05em;
 margin: 0;
 outline: none;
 overflow: visible;
 padding: 1.25em 2em;
 position: relative;
 text-align: center;
 text-decoration: none;
 text-transform: none;
 transition: all 0.3s ease-in-out;
 user-select: none;
 font-size: 13px;
}

.fancy::before {
 content: " ";
 width: 1.5625rem;
 height: 2px;
 background: black;
 top: 50%;
 left: 1.5em;
 position: absolute;
 transform: translateY(-50%);
 transform-origin: center;
 transition: background 0.3s linear, width 0.3s linear;
}

.fancy .text {
 font-size: 1.125em;
 line-height: 1.33333em;
 padding-left: 2em;
 display: block;
 text-align: left;
 transition: all 0.3s ease-in-out;
 text-transform: uppercase;
 text-decoration: none;
 color: black;
}

.fancy .top-key {
 height: 2px;
 width: 1.5625rem;
 top: -2px;
 left: 0.625rem;
 position: absolute;
 background: #e8e8e8;
 transition: width 0.5s ease-out, left 0.3s ease-out;
}

.fancy .bottom-key-1 {
 height: 2px;
 width: 1.5625rem;
 right: 1.875rem;
 bottom: -2px;
 position: absolute;
 background: #e8e8e8;
 transition: width 0.5s ease-out, right 0.3s ease-out;
}

.fancy .bottom-key-2 {
 height: 2px;
 width: 0.625rem;
 right: 0.625rem;
 bottom: -2px;
 position: absolute;
 background: #e8e8e8;
 transition: width 0.5s ease-out, right 0.3s ease-out;
}

.fancy:hover {
 color: white;
 background: black;
}

.fancy:hover::before {
 width: 0.9375rem;
 background: white;
}

.fancy:hover .text {
 color: white;
 padding-left: 1.5em;
}

.fancy:hover .top-key {
 left: -2px;
 width: 0px;
}

.fancy:hover .bottom-key-1,
 .fancy:hover .bottom-key-2 {
 right: 0;
 width: 0;
}

/* Ajuste do botão CTA no dark mode */
body.dark-mode .fancy {
    border-color: #ffffff;
    color: #ffffff;
}

body.dark-mode .fancy::before {
    background: #ffffff;
}

body.dark-mode .fancy .text {
    color: #ffffff;
}

body.dark-mode .fancy .top-key,
body.dark-mode .fancy .bottom-key-1,
body.dark-mode .fancy .bottom-key-2 {
    background: #1e1e1e;
}

body.dark-mode .fancy:hover {
    background: #ffffff;
    color: #111111;
}

body.dark-mode .fancy:hover::before {
    background: #111111;
}

body.dark-mode .fancy:hover .text {
    color: #111111;
}

/* Css video */
/* =====================================================
   RESET BÁSICO DO PLAYER
===================================================== */
.video-wrapper {
    /* Define o tamanho do player na página */
    width: 100%;
    max-width: 400px; /* Largura típica de vídeo vertical */
    aspect-ratio: 9 / 16; /* Mantém a proporção vertical */
    
    position: relative;
    margin: 20px auto; /* Centraliza na página */
    border-radius: 16px;
    overflow: hidden;
    background-color: #000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    
    /* Previne seleção de texto ao clicar rápido */
    user-select: none;
    -webkit-user-select: none;
}

/* O vídeo ocupa todo o espaço */
.video-vertical {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* =====================================================
   BOTÃO PLAY CENTRAL (GRANDE)
===================================================== */
.video-center-control {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none; /* Deixa clicar no vídeo atrás */
    z-index: 10;
}

.center-play {
    pointer-events: auto;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    border: none;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
    position: relative;
    
    /* Ícone Play (Triângulo) */
    display: flex;
    align-items: center;
    justify-content: center;
}

.center-play::after {
    content: '';
    display: block;
    width: 0; 
    height: 0; 
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 26px solid #fff;
    margin-left: 6px; /* Ajuste óptico */
}

.center-play:hover {
    background: rgba(0, 0, 0, 0.6);
    transform: scale(1.1);
}

/* =====================================================
   BARRA DE CONTROLES INFERIOR
===================================================== */
.video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    box-sizing: border-box;
    
    display: flex;
    align-items: center;
    gap: 15px;
    
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    opacity: 1;
    transition: opacity 0.3s ease;
    z-index: 20;
}

/* Esconde controles quando inativo (via JS) */
.video-wrapper.hide-controls .video-controls {
    opacity: 0;
    pointer-events: none;
}

.video-wrapper.hide-controls {
    cursor: none; /* Esconde mouse */
}

/* =====================================================
   BOTÕES GERAIS (.control-btn)
===================================================== */
.control-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    position: relative;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5));
}

/* Ícone Play Pequeno */
.play-toggle.paused::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-left: 12px solid #fff;
    margin-left: 2px;
}

/* Ícone Pause Pequeno */
.play-toggle.playing::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 14px;
    border-left: 4px solid #fff;
    border-right: 4px solid #fff;
    box-sizing: border-box;
}

/* =====================================================
   BARRA DE PROGRESSO
===================================================== */
.progress-container {
    flex-grow: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    transition: height 0.1s;
}

.progress-container:hover {
    height: 6px;
}

.progress-bar {
    height: 100%;
    background-color: #fff;
    width: 0%;
    border-radius: 4px;
    position: relative;
}

/* Bolinha na ponta da barra */
.progress-bar::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%) scale(0);
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.1s;
}

.progress-container:hover .progress-bar::after,
.progress-container.dragging .progress-bar::after {
    transform: translateY(-50%) scale(1);
}

/* =====================================================
   VOLUME
===================================================== */
.volume-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ícone de Volume (CSS Puro) */
.volume-toggle::before {
    content: '';
    position: absolute;
    left: 4px; top: 7px;
    width: 6px; height: 10px;
    background: #fff;
}
.volume-toggle::after {
    content: '';
    position: absolute;
    left: 4px; top: 7px;
    width: 6px; height: 10px;
    border: 6px solid #fff;
    border-left-color: transparent;
    border-top-color: transparent;
    border-bottom-color: transparent;
    border-radius: 50%;
    transform: translateX(-2px);
}
.volume-toggle.muted::after {
    border: none;
    width: 12px; height: 2px;
    background: #fff;
    top: 11px; left: 12px;
    transform: rotate(45deg);
}

/* SLIDER DE VOLUME (Vertical) */
.volume-slider {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 100px;
    background: rgba(20, 20, 20, 0.9);
    border-radius: 15px;
    
    /* Escondido por padrão */
    opacity: 0;
    pointer-events: none; /* Não bloqueia cliques */
    transition: opacity 0.2s, bottom 0.2s;
    
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 10px;
    box-sizing: border-box;
}

/* JS adiciona a classe .volume-open no wrapper */
.volume-wrapper.volume-open .volume-slider {
    opacity: 1;
    pointer-events: auto;
    bottom: 40px;
}

.volume-level {
    width: 6px;
    background: #fff;
    border-radius: 4px;
    height: 100%; /* JS controla isso */
    position: relative;
    max-height: 80px;
}

/* Fundo cinza do slider */
.volume-slider::before {
    content: '';
    position: absolute;
    bottom: 10px;
    width: 6px;
    height: 80px;
    background: rgba(255,255,255,0.3);
    border-radius: 4px;
    z-index: 0;
}
.volume-level { z-index: 1; }

/* =====================================================
   FULLSCREEN ICON
===================================================== */
.fullscreen-toggle {
    border: 2px solid #fff;
    border-left: none;
    border-top: none;
    width: 18px;
    height: 18px;
    margin-bottom: 4px;
}
.fullscreen-toggle::before {
    content: '';
    position: absolute;
    top: -5px; left: -5px;
    width: 18px; height: 18px;
    border: 2px solid #fff;
    border-right: none;
    border-bottom: none;
}

/* =====================================================
   ESTADOS DO FULLSCREEN
===================================================== */
.video-wrapper.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
    border-radius: 0;
    z-index: 9999;
    aspect-ratio: unset; /* Remove proporção fixa */
    background: #000;
}

.video-wrapper.fullscreen .video-vertical {
    object-fit: contain; /* Garante que o vídeo inteiro apareça */
}

/* =========================================
   ESTILO DOS ÍCONES SVG
========================================= */

/* Removemos os desenhos antigos de CSS (limpeza) */
.volume-toggle::before, .volume-toggle::after,
.fullscreen-toggle::before, .fullscreen-toggle::after {
    display: none !important;
    content: none !important;
}

/* Configuração base dos SVGs */
.control-btn svg {
    width: 24px;   /* Tamanho confortável */
    height: 24px;
    fill: #fff;    /* Cor branca */
    display: block;
    pointer-events: none; /* O clique vai no botão, não no ícone */
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5)); /* Sombra para leitura */
}

/* --- LÓGICA DE TROCA (VOLUME) --- */

/* Por padrão (sem classe muted): mostra SOM, esconde MUDO */
.volume-toggle .icon-vol-on { display: block; }
.volume-toggle .icon-vol-off { display: none; }

/* Quando tem classe .muted: esconde SOM, mostra MUDO */
.volume-toggle.muted .icon-vol-on { display: none; }
.volume-toggle.muted .icon-vol-off { display: block; }


/* --- LÓGICA DE TROCA (FULLSCREEN) --- */

/* Por padrão: mostra EXPANDIR, esconde RECOLHER */
.fullscreen-toggle .icon-enter-fs { display: block; }
.fullscreen-toggle .icon-exit-fs { display: none; }

/* Quando o wrapper tem a classe .fullscreen */
.video-wrapper.fullscreen .fullscreen-toggle .icon-enter-fs { display: none; }
.video-wrapper.fullscreen .fullscreen-toggle .icon-exit-fs { display: block; }



/* teste de css */

@layer reset, base, cards;

@layer reset{
  *{ box-sizing: border-box; }
  h1,h2,h3,h4,h5,ul{ margin: 0; }
}

@layer cards {
  /* --- CLASSES UTILITÁRIAS --- */
  .sr-only {
    position: fixed; top: 50%; left: 50%;
    width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0);
    border-width: 0; pointer-events: none;
  }

  /* --- CONTAINER --- */
  .the-doctors {
    --item-border-clr: rgba(255 255 255 / .5);
    display: block; 
    position: relative;
    width: 100%;
    margin: 0 auto;
    transition: height 300ms ease; 
  }

  /* --- CARDS (FECHADOS) --- */
  .the-doctors article {
    /* MOBILE FIRST (Padrão) */
    --article-width: 140px; /* Levemente menor para garantir que cabem 2 em telas pequenas */
    --article-height: 210px; 
    
    /* TABLET / DESKTOP */
    @media (width > 500px){
        --article-width: 160px; 
        --article-height: 240px; 
    }
    @media (width > 800px){
        --article-width: 240px; 
        --article-height: 320px; 
    }

    --article-transition-duration: 600ms;
    --article-transition-timing: cubic-bezier(0.4, 0, 0.2, 1);

    position: absolute; 
    top: 0; left: 0;
    
    width: var(--article-width);
    height: var(--article-height);
    background-color: #000;
    border: 1px solid var(--item-border-clr);
    z-index: 1;
    transition: all var(--article-transition-duration) var(--article-transition-timing);
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    
    transform: translate(var(--translate-x, 0), var(--translate-y, 0));
  }

  /* --- ESTADO EXPANDIDO (ABERTO) --- */
  .the-doctors > input[name="character"]:checked + article {
    z-index: 9999;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) !important;

    width: min(92vw, 400px, calc(82vh * 9 / 16)) !important;
    height: auto !important;
    aspect-ratio: 9 / 16;
    max-height: 82vh;

    display: flex;
    align-items: center;
    justify-content: center;

    background-color: #000;
    border: none;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8), 0 0 0 100vmax rgba(0,0,0,0.85);
  }

  .the-doctors:has(input[name="character"]:checked) article:not(input[name="character"]:checked + article) {
    opacity: 0; pointer-events: none;
  }

  /* --- VÍDEO/AVATAR --- */
  .the-doctors .avatar {
    display: block; width: 100%; height: 100%;
    position: relative; overflow: hidden; margin: 0;
    clip-path: inset(0); border-radius: 0;
    transition: all 600ms ease-in-out; 
    
  & > video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    background-color: #000;
    filter: saturate(0%) brightness(0.6);
    transform: scale(1.05);
    transition: all 600ms ease-in-out;
  }
    
    &:hover > video {
        filter: saturate(100%) brightness(1);
        transform: scale(1.0);
    }
  }

  .the-doctors > input[name="character"]:checked + article .avatar {
      border-radius: 12px;
      background-color: #000;
  }

  .the-doctors > input[name="character"]:checked + article .avatar > video {
      object-fit: contain;
      object-position: center;
      background-color: #000;
      filter: saturate(100%) brightness(1);
      transform: scale(1);
  }

  /* --- BOTÃO FECHAR --- */
  .custom-close-btn {
      position: absolute; top: 15px; right: 15px; z-index: 2000;
      width: 2.5rem; height: 2.5rem; /* Um pouco menor no mobile */
      border: 2px solid white; background: transparent;
      overflow: hidden; cursor: pointer; transition: all 500ms;
      opacity: 0; pointer-events: none; transform: scale(0);
      
      @media (width > 800px) {
          width: 3rem; height: 3rem; top: 20px; right: 20px;
      }
  }

  .the-doctors > input[name="character"]:checked + article .custom-close-btn {
      opacity: 1; pointer-events: all; transform: scale(1); transition-delay: 300ms;
  }

  .custom-close-btn:hover { border-color: #9300cf; }

  .custom-close-btn .btn-text {
      font-family: sans-serif; font-size: 1.5rem; 
      height: 100%; width: 100%; display: flex; align-items: center; justify-content: center;
      color: white; position: relative; z-index: 10; margin: 0; line-height: 1;
      transition: duration 500ms;
  }
  .custom-close-btn:hover .btn-text { transform: scale(0); }

  .custom-close-btn .btn-span {
      position: absolute; width: 100%; height: 100%; background-color: #d9a6ff;
      transform: rotate(45deg); transition: all 500ms; z-index: 1;
  }

  .custom-close-btn .top-left { top: 3rem; left: 0; }
  .custom-close-btn:hover .top-left { top: 2.25rem; }
  .custom-close-btn .top-right { top: 0; left: 3rem; }
  .custom-close-btn:hover .top-right { left: 2.25rem; }
  .custom-close-btn .bottom-right { top: 0; right: 3rem; }
  .custom-close-btn:hover .bottom-right { right: 2.25rem; }
  .custom-close-btn .bottom-left { bottom: 3rem; right: 0; }
  .custom-close-btn:hover .bottom-left { bottom: 2.25rem; }
}



/* =========================
   Página de Doações
========================= */
.donation-page {
    background: linear-gradient(180deg, rgba(148, 0, 207, 0.05) 0%, rgba(255,255,255,1) 18%, rgba(248,249,250,1) 100%);
    min-height: calc(100vh - 80px);
}

.donation-hero {
    padding: 3.5rem 0 2rem;
}

.donation-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    background: rgba(148, 0, 207, 0.08);
    color: #6d0fa8;
    font-weight: 600;
    margin-bottom: 1rem;
}

.donation-shell {
    padding-bottom: 3rem;
}

.donation-card,
.donation-info-card,
.donation-success-card {
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(148, 0, 207, 0.12);
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(17, 17, 17, 0.08);
}

.donation-card {
    padding: 1.5rem;
}

.donation-info-card,
.donation-success-card {
    padding: 1.5rem;
}

.donation-fieldset {
    border: 0;
    padding: 0;
    margin: 0;
}

.donation-label {
    font-weight: 600;
    color: #161616;
    margin-bottom: 0.45rem;
}

.donation-hint {
    display: block;
    margin-top: 0.4rem;
    color: #6b7280;
    font-size: 0.92rem;
}

.donation-input,
.donation-textarea {
    border-radius: 16px;
    border: 1px solid rgba(17, 17, 17, 0.12);
    padding: 0.9rem 1rem;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.donation-input:focus,
.donation-textarea:focus {
    border-color: #9400cf;
    box-shadow: 0 0 0 4px rgba(148, 0, 207, 0.12);
}

.donation-textarea {
    min-height: 160px;
    resize: vertical;
}

.donation-upload-box {
    border: 1.5px dashed rgba(148, 0, 207, 0.35);
    border-radius: 20px;
    padding: 1rem;
    background: linear-gradient(180deg, rgba(148, 0, 207, 0.04), rgba(148, 0, 207, 0.01));
}

.donation-upload-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.donation-upload-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 56px;
    padding: 0.9rem 1rem;
    border-radius: 16px;
    border: 1px solid rgba(17,17,17,0.12);
    background: #ffffff;
    color: #161616;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.donation-upload-btn:hover,
.donation-upload-btn:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(148, 0, 207, 0.45);
    box-shadow: 0 12px 22px rgba(148, 0, 207, 0.10);
    color: #161616;
}

.donation-upload-btn svg,
.donation-success-icon svg,
.donation-info-icon svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.donation-file-meta {
    margin-top: 0.95rem;
    padding: 0.85rem 1rem;
    border-radius: 16px;
    background: rgba(17,17,17,0.04);
    color: #3f3f46;
    font-size: 0.95rem;
}

.donation-preview-wrap {
    margin-top: 1rem;
    display: none;
}

.donation-preview-wrap.is-visible {
    display: block;
}

.donation-preview {
    display: block;
    width: 100%;
    max-height: 360px;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 14px 32px rgba(0,0,0,0.12);
}

.donation-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 1rem;
    border-radius: 18px;
    background: rgba(17,17,17,0.04);
}

.donation-consent input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 0.15rem;
    accent-color: #9400cf;
    flex-shrink: 0;
}

.donation-alert {
    border-radius: 18px;
    padding: 0.9rem 1rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
}

.donation-alert-error {
    background: rgba(180, 35, 24, 0.08);
    border-color: rgba(180, 35, 24, 0.18);
    color: #8f1d18;
}

.donation-alert-success {
    background: rgba(15, 122, 56, 0.08);
    border-color: rgba(15, 122, 56, 0.18);
    color: #0f7a38;
}

.donation-error-list {
    padding-left: 1.2rem;
    margin-bottom: 0;
}

.donation-submit {
    width: 100%;
    min-height: 56px;
    border: none;
    border-radius: 18px;
    background: linear-gradient(135deg, #13003d 0%, #9400cf 100%);
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.donation-submit:hover,
.donation-submit:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(148, 0, 207, 0.22);
}

.donation-submit:disabled {
    opacity: 0.7;
    cursor: wait;
}

.donation-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.9rem;
}

.donation-info-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.donation-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: rgba(148, 0, 207, 0.10);
    color: #6d0fa8;
    flex-shrink: 0;
}

.donation-hidden-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.donation-help-note {
    font-size: 0.94rem;
    color: #5b6470;
}

.donation-success-section {
    display: flex;
    align-items: center;
    min-height: calc(100vh - 180px);
    padding: 2rem 0 3rem;
}

.donation-success-card {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.donation-success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 86px;
    height: 86px;
    border-radius: 999px;
    color: #0f7a38;
    background: rgba(15, 122, 56, 0.10);
    margin-bottom: 1.25rem;
}

.donation-success-title {
    font-size: clamp(2rem, 5vw, 3rem);
}

.donation-secondary-link {
    color: #6d0fa8;
    text-decoration: none;
    font-weight: 600;
}

.donation-secondary-link:hover,
.donation-secondary-link:focus-visible {
    color: #4d0479;
}

body.dark-mode .donation-page {
    background: linear-gradient(180deg, rgba(16, 10, 24, 1) 0%, rgba(25, 18, 37, 1) 18%, rgba(19, 17, 26, 1) 100%);
}

body.dark-mode .donation-card,
body.dark-mode .donation-info-card,
body.dark-mode .donation-success-card {
    background: rgba(33, 33, 39, 0.95);
    border-color: rgba(217, 166, 255, 0.14);
    color: #f4f4f5;
}

body.dark-mode .donation-label,
body.dark-mode .donation-badge,
body.dark-mode .donation-secondary-link {
    color: #e9d5ff;
}

body.dark-mode .donation-input,
body.dark-mode .donation-textarea,
body.dark-mode .donation-upload-btn,
body.dark-mode .donation-file-meta,
body.dark-mode .donation-consent {
    background: #2a2a32;
    border-color: rgba(255,255,255,0.08);
    color: #f4f4f5;
}

body.dark-mode .donation-input::placeholder,
body.dark-mode .donation-textarea::placeholder {
    color: #a1a1aa;
}

body.dark-mode .donation-hint,
body.dark-mode .donation-help-note,
body.dark-mode .donation-file-meta {
    color: #c4c4ca;
}

body.dark-mode .donation-upload-box {
    background: linear-gradient(180deg, rgba(217,166,255,0.06), rgba(217,166,255,0.02));
    border-color: rgba(217,166,255,0.22);
}

body.dark-mode .donation-upload-btn:hover,
body.dark-mode .donation-upload-btn:focus-visible {
    color: #ffffff;
}

@media (max-width: 991.98px) {
    .donation-hero {
        padding-top: 2.5rem;
    }

    .donation-info-card {
        margin-top: 1rem;
    }
}

@media (max-width: 767.98px) {
    .donation-card,
    .donation-info-card,
    .donation-success-card {
        border-radius: 20px;
    }

    .donation-card,
    .donation-info-card {
        padding: 1.1rem;
    }

    .donation-upload-actions {
        grid-template-columns: 1fr;
    }

    .donation-hero {
        padding-top: 2rem;
    }
}

/* =========================
   Área interna de Doações
========================= */
.donation-admin-page {
    min-height: calc(100vh - 80px);
}

.admin-login-section,
.admin-dashboard-section {
    padding: 3rem 0 4rem;
}

.admin-login-card,
.admin-toolbar,
.admin-stat-card,
.admin-search-card,
.admin-donation-card {
    background: rgba(255,255,255,0.94);
    border: 1px solid rgba(148, 0, 207, 0.12);
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(17, 17, 17, 0.08);
}

.admin-login-card {
    max-width: 640px;
    margin: 0 auto;
    padding: 1.5rem;
}

.admin-toolbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem;
}

.admin-toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.admin-toolbar-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0.75rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(17,17,17,0.10);
    color: #161616;
    text-decoration: none;
    font-weight: 600;
    background: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.admin-toolbar-link:hover,
.admin-toolbar-link:focus-visible {
    transform: translateY(-1px);
    color: #161616;
    border-color: rgba(148, 0, 207, 0.45);
    box-shadow: 0 12px 22px rgba(148, 0, 207, 0.10);
}

.admin-stat-card,
.admin-search-card {
    padding: 1.25rem;
}

.admin-stat-label {
    display: block;
    color: #6b7280;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.admin-stat-value {
    display: block;
    color: #111827;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    line-height: 1.2;
}

.admin-stat-smaller {
    font-size: clamp(1rem, 2vw, 1.2rem);
}

.admin-donation-card {
    overflow: hidden;
    height: 100%;
}

.admin-donation-image-wrap {
    position: relative;
    aspect-ratio: 4 / 3;
    background: rgba(17,17,17,0.06);
}

.admin-donation-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.admin-donation-content {
    padding: 1.2rem;
}

.admin-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: rgba(148, 0, 207, 0.10);
    color: #6d0fa8;
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
}

.admin-donation-date {
    color: #6b7280;
    font-size: 0.95rem;
}

.admin-donation-description {
    color: #1f2937;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.admin-donation-meta {
    display: grid;
    gap: 0.4rem;
    color: #374151;
    font-size: 0.95rem;
}

.admin-pagination-wrap .page-link {
    border-radius: 12px;
    border: 1px solid rgba(17,17,17,0.10);
    color: #6d0fa8;
    min-width: 42px;
    text-align: center;
}

.admin-pagination-wrap .page-item.active .page-link {
    background: linear-gradient(135deg, #13003d 0%, #9400cf 100%);
    border-color: transparent;
}

body.dark-mode .admin-login-card,
body.dark-mode .admin-toolbar,
body.dark-mode .admin-stat-card,
body.dark-mode .admin-search-card,
body.dark-mode .admin-donation-card {
    background: rgba(33, 33, 39, 0.95);
    border-color: rgba(217, 166, 255, 0.14);
    color: #f4f4f5;
}

body.dark-mode .admin-toolbar-link {
    background: #2a2a32;
    border-color: rgba(255,255,255,0.08);
    color: #f4f4f5;
}

body.dark-mode .admin-toolbar-link:hover,
body.dark-mode .admin-toolbar-link:focus-visible {
    color: #ffffff;
}

body.dark-mode .admin-stat-label,
body.dark-mode .admin-donation-date,
body.dark-mode .admin-donation-meta,
body.dark-mode .admin-donation-description {
    color: #d4d4d8;
}

body.dark-mode .admin-stat-value {
    color: #ffffff;
}

body.dark-mode .admin-chip {
    background: rgba(217, 166, 255, 0.12);
    color: #f3e8ff;
}

body.dark-mode .admin-pagination-wrap .page-link {
    background: #2a2a32;
    color: #f3e8ff;
    border-color: rgba(255,255,255,0.08);
}

@media (max-width: 991.98px) {
    .admin-toolbar {
        flex-direction: column;
    }
}

@media (max-width: 767.98px) {
    .admin-login-card,
    .admin-toolbar,
    .admin-stat-card,
    .admin-search-card,
    .admin-donation-card {
        border-radius: 20px;
    }

    .admin-login-section,
    .admin-dashboard-section {
        padding: 2rem 0 3rem;
    }
}

.admin-toolbar-button {
    min-height: 46px;
}

.admin-user-card {
    background: rgba(255,255,255,0.94);
    border: 1px solid rgba(148, 0, 207, 0.12);
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(17, 17, 17, 0.08);
    height: 100%;
}

.admin-user-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.admin-user-username {
    color: #6b7280;
    font-size: 0.95rem;
}

.admin-user-meta {
    display: grid;
    gap: 0.55rem;
    color: #374151;
    font-size: 0.95rem;
}

.admin-user-actions {
    margin-top: auto;
    padding-top: 1rem;
}

.admin-user-actions form {
    margin: 0;
}

.admin-user-delete {
    width: 100%;
    min-height: 48px;
    border-radius: 16px;
    border: 1px solid rgba(180, 35, 24, 0.2);
    background: rgba(180, 35, 24, 0.08);
    color: #8f1d18;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.admin-user-delete:hover,
.admin-user-delete:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(180, 35, 24, 0.12);
}

.admin-user-delete:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    box-shadow: none;
}

.admin-modal-open {
    overflow: hidden;
}

.admin-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(6, 5, 12, 0.58);
    backdrop-filter: blur(6px);
}

.admin-modal-overlay.is-active {
    display: flex;
}

.admin-modal-card {
    width: min(100%, 560px);
    background: rgba(255,255,255,0.96);
    border: 1px solid rgba(148, 0, 207, 0.12);
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(17, 17, 17, 0.18);
    padding: 1.5rem;
}

.admin-modal-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(17,17,17,0.10);
    background: #fff;
    color: #161616;
    border-radius: 14px;
    font-size: 1.7rem;
    line-height: 1;
}

.admin-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.admin-modal-submit {
    width: auto;
    min-width: 180px;
    padding-inline: 1.4rem;
}

body.dark-mode .admin-user-card,
body.dark-mode .admin-modal-card {
    background: rgba(33, 33, 39, 0.96);
    border-color: rgba(217, 166, 255, 0.14);
    color: #f4f4f5;
}

body.dark-mode .admin-user-username,
body.dark-mode .admin-user-meta {
    color: #d4d4d8;
}

body.dark-mode .admin-modal-close {
    background: #2a2a32;
    border-color: rgba(255,255,255,0.08);
    color: #f4f4f5;
}

body.dark-mode .admin-user-delete {
    background: rgba(180, 35, 24, 0.18);
    border-color: rgba(255,255,255,0.08);
    color: #fecaca;
}

@media (max-width: 767.98px) {
    .admin-user-card,
    .admin-modal-card {
        border-radius: 20px;
    }

    .admin-modal-card {
        padding: 1.1rem;
    }

    .admin-modal-actions {
        flex-direction: column;
    }

    .admin-modal-submit,
    .admin-modal-actions .admin-toolbar-link {
        width: 100%;
    }
}
