/* ═══════════════════════════════════════════════
   FÁBIO LIMA — Portfolio
   Raw. Dark. Musical.
   ═══════════════════════════════════════════════ */

:root {
  --c-bg:      #09090b;
  --c-s1:      #111114;
  --c-s2:      #18181b;
  --c-s3:      #27272a;
  --c-s4:      #3f3f46;
  --c-border:  #27272a;
  --c-text-1:  #f4f4f5;
  --c-text-2:  #a1a1aa;
  --c-text-3:  #52525b;
  --c-red:     #ef4444;
  --c-red-dim: #991b1b;
  --c-cyan:    #22d3ee;
  --c-cyan-dim:#164e63;
  --c-green:   #4ade80;
  --c-yellow:  #facc15;

  --font-display: 'Outfit', sans-serif;
  --font-body:    'Space Grotesk', sans-serif;
  --font-mono:    'Space Mono', monospace;

  --ease: cubic-bezier(.4, 0, .2, 1);
  --radius: 6px;
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--c-bg);
  color: var(--c-text-1);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: rgba(239,68,68,.3); }
::-webkit-scrollbar { width:5px; }
::-webkit-scrollbar-thumb { background: var(--c-s4); border-radius:99px; }

/* ── Glitch Text Effect ── */
.glitch-wrapper { position: relative; display: inline-block; }
.glitch { position: relative; }
.glitch::before, .glitch::after {
  content: attr(data-text);
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0.8;
}
.glitch::before {
  color: var(--c-cyan); z-index: -1;
  animation: glitch-anim-1 3s infinite linear alternate-reverse;
}
.glitch::after {
  color: var(--c-red); z-index: -2;
  animation: glitch-anim-2 2.5s infinite linear alternate-reverse;
}
@keyframes glitch-anim-1 {
  0% { clip-path: inset(20% 0 80% 0); transform: translate(-2px, 1px); }
  20% { clip-path: inset(60% 0 10% 0); transform: translate(2px, -1px); }
  40% { clip-path: inset(40% 0 50% 0); transform: translate(-2px, 2px); }
  60% { clip-path: inset(80% 0 5% 0); transform: translate(2px, -2px); }
  80% { clip-path: inset(10% 0 70% 0); transform: translate(-1px, 1px); }
  100% { clip-path: inset(30% 0 50% 0); transform: translate(1px, -1px); }
}
@keyframes glitch-anim-2 {
  0% { clip-path: inset(10% 0 60% 0); transform: translate(2px, -1px); }
  20% { clip-path: inset(80% 0 5% 0); transform: translate(-2px, 1px); }
  40% { clip-path: inset(30% 0 20% 0); transform: translate(2px, 2px); }
  60% { clip-path: inset(50% 0 30% 0); transform: translate(-2px, -2px); }
  80% { clip-path: inset(5% 0 80% 0); transform: translate(1px, 1px); }
  100% { clip-path: inset(40% 0 40% 0); transform: translate(-1px, -1px); }
}


