@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;500;700;900&display=swap');

/* GLOBAL RESET */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  background-color: #0C0C0C;
  color: #D7E2EA;
  font-family: 'Kanit', sans-serif;
  overflow-x: hidden;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#root, .main-wrapper {
  background-color: #0C0C0C;
  width: 100%;
  overflow-x: clip;
}

/* Trava o scroll da página quando o menu mobile está aberto */
body.nav-open {
  overflow: hidden;
}

/* GRADIENT TEXT CLASS */
.hero-heading {
  background: linear-gradient(180deg, #f5f7fa 0%, #c5d4e3 45%, #95a7bb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 24px rgba(255,255,255,0.08);
}

/* REUSABLE COMPONENTS */

/* Contact Button */
.btn-contact {
  background: linear-gradient(123deg, #04160C 7%, #0A8F45 37%, #22C55E 72%, #8BFFB8 100%);
  box-shadow: 0px 4px 12px rgba(10, 143, 69, 0.3), inset 4px 4px 12px #14984F;
  outline: 2px solid #FFFFFF;
  outline-offset: -3px;
  border: none;
  border-radius: 9999px;
  color: #FFFFFF;
  font-family: 'Kanit', sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s cubic-bezier(0.25, 0.1, 0.25, 1), 
              filter 0.2s cubic-bezier(0.25, 0.1, 0.25, 1),
              box-shadow 0.2s cubic-bezier(0.25, 0.1, 0.25, 1);
  padding: 0.75rem 2rem;
  font-size: 0.75rem;
  text-decoration: none;
  white-space: nowrap;
}

@media (min-width: 640px) {
  .btn-contact {
    padding: 0.875rem 2.5rem;
    font-size: 0.875rem;
  }
}

@media (min-width: 768px) {
  .btn-contact {
    padding: 1rem 3rem;
    font-size: 1rem;
  }
}

.btn-contact:hover {
  transform: translateY(-2px) scale(1.03);
  filter: brightness(1.1);
  box-shadow: 0px 8px 18px rgba(10, 143, 69, 0.42), inset 4px 4px 12px #14984F;
}

.btn-contact:active {
  transform: translateY(1px) scale(0.98);
}

/* SECTION 1: HERO SECTION */
.hero-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  position: relative;
  overflow: hidden;
  /* padding-top maior que o normal: dá folga pro acento do "Ã" de "INOVAÇÃO"
     não ser cortado pelo overflow:hidden — com line-height:0.9 no título, o
     til fica acima da caixa da linha e precisa desse respiro extra. */
  padding: clamp(4.5rem, 10vw, 6rem) 0 2rem 0;
  background-color: #020405;
  isolation: isolate;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 46%, rgba(215, 226, 234, 0.06) 0%, rgba(99, 113, 124, 0.04) 20%, rgba(2, 4, 5, 0) 54%),
    linear-gradient(180deg, rgba(5, 7, 8, 0.35) 0%, rgba(2, 4, 5, 0.55) 68%, rgba(2, 4, 5, 0.7) 100%);
  pointer-events: none;
  z-index: 1;
}

/* Vídeo de fundo do Hero */
.hero-video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(2,4,5,0.35) 0%, rgba(2,4,5,0.55) 100%);
  background-color: #020405;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  filter: saturate(1.18) contrast(1.16) brightness(1.08);
  will-change: transform;
  display: block;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(2, 4, 5, 0.25) 0%, rgba(2, 4, 5, 0.2) 28%, rgba(2, 4, 5, 0.55) 72%, rgba(2, 4, 5, 0.86) 100%);
  pointer-events: none;
}

/* Quando o JS detecta prefers-reduced-motion, o vídeo é pausado (main.js) e
   fica parado no frame do "poster" — NÃO pode ficar com display:none aqui,
   senão o elemento inteiro (poster incluído) some e o Hero fica sem nenhuma
   imagem por trás, só o fundo escuro sólido. */

