/* ==========================================================================
   DESIGN SYSTEM & VARIABLES (Clean Yellow & Charcoal Slate Cinematic Palette)
   ========================================================================== */
:root {
  --color-black-pure: #07080b; /* Slate dark instead of pure harsh black */
  --color-black-deep: #0b0c11;
  --color-black-card: #12141c; /* Lighter anthracite card background */
  --color-black-border: #1f222e; /* Custom slate card borders */
  
  --color-white: #ffffff;
  --color-gray-light: #f4f4f5;
  --color-gray-muted: #a1a1aa;
  --color-gray-dark: #2c2e3b;
  
  --color-yellow-neon: #ffe600;
  --color-yellow-glow: rgba(255, 230, 0, 0.12);
  --color-yellow-solid: #eab308;
  
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   BASE STYLES & RESET
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--color-black-pure);
  color: var(--color-white);
  font-family: var(--font-main);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  background-color: var(--color-black-pure);
}

/* Selection Color */
::selection {
  background-color: var(--color-yellow-neon);
  color: var(--color-black-pure);
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-black-pure);
}

::-webkit-scrollbar-thumb {
  background: var(--color-gray-dark);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-yellow-neon);
}

/* Subtle Ambient Glow */
.glowing-auroras {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.aurora-yellow {
  position: absolute;
  top: -10%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  border-radius: 50%;
  background: var(--color-yellow-neon);
  filter: blur(160px);
  opacity: 0.04;
}

/* ==========================================================================
   REUSABLE UTILITIES & BUTTONS
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-sub {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.35em;
  color: var(--color-yellow-neon);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--color-white);
  line-height: 1.15;
  margin-bottom: 16px;
  text-align: center;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 3.25rem;
  }
}

.section-desc {
  font-size: 1.125rem;
  color: var(--color-gray-muted);
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.6;
  text-align: center;
}

.gradient-text {
  background: linear-gradient(135deg, var(--color-white) 40%, var(--color-yellow-neon) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 36px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
  outline: none;
  gap: 10px;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--color-yellow-neon);
  color: var(--color-black-pure);
}

.btn-primary:hover {
  background-color: var(--color-white);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.1);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-white);
  border: 1px solid var(--color-gray-dark);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  border-color: var(--color-white);
  transform: translateY(-3px);
}

.btn-capsule {
  padding: 10px 24px;
  font-size: 0.875rem;
  border-radius: 30px;
  background-color: var(--color-white);
  color: var(--color-black-pure);
}

.btn-capsule:hover {
  background-color: var(--color-yellow-neon);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px var(--color-yellow-glow);
}

.icon-arrow, .icon-play, .icon-whatsapp, .icon-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: var(--transition-fast);
}

.btn-primary:hover .icon-arrow {
  transform: translateX(5px);
}

/* ==========================================================================
   HEADER / NAVBAR CAPSULE
   ========================================================================== */
.header {
  position: fixed;
  top: 24px;
  left: 0;
  width: 100%;
  z-index: 100;
  pointer-events: none;
}

.nav-capsule {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 850px;
  margin: 0 auto;
  padding: 8px 12px 8px 28px;
  border-radius: 100px;
  background-color: rgba(18, 20, 28, 0.6); /* Translucent slate navbar */
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.8);
  transition: var(--transition-smooth);
}

.header.scrolled .nav-capsule {
  max-width: 740px;
  background-color: rgba(7, 8, 11, 0.95);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 50px rgba(0,0,0,0.9);
}

.logo-img {
  height: 38px;
  width: auto;
  display: block;
  transition: var(--transition-smooth);
}

.logo-img:hover {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 36px;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-gray-muted);
  text-decoration: none;
  transition: var(--transition-fast);
  position: relative;
  padding: 8px 0;
}

.nav-link:hover {
  color: var(--color-white);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-yellow-neon);
  transition: var(--transition-fast);
}

.nav-link:hover::after {
  width: 100%;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  z-index: 102;
}

.mobile-menu-toggle .bar {
  width: 22px;
  height: 2px;
  background-color: var(--color-white);
  transition: var(--transition-fast);
}

.mobile-menu-toggle.active .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.active .bar:nth-child(2) {
  transform: translateY(-0px) rotate(-45deg);
}

/* Mobile Dropdown Menu */
.mobile-dropdown {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(7, 8, 11, 0.98);
  backdrop-filter: blur(25px);
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.mobile-dropdown.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
}