/* ── Nav ── */
.nav {
  position: fixed; top:0; left:0; right:0; z-index:100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(1rem,3vw,2.5rem);
  height: 56px;
  background: rgba(9,9,11,.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.nav__logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: .04em;
  color: var(--c-text-1);
  text-decoration: none;
}
.nav__logo span { color: var(--c-red); }
.nav__links { display:flex; gap:2px; }
.nav__links a {
  font-size: .78rem; font-weight: 500;
  color: var(--c-text-3); text-decoration: none;
  padding: 6px 12px; border-radius: var(--radius);
  transition: color .2s, background .2s;
  letter-spacing: .03em;
}
.nav__links a:hover { color: var(--c-text-1); background:rgba(255,255,255,.04); }

.eq { display:flex; align-items:flex-end; gap:2px; height:18px; }
.eq span { display:block; width:3px; border-radius:1px; background: var(--c-red); }
.eq--nav span:nth-child(1) { animation: eq .9s 0s ease-in-out infinite; }
.eq--nav span:nth-child(2) { animation: eq .9s .15s ease-in-out infinite; }
.eq--nav span:nth-child(3) { animation: eq .9s .3s ease-in-out infinite; }
.eq--nav span:nth-child(4) { animation: eq .9s .1s ease-in-out infinite; }
.eq--nav span:nth-child(5) { animation: eq .9s .25s ease-in-out infinite; }
.eq--small { height:14px; }
.eq--small span { width:2px; }
.eq--small span:nth-child(1) { animation: eq 1s 0s ease-in-out infinite; }
.eq--small span:nth-child(2) { animation: eq 1s .2s ease-in-out infinite; }
.eq--small span:nth-child(3) { animation: eq 1s .1s ease-in-out infinite; }
@keyframes eq { 0%,100%{height:4px} 50%{height:100%} }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 80px clamp(1.5rem,4vw,4rem);
  gap: 2rem;
  overflow: hidden;
}
/* Full background photo setup */
.hero__photo-bg {
  position: absolute; inset: 0;
  z-index: 0;
  background: var(--c-s1); /* Fallback */
  /* background-image: url('caminho/para/sua/foto.jpg'); */
  background-size: cover;
  background-position: center;
}
.hero__photo-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 12px;
  color: var(--c-text-3);
  font-family: var(--font-mono);
  font-size: .8rem;
  opacity: .3;
}
.hero__overlay {
  position: absolute; inset: 0;
  z-index: 1;
  background: linear-gradient(to right, rgba(9,9,11,.95) 0%, rgba(9,9,11,.7) 50%, rgba(9,9,11,.3) 100%);
}
.hero__content { position:relative; z-index:2; max-width: 600px; }
.hero__over {
  font-family: var(--font-mono);
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--c-red);
  margin-bottom: 1.5rem;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 8.5rem);
  font-weight: 900;
  line-height: .85;
  letter-spacing: -.05em;
  text-transform: uppercase;
}
.hero__title em {
  font-style: normal;
  color: var(--c-red);
  display: inline-block;
  animation: glowPulse 3s ease-in-out infinite;
}
@keyframes glowPulse {
  0%,100% { text-shadow: 0 0 20px rgba(239,68,68,.15); }
  50%     { text-shadow: 0 0 60px rgba(239,68,68,.4); }
}

.hero__sub {
  margin-top: 1.5rem;
  font-size: 1.1rem;
  color: var(--c-text-2);
  line-height: 1.7;
}

.hero__stats {
  display: flex;
  gap: 40px;
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,.08);
}
.hero-stat strong {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  display: block;
  letter-spacing: -.02em;
  color: var(--c-text-1);
}
.hero-stat span {
  font-size: .7rem;
  color: var(--c-text-3);
  text-transform: uppercase;
  letter-spacing: .08em;
  line-height: 1.4;
  display: block;
}

/* Vinyl */
.hero__vinyl {
  display:flex; justify-content:center; align-items:center;
  position:relative; z-index:2;
}
.vinyl {
  width: clamp(260px,28vw,400px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #1a1a1a 0%, #0a0a0a 100%);
  position: relative;
  animation: vinylSpin 8s linear infinite;
  box-shadow: inset 0 0 40px rgba(0,0,0,.6), 0 0 80px rgba(0,0,0,.5);
}
@keyframes vinylSpin { to { transform: rotate(360deg); } }
.vinyl__groove {
  position: absolute; border-radius:50%;
  border: 1px solid rgba(255,255,255,.03);
}
.vinyl__groove:nth-child(1) { inset:15%; }
.vinyl__groove:nth-child(2) { inset:25%; }
.vinyl__groove:nth-child(3) { inset:35%; }
.vinyl__label {
  position:absolute; inset:38%;
  border-radius:50%;
  background: linear-gradient(135deg, var(--c-red-dim), #111);
  display:flex; align-items:center; justify-content:center;
  box-shadow: inset 0 0 10px rgba(0,0,0,.4);
}
.vinyl__label-text {
  font-family: var(--font-display);
  font-weight:800; font-size:1.4rem;
  color:rgba(255,255,255,.7);
  letter-spacing:.05em;
}

.hero__visualizer {
  position:absolute; bottom:0; left:0; right:0;
  height:120px; z-index:10; opacity:.5; pointer-events:none;
}
.hero__visualizer canvas { width:100%; height:100%; display:block; }

/* ── Sections ── */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 6rem clamp(1.5rem,4vw,3rem);
}
.section__head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--c-border);
  padding-bottom: 1rem;
}
.section__number {
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--c-red);
  letter-spacing: .06em;
}
.section__title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -.03em;
  text-transform: uppercase;
}