.hero-section::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(10rem, 22vw, 18rem);
  background: linear-gradient(180deg, rgba(2, 4, 5, 0) 0%, rgba(2, 4, 5, 0) 18%, rgba(2, 4, 5, 0.44) 58%, #020405 100%);
  pointer-events: none;
  z-index: 12;
}

/* Navbar */
.navbar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 1.5rem;
  z-index: 100;
}

@media (min-width: 768px) {
  .navbar {
    padding: 2rem 4rem;
  }
}

.navbar-logo-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.navbar-logo-svg {
  width: 38px;
  height: 38px;
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.navbar-logo-container:hover .navbar-logo-svg {
  transform: rotate(45deg);
}

.navbar-brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #D7E2EA;
  font-family: 'Kanit', sans-serif;
}

.navbar-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-link {
  color: #D7E2EA;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  font-size: 0.875rem;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.nav-link:hover {
  color: #67F39B;
  opacity: 1;
}

/* Escondido por padrão: só aparece no breakpoint mobile abaixo.
   Sem esta regra, o <button> nativo (com 3 <span> vazios) fica visível e
   sem estilo em telas desktop, pois todo o restante do seu CSS vive dentro
   do media query. */
.navbar-burger {
  display: none;
}

@media (max-width: 768px) {
  .navbar {
    padding: 1.25rem 1.25rem;
  }

  .navbar-brand-name {
    display: none;
  }

  .navbar-burger {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: column;
    width: 2rem;
    height: 1.65rem;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
    margin-left: 1rem;
    z-index: 110;
  }

  .navbar-burger span {
    display: block;
    width: 100%;
    height: 3px;
    background: #D7E2EA;
    border-radius: 999px;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .navbar-links {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(88vw, 320px);
    padding: 6rem 1.5rem 1.5rem;
    gap: 1.5rem;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    background: rgba(2, 4, 5, 0.95);
    backdrop-filter: blur(18px);
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s ease, opacity 0.35s ease;
    z-index: 105;
  }

  .navbar.open .navbar-links {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }

  /* Backdrop: escurece o resto da página e permite fechar tocando fora do menu */
  .navbar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 4, 5, 0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    z-index: 104;
  }

  .navbar.open .navbar-overlay {
    opacity: 1;
    pointer-events: auto;
  }

  .navbar.open .navbar-burger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .navbar.open .navbar-burger span:nth-child(2) {
    opacity: 0;
  }

  .navbar.open .navbar-burger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav-link {
    display: block;
    font-size: 0.95rem;
    padding: 0.85rem 0;
    width: 100%;
  }
}

/* Selo pequeno acima do título ("kicker") */
.hero-kicker {
  display: inline-flex;
  align-items: center;
  margin: 0 auto clamp(0.9rem, 2.5vw, 1.5rem) auto;
  padding: 0.3rem 0.85rem;
  border: 1px solid rgba(103, 243, 155, 0.35);
  border-radius: 9999px;
  background: rgba(103, 243, 155, 0.06);
  color: #67F39B;
  font-size: 0.6rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  position: relative;
  z-index: 8;
}

/* Heading Container */
.hero-heading-container {
  overflow: visible;
  width: 100%;
  margin-top: 0;
  padding: 0 1rem;
  z-index: 8;
  position: relative;
  pointer-events: none;
}

@media (min-width: 640px) {
  .hero-heading-container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 768px) {
  .hero-heading-container {
    padding: 0 2.5rem;
  }
}

.hero-heading-text {
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.15;
  width: 100%;
  text-align: center;
  max-width: 1100px;
  margin: 0 auto;
  font-size: clamp(2.6rem, 6.8vw, 6.2rem);
  opacity: 0.94;
}

@media (min-width: 640px) {
  .hero-heading-text {
    font-size: clamp(3.2rem, 7vw, 6.8rem);
  }
}

@media (min-width: 768px) {
  .hero-heading-text {
    font-size: clamp(3.8rem, 6.2vw, 7.4rem);
  }
}

