:root {
  /* Color Palette - Precision Editor Theme */
  --bg-color: #131313;
  --surface-lowest: #0e0e0e;
  --surface-low: #1c1b1b;
  --surface: #201f1f;
  --surface-high: #2a2a2a;
  --surface-highest: #353534;

  --primary: #ffb693;
  --primary-container: #ff6b00;

  --on-surface: #e5e2e1;
  --text-muted: #8b8a89;

  --outline-var: #5a4136;
  --outline-light: rgba(90, 65, 54, 0.15);

  /* Typography */
  --font-headline: 'Space Grotesk', sans-serif;
  --font-body: 'Manrope', sans-serif;
  --font-tech: 'Space Mono', monospace;

  /* Border Radius Scale */
  --radius-md: 1rem;
  --radius-lg: 2rem;
  --radius-xl: 3rem;
  --radius-full: 9999px;

  /* Geometry & layout */
  --sidebar-w: 260px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-color);
  color: var(--on-surface);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Base Typographic utility classes */
.font-tech {
  font-family: var(--font-tech);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.font-headline {
  font-family: var(--font-headline);
}

.text-primary {
  color: var(--primary);
}

.text-muted {
  color: var(--text-muted);
}

/* Icons */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
}

/* Structural Layout */
.app-container {
  display: flex;
  min-height: 100vh;
}

.mobile-bottom-nav {
  display: none;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-w);
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  background-color: var(--bg-color);
  border-right: 1px solid var(--surface-low);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
  z-index: 50;
}

