/* SERGIO — About / tribute modal */

.sergio-about-overlay {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
}

.sergio-about-overlay[hidden] {
  display: none !important;
}

.sergio-about-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 18, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.sergio-about-modal {
  position: relative;
  width: min(560px, 100%);
  max-height: min(92dvh, 720px);
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(201, 162, 39, 0.14), transparent 55%),
    linear-gradient(180deg, rgba(14, 20, 36, 0.98), rgba(8, 12, 24, 0.99));
  border: 1px solid rgba(201, 162, 39, 0.28);
  border-radius: 20px;
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.55),
    0 0 48px rgba(201, 162, 39, 0.08);
  color: #e8ecf4;
  overflow: hidden;
  animation: sergioAboutIn 0.35s ease;
}

@keyframes sergioAboutIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sergio-about-modal { animation: none; }
  .sergio-about-beacon { animation: none; opacity: 0.5; }
}

.sergio-about-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.sergio-about-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(201, 162, 39, 0.35);
}

.sergio-about-hero {
  position: relative;
  text-align: center;
  padding: 28px 24px 16px;
  flex-shrink: 0;
}

.sergio-about-beacon {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(252, 211, 77, 0.35) 0%, rgba(201, 162, 39, 0.08) 45%, transparent 70%);
  animation: sergioBeacon 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes sergioBeacon {
  0%, 100% { opacity: 0.45; transform: translateX(-50%) scale(1); }
  50% { opacity: 0.85; transform: translateX(-50%) scale(1.06); }
}

.sergio-about-logo {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: contain;
  border: 2px solid rgba(201, 162, 39, 0.45);
  box-shadow: 0 8px 28px rgba(201, 162, 39, 0.2);
  margin-bottom: 12px;
}

.sergio-about-eyebrow {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(252, 211, 77, 0.85);
}

.sergio-about-title {
  margin: 0;
  font-size: clamp(1.15rem, 4vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  line-height: 1.35;
}

.sergio-about-body {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 8px 24px 20px;
  font-size: 15px;
  line-height: 1.72;
  color: rgba(232, 236, 244, 0.92);
}

.sergio-about-body p {
  margin: 0 0 1em;
}

.sergio-about-body strong {
  color: #fde68a;
  font-weight: 700;
}

.sergio-about-quote {
  margin: 1.25em 0;
  padding: 16px 18px;
  border-left: 3px solid rgba(201, 162, 39, 0.65);
  border-radius: 0 12px 12px 0;
  background: rgba(201, 162, 39, 0.08);
}

.sergio-about-quote p {
  margin: 0 0 0.75em;
  font-style: italic;
  color: rgba(255, 255, 255, 0.95);
}

.sergio-about-quote p:last-child {
  margin-bottom: 0;
}

.sergio-about-closing {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.95);
  padding-top: 4px;
}

.sergio-about-foot {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(201, 162, 39, 0.75);
}

.sergio-about-foot-glow {
  color: rgba(252, 211, 77, 0.9);
  font-size: 14px;
}

/* Triggers */
.sergio-about-logo-btn {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}

.sergio-about-logo-btn img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: block;
}

.sergio-about-logo-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(201, 162, 39, 0.25);
}

.sergio-about-logo-btn:focus-visible {
  outline: 2px solid rgba(201, 162, 39, 0.6);
  outline-offset: 2px;
}

.sergio-about-nav-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 6px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(252, 211, 77, 0.88);
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  transition: background 0.18s, border-color 0.18s;
}

.sergio-about-nav-btn:hover {
  background: rgba(201, 162, 39, 0.1);
  border-color: rgba(201, 162, 39, 0.25);
}

.sergio-about-nav-btn .sidebar-label {
  font-weight: 600;
}

.card-logo.sergio-about-trigger {
  cursor: pointer;
  transition: transform 0.2s;
}

.card-logo.sergio-about-trigger:hover {
  transform: scale(1.02);
}

.card-logo.sergio-about-trigger:focus-visible {
  outline: 2px solid rgba(201, 162, 39, 0.5);
  outline-offset: 4px;
  border-radius: 12px;
}

.splash-logo.sergio-about-trigger {
  cursor: pointer;
}

@media (max-width: 768px) {
  .sergio-about-modal {
    max-height: 94dvh;
    border-radius: 20px 20px 0 0;
    align-self: flex-end;
  }

  .sergio-about-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .sergio-about-body {
    padding-left: 18px;
    padding-right: 18px;
    font-size: 16px;
  }
}
