/*---------------------------------------
  LOGO + BOTÃO DIA/NOITE
-----------------------------------------*/
.brand-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  margin-right: 12px;
}

.theme-toggle {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.8);
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .2s, background .2s, color .2s, border-color .2s;
}

.theme-toggle:hover { transform: rotate(20deg) scale(1.08); background: rgba(255, 255, 255, .15); }

.sticky-nav .theme-toggle { color: var(--p-color); border-color: var(--border-color); }

/*---------------------------------------
  CARROSSEL 3D (Our Work)
-----------------------------------------*/
.work-carousel-wrapper {
  width: 100%;
  max-width: 1000px;
  height: 470px;
  margin: 0 auto;
  perspective: 1400px;
  position: relative;
  overflow: hidden;
}

.work-carousel-track {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.work-card-container {
  width: 260px;
  height: 380px;
  position: absolute;
  cursor: pointer;
  transition: transform .6s cubic-bezier(.2, .8, .2, 1), opacity .6s ease, filter .6s ease;
}

.work-card {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform .7s cubic-bezier(.4, 0, .2, 1);
}

.work-card.spin-in { animation: spin-in 1.4s cubic-bezier(.4, 0, .2, 1) 1; }

@keyframes spin-in {
  from { transform: rotateY(0deg); }
  to { transform: rotateY(360deg); }
}

.work-card.is-flipped { transform: rotateY(180deg); }

.work-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 18px;
  padding: 16px 16px 48px;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, .35);
}

.work-front { background: #1a1a1a; border: 1px solid rgba(255, 255, 255, .08); color: #fff; }

.work-front img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 12px;
}

.work-front h4,
.work-back h5 { color: #fff; font-size: 20px; margin-bottom: 8px; }

.work-back {
  background: linear-gradient(135deg, #1f4037 0%, #38b083 100%);
  transform: rotateY(180deg);
  justify-content: center;
  color: #fff;
}

.work-back h5 { font-size: 26px; }

.work-card-tag {
  display: inline-block;
  background: rgba(255, 255, 255, .15);
  color: #fff;
  font-size: 12px;
  border-radius: 100px;
  padding: 2px 10px;
  margin: 0 3px 4px;
}

/* Ícone de giro branco na parte inferior do cartão */
.flip-icon {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  opacity: .9;
  animation: flip-hint 2.4s ease-in-out infinite;
}

@keyframes flip-hint {
  0%, 100% { transform: translateX(-50%) rotate(0deg); }
  50% { transform: translateX(-50%) rotate(180deg); }
}

.work-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  width: fit-content;
  margin: 20px auto 0;
  background: #1a1a1a;
  padding: 10px 22px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 5px 20px rgba(0, 0, 0, .25);
}

.work-arrow-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  padding: 5px 12px;
  transition: color .2s, transform .1s;
}

.work-arrow-btn:hover { color: var(--primary-color); }
.work-arrow-btn:active { transform: scale(.9); }

.work-dots { display: flex; align-items: center; gap: 12px; }

.work-dot {
  width: 10px;
  height: 10px;
  background: #555;
  border-radius: 50%;
  cursor: pointer;
  transition: background .3s, transform .3s;
}

.work-dot.active { background: var(--primary-color); transform: scale(1.35); }

@media (max-width: 575px) {
  .work-carousel-wrapper { height: 440px; }
  .work-card-container { width: 230px; height: 350px; }
  .work-front img { height: 210px; }
}

/*---------------------------------------
  MODO NOITE (fundo escuro)
-----------------------------------------*/
body, .navbar, .sticky-nav { transition: background .3s, color .3s; }

[data-theme="dark"] {
  --section-bg-color: #1b1d20;
  --border-color: #34373b;
  --p-color: #b4b7bc;
  --title-color: #d8dadd;
  color-scheme: dark;
}