.sidebar-header {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.menu-toggle {
  display: none;
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  background: linear-gradient(to right, var(--primary), var(--primary-container));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.25rem;
}

.brand-subtitle {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.nav-menu {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  list-style: none;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.nav-link:hover {
  background-color: rgba(53, 53, 52, 0.2);
  color: var(--on-surface);
}

.nav-link.active {
  color: var(--primary);
  border-left: 2px solid var(--primary);
  border-radius: 0;
  padding-left: calc(1rem - 2px);
  background: transparent;
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.social-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s ease;
}

.social-link:hover {
  color: var(--primary);
}

/* Main Content Area */
.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  background-color: var(--bg-color);
  position: relative;
}

/* Top Navbar */
.top-navbar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 4rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  padding: 0 3rem;
  background-color: rgba(19, 19, 19, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.top-navbar a {
  text-decoration: none;
  color: var(--on-surface);
  font-size: 0.75rem;
  font-family: 'Cascadia Mono', var(--font-tech);
  transition: all 0.3s ease;
  padding: 6px 16px;
  border: 1px solid var(--text-muted);
  border-radius: 20px;
  cursor: pointer;
}

.top-navbar a:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.top-navbar a.active {
  background-color: #ffb693;
  color: #000000;
  border-color: #ffb693;
  font-weight: 600;
}

.nav-actions {
  position: absolute;
  right: 3rem;
  top: 1.1rem;
  /* Posicionado levemente mais para cima */
  display: flex;
  align-items: center;
}

.lang-btn {
  background: transparent;
  border: 1px solid var(--text-muted);
  /* Mesma borda dos menus */
  border-radius: 20px;
  color: var(--on-surface);
  /* Branco */
  cursor: pointer;
  font-size: 0.85rem;
  /* Maior que os menus (0.75rem) */
  font-family: 'Cascadia Mono', var(--font-tech);
  padding: 4px 12px;
  transition: all 0.3s ease;
  user-select: none;
  text-transform: uppercase;
}

.lang-btn:hover,
.lang-btn:active {
  background-color: var(--primary);
  /* Destaque salmão */
  border-color: var(--primary);
  color: #000000;
  /* Texto preto para contraste no salmão */
  transform: translateY(-1px);
}

/* Sections */
.section-container {
  padding: 3rem;
  max-width: 1400px;
  margin: 0 auto;
}

.view {
  opacity: 1;
  transition: opacity 0.5s ease;
}

.view.hidden {
  display: none;
  opacity: 0;
  pointer-events: none;
}

/* Hero Showcase */
.showcase-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1.5rem;
}

.showcase-title-meta {
  font-size: 0.65rem;
}

.showcase-title {
  font-size: 4rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  margin-top: 0.25rem;
}

.showcase-specs p {
  font-size: 0.65rem;
  text-align: right;
  color: var(--text-muted);
}

.video-container {
  position: relative;
  aspect-ratio: 16/9;
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--surface-lowest);
  box-shadow: inset 0 0 0 1px var(--outline-light);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.video-container:hover {
  box-shadow: inset 0 0 0 1px rgba(255, 182, 147, 0.3);
}

.video-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.video-container:hover .video-cover {
  transform: scale(1.05);
  opacity: 1;
}

.video-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.icon-play {
  font-size: 2rem;
  color: var(--primary);
  font-variation-settings: 'FILL' 1;
}

.scrubber-track {
  flex: 1;
  height: 2px;
  background-color: rgba(90, 65, 54, 0.3);
  border-radius: 99px;
  position: relative;
  overflow: hidden;
}

.scrubber-progress {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 33%;
  background-color: var(--primary);
}

.timecode {
  font-size: 0.75rem;
  color: rgba(229, 226, 225, 0.7);
}

/* Info Grid */
.info-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  margin-top: 3rem;
}

.info-desc {
  font-size: 1.15rem;
  color: rgba(229, 226, 225, 0.8);
  font-weight: 300;
  line-height: 1.8;
}

.details-card {
  background-color: var(--surface-low);
  padding: 2rem;
  border-radius: var(--radius-md);
  border-left: 2px solid rgba(255, 182, 147, 0.2);
}

.details-title {
  font-size: 0.75rem;
  margin-bottom: 1rem;
}

.details-list {
  list-style: none;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.details-list li {
  display: flex;
  justify-content: space-between;
  padding-bottom: 0.5rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid rgba(90, 65, 54, 0.1);
}

.details-list li span:last-child {
  color: var(--on-surface);
}

/* Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
  margin-top: 8rem;
}

.bento-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
}

.bento-main {
  height: 24rem;
  background-color: var(--surface);
  position: relative;
  cursor: pointer;
}

.bento-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  transition: transform 0.7s, opacity 0.5s;
}

.bento-main:hover img {
  transform: scale(1.05);
  opacity: 0.8;
}

.bento-content-overlay {
  position: absolute;
  inset: 0;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(to top, rgba(14, 14, 14, 0.95) 0%, transparent 80%);
}

.bento-meta {
  font-size: 0.65rem;
  color: var(--primary-container);
  margin-bottom: 0.5rem;
}

.bento-heading {
  font-size: 2rem;
  font-weight: 700;
}

.bento-side {
  height: 24rem;
  background-color: var(--surface-high);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid rgba(90, 65, 54, 0.1);
  transition: border-color 0.3s;
}

.bento-side:hover {
  border-color: rgba(255, 182, 147, 0.3);
}

.side-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.side-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.side-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.btn-text {
  margin-top: 2rem;
  background: none;
  border: none;
  color: var(--primary);
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: transform 0.3s;
}

.btn-text:hover {
  transform: translateX(0.5rem);
}

/* Footer */
.site-footer {
  margin-top: 8rem;
  padding: 3rem 0;
  border-top: 1px solid rgba(90, 65, 54, 0.1);
  width: 100%;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.footer-copyright {
  flex: 1;
}

.footer-location {
  flex: 0 0 auto;
  margin-left: 2rem;
}

.footer-label {
  font-size: 0.55rem;
  color: var(--outline-var);
}

.footer-val {
  font-size: 0.75rem;
}

/* Floating Action Button */
.fab {
  position: fixed;
  bottom: 3rem;
  right: 3rem;
  width: 4rem;
  height: 4rem;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: var(--bg-color);
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 10px 25px rgba(255, 107, 0, 0.3);
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s;
  z-index: 50;
}

.fab:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 35px rgba(255, 107, 0, 0.4);
}

.fab:active {
  transform: scale(0.95);
}

/* Animation Reveal Classes */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Dynamic Filtering Classes */
.project-card {
  transition: opacity 0.3s ease, transform 0.3s ease !important;
  margin-bottom: 8rem;
}

.project-card:last-of-type {
  margin-bottom: 0;
}

.filter-hide {
  opacity: 0 !important;
  transform: translateY(20px) !important;
  pointer-events: none;
}

.filter-hide-complete {
  display: none !important;
}

/* Custom Scrollbar for the dark room vibe */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
  background: var(--surface-highest);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--outline-var);
}

