/* ============================================================
   PRISCILA BARCELOS — LINK NA BIO
   Design: Premium, minimalista, dark com textura e dourado
   ============================================================ */

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

:root {
  /* Premium Dark Palette */
  --bg-deep:     #1E0A2D; /* Premium Deep Purple */
  --bg-mid:      #2D1342;
  --bg-card:     rgba(255, 255, 255, 0.03);
  --accent-gold: #C9A96E;
  --accent-light:#E2C99A;
  --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:    'Outfit', sans-serif;

  --radius-card:  16px;
  --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(--bg-deep);
  color: var(--white);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ── Textura Premium ──────────────────────────────────────── */
.bg-texture {
  position: fixed;
  inset: 0;
  background-image: url('img/textura.png');
  background-size: cover;
  background-position: center;
  opacity: 0.25; /* Opacidade sutil para não brigar com os textos */
  mix-blend-mode: luminosity; 
  z-index: 1;
  pointer-events: none;
}

/* ── Overlay ──────────────────────────────────────────────── */
.bg-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(
    circle at 50% 0%,
    rgba(45, 19, 66, 0.6) 0%,
    var(--bg-deep) 100%
  );
  z-index: 2;
  pointer-events: none;
}

/* ── Fundo Marquee ────────────────────────────────────────── */
.bg-marquee {
  position: fixed;
  top: 50%;
  left: 0;
  width: 100%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  opacity: 0.15;
}

.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(6rem, 20vw, 16rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.15);
  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: 3;
  pointer-events: none;
  opacity: 0.5;
}

/* ── 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;
}

/* ── Foto Hero ─────────────────────────────────────────────── */
.hero-photo-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background-image: url('img/hero.png?v=2.0');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  opacity: 0;
  transform: translateY(24px);
  overflow: hidden;
}

.hero-photo {
  display: none;
}

.hero-photo-fade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, var(--bg-deep) 0%, transparent 20%),
    linear-gradient(to left, var(--bg-deep) 0%, transparent 20%),
    linear-gradient(to bottom, rgba(30,10,45,0.4) 0%, transparent 20%),
    linear-gradient(to top, var(--bg-deep) 0%, rgba(30,10,45,0.8) 15%, transparent 60%);
  pointer-events: none;
}

.logo-wrap {
  width: 280px; /* Tamanho da logo ajustado */
  position: relative;
  z-index: 5;
  margin-top: -120px; /* Sobe a logo por cima da foto */
  margin-bottom: var(--gap-md);
  opacity: 0;
  transform: translateY(20px);
}

.logo-img {
  width: 100%;
  height: auto;
  display: block;
  /* Efeito luminoso na logo se ela for clara */
  filter: drop-shadow(0 4px 20px rgba(201, 169, 110, 0.25));
}

.profile-tag {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.35em;
  color: var(--accent-gold);
  text-transform: uppercase;
  margin-top: var(--gap-sm);
  opacity: 0;
  transform: translateY(10px);
  text-align: center;
}

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

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

.social-icon {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 50%;
  color: var(--accent-gold);
  text-decoration: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.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: var(--accent-gold);
  border-radius: 50%;
  transform: scale(0);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 0;
}

.social-icon:hover::before  { transform: scale(1); }
.social-icon:hover svg      { transform: scale(1.15); color: var(--bg-deep); }
.social-icon:hover {
  border-color: var(--accent-gold);
  box-shadow: 0 4px 20px rgba(201, 169, 110, 0.3);
}

/* ══════════════════════════════════════════════════════════
   DIVISOR
══════════════════════════════════════════════════════════ */
.divider {
  width: calc(100% - 3rem);
  display: flex;
  align-items: center;
  gap: 1.2rem;
  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.3), transparent);
}

.divider-diamond {
  font-size: 0.4rem;
  color: var(--accent-gold);
  opacity: 0.8;
  transform: rotate(45deg);
}