@media (min-width: 1024px) {
  .hero-heading-text {
    font-size: clamp(4.2rem, 5.8vw, 7.8rem);
  }
}

.hero-heading-text span {
  display: block;
}

.hero-portrait-shell {
  position: absolute;
  left: 50%;
  top: 54%;
  width: min(34vw, 250px);
  aspect-ratio: 4 / 3;
  opacity: 0;
  --shell-shift-x: 0%;
  --shell-shift-y: 0%;
  transform: translate3d(calc(-50% + var(--shell-shift-x)), calc(-50% + var(--shell-shift-y)), 0);
  animation: heroPortraitReveal 0.85s cubic-bezier(0.25, 0.1, 0.25, 1) 0.25s forwards;
  z-index: 18;
  pointer-events: none;
  filter: drop-shadow(0 1.6rem 2.2rem rgba(0, 0, 0, 0.38));
}

@keyframes heroPortraitReveal {
  to {
    opacity: 1;
  }
}

/* Canvas WebGL do modelo 3D interativo */
.hero-drone-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

@media (min-width: 768px) {
  .hero-portrait-shell {
    top: 55%;
    width: min(24vw, 280px);
  }
}

/* Mobile: mantém o drone 3D, só reduz o tamanho pra ocupar menos espaço no
   hero. O top:54% herdado da regra base já deixa folga suficiente até o
   .hero-cta-row reposicionado (top:73% abaixo) nesse mesmo breakpoint. */
@media (max-width: 767px) {
  .hero-portrait-shell {
    width: min(26vw, 140px);
  }
  .hero-heading-text {
    line-height: 1.2;
  }
}

@media (min-width: 1200px) {
  .hero-portrait-shell {
    top: 56%;
    width: min(20vw, 300px);
  }
}

.hero-cta-row {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  left: 50%;
  bottom: clamp(1.75rem, 5vh, 3rem);
  transform: translateX(-50%);
  z-index: 25;
}

@media (max-width: 767px) {
  .hero-cta-row {
    top: 73%;
    bottom: auto;
  }
}

.hero-bio {
  color: #D7E2EA;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.3;
  font-size: clamp(0.72rem, 1.1vw, 1.05rem);
  max-width: 680px;
  text-align: center;
  margin: clamp(0.9rem, 2vw, 1.4rem) auto 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 25;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.72);
}

@media (min-width: 640px) {
  .hero-bio {
    max-width: 720px;
  }
}

@media (min-width: 768px) {
  .hero-bio {
    max-width: 760px;
  }
}