/* ── About ── */
.about {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 4rem;
  align-items: start;
}
.about__photo-frame {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.about__img-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--c-s1);
  border-radius: var(--radius);
  border: 1px dashed var(--c-s4);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 12px;
  color: var(--c-text-3);
  font-family: var(--font-mono); font-size: .75rem;
  /* background-image: url('sua-foto-aqui.jpg'); */
  background-size: cover;
  background-position: center;
}
.about__badge {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: .65rem;
  color: var(--c-red);
  text-transform: uppercase;
  letter-spacing: .08em;
  background: rgba(239,68,68,.06);
  padding: 8px 16px;
  border-radius: 99px;
  border: 1px solid rgba(239,68,68,.1);
  width: 100%;
}

.about__name {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 4px;
}
.about__role {
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--c-red);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 2rem;
}
.about__bio {
  font-size: .95rem;
  color: var(--c-text-2);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}
.about__bio strong { color: var(--c-text-1); font-weight: 600; }
.about__quote {
  margin-top: 2rem;
  padding: 1.5rem 2rem;
  border-left: 3px solid var(--c-red);
  background: rgba(239,68,68,.04);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  font-size: .95rem;
  color: var(--c-text-2);
  line-height: 1.7;
}

/* ── Galeria ── */
.photo-band {
  background: var(--c-s1);
  padding: 6rem 0;
  border-top: 1px solid rgba(255,255,255,.02);
  border-bottom: 1px solid rgba(255,255,255,.02);
}
.photo-band__header {
  max-width: 1100px;
  margin: 0 auto 3rem;
  padding: 0 clamp(1.5rem,4vw,3rem);
  display: flex;
  align-items: baseline;
  gap: 1rem;
}
.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 250px;
  grid-auto-flow: dense;
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem,4vw,3rem);
}
.photo-cell {
  position: relative;
  background: var(--c-s2);
  border-radius: 8px;
  overflow: hidden;
  /* background-image: url(...); */
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255,255,255,.04);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.photo-cell.fade-swap {
  opacity: 0;
  transform: scale(0.9);
}
.photo-cell--tall { grid-row: span 2; }
.photo-cell--wide { grid-column: span 2; }
.photo-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 10px;
  color: var(--c-text-3);
  font-family: var(--font-mono); font-size: .7rem;
  border: 1px dashed var(--c-s4);
  border-radius: 4px;
}

/* ── Timeline (Compact) ── */
.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.tl-item {
  background: var(--c-s1);
  border: 1px solid rgba(255,255,255,.03);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color .2s, background .2s, transform .25s var(--ease);
}
.tl-item:hover {
  border-color: var(--c-border);
  background: var(--c-s2);
  transform: translateY(-2px);
}
.tl-marker {
  display: flex;
  align-items: center;
  gap: 10px;
}
.tl-dot {
  width: 10px; height: 10px;
  background: var(--c-s4);
  border-radius: 50%;
  transition: background .2s;
}
.tl-item:hover .tl-dot { background: var(--c-red); }
.tl-dot--active {
  background: var(--c-red) !important;
  box-shadow: 0 0 12px rgba(239,68,68,.4);
  animation: dotPulse 2s ease-in-out infinite;
}
.tl-year {
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--c-text-3);
  letter-spacing: .08em;
}
.tl-year--active { color: var(--c-red); }
.tl-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.tl-card p {
  font-size: .85rem;
  color: var(--c-text-2);
  line-height: 1.6;
  margin-bottom: 12px;
}
.tl-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font-family: var(--font-mono);
  font-size: .55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 4px 10px;
  border-radius: 3px;
  background: rgba(255,255,255,.03);
  color: var(--c-text-3);
  border: 1px solid rgba(255,255,255,.05);
}
.chip--new { color: var(--c-cyan); border-color: rgba(34,211,238,.12); background: rgba(34,211,238,.06); }
.chip--accent { color: var(--c-yellow); border-color: rgba(250,204,21,.1); background: rgba(250,204,21,.05); }

.tl-live {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: .6rem;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--c-red);
  margin-bottom: 10px;
}
.pulse-dot {
  width: 6px; height: 6px;
  background: var(--c-red);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity:1; box-shadow:0 0 0 0 rgba(239,68,68,.4); }
  50% { opacity:.7; box-shadow:0 0 0 6px rgba(239,68,68,0); }
}

