/* ============================================================
   ROSANA ROCCO — LINK NA BIO  v5
   Design: Hero foto full-width centralizada + logo sobreposta
   ============================================================ */

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --black-deep:  #000000;
  --black-mid:   #0A0A0A;
  --lavender:    #F7F3EE;
  --icy-white:   #F4F7FB;
  --gold:        #C7A86D;
  --gold-light:  #E8D0A1;
  --gold-dark:   #9C7E4A;
  --pistachio:   #BFC8A5;
  --white:       #FFFFFF;
  --text-dark:   #1A1A1A;
  --text-muted:  rgba(26,26,26,0.65);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', sans-serif;

  --radius-card:  14px;
  --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;
}

body {
  font-family: var(--font-body);
  background-color: var(--icy-white);
  background-image: url('../img/textura-fundo.png?v=2');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--text-dark);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ── 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: 0;
}

.marquee-track {
  display: flex;
  gap: 3.5rem;
  white-space: nowrap;
  animation: marqueeScroll 38s linear infinite;
  will-change: transform;
}

.marquee-track span {
  font-family: var(--font-display);
  font-size: clamp(5rem, 15vw, 12rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(201, 169, 110, 0.22);
  text-transform: uppercase;
  user-select: none;
  flex-shrink: 0;
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Overlay ──────────────────────────────────────────────── */
.bg-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(
    ellipse 100% 70% at 50% 0%,
    rgba(255, 255, 255, 0.45) 0%,
    rgba(244, 247, 251, 0.75) 55%,
    rgba(244, 247, 251, 0.96) 100%
  );
  z-index: 1;
  pointer-events: none;
}

/* ── Efeitos de Luz ──────────────────────────────────────── */
.ambient-light {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 1;
  opacity: 0.65;
  mix-blend-mode: multiply;
}

.light-1 {
  width: 60vw;
  height: 60vw;
  background: rgba(199, 168, 109, 0.4);
  top: -20%;
  left: -20%;
  animation: floatLight1 18s ease-in-out infinite alternate;
}

.light-2 {
  width: 70vw;
  height: 70vw;
  background: rgba(232, 208, 161, 0.35);
  bottom: -20%;
  right: -20%;
  animation: floatLight2 24s ease-in-out infinite alternate;
}

@keyframes floatLight1 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40vw, 30vh) scale(1.25); }
}

@keyframes floatLight2 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-30vw, -40vh) scale(1.15); }
}

.page-shimmer {
  position: fixed;
  top: 0;
  left: -150%;
  width: 150%;
  height: 100%;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(255, 255, 255, 0.25) 40%,
    rgba(255, 255, 255, 0.85) 50%,
    rgba(255, 255, 255, 0.25) 60%,
    transparent 100%
  );
  transform: skewX(-25deg);
  animation: globalShimmer 12s cubic-bezier(0.3, 0, 0.2, 1) infinite;
  pointer-events: none;
  z-index: 100;
  mix-blend-mode: screen;
}

@keyframes globalShimmer {
  0%   { left: -150%; }
  15%  { left: 150%; }
  100% { left: 150%; }
}

/* ── Canvas Partículas ────────────────────────────────────── */
#particles-canvas {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.65;
}

/* ── Container Principal ──────────────────────────────────── */
.container {
  position: relative;
  z-index: 10;
  max-width: 520px;
  margin: 0 auto;
  /* Sem padding lateral no topo para a foto ir até as bordas */
  padding: 0 0 var(--gap-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Garante que a foto ocupe toda a largura */
  width: 100%;
}

/* ══════════════════════════════════════════════════════════
   HERO SECTION — Foto full-width + logo sobreposta
══════════════════════════════════════════════════════════ */
.hero-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative; /* necessário para o logo sobreposto */
}
/* ── Foto Hero ─────────────────────────────────────────────── */
.hero-photo-wrap {
  position: relative;
  width: 100%;
  /* Altura proporcional — a foto PNG é 1270x1270, então usamos aspect-ratio */
  aspect-ratio: 1 / 1;
  /* Foto como background para controle total de posicionamento */
  background-image: url('../img/hero-dani.png?v=2');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;

  transform: translateY(24px);
  overflow: hidden;
}

