/* =============================================================
   INDEX.CSS
   Secções:
     01 · Reset & Base
     02 · Scrollbar
     03 · Navbar
     04 · Nav Indicator
     05 · Hamburger Menu
     06 · Hero
     07 · Skills Box
     08 · Featured Projects
     09 · Switcher
     10 · Album Wrapper & Tracks
     11 · Carousel
     12 · Social Icons
     13 · Page Loader
     14 · Audio Player Persistente
     15 · Scroll Top
     17 · Footer
     18 · Responsivo — Tablet (≤ 768px)
     19 · Responsivo — Telemóvel pequeno (≤ 420px)
============================================================= */

/* ─────────────────────────────────────────────────────────────
   01 · RESET & BASE
   Remove margens/paddings padrão e define o fundo global.
───────────────────────────────────────────────────────────── */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #111;
  font-family: Arial, sans-serif;
}

/* ─────────────────────────────────────────────────────────────
   02 · SCROLLBAR
   Scrollbar fina e dourada, compatível com Chrome e Firefox.
───────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d5a83d; border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: #f4c84a; }

* {
  scrollbar-width: thin;
  scrollbar-color: #d5a83d transparent;
}

/* ─────────────────────────────────────────────────────────────
   03 · NAVBAR
   Barra de navegação fixa no topo com efeito de blur ao scroll.
───────────────────────────────────────────────────────────── */
.navbar {
  width: 100%;
  height: 125px;
  background: #090606;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 42px;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid transparent;
  transition:
    background 0.35s ease,
    border-color 0.35s ease,
    backdrop-filter 0.35s ease,
    box-shadow 0.35s ease;
}

.navbar.scrolled {
  background: rgba(9, 6, 6, 0.16);
  border-bottom: 1px solid rgba(217, 165, 47, 0.16);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
}

.logo img {
  width: 90px;
  height: auto;
  display: block;
  flex-shrink: 0;
  transform: translateX(350px);
}

nav {
  display: flex;
  gap: 38px;
  position: relative;
}

nav a {
  color: #8f8983;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: 0.2s ease;
}

nav a:hover      { color: #d5a83d; }
nav a.nav-active { color: #d5a83d; }

.contact {
  display: flex;
  align-items: center;
  gap: 18px;
  transform: translateX(-350px);
}

.contact .phone a {
  color: #d5a83d;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.1;
}

.contact .phone a:hover { color: #f4c84a; }

.contact .phone span {
  color: #7e7770;
  font-size: 12px;
  margin-top: 4px;
  display: block;
}

.theme-toggle {
  width: 55px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid #8b641c;
  background: #3a2c13;
  display: flex;
  align-items: center;
  padding-left: 7px;
  cursor: pointer;
}

.theme-toggle span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #d5a83d;
  color: #1b1408;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

/* ─────────────────────────────────────────────────────────────
   04 · NAV INDICATOR
   Linha dourada animada que aparece por baixo do link ativo.
───────────────────────────────────────────────────────────── */
#nav-indicator {
  position: absolute;
  bottom: -8px;
  height: 2px;
  border-radius: 999px;
  background: #d5a83d;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: center;
  transition:
    opacity 0.4s ease,
    transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow:
    0 0 6px rgba(213, 168, 61, 0.7),
    0 0 14px rgba(213, 168, 61, 0.3);
  pointer-events: none;
}

#nav-indicator.visible {
  opacity: 1;
  transform: scaleX(1);
}

/* ─────────────────────────────────────────────────────────────
   05 · HAMBURGER MENU
   Botão, overlay e drawer lateral para mobile (≤ 1529px).
───────────────────────────────────────────────────────────── */
#hamburger   { display: none; }
#nav-drawer  { display: none; }
#nav-overlay { display: none; }

@media (max-width: 1529px) {

  .navbar {
    height: auto;
    padding: 16px 20px;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    gap: 0;
  }

  .navbar nav { display: none; }
  .logo img   { transform: none !important; }

  .contact {
    transform: none !important;
    gap: 10px;
    flex-shrink: 0;
  }

  .phone { display: none; }

  #hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid rgba(217, 165, 47, 0.3);
    border-radius: 8px;
    cursor: pointer;
    padding: 8px;
    flex-shrink: 0;
  }

  #hamburger span {
    display: block;
    height: 2px;
    background: #d5a83d;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
  }

  #hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  #hamburger.open span:nth-child(2) { opacity: 0; }
  #hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  #nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  #nav-overlay.open { opacity: 1; pointer-events: all; }

  #nav-drawer {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    width: 75vw;
    max-width: 300px;
    height: 100dvh;
    background: #0e0a08;
    border-left: 1px solid rgba(217, 165, 47, 0.15);
    z-index: 1999;
    padding: 80px 28px 40px;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
  }

  #nav-drawer.open { transform: translateX(0); }

  #nav-drawer nav {
    display: flex !important;
    flex-direction: column;
    gap: 8px;
    position: relative;
  }

  #nav-drawer nav a {
    font-size: 18px;
    font-weight: 700;
    color: #8f8983;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: color 0.2s ease, padding-left 0.2s ease;
  }

  #nav-drawer nav a:last-of-type { border-bottom: none; }

  #nav-drawer nav a:hover,
  #nav-drawer nav a.nav-active {
    color: #d5a83d;
    padding-left: 8px;
  }

  #nav-drawer #nav-indicator {
    display: block;
    position: absolute;
    left: -12px;
    width: 3px !important;
    border-radius: 999px;
    background: #d5a83d;
    box-shadow: 0 0 6px rgba(213, 168, 61, 0.7);
    opacity: 0;
    transition: top 0.35s cubic-bezier(0.4, 0, 0.2, 1), height 0.35s ease, opacity 0.3s ease;
    pointer-events: none;
  }

  #nav-drawer #nav-indicator.visible { opacity: 1; }

  #nav-drawer .drawer-phone {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(213, 168, 61, 0.2);
  }

  #nav-drawer .drawer-phone a {
    color: #d5a83d;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
  }

  #nav-drawer .drawer-phone a:hover { color: #f4c84a; }

  #nav-drawer .drawer-phone span {
    color: #7e7770;
    font-size: 0.85rem;
  }
}

