/* ============================================================
   LIZ GONÇALVES — LINK NA BIO
   ============================================================ */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-deep:     #081729; /* Darker blue */
  --bg-mid:      #132f4e;
  --bg-light:    #2a5078;
  --gold:        #c6a46a;
  --gold-light:  #f1c57b;
  --white:       #FFFFFF;
  --text-light:  rgba(255,255,255,0.85);
  --text-muted:  rgba(255,255,255,0.55);

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-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;
  transform: translateZ(0);
}

.marquee-track span {
  font-family: var(--font-display);
  font-size: clamp(5rem, 15vw, 12rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(198, 164, 106, 0.12);
  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(19, 47, 78, 0.45) 0%,
    rgba(8, 23, 41, 0.75) 55%,
    rgba(4, 12, 22, 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;
  padding: 0 0 var(--gap-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

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

.hero-photo-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background-image: url('img/liz.png');
  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, rgba(8,23,41,0.85) 0%, transparent 18%),
    linear-gradient(to left,  rgba(8,23,41,0.85) 0%, transparent 18%),
    linear-gradient(to bottom, rgba(8,23,41,0.5) 0%, transparent 20%),
    linear-gradient(to top, var(--bg-deep) 0%, rgba(8,23,41,0.88) 15%, rgba(8,23,41,0.4) 38%, transparent 60%);
  pointer-events: none;
}

.logo-wrap {
  position: relative;
  z-index: 5;
  opacity: 0;
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: -130px;
  margin-bottom: 0px;
}

.logo-img {
  width: 250px;
  max-width: 80%;
  height: auto;
  display: block;
}

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

.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(198, 164, 106, 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(198, 164, 106, 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(198, 164, 106, 0.25);
}

.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(198, 164, 106, 0.4), transparent);
}

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

.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.3rem, 4vw, 1.8rem);
  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 {
  width: calc(100% - 3rem);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  font-style: italic;
  color: var(--gold-light);
  text-align: center;
  margin-bottom: 0.2rem;
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateY(15px);
}

.link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  padding: 0;
  border-radius: 18px;
  border: 1px solid rgba(198, 164, 106, 0.35);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.55);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  height: 220px; /* Increased height */
  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;
  background: linear-gradient(135deg, rgba(8,23,41,0.95) 0%, rgba(19,47,78,0.9) 100%);
}

.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(198,164,106,0.55) !important;
}

/* Imagem de capa */
.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 para legibilidade */
.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.55) 50%,
    rgba(0, 0, 0, 0.25) 100%
  );
  border-radius: inherit;
  z-index: 1;
}

.card-shimmer {
  position: absolute;
  top: 0;
  left: -100%;
  width: 55%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 20%,
    rgba(198, 164, 106, 0.10) 38%,
    rgba(241, 197, 123, 0.26) 50%,
    rgba(198, 164, 106, 0.10) 62%,
    transparent 80%
  );
  transform: skewX(-15deg) translateZ(0);
  pointer-events: none;
  z-index: 6;
  animation: shimmerAuto 3.6s ease-in-out infinite;
  will-change: left, opacity;
}

@keyframes shimmerAuto {
  0%   { left: -100%; opacity: 0; }
  8%   { opacity: 1; }
  60%  { left: 160%; opacity: 1; }
  65%  { 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.6s; }

.link-content {
  position: relative;
  z-index: 4;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.3rem;
  padding: 1.5rem;
  padding-right: 0.5rem;
}

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

.link-sub {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 300;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.02em;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* Maximum of 2 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.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 {
  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(198,164,106,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;
}

.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 {
  position: absolute;
  border-radius: 50%;
  background: rgba(198, 164, 106, 0.2);
  transform: scale(0);
  animation: rippleAnim 0.6s linear;
  pointer-events: none;
  z-index: 10;
}

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

::-webkit-scrollbar        { width: 4px; }
::-webkit-scrollbar-track  { background: var(--bg-deep); }
::-webkit-scrollbar-thumb  { background: rgba(198,164,106,0.3); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: rgba(198,164,106,0.5); }

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

  .hero-photo-wrap {
    aspect-ratio: 4 / 5;
  }

  .logo-wrap {
    margin-top: -110px;
    margin-bottom: 0px;
  }

  .logo-img {
    width: 200px;
  }

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

  .link-content {
    padding: 1.2rem 1rem;
  }

  .link-label { 
    font-size: 0.8rem; 
    letter-spacing: 0.08em;
  }
  .link-sub   { font-size: 0.72rem; }

  :root {
    --gap-md: 1.4rem;
    --gap-lg: 2rem;
    --gap-xl: 2.8rem;
  }
  
  .link-card {
    height: 190px;
  }
}

@media (max-width: 400px) {
  .hero-photo-wrap {
    aspect-ratio: 3 / 4;
  }

  .logo-wrap {
    margin-top: -100px;
    margin-bottom: 0px;
  }

  .logo-img {
    width: 160px;
  }

  .link-content {
    padding: 1rem 0.8rem;
  }

  .link-label { 
    font-size: 0.72rem; 
    letter-spacing: 0.05em;
  }
  .link-sub   { font-size: 0.68rem; }

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

  :root {
    --gap-md: 1.2rem;
    --gap-lg: 1.75rem;
    --gap-xl: 2.4rem;
  }

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

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