/* ai.css */
/* Trust Carbon AI Forest Analysis Section */
.trustcarbon-scanner-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background: linear-gradient(180deg, #0a0f0c 0%, #1b1b1b 50%, #0a0f0c 100%);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 0 40px; /* Reduzido de 80px para 40px no topo */
}

.trustcarbon-scanner-section * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Hero Content - AGORA 100% WIDTH */
.tc-hero-content {
  position: relative;
  z-index: 100;
  width: 100%;
  text-align: center;
  padding: 1rem 0;
}

/* Container interno para textos com padding */
.tc-text-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Logo com filtro branco */
.tc-logo-wrapper {
  margin-bottom: 2rem;
  animation: fadeInDown 1s ease;
}

.tc-logo-white {
  height: 70px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

/* Título Principal */
.tc-hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1rem;
  animation: fadeInUp 1s ease 0.2s both;
  color: white;
  text-shadow: 0 0 30px rgba(0, 255, 150, 0.3);
}

.tc-small-text {
  display: block;
  font-size: 1.2rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.5rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.tc-gradient-text {
  background: linear-gradient(135deg, #00ff96, #00ffcc, #00ff96);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 20px rgba(0, 255, 150, 0.5));
}

/* Subtítulo */
.tc-hero-subtitle {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0;
  font-weight: 300;
  animation: fadeInUp 1s ease 0.3s both;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.tc-hero-subtitle strong {
  color: #00ff96;
  font-weight: 600;
}

/* Container da Animação - 100% WIDTH */
#tc-scanner-container {
  position: relative;
  width: 100%;
  height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1rem 0;
  overflow: hidden;
}

/* Stream de Cards */
#tc-cardStream {
  position: absolute;
  width: 100%;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  left: 0;
  z-index: 10;
}

#tc-cardLine {
  display: flex;
  align-items: center;
  gap: 60px;
  white-space: nowrap;
  will-change: transform;
  position: relative;
}

/* Cards */
.tc-card-wrapper {
  position: relative;
  width: 400px;
  height: 250px;
  flex-shrink: 0;
}

.tc-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 400px;
  height: 250px;
  border-radius: 15px;
  overflow: hidden;
}

.tc-card-normal {
  background: transparent;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
  z-index: 2;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 255, 150, 0.1);
}

.tc-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
  filter: brightness(0.9) contrast(1.1);
}

.tc-card-ascii {
  background: transparent;
  z-index: 1;
  position: absolute;
  top: 0;
  left: 0;
  width: 400px;
  height: 250px;
  border-radius: 15px;
  overflow: hidden;
}

/* TEXTO ASCII */
.tc-ascii-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  color: rgba(0, 255, 150, 0.9);
  font-family: "Courier New", monospace;
  font-size: 9px;
  line-height: 10px;
  overflow: hidden;
  white-space: pre;
  padding: 4px;
  clip-path: inset(0 calc(100% - var(--clip-left, 0%)) 0 0);
  animation: tc-glitch 0.1s infinite linear alternate-reverse;
  -webkit-mask-image: linear-gradient(
    to right,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0.8) 30%,
    rgba(0, 0, 0, 0.6) 50%,
    rgba(0, 0, 0, 0.4) 80%,
    rgba(0, 0, 0, 0.2) 100%
  );
}

@keyframes tc-glitch {
  0% { opacity: 1; }
  50% { opacity: 0.95; }
  100% { opacity: 1; }
}

/* Clip paths para efeito scanner */
.tc-card-normal {
  clip-path: inset(0 0 0 var(--clip-right, 0%));
}

.tc-card-ascii {
  clip-path: inset(0 calc(100% - var(--clip-left, 0%)) 0 0);
}

/* Canvas - CENTRALIZADO */
#tc-particleCanvas {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 100%;
  height: 250px;
  z-index: 0;
  pointer-events: none;
}

#tc-scannerCanvas {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 100%;
  height: 300px;
  z-index: 15;
  pointer-events: none;
}

/* Conteúdo adicional - COM CONTAINER INTERNO */
.tc-bottom-content {
  position: relative;
  z-index: 100;
  width: 100%;
  text-align: center;
  margin-top: 2rem;
}

.tc-hero-description {
  margin-bottom: 3rem;
  animation: fadeInUp 1s ease 0.4s both;
}

.tc-hero-description p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

.tc-hero-description strong {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
}

.tc-status-grid {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 3rem;
  animation: fadeInUp 1s ease 0.5s both;
  flex-wrap: wrap;
}

.tc-status-item {
  text-align: center;
  min-width: 150px;
}

.tc-status-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 900;
  color: #00ff96;
  text-shadow: 0 0 20px rgba(0, 255, 150, 0.5);
  margin-bottom: 0.25rem;
}

.tc-status-label {
  display: block;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.tc-scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.5);
  animation: fadeInUp 1s ease 0.6s both;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tc-scroll-indicator:hover {
  color: #00ff96;
}