/* LOAD ANIMATION ENGINE */
.fade-in-load {
  opacity: 0;
  transform: translate(var(--start-x, 0px), var(--start-y, 0px));
  animation: fadeInLoad var(--duration, 0.7s) cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes fadeInLoad {
  to {
    opacity: 1;
    transform: translate(0, 0);
  }
}

/* SECTION 2: MARQUEE SECTION */
.marquee-section {
  position: relative;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(107, 157, 178, 0.08) 0%, rgba(43, 76, 91, 0.04) 30%, rgba(2, 4, 5, 0) 64%),
    linear-gradient(180deg, #020405 0%, #05090b 28%, #0C0C0C 100%);
  margin-top: 0;
  padding-top: clamp(7rem, 13vw, 10rem);
  padding-bottom: 2.5rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.75rem; /* gap-3 */
}

.marquee-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: clamp(6rem, 12vw, 9rem);
  background: linear-gradient(180deg, #020405 0%, rgba(2, 4, 5, 0.7) 42%, rgba(12, 12, 12, 0) 100%);
  pointer-events: none;
  z-index: 0;
}

.marquee-heading {
  position: relative;
  z-index: 1;
  text-align: center;
  font-size: clamp(2.4rem, 7vw, 6rem);
  font-weight: 900;
  line-height: 0.95;
  text-transform: uppercase;
  margin: 0 auto clamp(2rem, 4vw, 3.5rem) auto;
  padding: 0 1.25rem;
}

.marquee-container {
  display: flex;
  overflow: hidden;
  width: 100vw;
  user-select: none;
  pointer-events: none;
  position: relative;
  z-index: 1;
}

/* Precisa vir depois da regra base acima (mesma especificidade — a última no
   arquivo vence em empate; antes esse override vinha ANTES da base, então nunca
   era aplicado de verdade). Libera toque/scroll do usuário sobre o carrossel no
   mobile em vez de bloquear com pointer-events:none. */
@media (max-width: 767px) {
  .marquee-container {
    pointer-events: auto;
  }
}

.marquee-track {
  display: flex;
  gap: 0.75rem;
  will-change: transform;
}

.marquee-tile {
  width: 420px;
  height: 270px;
  border-radius: 1rem; /* rounded-2xl */
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  background-color: #1a1a1a;
  border: 1px solid rgba(215, 226, 234, 0.05);
}

@media (max-width: 640px) {
  .marquee-tile {
    width: 190px;
    height: 122px;
  }
}

/* SECTION 3: ABOUT SECTION */
.about-section {
  min-height: 100vh;
  background-color: #0C0C0C;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 5rem 1.25rem;
  overflow: hidden;
  z-index: 5;
}

@media (min-width: 640px) {
  .about-section {
    padding: 5rem 2rem;
  }
}

@media (min-width: 768px) {
  .about-section {
    padding: 5rem 2.5rem;
  }
}

/* Section heading general style */
.section-heading-huge {
  font-weight: 900;
  text-transform: uppercase;
  leading-opacity: 0.85;
  letter-spacing: -0.02em;
  text-align: center;
  font-size: clamp(3rem, 12vw, 160px);
  z-index: 2;
  margin-bottom: 2.5rem;
}

@media (min-width: 640px) { .section-heading-huge { margin-bottom: 3.5rem; } }
@media (min-width: 768px) { .section-heading-huge { margin-bottom: 4rem; } }

/* About content wrapper */
.about-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4rem; /* gap between text block and button */
  max-width: 880px;
  z-index: 2;
}

@media (min-width: 640px) { .about-content { gap: 5rem; } }
@media (min-width: 768px) { .about-content { gap: 6rem; } }

/* Animated Paragraph Spans */
.about-paragraph {
  color: #D7E2EA;
  font-weight: 500;
  line-height: 1.7;
  text-align: center;
  font-size: clamp(1.15rem, 2.2vw, 1.65rem);
}

.about-paragraph .char {
  opacity: 0.2;
  will-change: opacity;
  display: inline;
  white-space: pre-wrap;
}

/* INTERSECTION OBSERVER FADE-IN */
.scroll-fade-in {
  opacity: 0;
  transform: translate(var(--x, 0px), var(--y, 30px));
  transition: opacity var(--duration, 0.7s) cubic-bezier(0.25, 0.1, 0.25, 1),
              transform var(--duration, 0.7s) cubic-bezier(0.25, 0.1, 0.25, 1);
  transition-delay: var(--delay, 0s);
  will-change: opacity, transform;
}

.scroll-fade-in.visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* SECTION 4: SERVICES SECTION */
.services-section {
  background-color: #FFFFFF;
  color: #0C0C0C;
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
  padding: 5rem 1.25rem;
  position: relative;
  z-index: 8;
  overflow: hidden;
}

@media (min-width: 640px) {
  .services-section {
    border-top-left-radius: 50px;
    border-top-right-radius: 50px;
    padding: 6rem 2rem;
  }
}

@media (min-width: 768px) {
  .services-section {
    border-top-left-radius: 60px;
    border-top-right-radius: 60px;
    padding: 8rem 2.5rem;
  }
}

.services-heading {
  color: #0C0C0C;
}