/* =========================================================================
   Video Gallery 
   ========================================================================= */

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 3rem;
}

.video-item {
  break-inside: avoid;
  border-radius: 24px;
  overflow: hidden;
  background-color: var(--surface-low);
  transform: translateZ(0);
  width: 100%;
}

.video-item.grid-h {
  grid-column: span 2;
}

.video-item.grid-v {
  grid-column: span 1;
}

/* Custom Story Layout for "Salvando na pós" */
.saving-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 3rem;
}

.saving-hero-row {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 20px;
}

.saving-video-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.saving-description-box {
  padding: 2rem 0;
  max-width: 1000px;
}

.saving-description-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: rgba(229, 226, 225, 0.85);
  font-weight: 300;
  border-left: 2px solid var(--primary);
  padding-left: 2rem;
}

.saving-bottom-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.saving-youtube-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  width: 100%;
}

/* Hide all bottom controls initially for subsequent project cards of the same category */
.project-card[data-category="video"]~.project-card[data-category="video"] .plyr:not(.plyr--playing) .plyr__controls,
.project-card[data-category="motion"]~.project-card[data-category="motion"] .plyr:not(.plyr--playing) .plyr__controls {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* Ensure controls are visible when playing */
.project-card .plyr--playing .plyr__controls {
  opacity: 1 !important;
  pointer-events: auto !important;
}

.plyr-wrapper.aspect-9-16 {
  aspect-ratio: 9/16;
  width: 100%;
}

.plyr-wrapper.aspect-16-9 {
  aspect-ratio: 16/9;
  width: 100%;
}

/* =========================================================================
   Photography Gallery 
   ========================================================================= */

.photo-grid {
  column-count: 3;
  column-gap: 20px;
  margin-top: 3rem;
}

.photo-item {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  break-inside: avoid;
  margin-bottom: 20px;
  cursor: pointer;
  background-color: var(--surface-low);
  transform: translateZ(0);
  /* Força o radius exato nas animações via GPU */
}

.photo-item img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.photo-item:hover img {
  transform: scale(1.05);
  /* Zoom-in request */
}

.photo-overlay {
  position: absolute;
  inset: 0;
  background: rgba(14, 14, 14, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  color: transparent;
  font-family: 'Cascadia Mono', var(--font-tech);
  font-size: 0;
  text-align: center;
  padding: 1rem;
  user-select: none;
}

.photo-item:hover .photo-overlay {
  opacity: 1;
  /* Fade-in background e título */
}

/* =========================================================================
   Lightbox Modal 
   ========================================================================= */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.lightbox-modal.is-active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  transition: opacity 0.3s ease;
  /* transition source swap */
}

#lightbox-caption {
  margin-top: 1rem;
  color: var(--on-surface);
  font-family: 'Cascadia Mono', var(--font-tech);
  font-size: 0.85rem;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: color 0.3s, transform 0.3s;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  color: var(--primary);
  transform: scale(1.1);
}

.lightbox-nav span {
  font-size: 3rem;
}

.lightbox-close span {
  font-size: 2rem;
}

.lightbox-close {
  top: 2rem;
  right: 2rem;
}

