/* ============================================================
   LAURA CASTIGLIONI — LINK NA BIO
   Design Responsivo e Cores Atualizadas
   ============================================================ */

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Branding Guide Laura Castiglioni */
  --bg-color:      #5b5a43; /* Nova cor de fundo solicitada (verde musgo escuro) */
  --color-dark:    #363835; /* Estabilidade e Solidez */
  --color-brown:   #9E7E65; /* Raízes e Base Emocional */
  --color-gold:    #DDB87C; /* Prosperidade */
  --color-green:   #A4B486; /* Renascimento */
  --color-cream:   #F4EFE6; /* Confiança e Desbloqueio */
  
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Montserrat', sans-serif;

  --transition:   0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --gap-xs:  0.5rem;
  --gap-sm:  1rem;
  --gap-md:  1.75rem;
  --gap-lg:  2.5rem;
  --gap-xl:  3.5rem;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

html, body {
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--color-cream); /* Texto principal claro para o fundo escuro */
  overflow-x: hidden;
  position: relative;
}

/* ── Fundo Textura e Overlay ──────────────────────────────── */

.bg-texture {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../img/textura-fundo.png?v=1.1');
  background-size: cover; /* Faz a imagem cobrir toda a tela suavemente */
  background-position: center;
  background-repeat: no-repeat; /* Remove as repetições e emendas duras */
  opacity: 0.85;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 0;
}

.bg-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(
    ellipse 100% 80% at 50% 0%,
    rgba(255, 255, 255, 0.25) 0%, /* Luz suave no topo */
    rgba(233, 212, 189, 0) 50%,
    rgba(158, 126, 101, 0.15) 100% /* Sombra suave embaixo */
  );
  z-index: 1;
  pointer-events: none;
}

/* ── Fundo Marquee ────────────────────────────────────────── */
.bg-marquee {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.marquee-track {
  display: flex;
  gap: 3.5rem;
  white-space: nowrap;
  animation: marqueeScroll 45s linear infinite;
  will-change: transform;
}

.marquee-track span {
  font-family: var(--font-display);
  font-size: clamp(5rem, 15vw, 12rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(158, 126, 101, 0.08); /* Marrom bem sutil para a marca d'água */
  text-transform: uppercase;
  user-select: none;
  flex-shrink: 0;
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Canvas Partículas ────────────────────────────────────── */
#particles-canvas {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.8;
}

/* ── Container Principal ──────────────────────────────────── */
.container {
  position: relative;
  z-index: 10;
  max-width: 520px;
  margin: 0 auto;
  padding: 0 0 var(--gap-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* ══════════════════════════════════════════════════════════
   HERO SECTION
══════════════════════════════════════════════════════════ */
.hero-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.hero-photo-wrap {
  position: relative;
  width: 100%;
  max-width: 480px;
  height: 330px; /* Reduzido para puxar todo o conteúdo para cima */
  display: flex;
  justify-content: center;
  align-items: flex-end; /* Alinha a base da foto embaixo */
  opacity: 0;
  transform: translateY(24px);
  /* Sem mix-blend-mode ou background-image, usaremos a tag img real */
}

.hero-photo { 
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain; /* Mantém a proporção sem cortar */
  object-position: bottom center; /* Fixa a base na parte inferior */
}

.hero-photo-fade {
  display: none; /* Remove o gradiente artificial (o "fundo" falso) */
}

/* ── Logo Ajustado (Mais Proporcional e Responsivo) ───────── */
.logo-wrap {
  position: relative;
  z-index: 5;
  opacity: 0;
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: -155px; /* Subiu mais para puxar o conteúdo */
  margin-bottom: -5px;
}

.logo-img {
  width: 70%; /* Aumentado */
  max-width: 320px; /* Aumentado */
  height: auto;
  display: block;
  mix-blend-mode: normal; 
}

.profile-tag {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--color-gold); /* Estava dark, agora dourado para destaque */
  text-transform: uppercase;
  margin-top: -10px; /* Margem negativa para aproximar da logo e subir o resto do conteúdo */
  margin-bottom: var(--gap-xs);
  opacity: 0;
  transform: translateY(10px);
  text-align: center;
}

.profile-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.2rem, 4vw, 1.4rem);
  font-weight: 500;
  color: var(--color-cream);
  letter-spacing: 0.02em;
  margin-top: var(--gap-xs);
  padding: 0 1.5rem;
  max-width: 440px;
  opacity: 0;
  transform: translateY(10px);
  text-align: center;
  line-height: 1.4;
}

/* ── Ícones Sociais ───────────────────────────────────────── */
.social-icons {
  display: flex;
  gap: 1.1rem;
  align-items: center;
  margin-top: var(--gap-md);
  opacity: 0;
  transform: translateY(10px);
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05); /* Fundo sutil */
  color: var(--color-cream); /* Cor corrigida para a variável existente */
  font-size: 1.2rem;
  text-decoration: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(158, 126, 101, 0.3);
}

