/* Paleta de Cores e Espaçamentos Centralizados */
:root {
  --roxo-principal: #7C3AED;
  --roxo-escuro: #5B21B6;
  --roxo-claro: #C4B5FD;
  --cor-destaque: var(--roxo-principal);
  --cor-bg: #f8f9fa;
  --cor-texto: #18181b;
  --cor-card: #fff;
  --cor-borda: #e5e7eb;
  --spc-xs: 0.25rem;
  --spc-sm: 0.5rem;
  --spc-md: 1rem;
  --spc-lg: 2rem;
  --spc-xl: 3rem;
}

html,
body {
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  background-color: var(--cor-bg);
  color: var(--cor-texto);
  max-width: 100vw;
  overflow-x: hidden;
}

footer {
  position: relative;
  bottom: 0;
  width: 100%;
  background: var(--cor-card);
  color: var(--cor-texto);
}

/* Menu Mobile - Melhorias */
.navbar-toggler {
  border: none !important;
  padding: 0.25rem 0.5rem;
  transition: all 0.3s ease;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(124, 58, 237, 0.25) !important;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Menu colapsado no mobile */
@media (max-width: 991px) {
  .header-hero {
    z-index: 1000;
  }

  .navbar-collapse {
    background: #18181b;
    border-radius: 12px;
    margin-top: 0;
    padding: 2rem 1rem 2rem 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(124, 58, 237, 0.2);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2000;
    min-height: 0;
    max-height: 100vh;
    overflow-y: auto;
    width: 100vw;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
  }

  .navbar {
    position: relative;
    z-index: 2001;
  }

  .navbar .container {
    position: relative;
  }

  .navbar-nav {
    text-align: center;
    margin-bottom: 2rem !important;
    width: 100%;
  }

  .navbar-nav .nav-item {
    margin-bottom: 0.75rem;
  }

  .navbar-nav .nav-link {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 1rem;
  }

  .navbar-nav .nav-link:hover {
    background: rgba(124, 58, 237, 0.1);
    color: var(--roxo-principal) !important;
  }

  /* Controles de idioma e currículo no mobile */
  .navbar-collapse .d-flex {
    gap: 1rem !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100%;
  }

  #lang-switch {
    width: auto !important;
    min-width: 90px;
    margin: 0;
    align-self: center;
  }

  .navbar-collapse .btn-roxo {
    width: auto;
    min-width: 160px;
    margin: 0;
    align-self: center;
  }
}

/* Botão Roxo */
.btn-roxo,
.btn-primary,
.btn-destaque,
.btn-projeto,
.btn-social {
  position: relative;
  overflow: hidden;
  transition: background 0.22s, color 0.22s, box-shadow 0.22s, transform 0.18s cubic-bezier(.4, 2, .3, 1);
}

.btn-roxo:hover,
.btn-primary:hover,
.btn-destaque:hover,
.btn-projeto:hover,
.btn-social:hover {
  box-shadow: 0 6px 24px 0 rgba(124, 58, 237, 0.18), 0 0 0 4px rgba(124, 58, 237, 0.10);
  transform: scale(1.045) translateY(-2px);
  filter: brightness(1.08) drop-shadow(0 0 8px #7C3AED);
}

/* Efeito ripple simples */
.btn-roxo:active::after,
.btn-primary:active::after,
.btn-destaque:active::after,
.btn-projeto:active::after,
.btn-social:active::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 120%;
  height: 120%;
  background: rgba(124, 58, 237, 0.18);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.7);
  animation: ripple-effect 0.4s linear;
  pointer-events: none;
  z-index: 1;
}

@keyframes ripple-effect {
  0% {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(0.7);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.5);
  }
}

/* Destaques Roxos */
.badge-roxo,
.highlight-roxo,
.tag-roxo,
.badge-destaque {
  background: var(--cor-destaque) !important;
  color: #fff !important;
  border-radius: 8px;
  padding: 0.25em 0.75em;
  font-weight: 500;
  transition: all 0.2s cubic-bezier(.4, 2, .3, 1);
}