/* Tag img escondida — usamos background no wrap */
.hero-photo {
  display: none;
}

/* Gradiente para fundir bordas e base com o fundo vinho */
.hero-photo-fade {
  position: absolute;
  /* inset: 0; */
  background:
    /* Fade lateral esquerdo suave */
    linear-gradient(to right, rgba(244,247,251,0.85) 0%, transparent 18%),
    /* Fade lateral direito suave */
    linear-gradient(to left,  rgba(244,247,251,0.85) 0%, transparent 18%),
    /* Fade topo */
    linear-gradient(to bottom, rgba(244,247,251,0.5) 0%, transparent 20%),
    /* Fade base forte */
    linear-gradient(to top, var(--icy-white) 0%, rgba(244,247,251,0.88) 15%, rgba(244,247,251,0.4) 38%, transparent 60%);
  pointer-events: none;
}

/* ── Logo no rodapé da foto, logo antes do texto ───────────── */
.logo-wrap {
  /* Fora do hero-photo-wrap, posicionada logo abaixo da foto */
  position: relative;
  z-index: 5;

  white-space: nowrap;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top:-260px;
  margin-bottom: -190px;
}

.logo-img {
  width: 520px;
  height: auto;
  display: block;
  mix-blend-mode: multiply;
  filter: brightness(0.9);
}

/* ── Tag e Tagline — abaixo do bloco hero ─────────────────── */
.profile-tag {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  color: var(--gold);
  text-transform: uppercase;
  margin-top: var(--gap-md);
  padding: 0 1.5rem;


  text-align: center;
}

.profile-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-top: var(--gap-xs);
  padding: 0 1.5rem;


  text-align: center;
}

/* ── Ícones Sociais ───────────────────────────────────────── */
.social-icons {
  display: flex;
  gap: 1.1rem;
  align-items: center;
  margin-top: var(--gap-md);


  }

.social-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(201, 169, 110, 0.3);
  border-radius: 50%;
  color: var(--gold);
  text-decoration: none;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
  position: relative;
  overflow: hidden;
}

.social-icon svg {
  width: 20px;
  height: 20px;
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

.social-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(201, 169, 110, 0.15);
  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); }
.social-icon:hover {
  border-color: var(--gold);
  box-shadow: 0 0 18px rgba(201, 169, 110, 0.25);
}

/* ══════════════════════════════════════════════════════════
   DIVISOR
══════════════════════════════════════════════════════════ */
.divider {
  width: calc(100% - 3rem);
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: var(--gap-lg) 0 var(--gap-md);

}

.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 169, 110, 0.4), transparent);
}

.divider-diamond {
  font-size: 0.45rem;
  color: var(--gold);
  opacity: 0.7;
}

/* ══════════════════════════════════════════════════════════
   MANIFESTO
══════════════════════════════════════════════════════════ */
.manifesto {
  width: calc(100% - 3rem);
  text-align: center;
  margin-bottom: var(--gap-lg);


}

.manifesto-label {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.manifesto-text {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 6vw, 2.3rem);
  font-weight: 500;
  line-height: 1.3;
  color: var(--text-dark);
  letter-spacing: 0.03em;
  border: none;
  padding: 0;
  cursor: default;
}

.manifesto-text em {
  font-style: italic;
  color: var(--gold-light);
  font-weight: 400;
}

/* ══════════════════════════════════════════════════════════
   LINKS SECTION
══════════════════════════════════════════════════════════ */
.links-section {
  width: calc(100% - 3rem);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
/* ── Cards de Link — Imagem de capa como padrão ───────────────── */
.link-card {
  display: flex;
  align-items: flex-end;        /* texto fica na base da imagem */
  gap: 0;
  padding: 0;
  border-radius: 18px;
  border: 1px solid rgba(201, 169, 110, 0.35);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.55);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  height: 240px;                /* altura fixa para todos os cards */
  transition: box-shadow 0.35s ease;


  will-change: transform;
  background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(240,245,250,0.9) 100%);
}