/* ── Photo Divider ── */
.photo-divider {
  position: relative;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  /* background-image: url('sua-foto-panoramica.jpg'); */
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* Parallax effect */
  background-color: var(--c-s1);
}
.photo-divider__placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px;
  color: var(--c-text-3);
  font-family: var(--font-mono); font-size: .8rem;
  border-top: 1px dashed var(--c-s4);
  border-bottom: 1px dashed var(--c-s4);
}
.photo-divider__overlay {
  position: absolute; inset: 0;
  background: rgba(9,9,11,.7);
}
.photo-divider__text {
  position: relative; z-index: 1;
  padding: 0 2rem;
}
.photo-divider__text p {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--c-text-1);
  line-height: 1.3;
  letter-spacing: -.02em;
  font-style: italic;
}

/* ── Instruments ── */
.instruments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.instrument-card {
  padding: 28px;
  background: var(--c-s1);
  border: 1px solid rgba(255,255,255,.03);
  border-radius: var(--radius);
  transition: border-color .2s, transform .3s var(--ease);
}
.instrument-card:hover {
  border-color: var(--c-border);
  transform: translateY(-4px);
}
.instrument-card--wide {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 32px;
}
.instrument-card__icon {
  width: 64px; height: 64px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(239,68,68,.06);
  border-radius: var(--radius);
  color: var(--c-red);
  margin-bottom: 20px;
  flex-shrink: 0;
  transition: background .2s;
}
.instrument-card:hover .instrument-card__icon { background: rgba(239,68,68,.1); }
.instrument-card__icon--cyan { color: var(--c-cyan); background: rgba(34,211,238,.06); }
.instrument-card:hover .instrument-card__icon--cyan { background: rgba(34,211,238,.1); }
.instrument-card__icon--highlight {
  color: var(--c-text-1);
  background: linear-gradient(135deg, var(--c-red-dim), var(--c-s3));
  width: 72px; height: 72px;
}
.instrument-card--wide .instrument-card__icon { margin-bottom:0; }

.instrument-card__name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 6px;
  letter-spacing: -.02em;
}
.instrument-card__desc {
  font-size: .88rem;
  color: var(--c-text-2);
  line-height: 1.6;
  margin-bottom: 12px;
}
.instrument-card__time {
  font-family: var(--font-mono);
  font-size: .65rem;
  color: var(--c-text-3);
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* ── Footer ── */
.footer {
  position: relative;
  text-align: center;
  padding: 6rem 2rem;
  margin-top: 4rem;
  border-top: 1px solid rgba(255,255,255,.04);
  /* background-image: url('sua-foto-footer.jpg'); */
  background-size: cover;
  background-position: center;
}
.footer__bg-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px;
  color: var(--c-text-3);
  font-family: var(--font-mono); font-size: .7rem;
  opacity: .5;
}
.footer__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(9,9,11,1) 0%, rgba(9,9,11,.85) 100%);
}
.footer__content { position: relative; z-index: 1; }
.footer__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}
.footer__name {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--c-text-1);
  letter-spacing: -.03em;
}
.footer__name em { font-style: normal; color: var(--c-red); }
.footer__tagline {
  color: var(--c-text-2);
  font-size: .95rem;
  margin-bottom: 2rem;
}
.footer__sub {
  font-family: var(--font-mono);
  font-size: .65rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-text-3);
}

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 992px) {
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav__links { display:none; }
  .hero { grid-template-columns: 1fr; align-items: center; text-align: center; padding-top: 120px; }
  .hero__vinyl { display:none; }
  .hero__overlay { background: rgba(9,9,11,.85); }
  .hero__stats { justify-content: center; gap: 24px; flex-wrap: wrap; }
  
  .about { grid-template-columns: 1fr; gap: 2rem; }
  .about__photo-frame { position: static; max-width: 300px; margin: 0 auto; }
  
  .photo-grid { grid-template-columns: 1fr; grid-auto-rows: 200px; }
  .photo-cell--tall, .photo-cell--wide { grid-row: auto; grid-column: auto; }
  
  .timeline { grid-template-columns: 1fr; }
  
  .instrument-card--wide { flex-direction: column; text-align: center; gap: 16px; }
  
  .section { padding: 4rem clamp(1rem,4vw,2rem); }
}

:focus-visible { outline: 2px solid var(--c-red); outline-offset: 2px; }
button:focus:not(:focus-visible), a:focus:not(:focus-visible), input:focus:not(:focus-visible) { outline: none; }

@media (prefers-reduced-motion:reduce) {
  *, *::before, *::after {
    animation-duration: .01ms!important;
    transition-duration: .01ms!important;
  }
  html { scroll-behavior: auto; }
}