[data-theme="dark"] body { background: #121315; color: #e6e7e9; }

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 { color: #f1f2f3; }

[data-theme="dark"] .text-white { color: #fff !important; }

[data-theme="dark"] .sticky-nav { background: #17181a; box-shadow: 0 1rem 3rem rgba(0, 0, 0, .6); }
[data-theme="dark"] .sticky-nav .navbar-brand { color: #fff; }
[data-theme="dark"] .sticky-nav .navbar-nav .nav-link { color: #b4b7bc; }
[data-theme="dark"] .sticky-nav .navbar-nav .nav-link.active,
[data-theme="dark"] .sticky-nav .navbar-nav .nav-link:hover { color: var(--primary-color); }
[data-theme="dark"] .sticky-nav .theme-toggle { color: #f1f2f3; border-color: #4a4d52; }

[data-theme="dark"] .nav-tabs { border-color: var(--border-color); }
[data-theme="dark"] .nav-tabs .nav-link.active { color: #fff; background: transparent; }

[data-theme="dark"] .accordion-item,
[data-theme="dark"] .accordion-button,
[data-theme="dark"] .accordion-body { background: #1b1d20; color: #d8dadd; border-color: var(--border-color); }
[data-theme="dark"] .accordion-button:not(.collapsed) { background: #22252a; color: #fff; }
[data-theme="dark"] .accordion-button::after { filter: invert(1); }

[data-theme="dark"] .services { background: #17181a; }
[data-theme="dark"] .services-info { color: #d8dadd; }

[data-theme="dark"] .pricing-plan.bg-white { background: #1f2124 !important; color: #d8dadd; }
[data-theme="dark"] .pricing-list-item { color: #d8dadd; }

[data-theme="dark"] .work-tag.bg-white { background: #2a2d31 !important; }

[data-theme="dark"] .custom-form .form-control,
[data-theme="dark"] .custom-form .form-select { background: #1b1d20; color: #e6e7e9; border-color: #34373b; }
[data-theme="dark"] .custom-form label { color: #d8dadd; }

[data-theme="dark"] .work-carousel-controls { background: #22252a; border-color: rgba(255, 255, 255, .1); }
[data-theme="dark"] .work-front { background: #1f2124; }

/*---------------------------------------
  VÍDEO SOBRE A IMAGEM DO PERFIL
-----------------------------------------*/
.profile-media { position: relative; }

.profile-media .play-icon-small {
  position: absolute;
  left: calc(var(--bs-gutter-x, 1.5rem) * .5 + 12px);
  bottom: 12px;
  padding: 5px 8px;
  max-width: 112px;
  z-index: 3;
}

.profile-media .play-icon-small .play-icon {
  width: 22px;
  height: 22px;
  line-height: 22px;
  font-size: 15px;
  margin-right: 6px;
}

.profile-media .play-icon-small .play-icon::before { padding-top: 3px; padding-left: 3px; }
.profile-media .play-icon-small small { font-size: 11px; color: var(--p-color); }

[data-theme="dark"] .profile-media .play-icon-small { background: #1f2124; }

/*---------------------------------------
  RODAPÉ RETRÁTIL + PARCERIAS
-----------------------------------------*/
.footer-toggle {
  background: none;
  border: 0;
  padding: 0;
  color: #fff;
  font-size: var(--h5-font-size);
  font-weight: var(--font-weight-bold);
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.footer-toggles { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 40px; }

.footer-toggle i { font-size: 18px; transition: transform .3s; }
.footer-toggle[aria-expanded="true"] i { transform: rotate(180deg); }
.footer-toggle:hover { color: var(--primary-color); }

.footer-partners { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 40px; }

.partners-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  width: 100%;
}

.partner-logo {
  flex: 1 1 0;
  min-width: 0;
  height: 90px;
  background: #fff;
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }

@media (max-width: 767px) {
  .partners-row { flex-wrap: wrap; }
  .partner-logo { flex: 1 1 calc(50% - 20px); }
}
