/* ===== MICRO-INTERAÇÕES AVANÇADAS ===== */

/* Hover micro-animations para botões */
.btn-micro {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

.btn-micro:hover {
  transform: translateY(-2px) scale(1.02);
  filter: brightness(1.1);
}

.btn-micro:active {
  transform: translateY(0) scale(0.98);
  transition: all 0.1s ease;
}

/* Cards com hover elegante */
.card-hover {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center bottom;
}

.card-hover:hover {
  transform: translateY(-8px) rotateX(5deg);
  box-shadow: 0 20px 40px rgba(139, 92, 246, 0.15), 0 0 0 1px rgba(139, 92, 246, 0.1);
}

/* Links com underline animado */
.link-animate {
  position: relative;
  transition: color 0.3s ease;
}

.link-animate::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #d946ef, #8b5cf6);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Pulsação sutil para elementos importantes */
@keyframes gentlePulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.02); opacity: 0.9; }
}

.pulse-gentle {
  animation: gentlePulse 3s ease-in-out infinite;
}

/* Efeito de float para elementos especiais */
@keyframes gentleFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.float-gentle {
  animation: gentleFloat 6s ease-in-out infinite;
}

/* Gradient animado para textos especiais */
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.text-gradient-animate {
  background: linear-gradient(45deg, #d946ef, #8b5cf6, #06b6d4, #d946ef);
  background-size: 300% 300%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 8s ease infinite;
}

/* Ripple effect para cliques */
.ripple {
  position: relative;
  overflow: hidden;
}

.ripple::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.ripple:active::before {
  width: 300px;
  height: 300px;
}

/* Shake micro-animation para atenção */
@keyframes microShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-2px); }
  75% { transform: translateX(2px); }
}

.shake-micro {
  animation: microShake 0.5s ease-in-out;
}

/* Glow effect para elementos destacados */
.glow-hover {
  transition: all 0.3s ease;
}

.glow-hover:hover {
  box-shadow: 0 0 20px rgba(217, 70, 239, 0.4), 0 0 40px rgba(139, 92, 246, 0.2);
  filter: brightness(1.05);
}

:root { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }

/* Scrollbars ocultas nos carrosseis com scroll suave */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { 
  -ms-overflow-style: none; 
  scrollbar-width: none;
  scroll-behavior: smooth;
}

/* ===== Pricing borders v2 (listras suaves + glow no destaque) ===== */
@keyframes stripeMove { from { background-position: 0% 50%; } to { background-position: 200% 50%; } }
@keyframes pulseGlow  { 0%,100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes floatY     { from { transform: translateY(0); } to { transform: translateY(-4px); } }

.price-border { position: relative; overflow: visible; }
.price-border::before{
  content:""; position:absolute; inset:-1px; padding:2px; border-radius:1.5rem;
  background: linear-gradient(90deg,#a78bfa,#f472b6,#f59e0b,#10b981,#06b6d4,#60a5fa,#a78bfa);
  background-size:200% 200%; animation: stripeMove 12s linear infinite;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events:none; opacity:.9;
}
.dark .price-border::before{
  background: linear-gradient(90deg,#8b5cf6,#db2777,#f97316,#22c55e,#06b6d4,#6366f1,#8b5cf6);
  opacity:.8;
}
.price-featured{ animation: floatY 6s ease-in-out infinite alternate; }
.price-featured:hover{ transform: translateY(-6px) scale(1.01); transition: transform .3s ease; }
.price-featured .badge{ animation: pulseGlow 2.6s ease-in-out infinite; }

/* ===== Borda animada p/ imagens da galeria ===== */
@keyframes mediaStripeMove { from { background-position: 0% 50%; } to { background-position: 200% 50%; } }
.media-border { position: relative; border-radius: 1rem; }
.media-border::before {
  content: ""; position: absolute; inset: -1px; padding: 2px; border-radius: inherit;
  background: linear-gradient(90deg,#a78bfa,#f472b6,#f59e0b,#10b981,#06b6d4,#60a5fa,#a78bfa);
  background-size: 200% 200%; animation: mediaStripeMove 10s linear infinite;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; opacity: .95;
}
.dark .media-border::before {
  background: linear-gradient(90deg,#8b5cf6,#db2777,#f97316,#22c55e,#06b6d4,#6366f1,#8b5cf6);
  opacity: .9;
}
.media-card { border-radius: 0.9rem; overflow: hidden; background: rgba(255,255,255,.9); }
.dark .media-card { background: rgba(38,38,38,.9); }
.media-img { transition: transform .5s ease; }
.group:hover .media-img { transform: scale(1.02); }

/* Melhorias no slider */
#slider, #testiSlider {
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  transition: all 0.3s ease;
  cursor: grab;
  user-select: none;
}

#slider:active, #testiSlider:active {
  cursor: grabbing;
}

#slider > *, #testiSlider > * {
  scroll-snap-align: center;
  scroll-snap-stop: always;
  pointer-events: none; /* Previne conflitos com drag */
}

#slider img, #testiSlider img {
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

/* Suavizar transições durante drag */
#slider.dragging, #testiSlider.dragging {
  scroll-behavior: auto;
  transition: none;
}

/* Botões de navegação com efeitos suaves e gradiente destacado */
#btnPrev, #btnNext, #testiPrev, #testiNext {
  transition: all 0.2s ease !important;
  backdrop-filter: blur(10px) !important;
  background: linear-gradient(135deg, #d946ef, #8b5cf6) !important;
  border: 1px solid rgba(139, 92, 246, 0.3) !important;
  color: white !important;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.25) !important;
}