.lightbox-prev {
  left: 2rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
}

/* Responsive basics */
@media (max-width: 992px) {

  .info-grid,
  .bento-grid {
    grid-template-columns: 1fr;
  }

  .photo-grid {
    column-count: 2;
  }

  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .video-item.grid-h {
    grid-column: span 2;
  }

  .saving-hero-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .sidebar {
    display: none;
    /* In a real app we'd trigger a mobile menu */
  }

  .main-content {
    margin-left: 0;
  }

  .showcase-title {
    font-size: 2.5rem;
  }

  .showcase-specs {
    display: none;
  }

  .photo-grid {
    column-count: 2;
    column-gap: 15px;
    width: 100%;
  }

  .photo-item {
    break-inside: avoid;
    margin-bottom: 15px;
    border-radius: 16px;
    overflow: hidden;
  }

  .photo-item img {
    border-radius: 16px;
  }

  /* 4.1 Lightbox Mobile Adjustments */
  .lightbox-content {
    max-height: 70vh;
  }

  #lightbox-img {
    max-height: 60vh;
  }

  .lightbox-nav {
    top: auto !important;
    bottom: 2rem !important;
    transform: none !important;
    position: fixed !important;
  }

  .lightbox-prev {
    left: calc(50% - 60px) !important;
  }

  .lightbox-next {
    right: calc(50% - 60px) !important;
  }

  .lightbox-nav span {
    font-size: 2.5rem;
  }

  #lightbox-caption {
    margin-top: 1.5rem;
    font-size: 0.75rem;
    text-align: center;
    width: 100%;
    padding: 0 2rem;
    margin-bottom: 5rem;
    /* Space for the arrows */
  }

  .lightbox-close {
    top: 1.5rem;
    right: 1.5rem;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }

  .video-item.grid-h,
  .video-item.grid-v {
    grid-column: span 1;
  }

  .saving-bottom-grid,
  .saving-youtube-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
    gap: 2rem;
    align-items: flex-start;
  }
}

/* =========================================================================
   Plyr.io Custom Styling
   ========================================================================= */

.plyr-wrapper {
  border-radius: 24px;
  overflow: hidden;
  transform: translateZ(0);
  /* Safari fix for rounded corners with video/iframe */
  aspect-ratio: 16/9;
  width: 100%;
  box-shadow: inset 0 0 0 1px var(--outline-light);
}

/* Garante que o player não vaze pelas bordas em nenhum nível de container */
.plyr,
.plyr__video-wrapper,
.plyr__video-embed,
.plyr iframe {
  border-radius: 24px !important;
  overflow: hidden !important;
  transform: translateZ(0) !important;
}

/* Minimalist White Theme */
:root {
  --plyr-color-main: #ffffff;
  --plyr-video-control-color: rgba(255, 255, 255, 0.8);
  --plyr-video-control-color-hover: #ffffff;
  --plyr-video-control-background-hover: transparent;
  --plyr-tooltip-background: rgba(0, 0, 0, 0.9);
  --plyr-tooltip-color: #ffffff;
  --plyr-font-family: 'Cascadia Mono', var(--font-tech);
}

/* Force thin progress bar */
.plyr--video .plyr__progress__buffer {
  box-shadow: none !important;
  background: rgba(255, 255, 255, 0.2) !important;
}

.plyr--full-ui input[type=range] {
  height: 2px !important;
}

.plyr--video .plyr__progress input[type=range]::-webkit-slider-runnable-track {
  height: 2px !important;
}

.plyr--video .plyr__progress input[type=range]::-moz-range-track {
  height: 2px !important;
}

.plyr__progress__container,
.plyr__volume input[type=range] {
  height: 2px !important;
}

/* Cascadia Mono Timestamps */
.plyr__time {
  font-family: 'Cascadia Mono', var(--font-tech) !important;
  font-size: 0.75rem !important;
  color: #ffffff !important;
  font-weight: 300 !important;
}

