/* ==========================================================================
   BIO DESIGN SYSTEM & VARIABLES - CHATCLEAN PALETTE
   ========================================================================== */
:root {
  /* ChatClean Brand Palette */
  --brand-green: #00C950;           /* Verde vivo principal (site/hero) */
  --brand-green-bright: #00E05C;    /* Verde luminoso para CTAs */
  --brand-emerald: #00D78E;         /* Verde esmeralda do gradiente */
  --brand-mint: #52BD68;            /* Verde do símbolo (balão do logo) */
  --brand-green-dark: #05963F;      /* Verde profundo de apoio */
  --brand-green-deep: #04421F;      /* Verde escuro para textos/selos */
  --brand-ink: #041A0F;             /* Quase preto esverdeado */
  --brand-ink-deep: #020D07;        /* Preto absoluto da marca */
  --brand-mint-light: #C7F5D6;      /* Verde claro para tags e destaques */
  --brand-mint-pale: #E9FBEF;       /* Verde muito claro (fundos suaves) */

  --bg-primary: #FFFFFF;            /* Branco puro no rodapé para leitura limpa */
  --bg-secondary: #F2FBF5;          /* Verde neblina bem claro */
  --text-main: #0C1F14;             /* Verde-carvão de alto contraste no branco */
  --text-muted: #5A6B60;            /* Cinza esverdeado para descrições */
  --text-light: #C7F5D6;            /* Texto claro sobre fundos escuros */

  /* Fonts */
  --font-title: 'Poppins', 'Outfit', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  /* Borders and Shadow Elevation */
  --border-mint-badge: 2px solid #1F7A42;
  --border-mint-glow: 1px solid rgba(82, 189, 104, 0.35);
  --shadow-heavy: 0 20px 45px -10px rgba(4, 26, 15, 0.28);
  --shadow-badge: 0 10px 30px rgba(0, 0, 0, 0.45);

  /* Border Radii */
  --radius-card: 18px;

  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
}

/* ==========================================================================
   RESET & GLOBAL STYLES
   ========================================================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
}

/* Barra de rolagem oculta: a pagina continua rolando por toque, roda e teclado,
   so o indicador lateral deixa de ocupar espaco. */
html {
  scrollbar-width: none;      /* Firefox */
  -ms-overflow-style: none;   /* Edge legado */
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0;
  height: 0;
}

body {
  /* Gradiente vertical verde ChatClean escorrendo para o branco ao longo do scroll */
  background: linear-gradient(180deg, #030F09 0%, #06371F 18%, #00C950 45%, #F2FBF5 80%, #FFFFFF 100%) no-repeat;
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100dvh;
  position: relative;
}

/* Image select and drag protection */
img {
  max-width: 100%;
  height: auto;
  display: block;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  user-drag: none;
  pointer-events: none;
}

/* ==========================================================================
   BACKGROUND WAVE LINES (Fluxo de conversas da marca)
   ========================================================================== */
.bg-waves-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-height: 100dvh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  opacity: 0.85;
}

.bg-waves-pattern svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   MAIN CONTAINER
   ========================================================================== */
.bio-container {
  width: 100%;
  max-width: 480px; /* Standard mobile first layout */
  padding: 40px 20px 64px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* ==========================================================================
   HEADER SECTION (PRODUCT ARCH & BRAND LOCKUP)
   ========================================================================== */
.bio-header {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 28px;
}

/* Mockup Header Container */
.profile-header-bg {
  position: relative;
  width: calc(100% + 40px);
  margin-left: -20px;
  margin-right: -20px;
  margin-top: -40px;
  height: 248px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  overflow: visible;
  margin-bottom: 0px;
}

/* Arch Frame behind the product mockup */
.profile-arch-frame {
  position: absolute;
  top: 30px;
  width: 194px;
  height: 194px;
  border-radius: 50% 50% 0 0;
  background: radial-gradient(circle, #00E86D 0%, #05A247 50%, #04331C 100%);
  border: 8px solid #042C18;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 0 20px rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.profile-arch-frame::after {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 50% 50% 0 0;
  border: 2px solid rgba(199, 245, 214, 0.4);
  background-image: radial-gradient(circle, rgba(0, 215, 142, 0.28) 20%, transparent 80%);
  pointer-events: none;
}

/* ChatClean Product Mockup Photo */
.chatclean-mockup {
  height: 236px;
  width: auto;
  /* Trava a proporcao que o SVG original declarava (88x109). O WebP e composto
     no tamanho nativo do raster (438x543), entao sem isto a largura mudaria
     0,17px e deslocaria o subpixel de tudo que vem abaixo. */
  aspect-ratio: 88 / 109;
  object-fit: contain;
  object-position: bottom center;
  transform: translateY(4px);
  z-index: 2;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.45));
}