.mobile-nav-link {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-white);
  text-decoration: none;
  transition: var(--transition-fast);
}

.mobile-nav-link:hover {
  color: var(--color-yellow-neon);
}

@media (max-width: 768px) {
  .nav-links, .nav-cta {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .nav-capsule {
    margin: 0 16px;
    padding: 12px 20px;
  }
  .logo-img {
    height: 32px;
  }
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  min-height: 95vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding-top: 150px;
  padding-bottom: 80px;
}

.hero-container {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
  padding: 0 24px;
}

.hero-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.25em;
  color: var(--color-yellow-neon);
  background-color: var(--color-yellow-glow);
  border: 1px solid rgba(255, 230, 0, 0.2);
  padding: 8px 24px;
  border-radius: 100px;
  margin-bottom: 28px;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--color-white);
  line-height: 1.15;
  margin-bottom: 24px;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 4.25rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 4.75rem;
  }
}

.hero-subtitle {
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-gray-muted);
  max-width: 700px;
  margin: 0 auto 48px auto;
}

@media (min-width: 768px) {
  .hero-subtitle {
    font-size: 1.35rem;
  }
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

@media (min-width: 576px) {
  .hero-ctas {
    flex-direction: row;
    gap: 20px;
  }
}

/* ==========================================================================
   SCROLL REVEAL FRAMEWORK
   ========================================================================== */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.scroll-reveal:nth-child(1) { transition-delay: 0.1s; }
.scroll-reveal:nth-child(2) { transition-delay: 0.2s; }
.scroll-reveal:nth-child(3) { transition-delay: 0.3s; }
.scroll-reveal:nth-child(4) { transition-delay: 0.4s; }

/* ==========================================================================
   SERVIÇOS SECTION (8 Cards Grid - Compact and Easy to Read)
   ========================================================================== */
.servicos-section {
  padding: 100px 0;
  position: relative;
}

.servicos-carousel-viewport {
  width: 100%;
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
  scrollbar-width: none; /* Firefox */
  padding: 20px 0 30px 0;
  margin-top: 40px;
}

.servicos-carousel-viewport::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.servicos-carousel-track {
  display: flex;
  gap: 20px;
  width: max-content;
}

.servico-card {
  background-color: var(--color-black-card);
  border: 1px solid var(--color-black-border);
  border-radius: 18px;
  padding: 28px 24px; /* Compact padding */
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 280px; /* Fixed width for carousel items */
  height: 250px; /* Fixed height for visual consistency */
  scroll-snap-align: start;
  flex-shrink: 0;
}

.servico-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-yellow-neon);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.5), 0 0 12px var(--color-yellow-glow);
}

/* Beautiful custom duotone icons with yellow neon circular outline */
.servico-card .card-icon {
  width: 44px;
  height: 44px;
  background-color: var(--color-yellow-glow);
  border: 1.5px solid var(--color-yellow-neon);
  border-radius: 50%;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-yellow-neon);
  margin-bottom: 20px;
  transition: var(--transition-smooth);
}

.servico-card:hover .card-icon {
  background-color: var(--color-yellow-neon);
  color: var(--color-black-pure);
  transform: scale(1.05);
}

.servico-card .card-icon svg {
  width: 100%;
  height: 100%;
}

.servico-card h3 {
  font-size: 1.15rem; /* Smaller heading size */
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.servico-card p {
  font-size: 0.85rem; /* Smaller description text */
  line-height: 1.55;
  color: var(--color-gray-muted);
}

/* ==========================================================================
   PARA QUEM É O NOSSO MÉTODO SECTION (Timeset Box Style)
   ========================================================================== */
.metodo-section {
  padding: 100px 0;
  position: relative;
}

/* Diferenciais Section / Abstract Background styles */
.metodo-section.bg-diferenciais {
  background-image: linear-gradient(180deg, rgba(7, 8, 11, 0.8) 0%, rgba(7, 8, 11, 0.6) 50%, rgba(7, 8, 11, 0.8) 100%), url('./assets/bg_diferenciais.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  z-index: 1;
}

.diferenciais-grid {
  display: grid;
  grid-template-cols: 1fr;
  gap: 24px;
  margin-top: 50px;
}

@media (min-width: 768px) {
  .diferenciais-grid {
    grid-template-cols: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .diferenciais-grid {
    grid-template-cols: repeat(4, 1fr);
  }
}

.diferencial-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 32px 24px;
  border-radius: 20px;
  transition: var(--transition-smooth);
}

.diferencial-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-yellow-neon);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  background: rgba(255, 255, 255, 0.06);
}