.badge-roxo:hover,
.highlight-roxo:hover,
.tag-roxo:hover,
.badge-destaque:hover {
  filter: brightness(1.15) drop-shadow(0 0 6px #7C3AED);
  transform: scale(1.07) rotate(-2deg);
}

/* Barras de skills ou títulos destacados */
.stack-skills,
.barra-destaque {
  background: var(--cor-destaque) !important;
  color: #fff !important;
  border-radius: 6px;
  padding: 0.3em 0.8em;
  font-weight: 600;
  display: inline-block;
  margin: 0.2em 0.1em;
  transition: all 0.2s cubic-bezier(.4, 2, .3, 1);
}

.stack-skills:hover,
.barra-destaque:hover {
  filter: brightness(1.15) drop-shadow(0 0 6px #7C3AED);
  transform: scale(1.07) rotate(-2deg);
}

/* Banner com imagem de fundo personalizada */
.header-hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: none !important;
}

.hero-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: url('img/banner.jpg') center center/cover no-repeat;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;

  z-index: 2;
}

.header-hero>.container,
.header-hero nav {
  position: relative;
  z-index: 3;
}

.header-hero nav {
  margin-bottom: 2.5rem;
}

@media (max-width: 991px) {

  .hero-bg-img,
  .hero-overlay {
    width: 100vw;
    min-width: 0;
    height: 60vh;
    opacity: 0.25;
  }

  .header-hero {
    min-height: 60vh;
  }

  .header-hero nav {
    margin-bottom: 2.5rem;
  }
}

@media (max-width: 767px) {

  .projeto-card,
  .row.align-items-center {
    flex-direction: column !important;
    text-align: center;
    padding: 1.2rem 0.5rem !important;
  }

  .projeto-card>.col-md-2,
  .projeto-card>.col-md-10 {
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 1rem;
  }

  .projeto-card img {
    margin: 0 auto 1rem auto;
    display: block;
  }

  .stack-skills {
    font-size: 0.95rem;
    margin: 0.15em 0.05em;
  }

  .btn-roxo,
  .btn-primary,
  .btn-destaque {
    font-size: 1rem;
    padding: 0.6em 1.2em;
  }

  .rounded-circle {
    width: 180px !important;
    height: 180px !important;
  }

  .py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }

 

  .btn-social {
    width: 56px;
    height: 56px;
    min-width: 44px;
    min-height: 44px;
    font-size: 1.5rem;
    margin: 0 8px 0 0;
    padding: 0;
  }

  .btn-social i {
    font-size: 1.5rem;
  }

  .btn,
  .btn-roxo,
  .btn-projeto {
    min-height: 44px;
    font-size: 1.1rem;
    padding: 0.7em 1.2em;
  }

  h1,
  h2,
  h3,
  h4 {
    font-size: 1.95rem !important;
  }

  .fs-5,
  p,
  label,
  .projeto-info p {
    font-size: 1rem !important;
  }

  .projeto-card {
    padding: 1.2rem 0.5rem !important;
    gap: 1rem;
  }

 

  .projeto-info p {
    max-height: none;
    overflow: visible;
    text-overflow: unset;
    white-space: normal;
  }

  .container,
  .container-fluid {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  .form-control {
    width: 100% !important;
    min-height: 44px;
    font-size: 1rem;
  }

  .form-error {
    font-size: 0.98rem;
  }

  .contato-social-group {
    gap: 0.7rem;
    margin-bottom: 1.2rem;
  }

  .navbar,
  .offcanvas {
    box-shadow: 0 4px 24px rgba(24, 24, 27, 0.13);
  }
}