.social-icon svg {
  width: 18px;
  height: 18px;
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

.social-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(158, 126, 101, 0.1);
  border-radius: 50%;
  transform: scale(0);
  transition: transform 0.3s ease;
}

.social-icon:hover::before  { transform: scale(1); }
.social-icon:hover svg      { transform: scale(1.15); color: var(--color-cream); }
.social-icon:hover {
  background: var(--color-gold);
  color: var(--color-cream); /* Ícone fica na cor creme sobre o fundo dourado */
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
  border-color: var(--color-gold);
}

/* ══════════════════════════════════════════════════════════
   DIVISOR
══════════════════════════════════════════════════════════ */
.divider {
  width: calc(100% - 3rem);
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: var(--gap-lg) 0 var(--gap-xs);
  opacity: 0;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(158, 126, 101, 0.4), transparent);
}

.divider-diamond {
  font-size: 0.45rem;
  color: var(--color-brown);
  opacity: 0.8;
}

/* ══════════════════════════════════════════════════════════
   MANIFESTO
══════════════════════════════════════════════════════════ */
.manifesto {
  width: calc(100% - 3rem);
  text-align: center;
  margin-bottom: var(--gap-lg);
  opacity: 0;
  transform: translateY(20px);
}

.manifesto-label {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  color: var(--color-gold); /* Trocado para dourado para dar contraste no fundo escuro */
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.manifesto-text {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 4vw, 1.4rem);
  font-weight: 500;
  line-height: 1.5;
  color: var(--color-cream);
  letter-spacing: 0.02em;
  max-width: 440px;
  margin: 0 auto;
  cursor: default;
  transition: color 0.4s ease;
}

.manifesto-text em {
  font-style: italic;
  color: var(--color-gold);
}

/* ══════════════════════════════════════════════════════════
   LINKS SECTION (Cards Maiores com suporte a imagem)
══════════════════════════════════════════════════════════ */
.links-section {
  width: calc(100% - 3rem);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.link-card {
  display: flex;
  align-items: flex-end; /* Texto vai para baixo */
  gap: 0;
  padding: 0;
  border-radius: 16px;
  border: 1px solid rgba(158, 126, 101, 0.3);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  height: 210px; /* Aumentado de 180px para maior destaque no desktop */
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
  opacity: 0;
  transform: translateX(-30px);
  will-change: transform;
  /* Cor base se não houver imagem */
  background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-dark-deep) 100%);
}

.link-card:hover {
  transform: translateX(4px) translateY(-3px) !important;
  box-shadow: 0 12px 32px rgba(0,0,0,0.25), 0 0 0 1px rgba(158,126,101,0.5) !important;
}

/* IMAGEM DE CAPA DOS CARDS */
.card-cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: inherit;
  z-index: 0;
  transition: transform 0.6s ease;
}

.link-card:hover .card-cover-img { transform: scale(1.05); }

/* OVERLAY DA IMAGEM PARA LEITURA DO TEXTO */
.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.1) 100%);
  border-radius: inherit;
  z-index: 1;
}

/* SHIMMER EFEITO */
.card-shimmer {
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 20%,
    rgba(255, 255, 255, 0.1) 38%,
    rgba(255, 255, 255, 0.25) 50%,
    rgba(255, 255, 255, 0.1) 62%,
    transparent 80%
  );
  transform: skewX(-15deg);
  pointer-events: none;
  z-index: 6;
  animation: shimmerAuto 4s ease-in-out infinite;
}

@keyframes shimmerAuto {
  0%   { left: -100%; opacity: 0; }
  10%  { opacity: 1; }
  50%  { left: 160%; opacity: 1; }
  55%  { opacity: 0; }
  100% { left: 160%; opacity: 0; }
}

.link-card:nth-child(1) .card-shimmer { animation-delay: 0s; }
.link-card:nth-child(2) .card-shimmer { animation-delay: 0.8s; }
.link-card:nth-child(3) .card-shimmer { animation-delay: 1.6s; }

/* TEXTO DO CARD */
.link-content {
  position: relative;
  z-index: 4;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1.4rem;
}

.link-label {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-cream); /* Cor corrigida para a variável existente */
  margin-bottom: 0.2rem;
  transition: color 0.3s ease;
  text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

.link-sub {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--color-cream); /* Estava dark, agora claro */
  opacity: 0.9;
  text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

.link-arrow {
  position: relative;
  z-index: 4;
  font-size: 1.4rem;
  color: var(--color-gold);
  opacity: 0.8;
  transition: opacity 0.3s ease, transform 0.3s ease;
  flex-shrink: 0;
  padding-right: 1.5rem;
  align-self: center; /* centraliza a seta verticalmente */
  margin-bottom: 1.5rem; /* sobe um pouco para alinhar bem */
}

.link-card:hover .link-arrow { opacity: 1; transform: translateX(6px); }

/* ══════════════════════════════════════════════════════════
   CLOSING SECTION
══════════════════════════════════════════════════════════ */
.closing-section {
  width: calc(100% - 3rem);
  text-align: center;
  margin-top: var(--gap-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--gap-sm);
  opacity: 0;
  transform: translateY(20px);
}