.diferencial-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.diferencial-card p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   LIGHT THEME STYLES (Light sections to balance theme brightness)
   ========================================================================== */
.light-section {
  background-color: var(--color-white) !important;
  color: var(--color-black-pure) !important;
  position: relative;
}

.light-section .section-title {
  color: var(--color-black-pure) !important;
}

.light-section .section-desc {
  color: var(--color-gray-dark) !important;
}

/* Background image overlay styling for Services Section */
.servicos-section.light-section.bg-image-overlay {
  background-image: linear-gradient(rgba(255, 255, 255, 0.93), rgba(255, 255, 255, 0.93)), url('./assets/bg_services.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* Statement section special styling */
.statement-section {
  padding: 100px 0;
  text-align: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.statement-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.statement-text {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-black-pure);
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

.statement-subtext {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--color-gray-dark);
  font-weight: 500;
  max-width: 750px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .statement-text {
    font-size: 2.5rem;
  }
  .statement-subtext {
    font-size: 1.5rem;
  }
}

/* Light theme card adjustments for services */
.light-section .servico-card {
  background-color: var(--color-white);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.light-section .servico-card:hover {
  border-color: var(--color-yellow-solid);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08), 0 0 12px rgba(234, 179, 8, 0.1);
  transform: translateY(-5px);
}

.light-section .servico-card h3 {
  color: var(--color-black-pure);
}

.light-section .servico-card p {
  color: var(--color-gray-dark);
}

.light-section .servico-card .card-icon {
  background-color: rgba(234, 179, 8, 0.1);
  border-color: var(--color-yellow-solid);
  color: var(--color-yellow-solid);
}

/* Process section switcher styling for light theme */
.processo-section.light-section {
  background-color: #f9fafb !important;
}

.light-section .processo-tab {
  background-color: var(--color-white);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--color-gray-dark);
}

.light-section .processo-tab.active {
  background-color: var(--color-black-pure);
  color: var(--color-white);
  border-color: var(--color-black-pure);
}

.light-section .processo-content-wrapper {
  background-color: var(--color-white);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.04);
  color: var(--color-black-pure);
}

.light-section .processo-panel h3 {
  color: var(--color-black-pure);
}

.light-section .processo-panel p {
  color: var(--color-gray-dark);
}

/* Node diagram for light theme */
.light-section .node-diagram-board {
  background-color: #f9fafb;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.light-section .node-center {
  background-color: var(--color-black-pure);
  color: var(--color-white);
}

.light-section .node-pill {
  background-color: var(--color-white);
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  color: var(--color-black-pure);
  box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.light-section .node-pill:hover {
  border-color: var(--color-yellow-solid);
  background-color: var(--color-white);
}

.light-section .node-lines line {
  stroke: rgba(0, 0, 0, 0.1) !important;
}

/* Quem somos styling for light theme */
.quem-somos-section.light-section {
  background-color: var(--color-white) !important;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.light-section .quem-somos-header .lead-text {
  color: var(--color-black-pure);
}

.light-section .quem-somos-header .body-text {
  color: var(--color-gray-dark);
}

.light-section .stat-item {
  border-left: 2px solid rgba(0, 0, 0, 0.1);
}

.light-section .stat-number {
  color: var(--color-black-pure);
}

.light-section .stat-label {
  color: var(--color-gray-dark);
}

/* ==========================================================================
   PROCESSO SECTION (Timeset Switcher Style with Node Diagrams)
   ========================================================================== */
.processo-section {
  padding: 100px 0;
  position: relative;
}

.processo-switcher {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 60px;
}

@media (min-width: 992px) {
  .processo-switcher {
    flex-direction: row;
    align-items: stretch;
    gap: 60px;
  }
}

/* Left Switcher Tabs */
.processo-tabs {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 0.8;
}

.processo-tab {
  display: flex;
  align-items: center;
  text-align: left;
  padding: 24px 28px;
  background-color: var(--color-black-card);
  border: 1px solid var(--color-black-border);
  border-radius: 16px;
  cursor: pointer;
  transition: var(--transition-smooth);
  outline: none;
}

.processo-tab:hover {
  border-color: rgba(255,230,0,0.25);
  transform: translateX(4px);
}

.processo-tab.active {
  background-color: var(--color-black-pure);
  border-color: var(--color-yellow-neon);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.tab-num {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-gray-dark);
  margin-right: 20px;
  transition: var(--transition-fast);
}

.processo-tab.active .tab-num {
  color: var(--color-yellow-neon);
}

.tab-label {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-gray-muted);
  transition: var(--transition-fast);
}

.processo-tab.active .tab-label {
  color: var(--color-white);
}

/* Right Content Area */
.processo-content-wrapper {
  flex: 1.4;
  background-color: var(--color-black-card);
  border: 1px solid var(--color-black-border);
  border-radius: 28px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
}

.processo-panel {
  display: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.processo-panel.active {
  display: flex;
  flex-direction: column;
  gap: 32px;
  animation: panel-fade-in 0.4s forwards ease;
}

.processo-panel h3 {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--color-white);
  letter-spacing: -0.02em;
}

.processo-panel p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-gray-muted);
  max-width: 600px;
}