.page-loaded .link-card {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.35s ease;
}

.link-card:hover {
  transform: translateX(4px) translateY(-3px) !important;
  box-shadow: 0 10px 36px rgba(0,0,0,0.55), 0 0 0 1px rgba(201,169,110,0.55) !important;
}

/* Imagem de capa — ocupa todo o card */
.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.5s ease;
}

.link-card:hover .card-cover-img {
  transform: scale(1.04);
}

/* Overlay gradiente — garante legibilidade do texto sobre a imagem */
.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.78) 0%,
    rgba(0, 0, 0, 0.52) 50%,
    rgba(0, 0, 0, 0.18) 100%
  );
  border-radius: inherit;
  z-index: 1;
}

/* Fallback quando a imagem não carrega */
.link-card.no-cover {
  background: linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(240,245,250,0.95) 100%);
}

/* Shimmer automático — luz deslizando em loop contínuo */
.card-shimmer {
  position: absolute;
  top: 0;
  left: -100%;
  width: 55%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 20%,
    rgba(201, 169, 110, 0.10) 38%,
    rgba(255, 240, 200, 0.26) 50%,
    rgba(201, 169, 110, 0.10) 62%,
    transparent 80%
  );
  transform: skewX(-15deg);
  pointer-events: none;
  z-index: 6;
  animation: shimmerAuto 3.6s ease-in-out infinite;
}

@keyframes shimmerAuto {
  0%   { left: -100%; opacity: 0; }
  8%   { opacity: 1; }
  60%  { left: 160%; opacity: 1; }
  65%  { opacity: 0; }
  100% { left: 160%; opacity: 0; }
}

/* Delays escalonados para cada card — efeito cascata */
.link-card:nth-child(1) .card-shimmer { animation-delay: 0s; }
.link-card:nth-child(2) .card-shimmer { animation-delay: 0.6s; }
.link-card:nth-child(3) .card-shimmer { animation-delay: 1.2s; }
.link-card:nth-child(4) .card-shimmer { animation-delay: 1.8s; }
.link-card:nth-child(5) .card-shimmer { animation-delay: 2.4s; }
.link-card:nth-child(6) .card-shimmer { animation-delay: 3.0s; }

/* Conteúdo textual — posicionado na base esquerda da imagem */
.link-content {
  position: relative;
  z-index: 4;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1.3rem 1.5rem;
}

.link-label {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--text-dark);
  text-transform: uppercase;
  text-shadow: none;
  transition: color 0.3s ease;
}

.link-card:not(.no-cover):has(.card-cover-img[src]:not([src=""])) .link-label {
  color: var(--white);
  text-shadow: 0 1px 6px rgba(0,0,0,0.7);
}

.link-sub {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 400;
  color: rgba(0,0,0,0.65);
  letter-spacing: 0.02em;
  text-shadow: none;
  transition: color 0.3s ease;
}

.link-card:not(.no-cover):has(.card-cover-img[src]:not([src=""])) .link-sub {
  color: rgba(255,255,255,0.85);
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

/* Seta — canto direito centralizado verticalmente */
.link-arrow {
  position: relative;
  z-index: 4;
  font-size: 1.1rem;
  color: var(--gold);
  opacity: 0.7;
  transition: opacity 0.3s ease, transform 0.3s ease;
  flex-shrink: 0;
  padding-right: 1.5rem;
  align-self: center;
}

.link-card:hover .link-arrow { opacity: 1; transform: translateX(5px); }

/* ══════════════════════════════════════════════════════════
   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);


}

.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(201,169,110,0.3), transparent);
}

.closing-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1rem, 3.5vw, 1.2rem);
  font-weight: 400;
  line-height: 1.75;
  color: rgba(0,0,0,0.7);
  letter-spacing: 0.02em;
  max-width: 380px;
  padding: 0 0.5rem;
}

.closing-author {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--gold);
  text-transform: uppercase;
}

/* ══════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════ */
.site-footer {
  margin-top: var(--gap-lg);
  text-align: center;

  padding-bottom: 1rem;
}

.site-footer p {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 0.14em;
  color: rgba(0,0,0,0.4);
  text-transform: uppercase;
}

/* ── Ripple ───────────────────────────────────────────────── */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(201, 169, 110, 0.2);
  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: 4px; }