/* ══════════════════════════════════════════════════════════
   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.6rem;
  font-weight: 500;
  letter-spacing: 0.35em;
  color: var(--accent-gold);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.manifesto-text {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 6vw, 2.2rem);
  font-weight: 500;
  line-height: 1.25;
  color: var(--white);
  letter-spacing: 0.02em;
  cursor: default;
  transition: color 0.4s ease;
}

.manifesto-text em {
  font-style: italic;
  color: var(--accent-light);
  font-weight: 400;
}

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

/* ── Cards de Link Premium (Glassmorphism & Imagem) ────────────── */
.link-card {
  display: flex;
  align-items: flex-end; /* Alinhamento na base para acomodar capa e manter layout premium */
  justify-content: space-between;
  padding: 0;
  gap: 0;
  height: 210px; /* Altura padrão modelo-02 */
  border-radius: var(--radius-card);
  background: var(--bg-card);
  border: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              background 0.4s ease, box-shadow 0.4s ease;
  opacity: 0;
  transform: translateY(20px);
  will-change: transform;
}

.link-card:hover {
  transform: translateX(4px) translateY(-3px);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 25px rgba(201, 169, 110, 0.3);
}

/* Efeito de Luz na Borda (Glow Border) */
.link-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1.5px solid rgba(201, 169, 110, 0.4);
  box-shadow: inset 0 0 15px rgba(201, 169, 110, 0.2);
  pointer-events: none;
  z-index: 4; /* Acima da imagem e overlay */
  transition: all 0.4s ease;
}

.link-card:hover::after {
  border-color: rgba(201, 169, 110, 0.9);
  box-shadow: inset 0 0 35px rgba(201, 169, 110, 0.6);
}

/* Imagem de Capa do 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;
  opacity: 0.85;
}

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

/* Overlay Escuro para o texto da Capa */
.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30, 10, 45, 0.95) 0%, rgba(30, 10, 45, 0.4) 60%, transparent 100%);
  border-radius: inherit;
  z-index: 1;
}

/* Shimmer contínuo sutil */
.card-shimmer {
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 20%,
    rgba(255, 255, 255, 0.03) 38%,
    rgba(255, 255, 255, 0.08) 50%,
    rgba(255, 255, 255, 0.03) 62%,
    transparent 80%
  );
  transform: skewX(-15deg);
  pointer-events: none;
  z-index: 2;
  animation: shimmerAuto 4s ease-in-out infinite;
}

@keyframes shimmerAuto {
  0%   { left: -100%; opacity: 0; }
  10%  { opacity: 1; }
  50%  { left: 160%; opacity: 1; }
  60%  { 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; }
.link-card:nth-child(4) .card-shimmer { animation-delay: 2.4s; }

/* Textos do Card */
.link-content {
  position: relative;
  z-index: 3;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1.4rem;
}

.link-label {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--white);
  transition: color 0.3s ease;
}

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

.link-card:hover .link-label {
  color: var(--accent-light);
}

/* Seta */
.link-arrow {
  position: relative;
  z-index: 3;
  font-size: 1.4rem;
  color: var(--text-muted);
  font-weight: 300;
  transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  padding-right: 1.4rem;
  align-self: center;
  margin-bottom: 1.4rem; /* sobe a seta caso necessário para alinhar */
}

.link-card:hover .link-arrow { 
  opacity: 1; 
  color: var(--accent-gold);
  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(201,169,110,0.15), transparent);
}

.closing-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1rem, 3.5vw, 1.15rem);
  font-weight: 400;
  line-height: 1.6;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.03em;
  max-width: 400px;
  padding: 0 0.5rem;
}

.closing-author {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  color: var(--accent-gold);
  text-transform: uppercase;
  margin-top: 0.5rem;
}

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

.site-footer p {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.25);
  text-transform: uppercase;
}

/* ── Ripple ───────────────────────────────────────────────── */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(201, 169, 110, 0.15);
  transform: scale(0);
  animation: rippleAnim 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  pointer-events: none;
  z-index: 10;
}

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

/* ── Scrollbar ────────────────────────────────────────────── */
::-webkit-scrollbar        { width: 6px; }
::-webkit-scrollbar-track  { background: var(--bg-deep); }
::-webkit-scrollbar-thumb  { background: rgba(255,255,255,0.15); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(201,169,110,0.4); }

/* ══════════════════════════════════════════════════════════
   RESPONSIVIDADE
══════════════════════════════════════════════════════════ */

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

  .logo-wrap {
    width: 170px;
  }

  .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);
  }

  .link-card {
    padding: 0;
    height: 190px;
  }

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

  :root {
    --gap-md: 1.4rem;
    --gap-lg: 2rem;
    --gap-xl: 2.8rem;
  }
}

@media (max-width: 400px) {
  .logo-wrap {
    width: 150px;
  }

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

  .link-card {
    padding: 0;
    height: 170px;
  }

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

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