/* ============================================================
   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 {
  --wine:        #5C0A28;
  --wine-deep:   #3D0618;
  --wine-mid:    #7A1035;
  --gold:        #C9A96E;
  --gold-light:  #E2C99A;
  --gold-dark:   #A07840;
  --green-dark:  #1A4A35;
  --white:       #FFFFFF;
  --text-light:  rgba(255,255,255,0.85);
  --text-muted:  rgba(255,255,255,0.55);

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Poppins', 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(--wine-deep);
  color: var(--white);
  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(92, 10, 40, 0.45) 0%,
    rgba(61, 6, 24, 0.75) 55%,
    rgba(26, 4, 14, 0.96) 100%
  );
  z-index: 1;
  pointer-events: none;
}

/* ── 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('Rosana.png');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  opacity: 0;
  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(61,6,24,0.85) 0%, transparent 18%),
    /* Fade lateral direito suave */
    linear-gradient(to left,  rgba(61,6,24,0.85) 0%, transparent 18%),
    /* Fade topo */
    linear-gradient(to bottom, rgba(61,6,24,0.5) 0%, transparent 20%),
    /* Fade base forte */
    linear-gradient(to top, var(--wine-deep) 0%, rgba(61,6,24,0.88) 15%, rgba(61,6,24,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;
  opacity: 0;
  margin-top: -4.5rem; /* Sobe sobre a borda inferior da foto */
  white-space: nowrap;
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top:-260px;
  margin-bottom: -190px;
}

.logo-img {
  width: 520px;
  height: auto;
  display: block;
  mix-blend-mode: screen;
  filter: brightness(1.15);
}

/* ── Tag e Tagline — abaixo do bloco hero ─────────────────── */
.profile-tag {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  color: var(--gold);
  text-transform: uppercase;
  margin-top: var(--gap-md);
  padding: 0 1.5rem;
  opacity: 0;
  transform: translateY(10px);
  text-align: center;
}

.profile-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--text-light);
  letter-spacing: 0.04em;
  margin-top: var(--gap-xs);
  padding: 0 1.5rem;
  opacity: 0;
  transform: translateY(10px);
  text-align: center;
}

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

.social-icon {
  width: 42px;
  height: 42px;
  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: var(--transition);
  position: relative;
  overflow: hidden;
}

.social-icon svg {
  width: 17px;
  height: 17px;
  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);
  opacity: 0;
}

.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);
  opacity: 0;
  transform: translateY(20px);
}

.manifesto-label {
  font-family: var(--font-body);
  font-size: 0.58rem;
  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.5rem, 5vw, 2rem);
  font-weight: 500;
  line-height: 1.3;
  color: var(--white);
  letter-spacing: 0.03em;
  border: none;
  padding: 0;
  cursor: default;
  transition: color 0.4s ease;
}

.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: 0.8rem;
}

/* ── Cards de Link ────────────────────────────────────────── */
.link-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.05rem 1.3rem;
  border-radius: var(--radius-card);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.3s ease;
  opacity: 0;
  transform: translateX(-30px);
  will-change: transform;
}

.link-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Shimmer — luz deslizando no hover */
.link-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 20%,
    rgba(201, 169, 110, 0.12) 40%,
    rgba(255, 240, 200, 0.18) 50%,
    rgba(201, 169, 110, 0.12) 60%,
    transparent 80%
  );
  transform: skewX(-15deg);
  pointer-events: none;
  z-index: 5;
}

.link-card:hover {
  transform: translateX(4px) translateY(-2px) !important;
}

.link-card:hover::after {
  animation: shimmerSlide 0.75s ease forwards;
}

@keyframes shimmerSlide {
  0%   { left: -100%; }
  100% { left: 160%; }
}

/* Variante primária */
.link-primary {
  background: linear-gradient(135deg, rgba(110, 15, 50, 0.95) 0%, rgba(140, 20, 65, 0.92) 100%);
  border: 1px solid rgba(201, 169, 110, 0.6);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(201, 169, 110, 0.2);
}
.link-primary::before { background: linear-gradient(135deg, rgba(201,169,110,0.08), transparent); }
.link-primary:hover   { box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 0 1px rgba(201,169,110,0.6) !important; }
.link-primary:hover::before { opacity: 1; }

