/* =============================================================
   ABOUT.CSS
   Secções:
     01 · Reset & Base
     02 · Scrollbar
     03 · Navbar
     04 · Nav Indicator
     05 · Hamburger Menu
     06 · Hero About
     07 · Work Section
     08 · Values Section
     09 · Tools Section
     10 · Contact CTA
     11 · Skills Box
     12 · Social Icons
     13 · Page Loader
     14 · Audio Player Persistente
     15 · Scroll Top
     17 · Footer
     19 · Responsivo — Tablet largo (≤ 900px)
     20 · Responsivo — Tablet / Mobile (≤ 768px)
     21 · Responsivo — Mobile pequeno (≤ 600px)
     22 · Responsivo — Telemóvel pequeno (≤ 420px)
============================================================= */

/* ─────────────────────────────────────────────────────────────
   01 · RESET & BASE
───────────────────────────────────────────────────────────── */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #111;
  font-family: Arial, sans-serif;
}

/* ─────────────────────────────────────────────────────────────
   02 · SCROLLBAR
───────────────────────────────────────────────────────────── */
::-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
───────────────────────────────────────────────────────────── */
.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
───────────────────────────────────────────────────────────── */
#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
───────────────────────────────────────────────────────────── */
#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 ABOUT
───────────────────────────────────────────────────────────── */
.about-hero,
.work-section,
.values-section,
.tools-section {
  background: #090606;
  color: #fff;
}

.about-hero {
  padding: 70px 32px 80px;
  border-bottom: 1px solid rgba(217, 165, 47, 0.14);
}

.about-container {
  max-width: 920px;
  margin: auto;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: start;
}

.about-photo {
  width: 190px;
  height: 190px;
  border-radius: 50%;
  border: 2px solid #d9a52f;
  padding: 6px;
  box-shadow: 0 0 35px rgba(217, 165, 47, 0.18);
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  background: #aaa;
}

.about-content h1 {
  font-size: 62px;
  line-height: 1.05;
  color: #f4f1ed;
  margin-bottom: 26px;
}

.about-content p {
  color: #c2b8ad;
  font-size: 23px;
  line-height: 1.25;
  max-width: 620px;
}

.about-content strong { color: #d9a52f; }

.about-buttons {
  display: flex;
  gap: 14px;
  margin-top: 34px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(217, 165, 47, 0.16);
}

.about-buttons a {
  height: 52px;
  padding: 0 30px;
  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;
}

.about-buttons a:hover { transform: translateY(-2px); }

.btn-primary { background: #d9a52f; color: #111; }

.btn-outline {
  color: #fff;
  border: 1px solid rgba(217, 165, 47, 0.35);
}

.btn-outline: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);
}

.about-stats {
  display: flex;
  justify-content: space-around;
  margin-top: 42px;
}