/* Node diagram board style */
.node-diagram-board {
  width: 100%;
  height: 240px;
  background-color: #ffffff;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.node-center {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background-color: #000000;
  border: 4px solid var(--color-yellow-neon);
  color: #ffffff;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 3;
  box-shadow: 0 0 20px rgba(0,0,0,0.2);
}

.node-center-glow {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background-color: var(--color-yellow-neon);
  filter: blur(30px);
  opacity: 0.15;
  z-index: 1;
}

.node-pill {
  position: absolute;
  padding: 8px 16px;
  background-color: #ffffff;
  border: 1px solid #e4e4e7;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #18181b;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  z-index: 3;
  animation: float-node 3s infinite alternate ease-in-out;
}

/* Node positions */
.pill-1 { top: 20%; left: 8%; animation-delay: 0s; }
.pill-2 { top: 12%; left: 45%; animation-delay: 0.5s; }
.pill-3 { top: 20%; right: 8%; animation-delay: 1s; }
.pill-4 { bottom: 20%; left: 20%; animation-delay: 1.5s; }
.pill-5 { bottom: 20%; right: 20%; animation-delay: 2s; }

.node-lines {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 2;
  pointer-events: none;
}

/* ==========================================================================
   PORTFOLIO SECTION (Carousel)
   ========================================================================== */
.portfolio-section {
  padding: 100px 0;
  background-color: var(--color-black-deep);
  position: relative;
  overflow: hidden;
}

.portfolio-header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 48px;
}

@media (min-width: 768px) {
  .portfolio-header-container {
    flex-direction: row;
    align-items: flex-end;
  }
}

.portfolio-header-container .section-header {
  max-width: 600px;
  text-align: left;
}

.portfolio-header-container .section-title {
  text-align: left;
}

.portfolio-header-container .section-desc {
  text-align: left;
  margin: 0;
}

.portfolio-nav {
  display: flex;
  gap: 12px;
}

.btn-scroll-nav {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--color-black-card);
  border: 1px solid var(--color-black-border);
  color: var(--color-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.btn-scroll-nav:hover {
  background-color: var(--color-white);
  color: var(--color-black-pure);
  border-color: var(--color-white);
}

/* Carousel scroll container wrapper */
.portfolio-container-wrapper {
  width: 100%;
  overflow-x: scroll;
  padding: 10px 24px 30px 24px;
  scrollbar-width: none;
}

.portfolio-container-wrapper::-webkit-scrollbar {
  display: none;
}

.portfolio-carousel {
  display: flex;
  gap: 24px;
  width: max-content;
}

/* Video Card Structure */
.portfolio-card {
  width: 250px;
  aspect-ratio: 9 / 16;
  border-radius: 20px;
  overflow: hidden;
  background-color: var(--color-black-pure);
  border: 1px solid var(--color-black-border);
  position: relative;
  cursor: pointer;
  transition: var(--transition-smooth);
}

@media (min-width: 768px) {
  .portfolio-card {
    width: 270px;
  }
}

.video-preview-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.video-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.65;
  transition: var(--transition-smooth);
}

.portfolio-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--color-yellow-neon);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), 0 0 20px var(--color-yellow-glow);
}

.portfolio-card:hover .video-preview {
  opacity: 0.85;
}

/* Overlay Inside Card */
.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  z-index: 10;
}

/* Card typography */
.card-category {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--color-yellow-neon);
  letter-spacing: 0.1em;
  margin-bottom: 6px;
  text-shadow: 0 0 8px rgba(255,230,0,0.2);
}

.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

