/* ========================================
   FAACORE.COM — LINK TREE
   Sensual / Erotic Dark Aesthetic
   ======================================== */

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

:root {
  /* Palette — deep burgundy, rose, warm golds */
  --bg-deep:        #0a0608;
  --bg-surface:     #110d0f;
  --bg-card:        rgba(30, 18, 22, 0.65);
  --bg-card-hover:  rgba(45, 24, 32, 0.8);

  --rose:           #c4506e;
  --rose-light:     #e8728e;
  --rose-glow:      rgba(196, 80, 110, 0.35);
  --blush:          #f2a7b8;
  --gold:           #d4a96a;
  --gold-light:     #f0d0a0;
  --wine:           #7a2040;
  --plum:           #3d1428;

  --text-primary:   #f0e4e8;
  --text-secondary: #b89da8;
  --text-muted:     #7a5e6a;

  --glass-border:   rgba(196, 80, 110, 0.15);
  --glass-border-h: rgba(196, 80, 110, 0.35);

  --radius:         16px;
  --radius-sm:      10px;
  --radius-pill:    50px;

  --font-display:   'Playfair Display', Georgia, serif;
  --font-body:      'Outfit', -apple-system, sans-serif;

  --transition:     0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* --- Ambient Background Glows --- */
.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

.bg-glow--1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--wine) 0%, transparent 70%);
  top: -10%;
  left: -10%;
  animation: glowDrift1 12s ease-in-out infinite alternate;
}

.bg-glow--2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(212, 169, 106, 0.25) 0%, transparent 70%);
  bottom: 10%;
  right: -8%;
  animation: glowDrift2 15s ease-in-out infinite alternate;
}

.bg-glow--3 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(196, 80, 110, 0.2) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: glowPulse 8s ease-in-out infinite;
}

@keyframes glowDrift1 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(60px, 40px) scale(1.15); }
}

@keyframes glowDrift2 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-50px, -30px) scale(1.1); }
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.2; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 0.45; transform: translate(-50%, -50%) scale(1.2); }
}

/* --- Particle Canvas --- */
#particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* --- Container --- */
.container {
  position: relative;
  z-index: 1;
  max-width: 520px;
  margin: 0 auto;
  padding: 60px 20px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

/* --- Hero / Logo --- */
.hero {
  text-align: center;
  margin-bottom: 44px;
  animation: heroFadeIn 1s ease-out both;
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.logo {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 3.8rem;
  letter-spacing: 0.02em;
  line-height: 1;
  cursor: default;
  position: relative;
  display: inline-block;
}

.logo__main {
  background: linear-gradient(135deg, var(--blush) 0%, var(--rose-light) 40%, var(--gold-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: var(--transition);
}

.logo__dot {
  color: var(--rose);
  -webkit-text-fill-color: var(--rose);
  text-shadow: 0 0 20px var(--rose-glow);
  animation: dotPulse 3s ease-in-out infinite;
}

.logo__tld {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 400;
}

@keyframes dotPulse {
  0%, 100% { text-shadow: 0 0 15px var(--rose-glow); }
  50%      { text-shadow: 0 0 35px var(--rose-glow), 0 0 60px rgba(196, 80, 110, 0.15); }
}

.logo:hover .logo__main {
  filter: brightness(1.15);
}

.subtext {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.92rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  animation: heroFadeIn 1s ease-out 0.2s both;
}

.subtext .divider {
  color: var(--rose);
  opacity: 0.5;
  font-weight: 100;
  margin: 0 4px;
}

.hero__line {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rose), transparent);
  margin: 24px auto 0;
  animation: heroFadeIn 1s ease-out 0.4s both;
}

/* --- Tabs --- */
.tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  padding: 4px;
  margin-bottom: 28px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  animation: heroFadeIn 1s ease-out 0.5s both;
  width: 100%;
  max-width: 320px;
}

.tab {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 11px 18px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  position: relative;
}

.tab__icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.tab:hover {
  color: var(--text-secondary);
}

.tab.active {
  background: linear-gradient(135deg, var(--wine) 0%, var(--plum) 100%);
  color: var(--blush);
  box-shadow: 0 4px 20px rgba(122, 32, 64, 0.3);
}

/* --- Panels --- */
.panel {
  width: 100%;
  display: none;
  flex-direction: column;
  gap: 14px;
  animation: panelIn 0.45s ease-out both;
}

.panel.active {
  display: flex;
}

@keyframes panelIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --- Link Cards --- */
.link-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text-primary);
  transition: var(--transition);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.link-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(196, 80, 110, 0.06) 0%, transparent 60%);
  opacity: 0;
  transition: var(--transition);
}

.link-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--glass-border-h);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(196, 80, 110, 0.12), 0 0 0 1px rgba(196, 80, 110, 0.08);
}

.link-card:hover::before {
  opacity: 1;
}

.link-card__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--plum) 0%, rgba(122, 32, 64, 0.5) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}