/* Forçar estilo mesmo no modo escuro */
.dark #btnPrev, .dark #btnNext, .dark #testiPrev, .dark #testiNext,
html.dark #btnPrev, html.dark #btnNext, html.dark #testiPrev, html.dark #testiNext {
  background: linear-gradient(135deg, #d946ef, #8b5cf6) !important;
  border: 1px solid rgba(139, 92, 246, 0.4) !important;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3) !important;
  color: white !important;
}

/* Hover com mais especificidade */
#btnPrev:hover, #btnNext:hover, #testiPrev:hover, #testiNext:hover {
  transform: scale(1.05) !important;
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4) !important;
  background: linear-gradient(135deg, #e879f9, #a855f7) !important;
  color: white !important;
}

/* Sobrescrever qualquer classe Tailwind */
button#btnPrev, button#btnNext, button#testiPrev, button#testiNext {
  background: linear-gradient(135deg, #d946ef, #8b5cf6) !important;
  border: 1px solid rgba(139, 92, 246, 0.3) !important;
  color: white !important;
}

/* Dots com transições suaves */
[data-dot], [data-tdot] {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

[data-dot]:hover, [data-tdot]:hover {
  transform: scale(1.1);
}

/* Efeito de pause visual no slider */
.slider-paused {
  filter: brightness(1.1);
}

/* Revelar ao rolar */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Canvas partículas */
#bgParticles { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -10; pointer-events: none; }

/* ===== CSS AVANÇADO PARA PORTFÓLIO INTERATIVO ===== */

/* Popup ativo */
.poptopoativo {
    transition: all .3s ease !important;
    opacity: 1 !important;
    pointer-events: all !important;
}

/* Controles de rolagem */
.controles-rolagem {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-top: 0 !important;
    padding: 8px 12px !important;
    position: relative;
    z-index: 5;
    width: 100% !important;
    background: rgba(0, 0, 0, 0.3) !important;
    border-radius: 8px !important;
    backdrop-filter: blur(10px) !important;
}

.controles-rolagem button {
    background: transparent;
    position: relative;
    z-index: 6;
    flex-shrink: 0 !important;
}

/* Botões de portfólio */
.btnportifolio,
.btnpop {
    position: relative;
    z-index: 10;
}

/* Botões do portfólio - Estilo baseado na imagem de referência */
.btnportifolio .elementor-button {
    background: linear-gradient(135deg, #d946ef, #8b5cf6) !important;
    color: white !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 12px 24px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3) !important;
    transition: all 0.3s ease !important;
    min-width: 140px !important;
    text-align: center !important;
}

.btnportifolio .elementor-button:hover {
    background: linear-gradient(135deg, #e879f9, #a855f7) !important;
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4) !important;
    transform: translateY(-2px) !important;
}

.btnpop .elementor-button {
    background: rgba(255, 255, 255, 0.15) !important;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 8px !important;
    padding: 12px 24px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    backdrop-filter: blur(10px) !important;
    transition: all 0.3s ease !important;
    min-width: 140px !important;
    text-align: center !important;
}

.btnpop .elementor-button:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2) !important;
}