/* ChatClean Horizontal Brand Lockup */
.brand-name-wrapper {
  position: relative;
  z-index: 3;
  margin-top: 14px;
  width: 78%;
  max-width: 288px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.brand-name-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 22px rgba(2, 13, 7, 0.55));
  transition: transform 0.3s ease;
}

/* ==========================================================================
   FLOATING CHAT BUBBLES (Símbolo ChatClean - Movimento CSS 60 FPS)
   ========================================================================== */
.bubble-floating-wrapper {
  position: absolute;
  pointer-events: none;
  z-index: 10;
  filter: drop-shadow(0 14px 28px rgba(2, 26, 15, 0.55));
}

/* Left Bubble: dentro da área do arco (entrada simultânea de cima) */
.bubble-left {
  top: 62px;
  left: 30px;
  width: 74px;
  height: 74px;
  animation: bubbleSlideFromTopLeft 1.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Right Bubble: acima do lockup da marca (entrada simultânea de cima) */
.bubble-right {
  top: -78px;
  right: -8px;
  width: 78px;
  height: 78px;
  animation: bubbleSlideFromTopRight 1.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.bubble-mark {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: smooth;
  image-rendering: auto;
  -ms-interpolation-mode: bicubic;
  outline: 1px solid transparent;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform;
}

/* Bolha branca (esquerda) - inclinação diagonal (+22°) e levitação 60 FPS */
.bubble-mark-white {
  animation: floatBubbleLeft 5.2s ease-in-out infinite alternate;
}

/* Bolha verde (direita) - inclinação diagonal (-22°) e levitação 60 FPS */
.bubble-mark-green {
  animation: floatBubbleRight 5.5s ease-in-out infinite alternate;
}

/* Entrada em escala vindo de cima (pequeninas descendo para a posição) */
@keyframes bubbleSlideFromTopLeft {
  0% {
    opacity: 0;
    transform: translateY(-90px) scale(0.18);
  }
  75% {
    opacity: 1;
    transform: translateY(4px) scale(1.05);
  }
  100% {
    opacity: 1;
    transform: translateY(0px) scale(1);
  }
}

@keyframes bubbleSlideFromTopRight {
  0% {
    opacity: 0;
    transform: translateY(-90px) scale(0.18);
  }
  75% {
    opacity: 1;
    transform: translateY(4px) scale(1.05);
  }
  100% {
    opacity: 1;
    transform: translateY(0px) scale(1);
  }
}

/* Loops de inclinação diagonal e levitação */
@keyframes floatBubbleLeft {
  0% {
    transform: rotate(22deg) translateY(0px) scale(0.98);
  }
  50% {
    transform: rotate(16deg) translateY(-10px) scale(1.03);
  }
  100% {
    transform: rotate(22deg) translateY(0px) scale(0.98);
  }
}

@keyframes floatBubbleRight {
  0% {
    transform: rotate(-22deg) translateY(0px) scale(0.98);
  }
  50% {
    transform: rotate(-16deg) translateY(-10px) scale(1.03);
  }
  100% {
    transform: rotate(-22deg) translateY(0px) scale(0.98);
  }
}

/* Welcome texts area below brand lockup */
.profile-welcome-area {
  padding: 0 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-top: 18px;
}

.profile-quote {
  font-family: var(--font-title);
  font-size: 1.35rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 6px;
  line-height: 1.3;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.profile-tagline {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.92);
  max-width: 38ch;
  line-height: 1.45;
  margin-bottom: 10px;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.profile-crn {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-mint-light);
  background: rgba(4, 26, 15, 0.45);
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid rgba(82, 189, 104, 0.35);
  backdrop-filter: blur(4px);
}

/* ==========================================================================
   3D POP-OUT BANNERS SECTION
   ========================================================================== */
.bio-links {
  display: flex;
  flex-direction: column;
  gap: 28px; /* Espaçamento entre os cards 3D pop-out */
  width: 100%;
  margin-top: 20px;
  margin-bottom: 40px;
}

/* Base Banner Card styling */
.bio-banner {
  display: flex;
  position: relative;
  width: 100%;
  height: 150px;
  border-radius: var(--radius-card);
  text-decoration: none;
  box-shadow: var(--shadow-heavy);
  transition: var(--transition-smooth);
  overflow: visible; /* CRITICAL for 3D photo pop-out */
}

/* Clipping container for background image & gradient overlay */
.banner-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: var(--radius-card);
  overflow: hidden;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.banner-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Banner Color Palettes matching ChatClean Brand Colors */

/* Banner 1: Verde profundo (WhatsApp / Demo - Logo à ESQUERDA) */
.bio-banner-whatsapp .banner-bg::before {
  background-image: linear-gradient(to right, rgba(0, 201, 80, 0.16) 0%, rgba(4, 90, 40, 0.88) 55%, rgba(2, 32, 17, 0.98) 100%), url('bg_whatsapp.webp');
}

/* Banner 2: Esmeralda (Plataforma - Foto à DIREITA) */
.bio-banner-site .banner-bg::before {
  background-image: linear-gradient(to left, rgba(0, 215, 142, 0.18) 0%, rgba(3, 78, 50, 0.9) 55%, rgba(2, 26, 20, 0.98) 100%), url('bg_whatsapp.webp');
}

/* Banner 3: Verde vivo (API Oficial - Foto à ESQUERDA) */
.bio-banner-api .banner-bg::before {
  background-image: linear-gradient(to right, rgba(0, 201, 80, 0.16) 0%, rgba(6, 66, 34, 0.9) 55%, rgba(2, 20, 12, 0.98) 100%), url('bg_whatsapp.webp');
}

/* Banner 4: Verde menta (Blog - Foto à DIREITA) */
.bio-banner-blog .banner-bg::before {
  background-image: linear-gradient(to left, rgba(82, 189, 104, 0.18) 0%, rgba(5, 56, 32, 0.9) 55%, rgba(2, 18, 11, 0.98) 100%), url('bg_whatsapp.webp');
}

/* 3D Photo Overlay Styling */
.banner-photo-wrapper {
  position: absolute;
  bottom: 0;
  left: 8px;
  width: 118px;
  height: 170px;
  overflow: visible;
  pointer-events: none;
  z-index: 2;
}

/* Right-aligned Photo Wrapper for Banners 2 & 4 */
.banner-photo-wrapper-right {
  position: absolute;
  bottom: 0;
  right: 8px;
  left: auto;
  width: 118px;
  height: 170px;
  overflow: visible;
  pointer-events: none;
  z-index: 2;
}

.banner-photo {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
  transition: var(--transition-smooth);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 82%, rgba(0, 0, 0, 0) 100%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 82%, rgba(0, 0, 0, 0) 100%);
}

/* Mockups de celular saltando para fora do card.
   Sem drop-shadow: o blur do filtro e recortado na regiao do filtro e deixa
   um veu escuro do tamanho exato do retangulo da imagem, cuja borda reta fica
   visivel ao lado do aparelho. Os mockups ja tem sombreamento proprio. */
.banner-photo-mockup {
  transform: scale(1.08) translateY(0);
  transform-origin: bottom center;
}

/* Logo lockup centralizado (Banner 1) em vez de mockup recortado */
.banner-logo-wrapper {
  bottom: auto;
  top: 50%;
  height: 118px;
  width: 126px;
  transform: translateY(-50%);
}

.banner-photo-logo {
  bottom: auto;
  top: 0;
  height: 100%;
  object-position: center;
  transform: scale(1);
  transform-origin: center;
  -webkit-mask-image: none;
  mask-image: none;
}

/* Banner Content Block (Foto à esquerda - Banners 1 & 3) */
.banner-content {
  margin-left: 134px;
  padding: 16px 10px 16px 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  height: 100%;
  width: calc(100% - 134px);
  z-index: 3;
  position: relative;
}

/* Banner Content Block (Foto à direita - Banners 2 & 4) */
.banner-content-left {
  margin-left: 0;
  margin-right: 124px;
  padding: 16px 4px 16px 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  height: 100%;
  width: calc(100% - 124px);
  z-index: 3;
  position: relative;
}

/* Banner do WhatsApp: mais respiro entre o lockup da marca e o texto. */
.bio-banner-whatsapp .banner-content {
  margin-left: 150px;
  width: calc(100% - 150px);
  padding-right: 4px;
}

/* Banner da API: aparelho espelhado ocupa mais o lado esquerdo do card,
   entao o bloco de texto ganha um respiro extra a esquerda. */
.bio-banner-api .banner-content {
  margin-left: 148px;
  width: calc(100% - 148px);
  padding-right: 4px;
}

.banner-tag {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--brand-mint-light);
  margin-bottom: 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tag-api {
  color: #9DF3CD;
}

.tag-blog {
  color: #BFF0CB;
}

/* Títulos brancos dentro dos banners */
.banner-title {
  font-family: var(--font-title);
  font-size: 1.02rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 8px;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

/* CTA Buttons inside Banners */
.banner-btn {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 7px 15px;
  border-radius: 30px;
  text-transform: uppercase;
  display: inline-block;
  transition: var(--transition-smooth);
}

/* Color schemes for CTA buttons */
.bio-banner-whatsapp .banner-btn {
  background: linear-gradient(90deg, #00E05C 0%, #00A544 100%);
  color: #04220F;
  box-shadow: 0 4px 12px rgba(0, 201, 80, 0.45);
}

.bio-banner-site .banner-btn {
  background-color: #FFFFFF;
  color: #05762F;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.bio-banner-api .banner-btn {
  background: linear-gradient(90deg, #00D78E 0%, #00A544 100%);
  color: #032216;
  box-shadow: 0 4px 12px rgba(0, 215, 142, 0.4);
}

.bio-banner-blog .banner-btn {
  background: linear-gradient(90deg, #52BD68 0%, #2E9C51 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(82, 189, 104, 0.4);
}

/* Micro-interactions: Desktop Hover & Mobile Active/Tap Animations */
@media (hover: hover) {
  .bio-banner:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 45px rgba(4, 26, 15, 0.38);
  }

  .bio-banner:hover .banner-bg::before {
    transform: scale(1.06);
  }

  .bio-banner:hover .banner-photo-mockup {
    transform: scale(1.13) translateY(-3px);
  }

  .bio-banner:hover .banner-photo-logo {
    transform: scale(1.07);
  }

  .bio-banner-whatsapp:hover .banner-btn,
  .bio-banner-api:hover .banner-btn,
  .bio-banner-blog:hover .banner-btn {
    filter: brightness(1.1);
  }

  .bio-banner-site:hover .banner-btn {
    background-color: var(--brand-mint-pale);
  }
}

/* Touch Active Animations for Mobile Click/Tap (Matching Desktop Hover Pop-out) */
.bio-banner:active {
  transform: translateY(-4px) scale(0.99);
  box-shadow: 0 22px 45px rgba(4, 26, 15, 0.38);
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

.bio-banner:active .banner-bg::before {
  transform: scale(1.06);
}

.bio-banner:active .banner-photo-mockup {
  transform: scale(1.13) translateY(-3px);
}

.bio-banner:active .banner-photo-logo {
  transform: scale(1.07);
}

.bio-banner-whatsapp:active .banner-btn,
.bio-banner-api:active .banner-btn,
.bio-banner-blog:active .banner-btn {
  filter: brightness(1.1);
}

/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */
.bio-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  border-top: 1px solid rgba(4, 66, 31, 0.12);
  padding-top: 32px;
}

.seal-container {
  margin-bottom: 16px;
}

.seal-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(180deg, #063A1F 0%, #02180D 100%);
  border: 2px solid var(--brand-mint);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(4, 26, 15, 0.3);
}

.seal-logo {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.footer-legal {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-green-deep);
  margin-bottom: 6px;
}

.footer-copy {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--text-muted);
}

/* ==========================================================================
   RESPONSIVENESS (DESKTOP MODE)
   ========================================================================== */
@media (min-width: 600px) {
  .bio-container {
    max-width: 560px;
    padding: 56px 24px 72px 24px;
  }

  .bio-header {
    margin-bottom: 36px;
  }

  .profile-header-bg {
    height: 286px;
  }

  .profile-arch-frame {
    top: 36px;
    width: 224px;
    height: 224px;
  }

  .chatclean-mockup {
    height: 274px;
  }

  .brand-name-wrapper {
    margin-top: 16px;
    max-width: 352px;
  }

  .bubble-left {
    top: 78px;
    left: 52px;
    width: 90px;
    height: 90px;
  }

  .bubble-right {
    top: -96px;
    right: -14px;
    width: 94px;
    height: 94px;
  }

  .profile-quote {
    font-size: 1.55rem;
  }

  .profile-tagline {
    font-size: 0.95rem;
    max-width: 42ch;
  }

  .bio-links {
    gap: 36px;
  }

  .bio-banner {
    height: 165px;
  }

  .banner-photo-wrapper,
  .banner-photo-wrapper-right {
    width: 128px;
    height: 185px;
  }

  .banner-photo-wrapper {
    left: 10px;
  }

  .banner-photo-wrapper-right {
    right: 10px;
    left: auto;
  }

  .banner-logo-wrapper {
    width: 128px;
    height: 128px;
  }

  .banner-content {
    margin-left: 138px;
    width: calc(100% - 138px);
    padding: 20px 20px 20px 6px;
  }

  .bio-banner-whatsapp .banner-content {
    margin-left: 174px;
    width: calc(100% - 174px);
    padding-right: 20px;
  }

  .bio-banner-api .banner-content {
    margin-left: 168px;
    width: calc(100% - 168px);
    padding-right: 20px;
  }

  .banner-content-left {
    margin-right: 138px;
    margin-left: 0;
    width: calc(100% - 138px);
    padding: 20px 6px 20px 32px;
  }

  .banner-title {
    font-size: 1.22rem;
    margin-bottom: 10px;
  }

  .banner-btn {
    font-size: 0.72rem;
    padding: 9px 20px;
  }
}