.link-card__icon svg {
  width: 20px;
  height: 20px;
  color: var(--rose-light);
  transition: var(--transition);
}

.link-card:hover .link-card__icon {
  background: linear-gradient(135deg, var(--wine) 0%, var(--rose) 100%);
  box-shadow: 0 0 20px var(--rose-glow);
}

.link-card:hover .link-card__icon svg {
  color: #fff;
  transform: scale(1.05);
}

.link-card__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  position: relative;
  z-index: 1;
}

.link-card__title {
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.link-card__desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 300;
}

.link-card__arrow {
  font-size: 1.1rem;
  color: var(--text-muted);
  transition: var(--transition);
  position: relative;
  z-index: 1;
}

.link-card:hover .link-card__arrow {
  color: var(--rose-light);
  transform: translateX(4px);
}


/* --- Hero Link Card (LuciaFaaBe) --- */
.link-card--hero {
  padding: 28px 26px;
  background: transparent;
  border: 1px solid rgba(196, 80, 110, 0.3);
  box-shadow: 0 12px 40px rgba(122, 32, 64, 0.25);
  margin-bottom: 8px;
}

.link-card__hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(30, 18, 22, 0.8) 0%, rgba(60, 20, 40, 0.6) 100%);
  z-index: 0;
  transition: var(--transition);
}

.link-card--hero::before {
  background: linear-gradient(135deg, rgba(196, 80, 110, 0.15) 0%, transparent 80%);
}

.link-card--hero:hover .link-card__hero-bg {
  background: linear-gradient(145deg, rgba(45, 24, 32, 0.9) 0%, rgba(90, 25, 55, 0.75) 100%);
}

.link-card--hero .link-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, #7a2040 0%, #c4506e 100%);
  box-shadow: 0 0 25px rgba(196, 80, 110, 0.4);
}
.link-card--hero .link-card__icon svg {
  width: 28px;
  height: 28px;
  color: #fff;
}

.link-card--hero .link-card__title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.link-card--hero .link-card__desc {
  font-size: 0.88rem;
  color: var(--blush);
  opacity: 0.9;
}

.link-card--hero .link-card__arrow {
  font-size: 1.4rem;
  color: var(--rose-light);
}

.link-card--hero:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 50px rgba(196, 80, 110, 0.35), 0 0 0 1px rgba(196, 80, 110, 0.4);
}


/* --- Project Cards --- */
.project-card {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.project-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--rose) 50%, transparent 100%);
  opacity: 0;
  transition: var(--transition);
}

.project-card:hover {
  border-color: var(--glass-border-h);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(196, 80, 110, 0.1);
}

.project-card:hover::after {
  opacity: 1;
}

.project-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.project-card__badge {
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--wine) 0%, var(--plum) 100%);
  color: var(--blush);
  border: 1px solid rgba(196, 80, 110, 0.2);
}

.project-card__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.35rem;
  color: var(--text-primary);
  letter-spacing: 0.01em;
}

.project-card__desc {
  font-size: 0.84rem;
  line-height: 1.65;
  color: var(--text-secondary);
  font-weight: 300;
  margin-bottom: 18px;
}

.project-card__footer {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.project-card__tag {
  font-size: 0.7rem;
  font-weight: 400;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgba(196, 80, 110, 0.08);
  color: var(--text-muted);
  border: 1px solid rgba(196, 80, 110, 0.1);
  letter-spacing: 0.04em;
}

.project-card__link {
  margin-left: auto;
  font-size: 0.78rem;
  color: var(--rose-light);
  text-decoration: none;
  font-weight: 400;
  letter-spacing: 0.04em;
  transition: var(--transition);
  padding: 4px 0;
}

.project-card__link:hover {
  color: var(--blush);
  text-shadow: 0 0 12px var(--rose-glow);
}

/* --- Footer --- */
.footer {
  margin-top: auto;
  padding-top: 50px;
  text-align: center;
  animation: heroFadeIn 1s ease-out 0.8s both;
}

.footer p {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 300;
  letter-spacing: 0.06em;
}

/* --- Stagger animations for cards --- */
.panel.active .link-card,
.panel.active .project-card {
  animation: cardStagger 0.5s ease-out both;
}

.panel.active .link-card:nth-child(1),
.panel.active .project-card:nth-child(1) { animation-delay: 0.05s; }
.panel.active .link-card:nth-child(2),
.panel.active .project-card:nth-child(2) { animation-delay: 0.12s; }
.panel.active .link-card:nth-child(3),
.panel.active .project-card:nth-child(3) { animation-delay: 0.19s; }
.panel.active .link-card:nth-child(4),
.panel.active .project-card:nth-child(4) { animation-delay: 0.26s; }
.panel.active .link-card:nth-child(5),
.panel.active .project-card:nth-child(5) { animation-delay: 0.33s; }

@keyframes cardStagger {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--plum);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--wine);
}

/* --- Selection --- */
::selection {
  background: var(--rose);
  color: #fff;
}