/* Play Icon Indicator overlay */
.play-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.85);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: rgba(255, 230, 0, 0.2);
  border: 1.5px solid var(--color-yellow-neon);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--color-yellow-neon);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-smooth);
}

.play-indicator svg {
  width: 20px;
  height: 20px;
  margin-left: 2px;
}

.portfolio-card:hover .play-indicator {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* ==========================================================================
   QUEM SOMOS SECTION
   ========================================================================== */
.quem-somos-section {
  padding: 100px 0;
  position: relative;
}

.quem-somos-header {
  max-width: 800px;
  margin: 0 auto 50px auto;
  text-align: center;
}

.quem-somos-header .section-title {
  margin-bottom: 24px;
}

.lead-text {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--color-white);
  margin-bottom: 20px;
}

.body-text {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--color-gray-muted);
  margin-bottom: 24px;
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-cols: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 32px;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-yellow-neon);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

@media (min-width: 768px) {
  .stat-number {
    font-size: 2.5rem;
  }
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-gray-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Horizontal Backstage Carousel (Like Reference) */
.bastidores-carousel-viewport {
  width: 100%;
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
  scrollbar-width: none; /* Firefox */
  padding: 20px 24px 40px 24px;
}

.bastidores-carousel-viewport::-webkit-scrollbar {
  display: none; /* Webkit */
}

.bastidores-carousel-track {
  display: flex;
  gap: 16px;
  width: max-content;
}

.bastidores-item {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--color-black-border);
  aspect-ratio: 9 / 16; /* Portrait 9:16 layout as requested */
  width: 230px; /* Width matching reference cards */
  background-color: var(--color-black-card);
  transition: var(--transition-smooth);
  scroll-snap-align: start;
  flex-shrink: 0;
}

.bastidores-item:hover {
  border-color: var(--color-yellow-neon);
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6), 0 0 15px var(--color-yellow-glow);
}

.bastidores-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
  transition: var(--transition-smooth);
  pointer-events: none;
}

.bastidores-item:hover video {
  opacity: 1;
}

/* ==========================================================================
   CTA SECTION
   ========================================================================== */
.cta-section {
  padding: 100px 0;
  position: relative;
}

.cta-container {
  background: radial-gradient(circle at 50% 0%, var(--color-yellow-glow) 0%, transparent 70%), var(--color-black-card);
  border: 1px solid var(--color-black-border);
  padding: 60px 30px;
  border-radius: 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7);
}

@media (min-width: 768px) {
  .cta-container {
    padding: 80px 60px;
  }
}

.cta-badge {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--color-yellow-neon);
  letter-spacing: 0.25em;
  margin-bottom: 24px;
}

.cta-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 20px;
}

@media (min-width: 768px) {
  .cta-title {
    font-size: 3.25rem;
  }
}

.cta-desc {
  font-size: 1.125rem;
  color: var(--color-gray-muted);
  max-width: 550px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
}

.btn-large {
  padding: 18px 48px;
  font-size: 1.125rem;
  background-color: var(--color-yellow-neon);
  color: var(--color-black-pure);
}

.btn-large:hover {
  background-color: var(--color-white);
  box-shadow: 0 10px 30px rgba(255,255,255,0.1);
}

/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */
/* ==========================================================================
   HORIZONTAL FOOTER SECTION (Light Theme)
   ========================================================================== */
.footer-section.light-section {
  background-color: #f4f4f5 !important;
  color: var(--color-black-pure) !important;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding: 60px 0 30px 0;
}

.footer-horizontal-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-bottom: 40px;
  align-items: center;
}

/* Row 1: Logo & Socials */
.footer-top-row {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.footer-logo-wrapper .footer-logo {
  height: 38px;
  width: auto;
  display: block;
}

.footer-socials-wrapper {
  display: flex;
  gap: 12px;
}

.footer-section.light-section .social-icon {
  background-color: var(--color-white);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--color-black-pure);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.footer-section.light-section .social-icon:hover {
  background-color: var(--color-black-pure);
  color: var(--color-white);
  border-color: var(--color-black-pure);
  transform: translateY(-2px);
}

.footer-section.light-section .social-icon svg {
  width: 18px;
  height: 18px;
}

/* Row 2: Nav Links Horizontal */
.footer-nav-row {
  width: 100%;
  display: flex;
  justify-content: center;
}

.horizontal-nav-links {
  list-style: none;
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0;
}

.horizontal-nav-links a {
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--color-gray-dark);
  text-decoration: none;
  transition: var(--transition-fast);
}