.tc-scroll-indicator span {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.tc-scroll-indicator i {
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* OCULTA NAVBAR COMPLETAMENTE NA SEÇÃO AI */
body.ai-section-active .tc-nav,
body.ai-section-active .navbar {
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateY(-100%) !important;
  transition: all 0.3s ease;
  pointer-events: none !important;
}

/* Quando sair da seção, navbar volta ao normal */
body:not(.ai-section-active) .tc-nav,
body:not(.ai-section-active) .navbar {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: all 0.3s ease;
  pointer-events: auto;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
  #tc-scanner-container {
    height: 300px;
  }
  
  .tc-card-wrapper {
    width: 350px;
    height: 218px;
  }
  
  .tc-card {
    width: 350px;
    height: 218px;
  }
  
  #tc-cardLine {
    gap: 40px;
  }
  
  .tc-ascii-content {
    font-size: 8px;
    line-height: 9px;
  }
  
  .tc-text-container {
    padding: 0 1.5rem;
  }
}

@media (max-width: 768px) {
  .trustcarbon-scanner-section {
    padding: 60px 0 20px;
  }
  
  .tc-hero-title {
    font-size: 2rem;
  }
  
  .tc-small-text {
    font-size: 0.9rem;
  }
  
  .tc-hero-subtitle {
    font-size: 1.1rem;
  }
  
  #tc-scanner-container {
    height: 250px;
    margin: 2rem 0;
  }
  
  .tc-card-wrapper {
    width: 280px;
    height: 175px;
  }
  
  .tc-card {
    width: 280px;
    height: 175px;
  }
  
  #tc-cardLine {
    gap: 30px;
  }
  
  .tc-ascii-content {
    font-size: 7px;
    line-height: 8px;
    padding: 2px;
  }
  
  .tc-hero-description p {
    font-size: 0.95rem;
  }
  
  .tc-status-grid {
    gap: 1.5rem;
  }
  
  .tc-status-number {
    font-size: 1.8rem;
  }
  
  .tc-status-label {
    font-size: 0.8rem;
  }
  
  .tc-text-container {
    padding: 0 1rem;
  }
  
  #tc-particleCanvas {
    height: 200px;
  }
  
  #tc-scannerCanvas {
    height: 250px;
  }
}

@media (max-width: 480px) {
  #tc-scanner-container {
    height: 200px;
  }
  
  .tc-card-wrapper {
    width: 240px;
    height: 150px;
  }
  
  .tc-card {
    width: 240px;
    height: 150px;
  }
  
  #tc-particleCanvas {
    height: 180px;
  }
  
  #tc-scannerCanvas {
    height: 220px;
  }
  
  .tc-ascii-content {
    font-size: 6px;
    line-height: 7px;
  }
  
  .tc-hero-title {
    font-size: 1.75rem;
  }
  
  .tc-status-number {
    font-size: 1.5rem;
  }
}
/* TORNA O TEXTO ASCII NÃO SELECIONÁVEL/COPIÁVEL */
.tc-ascii-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  color: rgba(0, 255, 150, 0.9);
  font-family: "Courier New", monospace;
  font-size: 9px;
  line-height: 10px;
  overflow: hidden;
  white-space: pre;
  padding: 4px;
  clip-path: inset(0 calc(100% - var(--clip-left, 0%)) 0 0);
  animation: tc-glitch 0.1s infinite linear alternate-reverse;
  -webkit-mask-image: linear-gradient(
    to right,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0.8) 30%,
    rgba(0, 0, 0, 0.6) 50%,
    rgba(0, 0, 0, 0.4) 80%,
    rgba(0, 0, 0, 0.2) 100%
  );
  
  /* ADICIONE ESTAS LINHAS PARA IMPEDIR CÓPIA */
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  pointer-events: none;
}

/* Adicione também para o card wrapper inteiro */
.tc-card-wrapper,
.tc-card,
.tc-card-ascii {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
/* LOADER DE PÁGINA COMPLETO */
#page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(180deg, #0a0f0c 0%, #1b1b1b 50%, #0a0f0c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#page-loader.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-content {
  text-align: center;
  animation: fadeInLoader 0.5s ease;
}

.loader-logo {
  width: 150px;
  height: auto;
  margin-bottom: 2rem;
  filter: brightness(0) invert(1);
  opacity: 0.9;
  animation: pulseLoader 2s ease infinite;
}

.loader-spinner {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.5rem;
  border: 3px solid rgba(0, 255, 150, 0.1);
  border-top: 3px solid #00ff96;
  border-radius: 50%;
  animation: spinLoader 1s linear infinite;
}

.loader-text {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: fadeInOut 2s ease infinite;
}

@keyframes fadeInLoader {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseLoader {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

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

@keyframes fadeInOut {
  0%, 100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

/* Esconde o conteúdo até carregar */
body.loading {
  overflow: hidden;
}

body.loading > *:not(#page-loader) {
  opacity: 0;
}