.about-stats div    { text-align: center; }
.about-stats strong { color: #d9a52f; font-size: 28px; display: block; }
.about-stats span   { color: #c2b8ad; font-size: 13px; }

/* ─────────────────────────────────────────────────────────────
   07 · WORK SECTION
───────────────────────────────────────────────────────────── */
.work-section {
  background: #141110;
  padding: 75px 32px;
}

.work-content {
  max-width: 760px;
  margin: auto;
}

.work-content h2 {
  color: #f4f1ed;
  font-size: 28px;
  text-align: center;
  margin-bottom: 34px;
}

.work-content p {
  color: #c2b8ad;
  font-size: 17px;
  line-height: 1.55;
  margin-bottom: 28px;
}

/* ─────────────────────────────────────────────────────────────
   08 · VALUES SECTION
───────────────────────────────────────────────────────────── */
.values-section {
  padding: 75px 32px 90px;
}

.section-heading {
  text-align: center;
  margin-bottom: 70px;
}

.section-heading h2 { font-size: 42px; color: #f4f1ed; }

.section-heading span {
  display: block;
  width: 105px;
  height: 1px;
  margin: 24px auto 0;
  background: linear-gradient(90deg, transparent, #d9a52f, transparent);
}

.section-heading p {
  margin-top: 18px;
  color: #c2b8ad;
  font-size: 16px;
}

.values-grid {
  max-width: 980px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.value-card {
  min-height: 235px;
  padding: 28px 24px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(217, 165, 47, 0.16);
  text-align: center;
  transition:
    border-color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.value-card:hover {
  border-color: rgba(217, 165, 47, 0.35);
  background: rgba(217, 165, 47, 0.04);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  transform: translateY(-2px);
}

.value-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: rgba(217, 165, 47, 0.14);
  border: 1px solid rgba(217, 165, 47, 0.25);
  color: #d9a52f;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}

.value-card h3 { font-size: 18px; color: #f4f1ed; margin-bottom: 14px; }
.value-card p  { color: #c2b8ad; font-size: 15px; line-height: 1.45; }

/* ─────────────────────────────────────────────────────────────
   09 · TOOLS SECTION
───────────────────────────────────────────────────────────── */
.tools-section {
  background: #1C1917;
  padding: 70px 32px;
}

.tools-box {
  width: 100%;
  min-height: 110px;
  border: 1px solid rgba(217, 165, 47, 0.15);
  border-radius: 22px;
  display: flex;
  align-items: center;
  gap: 70px;
  padding: 0 56px;
  overflow: hidden;
}

.tools-box img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

/* ─────────────────────────────────────────────────────────────
   10 · CONTACT CTA
───────────────────────────────────────────────────────────── */
.contact-cta {
  max-width: 760px;
  margin: 65px auto 75px;
  padding: 45px 30px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(217, 165, 47, 0.16);
  color: #fff;
  text-align: center;
}

.contact-cta h2 { color: #f4f1ed; font-size: 28px; margin-bottom: 18px; }

.contact-cta p {
  color: #c2b8ad;
  font-size: 18px;
  line-height: 1.4;
  margin-bottom: 30px;
}

.contact-cta a {
  height: 50px;
  padding: 0 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #d9a52f;
  color: #111;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition:
    background 0.28s ease,
    box-shadow 0.28s ease,
    transform 0.28s ease;
}

.contact-cta a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(213, 168, 61, 0.35);
}

/* ─────────────────────────────────────────────────────────────
   11 · SKILLS BOX
───────────────────────────────────────────────────────────── */
.skills-box {
  position: relative;
  z-index: 2;
  width: fit-content;
  min-width: 500px;
  min-height: 112px;
  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: 0 48px;
}

.skills-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 70px;
}

.skills-list img {
  width: 42px;
  height: 42px;
  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); }

/* ─────────────────────────────────────────────────────────────
   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);
}

/* ─────────────────────────────────────────────────────────────
   19 · RESPONSIVO — TABLET LARGO (≤ 900px)
───────────────────────────────────────────────────────────── */
@media (max-width: 900px) {

  .about-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-photo { margin: auto; }

  .about-content h1 { font-size: 42px; }

  .about-content p {
    font-size: 18px;
    margin: auto;
  }

  .about-buttons,
  .about-stats {
    flex-direction: column;
    align-items: center;
  }

  .values-grid { grid-template-columns: repeat(2, 1fr); }

  .tools-box {
    gap: 35px;
    padding: 30px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .skills-box {
    min-width: unset;
    width: calc(100% - 64px);
    padding: 20px 32px;
  }

  .skills-list { gap: 40px; }
}

/* ─────────────────────────────────────────────────────────────
   20 · 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;
    justify-content: flex-end;
  }

  .phone { display: none; }

  #nav-indicator { 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 */
  .about-hero { padding: 40px 20px 50px; }

  .about-content h1 { font-size: 34px; }
  .about-content p  { font-size: 16px; }

  .about-buttons {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .about-buttons a {
    width: 100%;
    max-width: 300px;
  }

  .about-stats { gap: 24px; }

  /* Sections */
  .work-section,
  .values-section,
  .tools-section { padding: 50px 20px; }

  .section-heading h2 { font-size: 34px; }
  .section-heading    { margin-bottom: 48px; }

  /* Contact CTA */
  .contact-cta {
    margin-inline: 20px;
    padding: 32px 20px;
  }

  /* 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; }

  /* Toast */
  #pp-toast {
    white-space: normal;
    text-align: center;
    width: calc(100% - 48px);
    border-radius: 16px;
    font-size: 13px;
    padding: 10px 16px;
    bottom: 72px;
  }

  /* 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; }
}

/* ─────────────────────────────────────────────────────────────
   21 · RESPONSIVO — MOBILE PEQUENO (≤ 600px)
───────────────────────────────────────────────────────────── */
@media (max-width: 600px) {

  .values-grid { grid-template-columns: 1fr; }

  .section-heading h2 { font-size: 28px; }

  .contact-cta { margin-inline: 16px; }

  .skills-box {
    width: calc(100% - 32px);
    min-width: unset;
    padding: 16px 20px;
    border-radius: 16px;
  }

  .skills-list { gap: 28px; flex-wrap: wrap; }
  .skills-list img { width: 34px; height: 34px; }

  .tools-box {
    gap: 24px;
    padding: 20px;
  }

  .tools-box img { width: 34px; height: 34px; }
}

/* ─────────────────────────────────────────────────────────────
   22 · RESPONSIVO — TELEMÓVEL MUITO PEQUENO (≤ 420px)
───────────────────────────────────────────────────────────── */
@media (max-width: 420px) {

  .about-content h1 { font-size: 28px; }
  .about-content p  { font-size: 15px; }

  .about-stats strong { font-size: 22px; }

  .value-card { padding: 22px 16px; min-height: unset; }

  .section-heading h2 { font-size: 24px; }

  .contact-cta h2 { font-size: 22px; }
  .contact-cta p  { font-size: 15px; }

  .scroll-top { width: 40px; height: 40px; right: 12px; font-size: 18px; }
}