::-webkit-scrollbar-track  { background: var(--icy-white); }
::-webkit-scrollbar-thumb  { background: rgba(201,169,110,0.3); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: rgba(201,169,110,0.5); }

/* ══════════════════════════════════════════════════════════
   RESPONSIVIDADE
══════════════════════════════════════════════════════════ */

/* ── Telas médias (tablets) ───────────────────────────────── */
@media (max-width: 600px) {
  /* Container: padding lateral para os cards não colarem nas bordas */
  .container {
    padding: 0 0 var(--gap-xl);
  }

  /* Hero photo wrap: aspect-ratio menor para não ocupar demais a tela */
  .hero-photo-wrap {
    aspect-ratio: 4 / 5;
    background-position: center top;
  }

  /* Logo: escala proporcional ao container — máximo de 85% da largura */
  .logo-img {
    width: clamp(220px, 75vw, 400px);
  }

  /* Logo wrap: margens negativas proporcionais ao tamanho da logo */
  .logo-wrap {
    margin-top: clamp(-180px, -35vw, -120px);
    margin-bottom: clamp(-120px, -22vw, -60px);
  }

  /* Tag e tagline: padding lateral adequado */
  .profile-tag,
  .profile-tagline {
    padding: 0 1.25rem;
  }

  /* Ícones sociais: gap menor */
  .social-icons {
    gap: 0.85rem;
    margin-top: 1.4rem;
  }

  /* Divisor e manifesto: padding lateral */
  .divider,
  .manifesto,
  .links-section,
  .closing-section {
    width: calc(100% - 2.5rem);
  }

  /* Cards: altura ajustada para mobile */
  .link-card {
    height: 200px;
  }

  .link-content {
    padding: 1.1rem 1.2rem;
  }

  .link-label { font-size: 0.98rem; }
  .link-sub   { font-size: 0.84rem; }

  :root {
    --gap-md: 1.4rem;
    --gap-lg: 2rem;
    --gap-xl: 2.8rem;
  }
}

/* ── Telas pequenas (mobile < 400px) ────────────────────── */
@media (max-width: 400px) {
  .hero-photo-wrap {
    aspect-ratio: 3 / 4;
  }

  .logo-img {
    width: clamp(180px, 70vw, 280px);
  }

  .logo-wrap {
    margin-top: clamp(-840px, -62vw, -90px);
    margin-bottom: clamp(-90px, -20vw, -50px);
  }

  .link-card {
    height: 180px;
  }

  .link-content {
    padding: 1rem 1rem;
  }

  .link-label { font-size: 0.92rem; }
  .link-sub   { font-size: 0.8rem; }

  .social-icon {
    width: 44px;
    height: 44px;
  }

  :root {
    --gap-md: 1.2rem;
    --gap-lg: 1.75rem;
    --gap-xl: 2.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .link-card, .social-icon, .link-arrow { transition: none; }
  .link-card:hover::after { animation: none; }
}

/* ── Carregamento Instantâneo no Mobile (até 768px) ──────── */
@media (max-width: 768px) {
  .hero-photo-wrap, .logo-wrap, .profile-tag, .profile-tagline, 
  .social-icons, .divider, .manifesto, .link-card, 
  .closing-section, .site-footer {
    opacity: 1 !important;
    transform: none !important;
  }
}
@media (max-width: 768px) { .page-shimmer { display: none !important; } }
@media (max-width: 768px) { .ambient-light { display: none !important; } }