/* Variante secundária */
.link-secondary {
  background: linear-gradient(135deg, rgba(201, 169, 110, 0.22) 0%, rgba(160, 120, 64, 0.18) 100%);
  border: 1px solid rgba(201, 169, 110, 0.55);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}
.link-secondary::before { background: linear-gradient(135deg, rgba(201,169,110,0.12), transparent); }
.link-secondary:hover   { box-shadow: 0 8px 30px rgba(0,0,0,0.35), 0 0 0 1px rgba(201,169,110,0.7) !important; }
.link-secondary:hover::before { opacity: 1; }

/* Variante WhatsApp */
.link-whatsapp {
  background: linear-gradient(135deg, rgba(26, 74, 53, 0.95) 0%, rgba(20, 60, 42, 0.92) 100%);
  border: 1px solid rgba(201, 169, 110, 0.4);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
}
.link-whatsapp::before { background: linear-gradient(135deg, rgba(201,169,110,0.08), transparent); }
.link-whatsapp:hover   { box-shadow: 0 8px 30px rgba(0,0,0,0.4), 0 0 0 1px rgba(201,169,110,0.5) !important; }
.link-whatsapp:hover::before { opacity: 1; }

/* Variante dark */
.link-dark {
  background: linear-gradient(135deg, rgba(30, 10, 20, 0.98) 0%, rgba(50, 15, 30, 0.95) 100%);
  border: 1px solid rgba(201, 169, 110, 0.35);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.55);
}
.link-dark::before { background: linear-gradient(135deg, rgba(201,169,110,0.06), transparent); }
.link-dark:hover   { box-shadow: 0 8px 30px rgba(0,0,0,0.5), 0 0 0 1px rgba(201,169,110,0.4) !important; }
.link-dark:hover::before { opacity: 1; }

/* Variante outline */
.link-outline {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
}
.link-outline::before { background: rgba(201, 169, 110, 0.06); }
.link-outline:hover   { border-color: rgba(201,169,110,0.4) !important; box-shadow: 0 6px 24px rgba(0,0,0,0.3) !important; }
.link-outline:hover::before { opacity: 1; }

/* Ícone do link */
.link-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(201, 169, 110, 0.12);
  border: 1px solid rgba(201, 169, 110, 0.2);
  transition: background 0.3s ease, transform 0.3s ease;
}

.link-icon svg {
  width: 17px;
  height: 17px;
  color: var(--gold);
  transition: transform 0.3s ease;
}

.link-card:hover .link-icon     { background: rgba(201,169,110,0.2); transform: scale(1.05); }
.link-card:hover .link-icon svg { transform: scale(1.1); }

/* Conteúdo textual */
.link-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}

.link-label {
  font-family: var(--font-body);
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--white);
  text-transform: uppercase;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.link-sub {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 300;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.02em;
}

/* Seta */
.link-arrow {
  font-size: 1rem;
  color: var(--gold);
  opacity: 0.6;
  transition: opacity 0.3s ease, transform 0.3s ease;
  flex-shrink: 0;
}

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

/* ══════════════════════════════════════════════════════════
   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(201,169,110,0.3), transparent);
}

.closing-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(0.9rem, 3vw, 1.05rem);
  font-weight: 400;
  line-height: 1.75;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.02em;
  max-width: 380px;
  padding: 0 0.5rem;
}

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

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

.site-footer p {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 300;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.22);
  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(--wine-deep); }
::-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: padding interno menor */
  .link-card {
    padding: 0.9rem 1rem;
    gap: 0.85rem;
  }

  .link-icon {
    width: 36px;
    height: 36px;
  }

  .link-label { font-size: 0.68rem; }
  .link-sub   { font-size: 0.65rem; }

  :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(-140px, -32vw, -90px);
    margin-bottom: clamp(-90px, -20vw, -50px);
  }

  .link-card {
    padding: 0.8rem 0.9rem;
    gap: 0.75rem;
  }

  .link-icon {
    width: 32px;
    height: 32px;
  }

  .link-icon svg {
    width: 14px;
    height: 14px;
  }

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

  :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; }
}