/* Timeline - Estilo baseado na imagem de referência - VERSÃO REFORÇADA */
.timeline {
    position: relative !important;
    width: 100% !important;
    height: 6px !important;
    background: rgba(255, 255, 255, 0.3) !important;
    border-radius: 3px !important;
    margin: 0 !important;
    z-index: 0 !important;
    overflow: visible !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    flex: 1 !important;
    min-width: 100px !important;
}

.controles-rolagem .timeline {
    flex: 1 !important;
    margin: 0 !important;
}

.barra {
    position: absolute !important;
    height: 100% !important;
    background: #d946ef !important;
    background: linear-gradient(90deg, #d946ef, #8b5cf6) !important;
    border-radius: 3px !important;
    width: 1% !important; /* Começar com 1% no estado inicial */
    min-width: 8px !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 1 !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    transition: width 0.3s ease !important;
}

.bolinha {
    position: absolute !important;
    top: 50% !important;
    left: 1% !important; /* Alinhada com o início (1%) */
    width: 16px !important;
    height: 16px !important;
    background: #ffffff !important;
    border: 3px solid #d946ef !important;
    border-radius: 50% !important;
    transform: translate(-50%, -50%) !important;
    cursor: grab !important;
    z-index: 2 !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    box-shadow: 0 2px 8px rgba(217, 70, 239, 0.4) !important;
    transition: left 0.3s ease !important;
}

.bolinha:hover {
    background: #f0f0f0 !important;
    border-color: #e879f9 !important;
    box-shadow: 0 3px 12px rgba(217, 70, 239, 0.6) !important;
    transform: translate(-50%, -50%) scale(1.1) !important;
}

.bolinha:active {
    cursor: grabbing !important;
    background: #e0e0e0 !important;
    transform: translate(-50%, -50%) scale(0.95) !important;
}

.bolinha:hover {
    background: linear-gradient(135deg, #e879f9, #a855f7);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.6), 0 0 0 4px rgba(139, 92, 246, 0.2);
    transform: translate(-50%, -50%) scale(1.1);
}

.bolinha:active {
    cursor: grabbing;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.8), 0 0 0 6px rgba(139, 92, 246, 0.3);
    transform: translate(-50%, -50%) scale(0.95);
}

/* Botão Play/Pause */
.playpause {
    background: linear-gradient(135deg, rgba(217, 70, 239, 0.4), rgba(139, 92, 246, 0.4)) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    border-radius: 50% !important;
    padding: 6px !important;
    margin: 0 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    outline: none !important;
    box-shadow: 0 2px 6px rgba(139, 92, 246, 0.3) !important;
    backdrop-filter: blur(5px) !important;
    transition: all 0.2s ease !important;
    width: 36px !important;
    height: 36px !important;
    flex-shrink: 0 !important;
}

.playpause:focus {
    outline: 2px solid rgba(139, 92, 246, 0.5) !important;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2) !important;
}

.playpause:hover {
    background: linear-gradient(135deg, rgba(217, 70, 239, 0.6), rgba(139, 92, 246, 0.6)) !important;
    box-shadow: 0 3px 8px rgba(139, 92, 246, 0.5) !important;
    transform: scale(1.05) !important;
}

