  :root {
    --red: #b30000;
    --black: #000;
    --white: #fff;
  }

  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

body {
  font-family: 'Open Sans', sans-serif;
  background: var(--white);
  color: var(--black);
  line-height: 1.5;
  overflow-x: hidden; /* Esconde qualquer conteúdo que transborde horizontalmente */
}


  /* TOPBAR COM TRANSPARÊNCIA E BLUR */
  .topbar {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
  }

  .logo img {
    height: 100px;
    width: 100px;
  }



  .nav a {
    color: var(--white);
    margin-left: 1.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
  }
  .nav a:hover {
    color: var(--red);
  }

  /* HERO COM FUNDO E BLUR */
  .hero {
    background: url('/static/img/carro-bg.jpg') center center/cover no-repeat;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    color: white;
    padding: 5rem 1rem;

  }
  .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(6px);
    z-index: 0;
  }
  .hero h1,
  .hero p,
  .hero .btn-primary {
    position: relative;
    z-index: 1;
  }
  .hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
  }
  .hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
  }

  .btn-primary {
    background: var(--black);
    color: var(--white);
    padding: 1rem 3rem;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    transition: transform 0.3s ease, background 0.3s ease;
    text-decoration: none;
    display: inline-block;
  }
  .btn-primary:hover {
    background: #800000;
    transform: scale(1.1);
  }

  @keyframes fadeInDown {
    from {
      opacity: 0;
      transform: translateY(-40px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .works {
    height: 600px;
    background-color: #222;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    color: white;
    padding: 5rem 1rem;
  }
#trabalhos {
  padding: 0;
}

.carousel-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.carousel {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease-in-out;
}

.carousel-slide {
  min-width: 100%;
  height: 500px; /* você pode ajustar a altura desejada */
  display: flex;
  align-items: stretch;
}

.before-after-wrapper {
  display: flex;
  width: 100%;
  height: 100%;
}

.before, .after {
  width: 50%;
  position: relative;
}

.before img,
.after img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.label {
  position: absolute;
  bottom: 15px;
  left: 15px;
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 6px 12px;
  text-shadow: -2px 3px #000;
  font-size: 20px;
  border-radius: 4px;
  font-weight: bold;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 30px;
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  border-radius: 50%;
  padding: 10px 15px;
  cursor: pointer;
  z-index: 10;
}

.carousel-btn.prev {
  left: 20px;
}

.carousel-btn.next {
  right: 20px;
}

.carousel-btn:hover {
  background: rgba(0,0,0,0.8);
}


  .works h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
  }
  .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
  }

  .slider {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
  }
  .slider img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.5s ease;
  }
  .slider img.after {
    opacity: 0;
  }
  .slider button.prev,
  .slider button.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: var(--white);
    border: none;
    font-size: 2rem;
    width: 40px;
    height: 40px;
    cursor: pointer;
    border-radius: 50%;
    user-select: none;
  }
  .slider button.prev {
    left: 10px;
  }
  .slider button.next {
    right: 10px;
  }


  .reviews {
    padding: 3rem 2rem;
    max-width: 100%;
    margin: 0 auto;
    background-color: #000;

  }
  .reviews h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
  }

  /* FOOTER */
  footer {
    background: var(--black);
    color: var(--white);
    text-align: center;
    padding: 1rem 2rem;
    font-size: 0.9rem;
  }

  /* WHATSAPP FIXO */
  .whatsapp-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    animation: pulse 1.5s infinite;
  }
  @keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
  }

  /* SOBRE MIM */
  .bg-vermelho {
    background-color: #800000;
    color: white;
  }
  .bg-branco {
    background-color: #d3d3d3;
    color: black;
  }
  .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
  }
  .sobre-mim {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2rem;
  }
  .foto-perfil {
    width: 200px;
    height: 200px;
    border-radius: 100%;
    object-fit: cover;
    border: 4px solid white;
  }
  .sobre-mim .texto {
    flex: 1;
  }

  /* FLASHCARDS */
  .flashcards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
  }



  .center {
    text-align: center;
  }

  /* FORMULÁRIOS (ADMIN E LOGIN) */
  .admin-body {
    background: #fff;
    color: #000;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  }
  .login-container,
  .admin-main {
    max-width: 900px;
    margin: 2rem auto;
    padding: 1rem;
  }
  .login-form,
  .admin-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
  }
  .login-form input,
  .admin-form input,
  .admin-form textarea {
    padding: 0.8rem;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 1rem;
  }
  .btn-primary {
    background: var(--red);
    color: #fff;
    border: none;
    padding: 1rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
  }
  .btn-primary:hover {
    background: #800000;
  }
  .btn-delete {
    background: #ff4c4c;
    border: none;
    color: #fff;
    padding: 0.6rem 1rem;
    cursor: pointer;
    border-radius: 5px;
    margin-top: 0.5rem;
    transition: background-color 0.3s ease;
  }
  .btn-delete:hover {
    background: #cc0000;
  }
  .admin-section {
    margin-bottom: 3rem;
  }
  .admin-section h2 {
    margin-bottom: 1rem;
  }

  /* TABLET (>=768px e <1024px) */
  @media (min-width: 768px) and (max-width: 1023px) {
    .topbar {
      padding: 1rem;
    }
    .logo img {
      height: 80px;
      width: 80px;
    }
    .nav a {
      margin-left: 1rem;
      font-size: 0.9rem;
    }
    .hero {
      height: 100vh;
      padding: 3rem 1rem;
    }
    .hero h1 {
      font-size: 2.5rem;
    }
    .hero p {
      font-size: 1.1rem;
    }
    .btn-primary {
      padding: 0.8rem 2rem;
      font-size: 0.9rem;
    }
    .works {
      padding: 2rem 1rem;
    }
    .grid {
      gap: 1.5rem;
    }
    .slider {
      height: 180px;
    }
    .slider img {
      height: 180px;
    }

    .reviews {
      padding: 2rem 1rem;
    }
    .reviews h2 {
      font-size: 1.7rem;
    }
    .sobre-mim {
      flex-direction: column;
      text-align: center;
    }
    .foto-perfil {
      width: 150px;
      height: 150px;
      margin: 0 auto 1rem auto;
      border-width: 3px;
    }
    .sobre-mim .texto {
      flex: none;
    }
  }

  /* CELULAR (<768px) */
  @media (max-width: 767px) {
    .topbar {
      flex-direction: column;
      align-items: flex-start;
      padding: 1rem;
      gap: 1rem;
    }
    .logo img {
      height: 70px;
      width: 70px;
    }
    .nav {
      width: 100%;
      display: flex;
      justify-content: space-around;
    }
    .nav a {
      margin: 0;
      font-size: 0.9rem;
    }
    .hero {
      height: 190vh;
      padding: 2rem 1rem;
    }
    .hero h1 {
      font-size: 2rem;
    }
    .hero p {
      font-size: 1rem;
      margin-bottom: 1.5rem;
    }
    .btn-primary {
      padding: 0.7rem 1.5rem;
      font-size: 0.9rem;
    }
    .works {
      padding: 1.5rem 1rem;
    }
    .grid {
      grid-template-columns: 1fr;
      gap: 1rem;
    }
    .slider {
      height: 160px;
    }
    .slider img {
      height: 160px;
    }

    .reviews {
      padding: 1.5rem 1rem;
    }
    .reviews h2 {
      font-size: 1.5rem;
    }
    .sobre-mim {
      flex-direction: column;
      text-align: center;
    }
    .foto-perfil {
      width: 130px;
      height: 130px;
      margin: 0 auto 1rem auto;
      border-width: 3px;
    }
    .sobre-mim .texto {
      flex: none;
    }



    /* Flashcards empilhados em coluna para telas pequenas */
    .flashcards {
      grid-template-columns: 1fr;
      gap: 1rem;
    }
    /* Ajuste do footer para melhor leitura */
    footer {
      font-size: 0.8rem;
      padding: 1rem;
    }
    /* Whatsapp ícone menor e mais próximo da borda */
    .whatsapp-icon {
      width: 50px;
      bottom: 15px;
      right: 15px;
    }
  }

  .porque-escolher-section {
    padding: 60px 20px;
    background-color: #f0f6ff;
    background-image: url(../img/bkg1.jpg);
  }

  .fundo-card{
    background-color: #2C4B57;
    text-shadow: -2px 3px #000;
  }
  
  .card {
    background-color: #2C4B57;
    color: #ffffff;
    border: 1px solid #000000;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  }

  .flashcards {
    display: flex;               /* trocar grid por flex para controle mais fácil */
    flex-wrap: wrap;             /* permite quebra de linha */
    justify-content: center;     /* centraliza horizontalmente */
    gap: 20px;                   /* espaçamento uniforme entre cards */
    margin-top: 2rem;
  }

.flashcards .card {
  flex: 1 1 280px;
  max-width: 280px;
  height: 200px;
  perspective: 1000px; /* necessário para efeito 3D */
  cursor: pointer;
  transition: transform 0.3s ease;
}

.flashcards .card-inner {
  position: relative; /* essencial para que filhos absolute fiquem dentro dele */
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d; /* necessário para efeito 3D */
}

.frente, .verso {
  position: absolute; /* para ficarem sobrepostos */
  width: 100%;
  height: 100%;
  backface-visibility: hidden; /* esconde o verso quando não está virado */
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
}

.verso {
  background-color: #222;
  color: #ddd;
  font-size: 1.05rem;
  transform: rotateY(180deg); /* vira 180 graus para efeito flip */
}

  .verso {
    background-color: #222;
    color: #ddd;
    font-size: 1.05rem;
    transform: rotateY(180deg);
  }

  .click-hint {
    display: block;
    font-size: 0.7rem;
    color: #ccc;
    margin-top: 6px;
    font-weight: 400;
    font-style: italic;
    user-select: none;
  }



  .card-fotos {
    width: 100%;
    max-width: 650px; /* maior largura */
    margin: 30px auto;
    background-color: #000;
    color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
    position: relative;
  }

  .card-fotos img {
    width: 100%;
    height: 380px; /* maior altura */
    object-fit: cover;
    display: none;
  }

  .card-fotos img:first-child {
    display: block;
  }

  .card-fotos .titulo-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0,0,0,0.6);
    padding: 8px 12px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 6px;
  }

  .card-fotos .etiqueta {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(255,255,255,0.9);
    color: #000;
    font-weight: bold;
    padding: 6px 10px;
    border-radius: 5px;
  }

  .valores-section {
    padding: 100px 0; /* Aumente conforme necessário */
  }

  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
  }

  .reveal.active {
    opacity: 1;
    transform: translateY(0);
  }


  /* Fade-in animation */
  .fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards;
  }

  .fade-in.delay-1 {
    animation-delay: 0.3s;
  }
  .fade-in.delay-2 {
    animation-delay: 0.6s;
  }

  @keyframes fadeInUp {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .fade-in.animate {
    opacity: 1 !important;
    transform: translateY(0) !important;
  }


.logo-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px 0 0;
  background: transparent;
  z-index: 10;
  position: relative;
}

.hero-logo {
  max-width: 180px;
  height: auto;
  z-index: 10;
}

.divisao{
  background-color: black;
  height: 7px;
}

.highlight-box-dynamic {
  position: relative;
  background: rgba(20, 20, 20, 0.7);
  border-radius: 20px;
  padding: 25px; /* Aumentei o padding para mais destaque */
  margin-bottom: 20px;
  color: white;
  overflow: hidden; /* Essencial para o efeito de brilho */
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.highlight-box-dynamic:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.highlight-box-dynamic::before {
  content: '';
  position: absolute;
  top: 0;
  left: -80%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.25) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  pointer-events: none;
}

.highlight-box-dynamic:hover::before {
  animation: shimmer 1.2s forwards;
}

@keyframes shimmer {
  to {
    left: 125%;
  }
}