.services-list {
  max-width: 1024px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.service-item {
  display: flex;
  align-items: center;
  border-top: 1px solid rgba(12, 12, 12, 0.15);
  padding: 2rem 0;
  transition: transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1),
              padding-left 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.service-item:last-child {
  border-bottom: 1px solid rgba(12, 12, 12, 0.15);
}

.service-item:hover {
  padding-left: 1.5rem;
  transform: translateX(5px);
}

.service-number {
  font-weight: 900;
  font-size: clamp(3rem, 10vw, 140px);
  color: #0C0C0C;
  line-height: 0.8;
  margin-right: 2rem;
  width: 30%;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .service-number {
    width: 25%;
    margin-right: 3rem;
  }
}

.service-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 70%;
}

@media (min-width: 768px) {
  .service-content {
    width: 75%;
  }
}

.service-title {
  font-weight: 500;
  text-transform: uppercase;
  font-size: clamp(1rem, 2.2vw, 2.1rem);
  color: #0C0C0C;
  transition: color 0.3s ease;
}

.service-item:hover .service-title {
  color: #0A8F45;
}

.service-description {
  font-weight: 300;
  line-height: 1.5;
  max-width: 650px;
  font-size: clamp(0.85rem, 1.6vw, 1.25rem);
  opacity: 0.6;
  color: #0C0C0C;
}

/* SECTION 5: PROJECTS SECTION */
.projects-section {
  background-color: #0C0C0C;
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
  margin-top: -2.5rem;
  padding: 6rem 1.25rem 6rem 1.25rem;
  position: relative;
  z-index: 10;
}

@media (min-width: 640px) {
  .projects-section {
    border-top-left-radius: 50px;
    border-top-right-radius: 50px;
    margin-top: -3rem;
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media (min-width: 768px) {
  .projects-section {
    border-top-left-radius: 60px;
    border-top-right-radius: 60px;
    margin-top: -3.5rem;
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
}

.projects-stack-container {
  max-width: 1200px;
  margin: 4rem auto 0 auto;
  position: relative;
  perspective: 1400px;
}

/* Sticky-stacking card layout */
.project-card-wrapper {
  position: relative;
  height: 48vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  will-change: transform, opacity;
  transform-origin: top center;
}

.project-card-wrapper:nth-child(1) {
  z-index: 1;
}

.project-card-wrapper:nth-child(2) {
  z-index: 2;
}

.project-card-wrapper:nth-child(3) {
  z-index: 3;
}

.project-card {
  position: sticky;
  top: calc(clamp(6rem, 15vh, 8rem) + var(--stack-offset, 0px));
  isolation: isolate;
  border-radius: 40px;
  border: 2px solid #D7E2EA;
  background-color: #0C0C0C;
  padding: 1.25rem;
  width: 100%;
  box-shadow: 0 -20px 40px rgba(0,0,0,0.8);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  /* height:auto (não uma % fixa da altura do wrapper) + overflow:visible: o
     card cresce pra caber o texto todo. Com % fixa + overflow:hidden, em
     janelas/telas mais baixas (ou zoom maior) o parágrafo ficava maior que a
     caixa e era cortado no meio da frase — reportado por usuários. */
  height: auto;
  min-height: clamp(18rem, 45vh, 28rem);
  overflow: visible;
  will-change: transform, filter;
  transform-origin: center top;
}

.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(215, 226, 234, 0.05) 0%, rgba(6, 10, 12, 0.16) 26%, rgba(2, 4, 5, 0.5) 100%);
  opacity: var(--stack-overlay-opacity, 0);
  pointer-events: none;
  z-index: 0;
}

.project-card > * {
  position: relative;
  z-index: 1;
}

@media (min-width: 640px) {
  .project-card {
    border-radius: 50px;
    padding: 2rem;
    gap: 2rem;
  }
}

@media (min-width: 768px) {
  .project-card {
    border-radius: 60px;
    padding: 2.5rem;
  }
}

/* Card Top Row */
.card-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.card-info-group {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .card-info-group {
    gap: 3rem;
  }
}

.card-number {
  font-weight: 900;
  font-size: clamp(2rem, 6vw, 5.5rem);
  color: #D7E2EA;
  line-height: 0.8;
}

.card-titles {
  display: flex;
  flex-direction: column;
}

.card-category {
  font-size: clamp(0.7rem, 1.2vw, 0.9rem);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.5;
  font-weight: 400;
}

.card-title {
  font-weight: 500;
  text-transform: uppercase;
  font-size: clamp(1rem, 2vw, 1.8rem);
  color: #D7E2EA;
}

/* Card Bottom Row (Method Text) */
.project-method-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  min-height: 0;
  flex: 1;
}