@media (max-width: 575px) {

  .container,
  .container-fluid {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .rounded-circle {
    width: 120px !important;
    height: 120px !important;
  }

  .display-4,
  h1 {
    font-size: 1.3rem !important;
  }

  .projeto-card {
    padding: 0.7rem 0.2rem !important;
  }
}

/* Ajuste para depoimentos e contato */
@media (max-width: 991px) {

  .row.g-4>.col-md-6,
  .row.g-5>.col-md-6 {
    width: 100%;
    max-width: 100%;
    margin-bottom: 1.5rem;
  }

  .row.g-5.align-items-start>.col-md-6 {
    margin-bottom: 2rem;
  }
}

/* Animação e efeito tecnológico */
.stack-skills,
.badge-roxo,
.highlight-roxo,
.tag-roxo,
.badge-destaque {
  transition: all 0.2s cubic-bezier(.4, 2, .3, 1);
}

.stack-skills:hover,
.badge-roxo:hover,
.highlight-roxo:hover,
.tag-roxo:hover,
.badge-destaque:hover {
  filter: brightness(1.15) drop-shadow(0 0 6px #7C3AED);
  transform: scale(1.07) rotate(-2deg);
}

.projeto-card {
  width: 100%;
  margin: 0 auto;
  transition: box-shadow 0.3s, transform 0.3s;
}

.projeto-card:hover {
  box-shadow: 0 8px 32px 0 rgba(124, 58, 237, 0.18), 0 0 0 4px rgba(124, 58, 237, 0.10);
  transform: translateY(-4px) scale(1.01);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  text-shadow: none !important;
}

/* Ícones sociais animados */
.btn-outline-dark i,
.btn-outline-light i {
  transition: color 0.2s, transform 0.2s;
}

.btn-outline-dark:hover i,
.btn-outline-light:hover i {
  color: var(--roxo-principal) !important;
  transform: scale(1.2) rotate(-8deg);
}

/* Banner hero com imagem à direita e gradiente preto */
.hero-banner-img {
  position: relative;
  min-height: 50vh;
  height: 50vh;
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  background: none;
}

.hero-banner-img .hero-img-right {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 50vw;
  height: 100%;
  background: url('../img/perfil.jpeg') right 24% no-repeat;
  z-index: 1;
}

.hero-banner-img .hero-gradient {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  width: 100vw;
  height: 100%;
  background: linear-gradient(90deg, #18181b 60%, rgba(24, 24, 27, 0) 100%);
  z-index: 2;
}

.hero-banner-img .container,
.hero-banner-img .container>div {
  position: relative;
  z-index: 3;
}

/* Garantir que o banner fique abaixo do menu */
.hero-banner-img {
  z-index: 1;
}

.hero-banner-img .container>div {
  padding-top: 1.5rem;
}

@media (max-width: 991px) {
  .hero-banner-img {
    width: 100vw !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #18181b !important;
    box-sizing: border-box !important;
  }

  .hero-banner-img .container {
    width: 100vw !important;
    max-width: 100vw !important;
    margin: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
  }

  .hero-banner-img .hero-img-right,
  .hero-banner-img .hero-gradient {
    display: none !important;
  }

  .hero-banner-img .col-lg-7,
  .hero-banner-img .col-md-10,
  .hero-banner-img .col-12 {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0 !important;
  }

  .hero-banner-img h1.display-4 {
    font-size: 1.3rem !important;
    margin-bottom: 1.2rem !important;
    line-height: 1.2 !important;
  }

  .hero-banner-img p.lead {
    font-size: 1rem !important;
    margin-bottom: 1.5rem !important;
  }

  .hero-banner-img .btn {
    display: block;
    width: 100%;
    max-width: 260px;
    margin: 0 auto;
    font-size: 1.1rem;
    padding: 0.8em 0;
  }
}

@media (max-width: 575px) {

  .container,
  .container-fluid {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .rounded-circle {
    width: 100px !important;
    height: 100px !important;
  }

  .display-4,
  h1 {
    font-size: 1.3rem !important;
  }

  .projeto-card {
    padding: 0.7rem 0.2rem !important;
  }

  .projeto-card img {
    max-width: 80px;
  }

  .hero-banner-img {
    width: 100vw !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #18181b !important;
    box-sizing: border-box !important;
  }

  .hero-banner-img .container {
    width: 100vw !important;
    max-width: 100vw !important;
    margin: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
  }

  .hero-banner-img .col-lg-7,
  .hero-banner-img .col-md-10,
  .hero-banner-img .col-12 {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0 !important;
  }

  .hero-banner-img h1.display-4 {
    font-size: 1.05rem !important;
  }

  .hero-banner-img .btn {
    font-size: 1rem;
    max-width: 100%;
  }
}

@media (max-width: 400px) {
  .projeto-card img {
    max-width: 60px;
  }

  .badge-roxo {
    font-size: 0.8rem;
  }
}

#lang-switch {
  background: #18181b !important;
  color: #fff !important;
  border: none !important;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.2em 0.7em;
  border-radius: 6px;
  box-shadow: none;
  outline: none;
  cursor: pointer;
}

#lang-switch:focus {
  box-shadow: 0 0 0 2px #7C3AED44;
}

.btn-lang {
  background: transparent;
  border: none;
  outline: none;
  box-shadow: none;
  font-size: 1.5rem;
  opacity: 0.7;
  transition: opacity 0.2s, filter 0.2s;
}

.btn-lang.active,
.btn-lang:focus {
  opacity: 1;
  filter: drop-shadow(0 0 6px #7C3AED);
}

.btn-lang:hover {
  opacity: 1;
}

/* Banner Hero Novo */
.hero-novo {
  min-height: 80vh;
  width: 100vw;
  background: linear-gradient(120deg, #7C3AED 0%, #18181b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: 5.5rem;
}

.hero-novo .display-3 {
  font-size: 2.5rem;
  line-height: 1.1;
  letter-spacing: -1px;
}

.text-gradient-roxo {
  background: linear-gradient(90deg, #a78bfa 0%, #7C3AED 50%, #5B21B6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-img-perfil {
  width: 260px;
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-perfil-img {
  width: 220px;
  height: 220px;
  object-fit: cover;
  box-shadow: 0 8px 32px rgba(124, 58, 237, 0.18), 0 0 0 8px #fff;
  z-index: 2;
}

.hero-perfil-efeito {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.18) 0%, rgba(124, 58, 237, 0.08) 80%, transparent 100%);
  z-index: 1;
}

@media (max-width: 991px) {
  .hero-novo {
    min-height: 60vh;
    padding: 5.5rem 0 2rem 0;
  }

  .hero-novo .display-3 {
    font-size: 2rem;
  }

  .hero-img-perfil {
    display: none !important;
  }

  .hero-novo .col-lg-7 {
    text-align: center !important;
    margin: 0 auto;
  }
}

@media (max-width: 575px) {
  .hero-novo {
    min-height: 50vh;
    padding: 5.5rem 0 1rem 0;
  }

  .hero-novo .display-3 {
    font-size: 1.3rem;
  }

  .hero-novo .fs-2 {
    font-size: 1.1rem !important;
  }

  .hero-novo .lead {
    font-size: 1rem !important;
  }

  .btn-roxo.btn-lg {
    font-size: 1rem;
    padding: 0.7em 1.5em;
  }
}

/* Espaçamento entre nav e hero */
.header-hero nav {
  margin-bottom: 2.5rem;
}

@media (max-width: 991px) {
  .header-hero nav {
    margin-bottom: 2.5rem;
  }

  .hero-novo {
    padding-top: 2.5rem;
  }
}

@media (max-width: 575px) {
  .header-hero nav {
    margin-bottom: 1.5rem;
  }

  .hero-novo {
    padding-top: 1.5rem;
  }
}

/* Ajuste do logo no mobile */
.navbar-brand {
  font-size: 1.3rem;
  white-space: nowrap;
}

@media (max-width: 991px) {
  .navbar-brand {
    font-size: 1.1rem;
    padding-right: 0.5rem;
  }
}

/* Ajuste do container do hero no mobile */
@media (max-width: 991px) {
  .hero-novo {
    padding-top: 7.5rem;
  }

  .hero-novo .container {
    padding-left: 2rem !important;
    padding-right: 2rem !important;
  }

  .hero-novo .display-3 {
    font-size: 1.2rem;
  }

  .hero-novo .fs-2 {
    font-size: 1rem !important;
  }

  .hero-novo .lead {
    font-size: 0.98rem !important;
  }
}

@media (max-width: 575px) {
  .hero-novo {
    padding-top: 8.5rem;
  }

  .hero-novo .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}


@media (max-width: 575px) {


  .container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    box-sizing: border-box !important;
  }

  #home.container-fluid,
  .hero-banner-img {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

.hero-content {
  width: 100vw;
  max-width: 100vw;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@media (max-width: 991px) {
  .hero-content {
    width: 100vw !important;
    max-width: 100vw !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 575px) {
  .hero-content {
    width: 100vw !important;
    max-width: 100vw !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }
}

.hero-banner-img,
.hero-content {
  width: 100vw !important;
  max-width: 100vw !important;
  min-width: 100vw !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

.

@media (max-width: 767px) {
  .projeto-img-grande {
    max-width: 120px;
    max-height: 120px;
  }
  .header-hero {
    position: relative;
    min-height: 0vh;
    overflow: hidden;
    background: none !important;
  }
  
}

.slick-carousel {
  width: 100%;
  max-width: 100vw;
  margin: 0 auto;
  overflow: hidden;
}

.slick-slide {
  display: flex !important;
  justify-content: center;
}

.projeto-card {
  width: 100%;
  margin: 0 auto;
}

.projeto-img-grande {

  width: 100%;
  height: auto;
  margin: 0 auto;

}

@media (max-width: 991px) {
  .slick-arrow {
    display: none !important;
  }
}

.btn-social {
  width: 90px;
  height: 90px;
  min-width: 90px;
  min-height: 90px;
  border-radius: 50%;
  border: 2.5px solid var(--roxo-principal) !important;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: var(--roxo-principal) !important;
  box-shadow: 0 4px 24px rgba(124, 58, 237, 0.10);
  margin: 0 12px 0 0;
  transition: all 0.22s cubic-bezier(.4, 2, .3, 1);
  position: relative;
  overflow: hidden;
}

.btn-social:last-child {
  margin-right: 0;
}

.btn-social i {
  font-size: 2.2rem;
  transition: color 0.2s, transform 0.2s;
}

.btn-social:hover,
.btn-social:focus {
  background: var(--roxo-principal) !important;
  color: #fff !important;
  border-color: var(--roxo-principal) !important;
  box-shadow: 0 8px 32px 0 rgba(124, 58, 237, 0.18), 0 0 0 4px rgba(124, 58, 237, 0.10);
  transform: translateY(-2px) scale(1.04);
}

.btn-social:hover i,
.btn-social:focus i {
  color: #fff !important;
  transform: scale(1.18) rotate(-8deg);
}

@media (max-width: 767px) {
  .btn-social {
    width: 56px;
    height: 56px;
    min-width: 44px;
    min-height: 44px;
    font-size: 1.5rem;
    margin: 0 8px 0 0;
    padding: 0;
  }

  .btn-social i {
    font-size: 1.5rem;
  }

  .btn,
  .btn-roxo,
  .btn-projeto {
    min-height: 44px;
    font-size: 1.1rem;
    padding: 0.7em 1.2em;
  }

  h1,
  h2,
  h3,
  h4 {
    font-size: 1.25rem !important;
  }

  .fs-5,
  p,
  label,
  .projeto-info p {
    font-size: 1rem !important;
  }

  .projeto-card {
    padding: 1.2rem 0.5rem !important;
    gap: 1rem;
  }

  

  .projeto-info p {
    max-height: none;
    overflow: visible;
    text-overflow: unset;
    white-space: normal;
  }

  .container,
  .container-fluid {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  .form-control {
    width: 100% !important;
    min-height: 44px;
    font-size: 1rem;
  }

  .form-error {
    font-size: 0.98rem;
  }

  .contato-social-group {
    gap: 0.7rem;
    margin-bottom: 1.2rem;
  }

  .navbar,
  .offcanvas {
    box-shadow: 0 4px 24px rgba(24, 24, 27, 0.13);
  }
}

/* Centralizar e espaçar o grupo de botões sociais */
.contato-social-group {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2.2rem;
}

@media (max-width: 767px) {
  .contato-social-group {
    justify-content: center;
    margin-bottom: 1.5rem;
  }
}

/* Projetos - carrossel mobile e grid desktop */
.projetos-carousel-mobile {
  display: none;
}

.projetos-grid {
  display: grid;
}

@media (max-width: 767px) {
  .projetos-carousel-mobile {
    display: block;
  }

  .projetos-grid {
    display: none !important;
  }
}

.projeto-card {
  background: #18181b;
  color: #fff;
  border-radius: 2rem;
  box-shadow: 0 4px 24px rgba(124, 58, 237, 0.08);
  display: flex;
  align-items: center;
  gap: 2.2rem;
  padding: 2.2rem 3vw;
  transition: box-shadow 0.2s, transform 0.2s;
  min-height: 180px;
  width: 100%;
  box-sizing: border-box;
}

.projeto-card:hover {
  box-shadow: 0 8px 32px rgba(124, 58, 237, 0.18), 0 0 0 4px rgba(124, 58, 237, 0.10);
  transform: translateY(-4px) scale(1.01);
}



.projeto-info {
  flex: 1;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  justify-content: center;
  align-items: flex-start;
}

.projeto-info h4 {
  color: #fff;
  font-size: 1.18rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
  margin-top: 0;
  text-align: left;
}

.projeto-info p {
  color: #e5e7eb;
  font-size: 1.01rem;
  margin-bottom: 0.5rem;
  line-height: 1.5;
  text-align: left;
}

.projeto-info a.btn-projeto {
  background: #7C3AED;
  color: #fff;
  border: none;
  border-radius: 0.7rem;
  padding: 0.55rem 1.7rem;
  font-weight: 600;
  font-size: 1rem;
  margin-right: 0.7rem;
  margin-bottom: 0.5rem;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.10);
  display: inline-block;
  text-align: center;
  min-width: 140px;
}

.projeto-info a.btn-projeto:hover {
  background: #5B21B6;
  color: #fff;
  transform: translateY(-2px) scale(1.04);
}

.projeto-info a {
  color: #a78bfa;
  text-decoration: underline;
  word-break: break-all;
}

@media (max-width: 767px) {
  .projeto-card {
    flex-direction: column;
    align-items: center;
    padding: 2rem 5vw !important;
    gap: 1.5rem;
    min-height: 320px;
    width: 100%;
  }


}

@media (max-width: 400px) {
  .projeto-card img {
    max-width: 420px;
  }
}

/* Grid de projetos responsiva (projetos-carousel.php) */
.projetos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 0 auto;
  max-width: 1200px;
}

.projeto-card {
  background: #18181b;
  color: white;
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.projeto-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(124, 58, 237, 0.18);
}



.projeto-card h4 {
  color: #7C3AED;
  margin-bottom: 1rem;
  font-weight: 600;
}

.projeto-card p {
  flex-grow: 1;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.projeto-card .text-roxo {
  color: #7C3AED !important;
}

.badge-roxo {
  background: #7C3AED !important;
  color: white !important;
  padding: 0.25rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.btn-roxo {
  background: #7C3AED !important;
  border-color: #7C3AED !important;
  color: white !important;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
}

.btn-roxo:hover {
  background: #5B21B6 !important;
  border-color: #5B21B6 !important;
  color: white !important;
  transform: translateY(-2px);
}

@media (max-width: 767px) {
  .projetos-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    padding: 0 0.5rem;
  }

  .projeto-card {
    max-width: 98vw;
    margin: 0 auto;
  }
}

/* Depoimentos - carrossel mobile e grid desktop */
.depoimentos-carousel-mobile {
  display: none;
}

.depoimentos-grid-desktop {
  display: flex;
}

@media (max-width: 767px) {
  .depoimentos-carousel-mobile {
    display: block !important;
    margin-bottom: 2rem;
  }

  .depoimentos-grid-desktop {
    display: none !important;
  }

  .slick-carousel-depoimentos .p-4 {
    min-height: 220px;
  }
}

:focus,
.btn:focus,
.nav-link:focus,
.form-control:focus,
a:focus,
button:focus {
  outline: 2.5px solid #7C3AED !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 3px #a78bfa44 !important;
  z-index: 2;
}

.form-control.is-invalid {
  border-color: #dc3545 !important;
  background-color: #fff0f3 !important;
  color: #dc3545 !important;
}

.form-error {
  font-size: 1rem;
}

.projeto-info>div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  width: 100%;
  flex-direction: column;
  padding: 0;
}

.projeto-info>div .btn-projeto {
  align-self: flex-start;
  width: 100%;
  margin-bottom: 0.5rem !important;
}

.projeto-info>div .badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  width: 100%;
  margin-top: 0.5rem;
}

.badge-projeto {
  background: #23272f;
  color: #fff;
  border-radius: 0.7rem;
  padding: 0.35em 1em;
  font-size: 0.95rem;
  font-weight: 500;
  margin-right: 0.5rem;
  display: inline-block;
  margin-bottom: 0.2rem;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.badge-projeto:hover {
  background: var(--roxo-principal);
  transform: scale(1.05);
}

.badge-projeto:last-child {
  margin-right: 0;
}

/* Garante que o menu mobile fique sempre acima de tudo */
.offcanvas {
  z-index: 12000 !important;
}