.closing-divider {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.closing-divider .divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(158,126,101,0.3), transparent);
}

.closing-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.2rem, 4vw, 1.4rem);
  font-weight: 500;
  line-height: 1.6;
  color: var(--color-cream);
  letter-spacing: 0.02em;
  max-width: 420px;
  padding: 0 0.5rem;
}

.closing-author {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--color-gold);
  text-transform: uppercase;
}

/* ══════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════ */
.site-footer {
  margin-top: var(--gap-lg);
  text-align: center;
  opacity: 0;
  padding-bottom: 1.5rem;
}

.site-footer p {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--color-cream);
  opacity: 0.7;
  text-transform: uppercase;
}

/* ── Ripple ───────────────────────────────────────────────── */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  transform: scale(0);
  animation: rippleAnim 0.6s linear;
  pointer-events: none;
  z-index: 10;
}

@keyframes rippleAnim {
  to { transform: scale(4); opacity: 0; }
}

/* ── Scrollbar ────────────────────────────────────────────── */
::-webkit-scrollbar        { width: 5px; }
::-webkit-scrollbar-track  { background: var(--bg-color); }
::-webkit-scrollbar-thumb  { background: rgba(158, 126, 101, 0.5); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-brown); }

/* ══════════════════════════════════════════════════════════
   RESPONSIVIDADE ESTRITA (LOGO E CARDS MAIORES NO MOBILE)
══════════════════════════════════════════════════════════ */

@media (max-width: 600px) {
  .container {
    padding: 0 0 var(--gap-xl);
  }

  .hero-photo-wrap {
    height: 270px; /* Reduzido no mobile para subir o conteúdo */
  }

  /* Logo: ajustado para ficar maior e mais alto */
  .logo-img {
    width: clamp(220px, 65vw, 320px);
  }

  .logo-wrap {
    margin-top: clamp(-150px, -32vw, -110px); /* Subiu proporcionalmente */
    margin-bottom: 5px;
  }

  .profile-tag,
  .profile-tagline {
    padding: 0 1.25rem;
  }

  .social-icons {
    gap: 1rem;
    margin-top: 1.5rem;
  }

  .divider,
  .manifesto,
  .links-section,
  .closing-section {
    width: calc(100% - 2.5rem);
  }

  /* Cards Maiores no Mobile também! */
  .link-card {
    height: 185px; /* Aumentado de 160px para melhor presença visual */
  }

  .link-content {
    padding: 1.2rem;
  }

  .link-label { font-size: 0.9rem; }
  .link-sub   { font-size: 0.75rem; }

  :root {
    --gap-md: 1.5rem;
    --gap-lg: 2.2rem;
    --gap-xl: 3rem;
  }
}

@media (max-width: 400px) {
  .hero-photo-wrap {
    height: 240px; /* Reduzido no mobile pequeno para subir o conteúdo */
  }

  .logo-img {
    width: clamp(180px, 60vw, 240px);
  }

  .logo-wrap {
    margin-top: clamp(-135px, -30vw, -100px); /* Subiu proporcionalmente */
    margin-bottom: 5px;
  }

  .link-card {
    height: 165px; /* Aumentado de 145px nas telas menores */
  }

  .link-content {
    padding: 1rem;
  }

  .link-label { font-size: 0.85rem; }
  .link-sub   { font-size: 0.7rem; }

  .social-icon {
    width: 42px;
    height: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .link-card, .social-icon, .link-arrow { transition: none; }
  .link-card:hover::after { animation: none; }
}

/* ══════════════════════════════════════════════════════════
   FOLHAS LATERAIS (WATERMARK ANIMADO)
══════════════════════════════════════════════════════════ */
.leaves-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1; /* Fica atrás do conteúdo */
  overflow: hidden;
}

.leaf-svg {
  position: absolute;
  width: 120px;
  height: 240px;
  stroke: var(--color-gold);
  stroke-width: 1px;
  fill: none;
  stroke-linecap: round;
  opacity: 0.15; /* Bem transparente e sutil */
}

/* Espalhando as 6 folhas ao longo da altura da página */
.leaf-1 { top: 5%;  left: -30px;  transform: rotate(15deg); }
.leaf-2 { top: 22%; right: -30px; transform: rotate(-25deg); }
.leaf-3 { top: 40%; left: -40px;  transform: rotate(35deg); }
.leaf-4 { top: 58%; right: -20px; transform: rotate(-15deg); }
.leaf-5 { top: 75%; left: -25px;  transform: rotate(20deg); }
.leaf-6 { top: 92%; right: -35px; transform: rotate(-30deg); }

@media (max-width: 600px) {
  .leaf-svg {
    width: 90px;
    height: 180px;
    opacity: 0.12; /* Mais transparente no celular para evitar poluição visual */
  }
  .leaf-1 { left: -20px; }
  .leaf-2 { right: -20px; }
  .leaf-3 { left: -20px; }
  .leaf-4 { right: -20px; }
  .leaf-5 { left: -20px; }
  .leaf-6 { right: -20px; }
}