.playpause svg {
    display: block;
    pointer-events: none;
}

.playpause .icone-play,
.playpause .icone-pause {
    fill: #ffffff;
    transition: opacity 0.15s;
}

/* Popup modal */
.poptopo {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.poptopo.poptopoativo {
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* Container da imagem do popup */
.imagemdoportifas {
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 90vh;
}

/* Ícone de fechar popup */
.fechapop {
    position: absolute;
    top: 50px;
    right: 50px;
}

.fechapop * {
    cursor: pointer !important;
}



/* Hover effect para os portfólios */
.portifolio:hover {
    transition: all 8s ease;
    background-position: center bottom;
}
@keyframes stripeMove { from { background-position: 0% 50%; } to { background-position: 200% 50%; } }
@keyframes pulseGlow  { 0%,100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes floatY     { from { transform: translateY(0); } to { transform: translateY(-4px); } }

.price-border { position: relative; overflow: visible; }
.price-border::before {
  content:""; position:absolute; inset:-1px; padding:2px; border-radius:1.5rem;
  background: linear-gradient(90deg,#a78bfa,#f472b6,#f59e0b,#10b981,#06b6d4,#60a5fa,#a78bfa);
  background-size:200% 200%; animation: stripeMove 12s linear infinite;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events:none; opacity:.9;
}
.dark .price-border::before {
  background: linear-gradient(90deg,#8b5cf6,#db2777,#f97316,#22c55e,#06b6d4,#6366f1,#8b5cf6);
  opacity:.8;
}
.price-featured { animation: floatY 6s ease-in-out infinite alternate; }
.price-featured::before { padding:3px; animation-duration:8s; filter: drop-shadow(0 0 20px rgba(139,92,246,.6)) drop-shadow(0 0 40px rgba(139,92,246,.3)); }
.price-featured:hover { transform: translateY(-6px) scale(1.01); transition: transform .3s ease; }
.price-featured .badge { animation: pulseGlow 2.6s ease-in-out infinite; }

/* Glow extra para o plano destacado */
.price-featured {
  position: relative;
  box-shadow: 0 0 30px rgba(139,92,246,.4), 0 0 60px rgba(139,92,246,.2) !important;
}

.price-featured::after {
  content: '';
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle at center, rgba(139,92,246,.3), transparent 100%);
  border-radius: 2rem;
  z-index: -1;
  filter: blur(20px);
  opacity: 0.8;
  animation: pulseGlow 3s ease-in-out infinite;
  pointer-events: none;
}

/* ===== Borda animada p/ imagens da galeria ===== */
@keyframes mediaStripeMove { from { background-position: 0% 50%; } to { background-position: 200% 50%; } }
.media-border { position: relative; border-radius: 1rem; }
.media-border::before {
  content: ""; position: absolute; inset: -1px; padding: 2px; border-radius: inherit;
  background: linear-gradient(90deg,#a78bfa,#f472b6,#f59e0b,#10b981,#06b6d4,#60a5fa,#a78bfa);
  background-size: 200% 200%; animation: mediaStripeMove 10s linear infinite;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; opacity: .95;
}
.dark .media-border::before {
  background: linear-gradient(90deg,#8b5cf6,#db2777,#f97316,#22c55e,#06b6d4,#6366f1,#8b5cf6);
  opacity: .9;
}
.media-card { border-radius: 0.9rem; overflow: hidden; background: rgba(255,255,255,.9); }
.dark .media-card { background: rgba(38,38,38,.9); }
.media-img { transition: transform .5s ease; }
.group:hover .media-img { transform: scale(1.02); }

/* Garantir partículas sem bloquear cliques (safety) */
#particles, #bgParticles, canvas.particles, canvas[id*="particle"], .particles-bg { pointer-events: none !important; }

/* ===== SKELETON LOADING ===== */

/* Animação base do skeleton */
@keyframes skeletonLoading {
  0% {
    background-position: -200px 0;
  }
  100% {
    background-position: calc(200px + 100%) 0;
  }
}

@keyframes skeletonPulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

/* Classe base do skeleton */
.skeleton {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.1) 25%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0.1) 75%
  );
  background-size: 200px 100%;
  animation: skeletonLoading 2s infinite ease-in-out;
  border-radius: 8px;
}

.dark .skeleton {
  background: linear-gradient(
    90deg,
    rgba(64, 64, 64, 0.2) 25%,
    rgba(128, 128, 128, 0.4) 50%,
    rgba(64, 64, 64, 0.2) 75%
  );
}

/* Skeleton para texto */
.skeleton-text {
  height: 1rem;
  margin: 0.5rem 0;
  border-radius: 4px;
}

.skeleton-text.large {
  height: 1.5rem;
}

.skeleton-text.small {
  height: 0.75rem;
}

/* Skeleton para imagens */
.skeleton-image {
  width: 100%;
  height: 200px;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

.skeleton-image::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.2);
  animation: skeletonPulse 2s infinite;
}

/* Skeleton para cards */
.skeleton-card {
  padding: 1.5rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.dark .skeleton-card {
  background: rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Skeleton para botões */
.skeleton-button {
  height: 48px;
  border-radius: 24px;
  margin: 0.5rem 0;
}

/* Skeleton para estatísticas */
.skeleton-stat {
  text-align: center;
  padding: 1.5rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
}

.skeleton-stat-number {
  height: 3rem;
  width: 80%;
  margin: 0 auto 0.5rem;
  border-radius: 8px;
}

.skeleton-stat-label {
  height: 1rem;
  width: 60%;
  margin: 0 auto;
  border-radius: 4px;
}

/* Skeleton para sliders */
.skeleton-slider {
  display: flex;
  gap: 1rem;
  overflow: hidden;
  padding: 1rem;
}

.skeleton-slide {
  flex: 0 0 280px;
  height: 400px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  position: relative;
}

.skeleton-slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  animation: skeletonLoading 2s infinite;
}

/* Estado de loading overlay */
.loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  transition: opacity 0.3s ease;
}

.dark .loading-overlay {
  background: rgba(0, 0, 0, 0.8);
}

.loading-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Spinner customizado */
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(139, 92, 246, 0.2);
  border-top: 3px solid #8b5cf6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ===== TRANSIÇÕES SUAVES ENTRE SEÇÕES ===== */

/* Smooth scroll avançado */
html {
  scroll-behavior: smooth;
}

/* Transições de seção com parallax sutil */
.section-transition {
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateZ(0); /* Força hardware acceleration */
}

/* Efeito de fade in/out nas seções */
.section-fade {
  opacity: 1;
  transition: opacity 0.8s ease-in-out;
}

.section-fade.fade-out {
  opacity: 0.3;
}

/* Efeito de slide nas seções */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 40px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translate3d(-40px, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translate3d(40px, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.slide-in-up {
  animation: slideInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.slide-in-left {
  animation: slideInLeft 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.slide-in-right {
  animation: slideInRight 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Efeito de parallax nas seções */
.parallax-section {
  transition: transform 0.1s ease-out;
}

/* Smooth navigation com easing */
.smooth-nav {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* Offset para header fixo */
}

/* Efeito de blur durante scroll rápido */
.scroll-blur {
  transition: filter 0.2s ease;
}

.scroll-blur.blurred {
  filter: blur(2px);
}

/* Indicador de progresso de scroll */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, #d946ef, #8b5cf6);
  z-index: 9999;
  transition: width 0.1s ease;
}
/* Classe para screen readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}



/* Efeito de stagger nas animações */
.stagger-children > * {
  animation-delay: calc(var(--stagger-delay, 0.1s) * var(--item-index, 0));
}

/* Menu mobile suave */
#mobileMenu {
  position: fixed;
  inset: 0;
  z-index: 9999;
  isolation: isolate;
}

#mobileOverlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.4s ease;
}

#mobileSheet {
  position: fixed;
  right: 0;
  top: 0;
  height: 100%;
  width: 80%;
  max-width: 320px;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  overscroll-behavior: contain;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.25);
}

#mobileSheet.show {
  transform: translateX(0);
}

 /* Para dispositivos com pouco suporte à position:fixed */
.mobile-menu-open {
  position: fixed;
  width: 100%;
  overflow: hidden;
  height: 100vh;
}

/* ===== ELEMENTOS ADICIONAIS PARA NAVEGAÇÃO =====

/* Breadcrumb styles - VERSÃO CORRIGIDA */
.breadcrumb-nav {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(139, 92, 246, 0.1);
  padding: 12px 0;
  position: sticky;
  top: 64px;
  z-index: 70;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.dark .breadcrumb-nav {
  background: rgba(23, 23, 23, 0.85);
  border-bottom-color: rgba(139, 92, 246, 0.2);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.breadcrumb-list {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin: 0 auto !important;
  max-width: 1280px !important;
  padding: 0 20px !important;
  list-style: none !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.breadcrumb-item {
  display: flex !important;
  align-items: center !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.breadcrumb-link {
  color: #6b7280 !important;
  text-decoration: none !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 6px 12px !important;
  border-radius: 8px !important;
  transition: all 0.2s ease !important;
  background: rgba(255, 255, 255, 0.5) !important;
  border: 1px solid rgba(139, 92, 246, 0.1) !important;
}

.breadcrumb-link:hover {
  background: rgba(139, 92, 246, 0.15) !important;
  color: #8b5cf6 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2) !important;
}

.dark .breadcrumb-link {
  color: #9ca3af !important;
  background: rgba(38, 38, 38, 0.6) !important;
  border-color: rgba(139, 92, 246, 0.2) !important;
}

.dark .breadcrumb-link:hover {
  background: rgba(139, 92, 246, 0.25) !important;
  color: #a855f7 !important;
}

.breadcrumb-item.current {
  color: #8b5cf6 !important;
  font-weight: 600 !important;
  background: linear-gradient(135deg, #d946ef15, #8b5cf615) !important;
  padding: 6px 12px !important;
  border-radius: 8px !important;
  border: 1px solid rgba(139, 92, 246, 0.3) !important;
}

.breadcrumb-separator {
  color: #9ca3af !important;
  font-size: 14px !important;
  margin: 0 6px !important;
  opacity: 0.6 !important;
}

.dark .breadcrumb-separator {
  color: #6b7280 !important;
}

.breadcrumb-icon {
  font-size: 16px !important;
  margin-right: 6px !important;
  filter: grayscale(0) !important;
}

.breadcrumb-item.current .breadcrumb-icon {
  filter: brightness(1.2) !important;
}

/* Indicador de seção ativa na navegação */
.nav-active {
  color: #8b5cf6 !important;
  position: relative;
}

.nav-active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #d946ef, #8b5cf6);
  border-radius: 1px;
}

/* Botão Voltar ao Topo */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #d946ef, #8b5cf6);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(100px) scale(0.8);
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3);
  backdrop-filter: blur(10px);
}

.back-to-top.visible {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: all;
}

.back-to-top:hover {
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.4);
  background: linear-gradient(135deg, #e879f9, #a855f7);
}

.back-to-top:active {
  transform: translateY(0) scale(0.95);
}

/* Ícone da seta */
.arrow-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  width: 20px;
  height: 20px;
  z-index: 3;
  pointer-events: none;
}



/* Círculo de progresso */
.progress-circle {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.progress-ring {
  fill: none;
  stroke: rgba(255, 255, 255, 0.2);
  stroke-width: 2;
}

.progress-ring-fill {
  fill: none;
  stroke: #ffffff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 163.36; /* 2 * PI * 26 */
  stroke-dashoffset: 163.36;
  transform-origin: 50% 50%;
  transform: rotate(-90deg);
  transition: stroke-dashoffset 0.2s ease;
}


/* ===== OTIMIZAÇÕES MOBILE ===== */
/* Melhorias de responsividade mobile */



@media (max-width: 768px) {
  /* Header mobile otimizado */
  header { 
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
  
  /* Textos otimizados para mobile */
  h1 { font-size: 2.5rem !important; line-height: 1.1; }
  h2 { font-size: 1.75rem !important; line-height: 1.2; }
  h3 { font-size: 1.25rem !important; }
  
  /* Padding e margem mobile */
  .mx-auto { padding-left: 1rem; padding-right: 1rem; }
  section { padding-top: 2rem; padding-bottom: 2rem; }
  
  /* Botões mobile friendly */
  .btn-micro {
    min-height: 44px; /* Área de toque recomendada */
    padding: 12px 20px;
    font-size: 16px; /* Previne zoom no iOS */
  }
  
  /* Cards com spacing mobile */
  .card-hover {
    margin-bottom: 1rem;
    padding: 1rem;
  }
  
  
  /* Otimizações para portfolio mobile */
  .boxportifolio {
    margin-bottom: 2rem;
  }
  
  .portifolio {
    height: 300px !important;
  }
  
  /* CENTRALIZAÇÃO PARA SEÇÃO HERO EM MOBILE */
  .reveal.is-visible.slide-in-up {
    text-align: center !important;
  }
  
  .reveal.is-visible.slide-in-up h1 {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  
  .reveal.is-visible.slide-in-up p {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  
  .reveal.is-visible.slide-in-up .flex {
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 1rem !important;
  }
  
  .reveal.is-visible.slide-in-up .flex a {
    width: 100% !important;
    max-width: 280px !important;
    text-align: center !important;
  }
  
  .reveal.is-visible.slide-in-up .flex.items-center {
    justify-content: center !important;
    text-align: center !important;
  }
}



 /* revisar */


/* Otimizações gerais para dispositivos móveis (mobile e tablet) */
@media (max-width: 1024px) {
  /* Melhorias no slider */
  #slider {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Botões de navegação com efeitos suaves e gradiente destacado */
  #btnPrev, #btnNext, #testiPrev, #testiNext {
    width: 44px;
    height: 44px;
  }
}

/* Melhorias para gestos touch em links do menu mobile */
@media (hover: none) and (pointer: coarse) {
  #mobileSheet a {
    -webkit-tap-highlight-color: rgba(139, 92, 246, 0.2);
  }
  
  #mobileSheet a:active {
    background-color: rgba(139, 92, 246, 0.15) !important;
    transform: scale(0.98);
  }
  
  /* Botões maiores para melhor área de toque */
  #mobileSheet a, #mobileSheet button {
    min-height: 44px;
    padding: 12px 16px;
  }
  
  /* Melhorar feedback visual */
  #menuOpen:active, #menuClose:active {
    background-color: rgba(139, 92, 246, 0.15) !important;
  }
}

/* Gestos touch e interações mobile */
@media (hover: none) and (pointer: coarse) {
  /* Remove hover effects em touch devices */
  .card-hover:hover {
    transform: none;
    box-shadow: inherit;
  }
  
  .btn-micro:hover {
    transform: none;
    filter: none;
  }
  

  /* Touch feedback */
  .btn-micro:active {
    transform: scale(0.95);
    transition: transform 0.1s ease;
    background-color: rgba(139, 92, 246, 0.1);
  }
  
  /* Scroll suave para touch */
  * {
    -webkit-overflow-scrolling: touch;
  }
}
  /* Simplifica bordas animadas */
  .price-border::before,
  .media-border::before {
    animation: none;
    background: linear-gradient(90deg, #a78bfa, #f472b6);
  }

  
  /* Otimiza reveal animations */
  .reveal {
    transition: opacity 0.3s ease;
    transform: none;
  }
  
  .reveal.is-visible {
    transform: none;
  }
  


.txt-animado .dinâmico {
  background: linear-gradient(90deg, #d946ef, #8b5cf6, #ff00d4);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 4s infinite linear;
  border-right: 3px solid #5ac0e9;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