/* ─────────────────────────────────────────────────────────────
   06 · HERO
   Secção principal com título, descrição e botões de ação.
───────────────────────────────────────────────────────────── */
.hero {
  min-height: calc(100vh - 125px);
  padding: 60px 32px;
  background: #090606;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 60px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 58px 58px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
  margin: 0 auto;
  width: 100%;
}

.hero-tag {
  display: inline-flex;
  padding: 9px 22px;
  border: 1px solid rgba(225, 177, 59, 0.45);
  border-radius: 999px;
  color: #e1b13b;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  margin-bottom: 28px;
}

.hero h1 {
  margin: 0;
  color: #f3f0ed;
  font-size: clamp(40px, 6vw, 92px);
  line-height: 0.95;
  font-weight: 800;
}

.hero h1 span {
  display: block;
  color: #e1b13b;
}

.hero p {
  max-width: 720px;
  margin: 28px auto 0;
  color: #b9aea2;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.45;
}

.hero-buttons {
  margin-top: 42px;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-buttons a {
  height: 52px;
  padding: 0 32px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    color 0.28s ease,
    border-color 0.28s ease,
    background 0.28s ease,
    box-shadow 0.28s ease,
    transform 0.28s ease;
}

.hero-buttons a:hover { transform: translateY(-2px); }

.btn-primary   { background: #d9a52f; color: #0c0806; }
.btn-secondary { color: #fff; border: 1px solid rgba(217, 165, 47, 0.35); background: transparent; }

.btn-secondary:hover {
  color: #f4e8c1;
  border-color: rgba(217, 165, 47, 0.7);
  background: rgba(217, 165, 47, 0.1);
  box-shadow:
    0 4px 18px rgba(213, 168, 61, 0.22),
    0 0 0 1px rgba(213, 168, 61, 0.12);
}

/* ─────────────────────────────────────────────────────────────
   07 · SKILLS BOX
───────────────────────────────────────────────────────────── */
.skills-box {
  position: relative;
  z-index: 2;
  width: fit-content;
  max-width: 100%;
  min-height: 90px;
  margin: 0 auto;
  border: 1px solid rgba(214, 160, 47, 0.18);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.015);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 48px;
}

.skills-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.skills-list img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  display: block;
  opacity: 0.8;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.skills-list img:hover { opacity: 1; transform: scale(1.15); }

/* ─────────────────────────────────────────────────────────────
   08 · FEATURED PROJECTS
───────────────────────────────────────────────────────────── */
.featured-projects {
  background: #0b0707;
  color: #fff;
  padding: 120px 32px 130px;
  border-top: 1px solid rgba(217, 165, 47, 0.18);
}

.section-title {
  text-align: center;
  margin-bottom: 120px;
}

.section-title h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  color: #f4f1ed;
  margin-bottom: 24px;
}

.section-title span {
  display: block;
  width: 115px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #d9a52f, transparent);
  margin: 0 auto 90px;
}

.section-title p { color: #c2b8ad; font-size: clamp(16px, 2vw, 20px); }

.project {
  max-width: 1020px;
  margin: 0 auto 140px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 90px;
}

.project img {
  width: 100%;
  max-width: 470px;
  border-radius: 12px;
  display: block;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}

.project-normal img  { justify-self: end; }
.project-reverse img { justify-self: start; }

.project-info h4 { color: #d9a52f; font-size: 14px; font-weight: 800; letter-spacing: 0.8px; margin-bottom: 14px; }
.project-info h3 { color: #f4f1ed; font-size: clamp(22px, 3vw, 28px); line-height: 1.2; margin-bottom: 22px; }
.project-info p  { color: #c2b8ad; font-size: 16px; line-height: 1.6; max-width: 500px; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

.tags span {
  color: #d9a52f;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(217, 165, 47, 0.12);
  border: 1px solid rgba(217, 165, 47, 0.25);
  transition:
    color 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.tags span:hover {
  color: #f4e8c1;
  border-color: rgba(217, 165, 47, 0.6);
  background: rgba(217, 165, 47, 0.15);
  box-shadow: 0 0 12px rgba(213, 168, 61, 0.2);
  transform: translateY(-1px);
}

.projects-button { text-align: center; margin-top: -20px; }

.projects-button a {
  height: 52px;
  padding: 0 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(217, 165, 47, 0.35);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  transition:
    color 0.28s ease,
    border-color 0.28s ease,
    background 0.28s ease,
    box-shadow 0.28s ease,
    transform 0.28s ease;
}

.projects-button a:hover {
  color: #f4e8c1;
  border-color: rgba(217, 165, 47, 0.7);
  background: rgba(217, 165, 47, 0.1);
  box-shadow:
    0 4px 18px rgba(213, 168, 61, 0.22),
    0 0 0 1px rgba(213, 168, 61, 0.12);
  transform: translateY(-2px);
}

/* ─────────────────────────────────────────────────────────────
   09 · SWITCHER
───────────────────────────────────────────────────────────── */
.switcher__track {
  display: flex;
  align-items: center;
  background-color: #2a2a2a;
  border-radius: 999px;
  padding: 4px;
  gap: 2px;
  position: relative;
}

.switcher__btn {
  position: relative;
  padding: 8px 24px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #888;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition:
    color 0.25s ease,
    background 0.25s ease;
  z-index: 1;
  white-space: nowrap;
}

.switcher__btn:not(.active):hover {
  color: #c2a96a;
  background: rgba(217, 165, 47, 0.07);
}

.switcher__btn.active { color: #1a1a1a; }

.switcher__pill {
  position: absolute;
  top: 4px;
  bottom: 4px;
  border-radius: 999px;
  background-color: #d4a030;
  transition:
    left 0.25s cubic-bezier(0.4, 0, 0.2, 1),
    width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
  pointer-events: none;
}

/* ─────────────────────────────────────────────────────────────
   10 · ALBUM WRAPPER & TRACKS
───────────────────────────────────────────────────────────── */
.album-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: 465px;
}

.switcher { display: flex; justify-content: center; }

.tab-panel        { width: 100%; }
.tab-panel.hidden { display: none; }

.album-cover {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
}

.album-cover img { width: 100%; height: auto; display: block; }

.tracks {
  background: #1c1713;
  border-radius: 14px;
  border: 1px solid rgba(217, 165, 47, 0.14);
  padding: 10px 18px;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.track {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition:
    background 0.22s ease,
    padding-left 0.22s ease;
  border-radius: 6px;
}

.track:hover {
  background: rgba(217, 165, 47, 0.04);
  padding-left: 6px;
}

.track:last-child  { border-bottom: none; }
.track-label       { color: #c2b8ad; font-size: 13px; font-weight: 600; letter-spacing: 0.3px; }
.track audio       { width: 100%; height: 36px; accent-color: #d4a030; }

/* ─────────────────────────────────────────────────────────────
   11 · CAROUSEL
───────────────────────────────────────────────────────────── */
.image-carousel {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.carousel-container {
  position: relative;
  width: 100%;
  max-width: 650px;
  overflow: hidden;
  border-radius: 24px;
  background: transparent;
  border: none;
  box-shadow: none;
}

.carousel-track { display: flex; transition: transform 0.6s ease; }

.carousel-slide {
  width: 100%;
  min-width: 100%;
  flex-shrink: 0;
  height: auto;
  object-fit: cover;
  display: block;
  padding: 0;
  margin: 0;
  background: transparent;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #d9a52f;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  z-index: 50;
  transition:
    background 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease,
    color 0.25s ease;
}

.carousel-btn:hover {
  transform: translateY(-50%) translateY(-2px);
  background: rgba(20, 13, 3, 0.88);
  color: #f4c84a;
  box-shadow:
    0 6px 20px rgba(213, 168, 61, 0.3),
    0 0 0 1px rgba(217, 165, 47, 0.25);
}

.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

.carousel-dots {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.carousel-dot        { width: 9px; height: 9px; border-radius: 50%; background: rgba(0, 0, 0, 0.2); transition: 0.25s ease; }
.carousel-dot.active { width: 26px; border-radius: 999px; background: #d9a52f; }

/* ─────────────────────────────────────────────────────────────
   12 · SOCIAL ICONS
───────────────────────────────────────────────────────────── */
.social-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-link:hover .social-icon {
  opacity: 1;
  filter: brightness(0) saturate(100%) invert(68%) sepia(60%) saturate(400%) hue-rotate(5deg) brightness(95%);
}

/* ─────────────────────────────────────────────────────────────
   13 · PAGE LOADER
───────────────────────────────────────────────────────────── */
#page-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #090606;
  pointer-events: all;
  transition: opacity 0.6s ease;
}

#page-loader.fade-out { opacity: 0; pointer-events: none; }

.loader-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.loader-logo {
  width: 120px;
  height: auto;
  opacity: 0;
  transform: scale(0.8);
  filter: brightness(0) invert(1);
  transition:
    opacity 0.5s ease,
    transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.loader-logo.show  { opacity: 1; transform: scale(1); }
.loader-logo.pulse { animation: loader-pulse 0.4s ease forwards; }

@keyframes loader-pulse {
  0%   { transform: scale(1);    filter: brightness(0) invert(1); }
  50%  { transform: scale(1.08); filter: brightness(0) invert(1) drop-shadow(0 0 18px rgba(213, 168, 61, 0.9)); }
  100% { transform: scale(1);    filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(213, 168, 61, 0.5)); }
}

.loader-line        { height: 1px; width: 0; background: linear-gradient(90deg, transparent, #d5a83d, transparent); transition: width 0.5s ease; }
.loader-line.expand { width: 150px; }

.loader-label {
  color: #7e7770;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  font-family: Arial, sans-serif;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.loader-label.show { opacity: 1; transform: translateY(0); }

/* ─────────────────────────────────────────────────────────────
   14 · AUDIO PLAYER PERSISTENTE
───────────────────────────────────────────────────────────── */
#persistent-player {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  background: rgba(20, 13, 3, 0.97);
  border-top: 1px solid rgba(217, 165, 47, 0.3);
  padding: 10px 24px 12px;
  backdrop-filter: blur(12px);
}

.pp-inner {
  max-width: 1020px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pp-row1 {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pp-row2 {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pp-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.pp-icon {
  width: 32px;
  height: 32px;
  background: rgba(212, 160, 48, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d4a030;
  font-size: 14px;
  flex-shrink: 0;
}

.pp-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  min-width: 0;
}

.pp-title {
  color: #f4f1ed;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pp-sub   { color: #7e7770; font-size: 11px; }

.pp-controls {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.pp-btn {
  background: transparent;
  border: none;
  color: #d4a030;
  font-size: 15px;
  cursor: pointer;
  padding: 5px 7px;
  border-radius: 6px;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
  flex-shrink: 0;
  line-height: 1;
}

.pp-btn:hover {
  color: #f4c84a;
  background: rgba(217, 165, 47, 0.1);
  box-shadow: 0 0 10px rgba(213, 168, 61, 0.18);
  transform: translateY(-1px);
}

.pp-close       { color: #555; font-size: 12px; }
.pp-close:hover { color: #f4f1ed; background: rgba(255,255,255,0.06); box-shadow: none; transform: none; }

.pp-seek {
  flex: 1;
  accent-color: #d4a030;
  cursor: pointer;
  min-width: 0;
  height: 3px;
}

.pp-vol  { width: 64px; accent-color: #d4a030; cursor: pointer; flex-shrink: 0; }

.pp-time {
  color: #7e7770;
  font-size: 11px;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 70px;
}

@media (max-width: 600px) {
  #persistent-player { padding: 10px 14px 12px; }
  .pp-vol  { display: none; }
  .pp-time { min-width: 60px; font-size: 10px; }
}

#pp-toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1a1108;
  color: #f4f1ed;
  border: 1px solid rgba(217, 165, 47, 0.3);
  border-radius: 999px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  z-index: 10001;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

#pp-toast.pp-toast-show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 640px) {
  #pp-toast {
    white-space: normal;
    text-align: center;
    width: calc(100% - 48px);
    border-radius: 16px;
    font-size: 13px;
  }
}

/* ─────────────────────────────────────────────────────────────
   15 · SCROLL TOP
───────────────────────────────────────────────────────────── */
.scroll-top {
  position: fixed;
  right: 32px;
  bottom: 32px;
  z-index: 9999;
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 50%;
  background: #d8a62d;
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 700;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(15px);
  box-shadow: 0 0 25px rgba(216, 166, 45, 0.35);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    visibility 0.25s ease,
    box-shadow 0.25s ease;
}

.scroll-top.show { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }

.scroll-top:hover {
  transform: translateY(-3px);
  box-shadow:
    0 0 28px rgba(216, 166, 45, 0.55),
    0 8px 20px rgba(0, 0, 0, 0.35);
}

.scroll-top.player-visible {
  bottom: 80px;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    visibility 0.25s ease,
    bottom 0.25s ease,
    box-shadow 0.25s ease;
}

@media (max-width: 600px) {
  .scroll-top.player-visible { bottom: 88px; }
}

/* ─────────────────────────────────────────────────────────────
   17 · FOOTER
───────────────────────────────────────────────────────────── */
.footer {
  width: 100%;
  background: #1C1917;
  border-top: 1px solid #3a2b16;
  padding: 55px 80px;
  overflow: hidden;
}

.footer-container {
  max-width: 1250px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  gap: 80px;
}

.footer-column { display: flex; flex-direction: column; }

.footer-column h3 {
  color: #6d665e;
  font-size: 14px;
  letter-spacing: 2px;
  margin-bottom: 24px;
  font-weight: 700;
}

.footer-column p,
.footer-links a,
.social-link { color: #f4f1ed; }

.footer-column p {
  max-width: 340px;
  line-height: 1.5;
  font-size: 16px;
  margin-bottom: 18px;
}

.footer-column span {
  color: #d8a62d;
  font-weight: 700;
  font-size: 16px;
}

.footer-links     { display: flex; gap: 70px; }
.footer-links div { display: flex; flex-direction: column; gap: 14px; }

.footer-links a,
.social-link { text-decoration: none; font-size: 16px; }

.footer-links a {
  display: inline-block;
  position: relative;
  transition:
    color 0.25s ease,
    transform 0.25s ease;
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: #d8a62d;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-links a:hover {
  color: #d8a62d;
  transform: translateX(3px);
}

.footer-links a:hover::after { width: 100%; }

.social-link:hover { color: #d8a62d; }
.social-link       { display: flex; align-items: center; gap: 10px; }
.social-link span  { color: #d8a62d; font-size: 18px; }

.footer-bottom {
  max-width: 1250px;
  margin: 45px auto 0;
  padding-top: 34px;
  border-top: 1px solid rgba(216, 166, 45, 0.25);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.footer-bottom p,
.footer-bottom span { color: #f4f1ed; font-size: 14px; }

.footer-bottom p    { justify-self: start; }
.footer-bottom span { justify-self: end; }

.logo-footer {
  width: 70px;
  height: auto;
  display: block;
  justify-self: center;
  transform: none;
  filter: brightness(0) invert(1);
}

/* ─────────────────────────────────────────────────────────────
   18 · RESPONSIVO — TABLET / MOBILE (≤ 768px)
───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {

  .navbar {
    height: auto;
    padding: 16px 20px;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    gap: 0;
  }

  .navbar nav { display: none; }
  .logo img   { transform: none !important; }
  .contact    { transform: none !important; gap: 10px; flex-shrink: 0; }
  .phone      { display: none; }

  #hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid rgba(217, 165, 47, 0.3);
    border-radius: 8px;
    cursor: pointer;
    padding: 8px;
    flex-shrink: 0;
  }

  #hamburger span {
    display: block;
    height: 2px;
    background: #d5a83d;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
  }

  #hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  #hamburger.open span:nth-child(2) { opacity: 0; }
  #hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  #nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  #nav-overlay.open { opacity: 1; pointer-events: all; }

  #nav-drawer {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    width: 75vw;
    max-width: 300px;
    height: 100dvh;
    background: #0e0a08;
    border-left: 1px solid rgba(217, 165, 47, 0.15);
    z-index: 1999;
    padding: 80px 28px 40px;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
  }

  #nav-drawer.open { transform: translateX(0); }

  #nav-drawer nav {
    display: flex !important;
    flex-direction: column;
    gap: 8px;
    position: relative;
  }

  #nav-drawer nav a {
    font-size: 18px;
    font-weight: 700;
    color: #8f8983;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: color 0.2s ease, padding-left 0.2s ease;
  }

  #nav-drawer nav a:last-of-type { border-bottom: none; }

  #nav-drawer nav a:hover,
  #nav-drawer nav a.nav-active { color: #d5a83d; padding-left: 8px; }

  #nav-drawer #nav-indicator {
    display: block;
    position: absolute;
    left: -12px;
    width: 3px !important;
    border-radius: 999px;
    background: #d5a83d;
    box-shadow: 0 0 6px rgba(213, 168, 61, 0.7);
    opacity: 0;
    transition: top 0.35s cubic-bezier(0.4, 0, 0.2, 1), height 0.35s ease, opacity 0.3s ease;
    pointer-events: none;
  }

  #nav-drawer #nav-indicator.visible { opacity: 1; }

  /* Hero */
  .hero {
    padding: 40px 20px;
    gap: 36px;
    min-height: auto;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-buttons a {
    width: 100%;
    max-width: 320px;
  }

  /* Skills box */
  .skills-box {
    width: calc(100% - 32px);
    min-width: unset;
    max-width: 100%;
    padding: 16px 20px;
    border-radius: 16px;
    margin: 0 auto;
  }

  .skills-list {
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
  }

  .skills-list img { width: 34px; height: 34px; }

  /* Projetos */
  .project,
  .project-reverse {
    grid-template-columns: 1fr !important;
    gap: 28px;
    margin-bottom: 70px;
    padding: 0 16px;
  }

  .project-normal .project-info   { order: 1; }
  .project-normal img              { order: 2; justify-self: center; max-width: 100%; }
  .project-reverse .project-info  { order: 1; }
  .project-reverse img             { order: 2; justify-self: center; max-width: 100%; }
  .project-reverse .album-wrapper { order: 2; max-width: 100%; }

  .album-wrapper { max-width: 100%; width: 100%; }

  /* Scroll top */
  .scroll-top {
    width: 46px;
    height: 46px;
    right: 16px;
    bottom: 16px;
    font-size: 20px;
  }

  .scroll-top.player-visible { bottom: 72px; }

  /* Audio player */
  .pp-info  { min-width: unset; }
  .pp-title { max-width: 120px; }
  .pp-vol   { display: none; }
  .pp-time  { display: none; }

  /* Footer */
  .footer { padding: 40px 20px; }

  .footer-container { flex-direction: column; gap: 36px; }
  .footer-links     { gap: 32px; }

  .footer-bottom {
    grid-template-columns: 1fr;
    gap: 18px;
    text-align: center;
  }

  .footer-bottom p,
  .footer-bottom span,
  .logo-footer { justify-self: center; }

  /* Carousel */
  .carousel-btn { width: 36px; height: 36px; font-size: 16px; }

  /* Toast */
  #pp-toast {
    white-space: normal;
    text-align: center;
    width: calc(100% - 32px);
    border-radius: 14px;
    font-size: 12px;
    padding: 10px 16px;
    bottom: 72px;
  }

  /* Section title */
  .section-title {
    margin-bottom: 60px;
    padding: 0 16px;
  }

  .featured-projects { padding: 70px 0 80px; }

  #nav-indicator { display: none; }
}

/* ─────────────────────────────────────────────────────────────
   19 · RESPONSIVO — TELEMÓVEL PEQUENO (≤ 420px)
───────────────────────────────────────────────────────────── */
@media (max-width: 420px) {

  .hero h1       { font-size: clamp(30px, 9vw, 48px); }
  .hero-tag      { font-size: 10px; letter-spacing: 1.5px; padding: 7px 14px; }
  .hero p        { font-size: 15px; }

  nav a          { font-size: 13px; }

  .skills-list img { width: 28px; height: 28px; }
  .skills-list     { gap: 16px; }

  .project-info h3  { font-size: 20px; }
  .section-title h2 { font-size: 26px; }

  .switcher__btn { padding: 7px 14px; font-size: 13px; }

  .scroll-top { width: 40px; height: 40px; right: 12px; font-size: 18px; }
}