/* Remove chunky hover backgrounds for controls to maintain minimalism */
.plyr--video .plyr__control.plyr__tab-focus,
.plyr--video .plyr__control:hover,
.plyr--video .plyr__control[aria-expanded=true] {
  background: transparent !important;
}

/* Ultra clean controls gradient */
.plyr--video .plyr__controls {
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.6)) !important;
  padding: 2rem 1.5rem !important;
}

/* =========================================================================
   About Page Styles 
   ========================================================================= */

.about-hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 5rem;
  align-items: start;
  margin-top: 2rem;
}

.about-title {
  font-size: clamp(3rem, 8vw, 4.5rem);
  line-height: 1;
  margin-bottom: 2.5rem;
  font-weight: 700;
  background: linear-gradient(to right, #fff, #888);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.about-lead {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.about-bio p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.05rem;
  line-height: 1.8;
  max-width: 650px;
}

.expertise-section,
.toolkit-section,
.innovation-section {
  margin-top: 4rem;
}

.expertise-title {
  font-size: 0.75rem;
  margin-bottom: 1.5rem;
}

.expertise-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.expertise-item {
  padding: 2rem;
  background: var(--surface-low);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.expertise-item:hover {
  border-color: var(--primary);
  background: var(--surface);
  transform: translateY(-5px);
}

.expertise-item h4 {
  font-size: 0.7rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.expertise-item p {
  font-size: 0.95rem;
  color: var(--on-surface);
}

.toolkit-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.toolkit-tag {
  padding: 0.6rem 1.2rem;
  background: var(--surface-low);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 30px;
  font-size: 0.7rem;
  transition: all 0.3s ease;
}

.toolkit-tag:hover {
  background: var(--primary);
  color: #000;
  border-color: var(--primary);
}

.about-branding {
  position: sticky;
  top: 10rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  text-align: right;
  border-right: 2px solid var(--primary);
  padding-right: 3rem;
  height: fit-content;
}

@media (max-width: 1024px) {
  .about-branding {
    position: relative;
    top: 0;
    align-items: flex-start;
    text-align: left;
    border-right: none;
    border-left: 2px solid var(--primary);
    padding-right: 0;
    padding-left: 2rem;
    margin-top: 3rem;
  }
}

@media (max-width: 1024px) {
  .about-hero {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .about-image-wrapper {
    position: relative;
    top: 0;
    max-width: 500px;
  }

  .expertise-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================================
   Contact Page Styles 
   ========================================================================= */

.contact-hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 5rem;
  align-items: center;
  margin-top: 4rem;
}

.contact-title {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  line-height: 1.1;
  margin-bottom: 2rem;
  font-weight: 700;
  background: linear-gradient(to right, var(--primary), #fff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.contact-desc {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  max-width: 600px;
  margin-bottom: 3rem;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 4rem;
}

.contact-method span {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.contact-method p {
  font-size: 1.2rem;
  font-weight: 400;
}

/* WhatsApp Card CTA */
.whatsapp-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  background: var(--surface-low);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  text-decoration: none;
  max-width: 400px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.whatsapp-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent, rgba(255, 182, 147, 0.05), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.whatsapp-card:hover {
  background: var(--surface);
  border-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

.whatsapp-card:hover::before {
  transform: translateX(100%);
}

.whatsapp-content {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.whatsapp-icon {
  font-size: 2rem;
  color: var(--primary);
}

.whatsapp-content h4 {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.2rem;
}

.whatsapp-content p {
  font-size: 1.1rem;
  font-weight: 500;
  color: #ffffff !important;
}

.whatsapp-card .arrow {
  font-size: 1.5rem;
  color: var(--primary);
  transition: transform 0.3s ease;
}

.whatsapp-card:hover .arrow {
  transform: translateX(5px);
}

@media (max-width: 1024px) {
  .contact-hero {
    grid-template-columns: 1fr;
    margin-top: 2rem;
    gap: 4rem;
  }
}

/* Response Adaptations (768px) */
@media (max-width: 768px) {

  /* !! PRIORITY 0: Sidebar eradication — must be FIRST rule !! */
  .sidebar,
  .sidebar.is-open,
  .sidebar * {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    position: fixed !important;
    width: 0 !important;
    height: 0 !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    z-index: -1 !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* 0. Global Contention Reset */
  html,
  body {
    overflow-x: hidden !important;
    width: 100% !important;
    position: relative;
  }

  .menu-toggle {
    display: none !important;
  }


  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background-color: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid #222;
    border-radius: 20px 20px 0 0;
    z-index: 9999;
    justify-content: space-around;
    align-items: center;
    padding: 0 5px;
  }

  .mobile-bottom-nav .nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--text-muted);
    text-decoration: none;
    font-family: 'Cascadia Mono', var(--font-tech);
    font-size: 11px;
    flex: 1;
    height: 100%;
    padding: 0;
    transition: color 0.3s ease;
  }

  .mobile-bottom-nav .nav-link .material-symbols-outlined {
    font-size: 20px;
    margin-bottom: 2px;
  }

  .mobile-bottom-nav .nav-link.active {
    color: #fff;
    position: relative;
  }

  .mobile-bottom-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 8px;
    width: 4px;
    height: 4px;
    background-color: #fff;
    border-radius: 50%;
  }

  /* 2. Main Content reset */
  .main-content {
    margin-left: 0 !important;
    width: 100% !important;
    margin-bottom: 80px;
    position: relative;
    z-index: 10 !important;
  }

  .section-container {
    padding: 2rem 20px;
    width: 100%;
  }

  /* 3. Horizontal category scroll */
  .top-navbar {
    padding: 0 20px;
    justify-content: flex-start;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 1rem;
    height: 5rem;
    width: 100% !important;
    margin: 0 auto !important;
  }

  .top-navbar::-webkit-scrollbar {
    display: none;
  }

  .top-navbar a {
    flex-shrink: 0;
    padding: 10px 24px;
    white-space: nowrap;
  }

  .nav-actions {
    position: static;
    margin-left: auto;
    padding-left: 1rem;
  }

  /* 4. Resizing Cards and Proportions */
  .showcase-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1rem;
  }

  .showcase-title {
    font-size: 2.2rem;
    line-height: 1.1;
    overflow-wrap: break-word;
    word-wrap: break-word;
    max-width: 100%;
  }

  .showcase-specs p {
    text-align: left;
  }

  .info-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
  }

  .saving-hero-row,
  .saving-bottom-grid,
  .video-grid,
  .saving-youtube-grid {
    grid-template-columns: 1fr !important;
    width: 100% !important;
  }

  .saving-video-stack {
    width: 100%;
  }

  .saving-description-text {
    font-size: 1rem;
    padding-left: 1.5rem;
  }

  .photo-grid-container {
    display: block !important;
    margin: 0 !important;
    width: 100% !important;
    padding: 0 !important;
  }

  .photo-grid {
    display: block !important;
    column-count: 2 !important;
    column-gap: 15px !important;
    width: 100% !important;
    margin: 0 auto !important;
  }

  .photo-item {
    display: inline-block !important;
    width: 100% !important;
    margin-bottom: 10px !important;
    vertical-align: top !important;
    height: auto !important;
    min-height: 0 !important;
    break-inside: avoid !important;
    border-radius: 16px !important;
    overflow: hidden !important;
  }

  .photo-item img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    border-radius: 16px !important;
  }

  /* Lightbox Mobile Correction */
  .lightbox-modal {
    flex-direction: column !important;
    padding: 2rem 1rem !important;
    padding-bottom: 100px !important;
    /* Reserve space for fixed arrows */
  }

  .lightbox-content {
    max-height: 65vh !important;
    width: 100% !important;
  }

  #lightbox-img {
    max-height: 60vh !important;
    width: auto !important;
    max-width: 100% !important;
  }

  #lightbox-caption {
    margin-top: 15px !important;
    text-align: center !important;
    font-size: 0.8rem !important;
  }

  /* Fixed arrows anchored to viewport bottom */
  .lightbox-nav {
    position: fixed !important;
    bottom: 90px !important;
    /* Above the bottom nav bar (70px + 20px gap) */
    top: auto !important;
    z-index: 10002 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(0, 0, 0, 0.5) !important;
    border-radius: 50% !important;
    width: 50px !important;
    height: 50px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    transform: none !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #ffffff !important;
  }

  .lightbox-prev {
    left: calc(50% - 55px) !important;
    right: auto !important;
  }

  .lightbox-next {
    right: calc(50% - 55px) !important;
    left: auto !important;
  }

  .lightbox-nav span {
    font-size: 2rem !important;
    line-height: 1 !important;
  }

  .lightbox-nav:hover {
    transform: none !important;
  }

  .lightbox-close {
    top: 1.5rem !important;
    right: 1.5rem !important;
    z-index: 10003 !important;
  }

  /* Force 16:9 aspect for standard project players on mobile */
  .plyr-wrapper {
    aspect-ratio: 16/9 !important;
    overflow: hidden;
    border-radius: 24px;
    width: 100%;
  }

  /* Mantém 9:16 apenas se explicitamente forçado */
  .plyr-wrapper.aspect-9-16 {
    aspect-ratio: 9/16 !important;
  }

  .video-item {
    overflow: hidden;
    border-radius: 24px;
  }

  /* 5. UI Fine-tuning */
  .brand-title {
    font-size: 1.1rem;
  }

  .details-card {
    padding: 1.5rem;
    width: 100%;
  }

  .footer-blocks {
    flex-direction: column;
    gap: 1.5rem;
    text-align: left;
  }

  .footer-content {
    flex-direction: column;
    gap: 2rem;
    align-items: flex-start;
    padding: 0;
    width: 100%;
  }

  .footer-location {
    margin-left: 0;
    text-align: left !important;
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {

  /* Mata a Sidebar e o Botão Fantasma */
  .sidebar,
  .menu-toggle {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
  }

  /* Todo o resto daquele bloco que combinamos (Bottom Nav, Masonry Grid, etc) */

  /* =========================================================================
   📱 CORREÇÕES MOBILE DEFINITIVAS (ADICIONAR NO FINAL DO ARQUIVO)
   ========================================================================= */
  @media (max-width: 768px) {

    /* 1. Trava de Scroll Horizontal (Evitar Vazamento e Barra Lateral) */
    html,
    body {
      overflow-x: hidden !important;
      width: 100% !important;
    }

    /* 2. Remoção Absoluta da Sidebar Original e Botão Hambúrguer no Mobile */
    .sidebar,
    .menu-toggle {
      display: none !important;
      visibility: hidden !important;
      opacity: 0 !important;
      pointer-events: none !important;
      width: 0 !important;
      height: 0 !important;
    }

    /* 3. Ajuste do Conteúdo Principal para não reservar espaço da Sidebar */
    .main-content {
      margin-left: 0 !important;
      width: 100% !important;
      margin-bottom: 80px !important;
      /* Respiro para não cobrir o rodapé */
    }

    /* 4. Barra de Navegação Inferior (App Style) */
    .mobile-bottom-nav {
      display: flex !important;
      position: fixed !important;
      bottom: 0 !important;
      left: 0 !important;
      width: 100% !important;
      height: 70px !important;
      background-color: rgba(19, 19, 19, 0.95) !important;
      backdrop-filter: blur(12px) !important;
      -webkit-backdrop-filter: blur(12px) !important;
      z-index: 9999 !important;
      justify-content: space-around !important;
      align-items: center !important;
      border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
      border-radius: 20px 20px 0 0 !important;
    }

    .mobile-bottom-nav .nav-link {
      flex-direction: column !important;
      gap: 4px !important;
      font-size: 10px !important;
      color: var(--text-muted) !important;
      padding: 10px !important;
    }

    .mobile-bottom-nav .nav-link.active {
      color: var(--primary) !important;
      background: transparent !important;
      border: none !important;
    }

    /* 5. Menu de Filtros com Rolagem Horizontal */
    .top-navbar {
      display: flex !important;
      flex-wrap: nowrap !important;
      overflow-x: auto !important;
      -webkit-overflow-scrolling: touch !important;
      scrollbar-width: none;
      /* Estética (Ocultar Barra) no Firefox */
    }

    .top-navbar::-webkit-scrollbar {
      display: none;
      /* Estética (Ocultar Barra) nos demais browsers */
    }

    .top-navbar>* {
      flex: 0 0 auto !important;
      white-space: nowrap !important;
    }

    /* Remove a ancoragem fixa do Seletor de Idioma para ele rolar junto com o menu */
    .nav-actions {
      position: static !important;
    }

    /* 6. Grid de Fotografia (Masonry - 2 Colunas com Classes Reais do index.html) */
    .photo-grid {
      column-count: 2 !important;
      column-gap: 15px !important;
      display: block !important;
      width: 100% !important;
      margin: 0 auto !important;
    }

    .photo-item {
      display: inline-block !important;
      width: 100% !important;
      margin-bottom: 15px !important;
      vertical-align: top !important;
      break-inside: avoid !important;
    }

    .photo-item img {
      display: block !important;
      width: 100% !important;
      height: auto !important;
    }

    /* 7. Setas do Lightbox Fixas no Rodapé (Acima da Nav Bar Inferior) */
    .lightbox-prev,
    .lightbox-next {
      position: fixed !important;
      bottom: 100px !important;
      top: auto !important;
      display: flex !important;
      z-index: 10002 !important;
    }

    .lightbox-prev {
      left: 30% !important;
      transform: translateX(-50%) !important;
    }

    .lightbox-next {
      left: 70% !important;
      transform: translateX(-50%) !important;
      right: auto !important;
    }

    /* 8. Correções de Espaçamento Vertical Excessivo (Vácuo) */
    .view,
    #home-view,
    #about-view,
    #contact-view {
      min-height: auto !important;
      height: auto !important;
    }

    #home-view {
      margin-bottom: 0 !important;
      padding-bottom: 0 !important;
    }

    #home-view .section-container {
      padding-bottom: 0 !important;
      margin-bottom: 0 !important;
    }

    .photo-grid-container,
    .project-card,
    .project-grid {
      margin-bottom: 0 !important;
      padding-bottom: 0 !important;
    }

    /* Reduzir drasticamente o gap do rodapé (que fica entre fotografia e sobre-mim no carregamento inicial) */
    .site-footer {
      margin-top: 1rem !important;
      margin-bottom: 0 !important;
      padding-top: 1rem !important;
      padding-bottom: 1rem !important;
      border-top: none !important;
    }

    #about-view {
      margin-top: 4rem !important;
      padding-top: 0 !important;
    }

    #about-view .section-container,
    .about-content {
      padding-top: 0 !important;
      margin-top: 0 !important;
    }

    .about-hero {
      margin-top: 0 !important;
      padding-top: 0 !important;
    }

    .reveal {
      height: auto !important;
      min-height: 0 !important;
      margin-bottom: 0 !important;
    }

    /* Garantir que o Hide Complete vença qualquer conflito de mobile layout (ex. .photo-grid-container com display block) */
    .filter-hide-complete,
    .project-card.filter-hide-complete,
    .photo-grid-container.filter-hide-complete {
      display: none !important;
      margin: 0 !important;
      padding: 0 !important;
      height: 0 !important;
      min-height: 0 !important;
      overflow: hidden !important;
    }

    .main-content {
      display: block !important;
    }
  }
}