.horizontal-nav-links a:hover {
  color: var(--color-yellow-solid);
}

/* Row 3: Contacts Horizontal */
.footer-contact-row {
  width: 100%;
  display: flex;
  justify-content: center;
}

.horizontal-contact-links {
  list-style: none;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding: 0;
}

.horizontal-contact-links a, .horizontal-contact-links span {
  font-size: 0.875rem;
  color: var(--color-gray-dark);
  text-decoration: none;
}

.horizontal-contact-links a:hover {
  color: var(--color-yellow-solid);
}

.bullet-separator {
  color: rgba(0, 0, 0, 0.2);
}

/* Footer Bottom Light Theme */
.footer-section.light-section .footer-bottom {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
}

@media (min-width: 768px) {
  .footer-section.light-section .footer-bottom {
    flex-direction: row;
  }
}

.footer-section.light-section .footer-bottom p {
  color: var(--color-gray-dark);
  font-size: 0.8125rem;
}

.footer-section.light-section .btn-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-black-pure);
  border: 1px solid rgba(0, 0, 0, 0.1);
  background-color: var(--color-white);
  padding: 8px 16px;
  border-radius: 20px;
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer-section.light-section .btn-top:hover {
  border-color: var(--color-black-pure);
  background-color: var(--color-black-pure);
  color: var(--color-white);
}

.footer-section.light-section .btn-top svg {
  width: 16px;
  height: 16px;
}


/* ==========================================================================
   VIDEO MODAL POPUP
   ========================================================================== */
.video-modal {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.video-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  z-index: 1010;
}

.modal-close:hover {
  background-color: var(--color-yellow-neon);
  color: var(--color-black-pure);
  transform: rotate(90deg);
}

.modal-close svg {
  width: 24px;
  height: 24px;
}

.modal-content {
  width: 100%;
  max-width: 500px;
  aspect-ratio: 9 / 16;
  border-radius: 20px;
  overflow: hidden;
  background-color: var(--color-black-pure);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 70px rgba(0,0,0,0.9);
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.video-modal.active .modal-content {
  opacity: 1;
  transform: scale(1);
}

.modal-video-wrapper {
  width: 100%;
  height: 100%;
}

#modalVideoPlayer {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-height: 700px) {
  .modal-content {
    max-height: 85vh;
    width: auto;
  }
}

@keyframes panel-fade-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float-node {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

/* ==========================================================================
   MOBILE & RESPONSIVE TWEAKS & OPTIMIZATIONS
   ========================================================================== */
@media (max-width: 768px) {
  /* Disable fixed background attachment on mobile for iOS performance/rendering */
  .metodo-section.bg-diferenciais,
  .servicos-section.light-section.bg-image-overlay {
    background-attachment: scroll !important;
  }
  
  /* Horizontal contact links stack vertically on mobile */
  .horizontal-contact-links {
    flex-direction: column;
    gap: 12px !important;
  }
  .horizontal-contact-links .bullet-separator {
    display: none !important;
  }
}

@media (max-width: 576px) {
  /* Statement Typography mobile optimization */
  .statement-section {
    padding: 60px 0;
  }
  .statement-text {
    font-size: 1.45rem !important;
    line-height: 1.35;
    margin-bottom: 16px;
  }
  .statement-subtext {
    font-size: 1.1rem !important;
    line-height: 1.5;
  }

  /* Node Diagram mobile flex layout (prevents overlapping) */
  .node-diagram-board {
    height: auto !important;
    padding: 24px 16px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    justify-content: center !important;
    background-color: #f3f4f6 !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
  }
  .node-center, .node-center-glow, .node-lines {
    display: none !important;
  }
  .node-pill {
    position: static !important;
    animation: none !important;
    font-size: 0.75rem !important;
    padding: 8px 14px !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03) !important;
    border: 1.5px solid rgba(0, 0, 0, 0.08) !important;
    background-color: var(--color-white) !important;
    color: var(--color-black-pure) !important;
    margin: 0 !important;
  }
  
  /* Diferenciais grid padding tweak */
  .diferencial-card {
    padding: 24px 20px !important;
  }
  .diferencial-card h3 {
    font-size: 1.15rem !important;
    margin-bottom: 10px;
  }
  .diferencial-card p {
    font-size: 0.85rem !important;
  }
}

/* Contrast enhancement for neon yellow text on light backgrounds */
.light-section .section-sub {
  color: #b45309 !important; /* Elegant amber-700 for AA/AAA accessibility */
}