.project-method-intro {
  max-width: 60rem;
  color: rgba(215, 226, 234, 0.78);
  font-size: clamp(0.98rem, 1.5vw, 1.2rem);
  line-height: 1.65;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(215, 226, 234, 0.12);
}

.project-method-body {
  max-width: 70rem;
  color: rgba(215, 226, 234, 0.64);
  line-height: 1.65;
  font-size: clamp(0.92rem, 1.22vw, 1.04rem);
}

@media (max-width: 767px) {
  .card-top-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .card-info-group {
    align-items: flex-start;
  }

  .project-card {
    /* Piso menor que no desktop: o teto de 28rem deixava sobrar bastante espaço
       vazio abaixo do texto em cards com parágrafos mais curtos (height:auto e
       overflow:visible já vêm da regra base, que cresce pro texto nunca cortar). */
    min-height: clamp(15rem, 42vh, 21rem);
  }
}

/* SECTION 6: PARTNERS & SUPPORT */
.partners-section {
  background-color: #0C0C0C;
  padding: 6rem 1.25rem;
  position: relative;
  z-index: 10;
  border-top: 1px solid rgba(215, 226, 234, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.partners-container {
  max-width: 1200px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.partners-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}

.partners-group-title {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #67F39B;
  opacity: 0.9;
}

.partners-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  width: 100%;
}

.partner-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 0.75rem 1.25rem;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 290px;
  height: 135px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

.partner-card:hover {
  background: rgba(255, 255, 255, 1);
  border-color: rgba(103, 243, 155, 0.6);
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(103, 243, 155, 0.22);
}

.partner-logo {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  filter: grayscale(0.8) opacity(0.8);
  transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.partner-card:hover .partner-logo {
  filter: grayscale(0) opacity(1);
}

@media (max-width: 640px) {
  .partner-card {
    width: 190px;
    height: 100px;
    padding: 0.5rem 0.75rem;
  }
}

/* NAVBAR DYNAMIC SCROLL */
.navbar.scrolled {
  position: fixed;
  background: rgba(12, 12, 12, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(215, 226, 234, 0.05);
  padding: 1rem 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  animation: navbarSlideIn 0.3s ease forwards;
}

@keyframes navbarSlideIn {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

@media (min-width: 768px) {
  .navbar.scrolled {
    padding: 1.25rem 4rem;
  }
}

/* CREDENTIALS GRID SECTION */
.credentials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 4rem;
  width: 100%;
  max-width: 800px;
}

@media (min-width: 640px) {
  .credentials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .credentials-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1100px;
  }
}

.credential-card {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(215, 226, 234, 0.04);
  border-radius: 16px;
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
  transition: all 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
  position: relative;
  overflow: hidden;
}

.credential-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(103, 243, 155, 0.04) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.credential-card:hover {
  transform: translateY(-5px);
  border-color: rgba(103, 243, 155, 0.2);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.credential-card:hover::before {
  opacity: 1;
}

.credential-icon-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(103, 243, 155, 0.06);
  color: #67F39B;
  font-size: 1.5rem;
  transition: all 0.35s ease;
  border: 1px solid rgba(103, 243, 155, 0.12);
}

.credential-card:hover .credential-icon-wrapper {
  background: #67F39B;
  color: #0C0C0C;
  transform: scale(1.05) rotate(-5deg);
  box-shadow: 0 0 15px rgba(103, 243, 155, 0.35);
}

.credential-title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #D7E2EA;
  text-transform: uppercase;
}

.credential-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #A0B0BC;
  opacity: 0.85;
}