/* --- Button-style link card (MCP) --- */
.link-card--btn {
  font-family: inherit;
  font-size: inherit;
  text-align: left;
  width: 100%;
}

/* --- Per-card icon accents --- */
.link-card__icon--lucia {
  background: linear-gradient(135deg, #3d1428 0%, rgba(180, 40, 80, 0.45) 100%);
}
.link-card:hover .link-card__icon--lucia {
  background: linear-gradient(135deg, #7a2040 0%, #c4506e 100%);
}

.link-card__icon--mcp {
  background: linear-gradient(135deg, #1a2438 0%, rgba(80, 130, 200, 0.3) 100%);
}
.link-card__icon--mcp svg {
  color: #7aace8;
}
.link-card:hover .link-card__icon--mcp {
  background: linear-gradient(135deg, #2a4060 0%, #5090d0 100%);
  box-shadow: 0 0 20px rgba(80, 130, 200, 0.3);
}

.link-card__icon--paradox {
  background: linear-gradient(135deg, #1e1430 0%, rgba(140, 80, 200, 0.3) 100%);
}
.link-card__icon--paradox svg {
  color: #b88ae8;
}
.link-card:hover .link-card__icon--paradox {
  background: linear-gradient(135deg, #3a2060 0%, #8050c0 100%);
  box-shadow: 0 0 20px rgba(140, 80, 200, 0.3);
}

.link-card__arrow--info {
  display: flex;
  align-items: center;
}

.text-accent {
  color: var(--rose-light);
  font-weight: 300;
  font-size: 0.82em;
}

/* --- Project badge variants --- */
.project-card__badge--live {
  background: linear-gradient(135deg, #7a2040 0%, #3d1428 100%);
}
.project-card__badge--tool {
  background: linear-gradient(135deg, #2a4060 0%, #1a2438 100%);
  color: #7aace8;
  border-color: rgba(80, 130, 200, 0.2);
}
.project-card__badge--ai {
  background: linear-gradient(135deg, #3a2060 0%, #1e1430 100%);
  color: #b88ae8;
  border-color: rgba(140, 80, 200, 0.2);
}

.project-card__link--btn {
  background: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
}

/* --- MCP Overlay / Modal --- */
body.overlay-open {
  overflow: hidden;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.overlay.active {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}

.overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 3, 5, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.overlay__panel {
  position: relative;
  max-width: 460px;
  width: calc(100% - 40px);
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  background: linear-gradient(165deg, rgba(26, 36, 56, 0.9) 0%, rgba(16, 12, 18, 0.95) 100%);
  border: 1px solid rgba(80, 130, 200, 0.2);
  border-radius: 20px;
  padding: 36px 32px 30px;
  transform: translateY(20px) scale(0.96);
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5), 0 0 60px rgba(80, 130, 200, 0.06);
}

.overlay.active .overlay__panel {
  transform: translateY(0) scale(1);
}

.overlay__close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  transition: var(--transition);
  z-index: 2;
}
.overlay__close:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.overlay__icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, #2a4060 0%, #1a2438 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border: 1px solid rgba(80, 130, 200, 0.15);
}
.overlay__icon svg {
  width: 28px;
  height: 28px;
  color: #7aace8;
}

.overlay__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.8rem;
  color: var(--text-primary);
  letter-spacing: 0.01em;
}

.overlay__subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 300;
  margin-top: 6px;
  letter-spacing: 0.04em;
}

.overlay__divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(80, 130, 200, 0.25), transparent);
  margin: 22px 0;
}

.overlay__body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.overlay__section p {
  font-size: 0.84rem;
  line-height: 1.7;
  color: var(--text-secondary);
  font-weight: 300;
}

.overlay__label {
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #7aace8;
  margin-bottom: 8px;
}

.overlay__list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.overlay__list li {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 300;
  padding-left: 18px;
  position: relative;
  line-height: 1.5;
}

.overlay__list li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: #7aace8;
  font-weight: 400;
  font-size: 1rem;
}

.overlay__note {
  padding: 14px 16px;
  background: rgba(80, 130, 200, 0.06);
  border: 1px solid rgba(80, 130, 200, 0.1);
  border-radius: var(--radius-sm);
  font-style: italic;
}

.overlay__badge-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(80, 130, 200, 0.1);
}

.overlay__tech-badge {
  font-size: 0.68rem;
  font-weight: 400;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgba(80, 130, 200, 0.08);
  color: #7aace8;
  border: 1px solid rgba(80, 130, 200, 0.12);
  letter-spacing: 0.04em;
}

/* --- Responsive --- */
@media (max-width: 520px) {
  .container {
    padding: 40px 16px 30px;
  }
  .logo {
    font-size: 2.8rem;
  }
  .subtext {
    font-size: 0.78rem;
    letter-spacing: 0.18em;
  }
  .link-card {
    padding: 15px 18px;
  }
  .project-card {
    padding: 20px;
  }
  .overlay__panel {
    padding: 28px 22px 24px;
  }
}