/* TECH CARD DECORATIONS */
.card-tech-overlay {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  opacity: 0.25;
  pointer-events: none;
  font-family: monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: #67F39B;
  transition: opacity 0.35s ease;
}

.project-card:hover .card-tech-overlay {
  opacity: 0.65;
}

/* Precisa vir DEPOIS da regra base acima: mesma especificidade (uma classe), então
   em empate quem vence é a última no arquivo — colocar isso antes da base (como
   estava) faz a base sempre "ganhar" e o ajuste mobile nunca aparecer de verdade. */
@media (max-width: 767px) {
  /* Some com as duas linhas de status: no card empilhado do mobile não sobra
     altura entre o título e o parágrafo pra elas caberem sem encostar em um dos
     dois. Mantém só o círculo do radar (pequeno, não esbarra em nada). */
  .card-tech-overlay span {
    display: none;
  }

  .card-tech-overlay {
    top: 1.25rem;
    right: 1.25rem;
  }
}

.card-tech-radar {
  width: 20px;
  height: 20px;
  border: 1px solid rgba(103, 243, 155, 0.3);
  border-radius: 50%;
  position: relative;
  margin-bottom: 0.25rem;
}

.card-tech-radar::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50%;
  height: 1px;
  background: #67F39B;
  transform-origin: left center;
  animation: radarSweep 3s linear infinite;
}

@keyframes radarSweep {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.card-tech-grid {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 140px;
  height: 140px;
  background-image: linear-gradient(rgba(103, 243, 155, 0.02) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(103, 243, 155, 0.02) 1px, transparent 1px);
  background-size: 10px 10px;
  mask-image: radial-gradient(circle at bottom right, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 80%);
  -webkit-mask-image: radial-gradient(circle at bottom right, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 80%);
  pointer-events: none;
  border-bottom-right-radius: 20px;
}

/* Brand name accent ("Squad") no logo da navbar */
.navbar-brand-accent {
  color: #67F39B;
  font-weight: 900;
}

/* SECTION 7: FOOTER */
.site-footer {
  background-color: #0C0C0C;
  text-align: center;
  padding: 6rem 1.25rem;
  border-top: 1px solid rgba(215, 226, 234, 0.1);
}

/* Foto completa (vista + faixa colorida) atrás do bloco de título/botões,
   com um véu escuro uniforme só pra garantir contraste do texto — sem
   degradês complicados nem sombra pesada na letra. */
.footer-hero {
  position: relative;
  overflow: hidden;
  margin: -6rem -1.25rem 3rem;
  padding: 4rem 1.5rem 3rem;
}

.footer-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.footer-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(6, 8, 10, 0.55);
}

.footer-hero-content {
  position: relative;
  z-index: 2;
}

.footer-heading {
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.footer-intro {
  color: rgba(215, 226, 234, 0.85);
  max-width: 500px;
  margin: 0 auto 3rem auto;
  line-height: 1.6;
}

.footer-contact-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.btn-contact--compact {
  display: inline-flex;
  padding: 0.75rem 2rem;
  font-size: 0.95rem;
}

.footer-social {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
}

.footer-social-link {
  color: #67F39B;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.footer-copyright {
  opacity: 0.3;
  font-size: 0.8rem;
  margin-top: 5rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.footer-legal {
  opacity: 0.4;
  font-size: 0.75rem;
  max-width: 560px;
  margin: 0.85rem auto 0 auto;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
  line-height: 1.5;
}

.footer-credit {
  opacity: 0.16;
  font-size: 0.6rem;
  margin-top: 0.6rem;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
}

.footer-credit-link {
  color: inherit;
  text-decoration: underline;
}
