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

html,
body {
  overflow-x: hidden;
  position: relative;
  width: 100%;
  max-width: 100%;
}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}


body {
  background: var(--bg-main);
  color: var(--text-main);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  font-size: 16px;
  padding-top: 100px;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: normal;
  /* Space for the fixed header on mobile */
  /* Estilos base (mobile first) */
}

/* Adjust padding for larger screens where header is shorter */
@media (min-width: 1024px) {
  body {
    padding-top: 70px;
  }
}

/* Tablet e telas médias */
@media (min-width: 768px) {
  body {
    font-size: 18px;
  }
}

.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

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

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}

img {
  max-width: 100%;
  height: auto;
}

/* ================================================= */
/* ✨ INTERACTIVE EFFECTS */
/* ================================================= */
#dynamic-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  transition: background 0.1s ease-out;
}

/* ================================================= */
/* 📱 NAVIGATION */
/* ================================================= */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

header.scrolled {
  padding: 0.8rem 0;
}

.header-nav {
  width: 95%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 3rem;
  padding: 0.3rem 1.5rem;
  border-radius: 99px;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  background: transparent;
  border: 1px solid transparent;
}

header.scrolled .header-nav {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
  width: fit-content;
  max-width: 95%;
  padding: 0.5rem 2rem;
  gap: 2rem;
}

.brand a {
  font-size: 1.25rem;
  font-weight: 900;
  color: #fff;
  text-decoration: none;
  letter-spacing: -1.5px;
  transition: all 0.3s ease;
}

header.scrolled .brand a {
  font-size: 1.15rem;
}

.brand span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

@media (max-width: 768px) {
  .header-nav {
    justify-content: center;
    padding: 0.5rem 1rem;
    width: auto;
    min-width: 150px;
  }

  .nav-links {
    display: none;
  }

  /* Na versão pílula (scrolled), mostramos os links mesmo no mobile se couber */
  header.scrolled .nav-links {
    display: flex;
    gap: 0.6rem;
    padding: 0;
  }

  header.scrolled .nav-links a {
    font-size: 0.6rem;
    letter-spacing: 0.2px;
  }

  header.scrolled .brand {
    display: none;
  }

  header.scrolled .header-nav {
    padding: 0.4rem 1rem;
    gap: 0;
  }
}

.nav-links a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  position: relative;
  padding: 0.5rem 0;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-links a:hover {
  color: #fff;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: all 0.3s ease;
  transform: translateX(-50%);
  border-radius: 2px;
}

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

.nav-links a.active {
  color: #fff;
}

.nav-links a.active::after {
  width: 100%;
}



/* ================================================= */
/* 📂 SECTIONS */
/* ================================================= */
.secao {
  width: 100%;
  margin: 0 auto;
  padding: 3rem 1rem;
  min-height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow-x: hidden;
  position: relative;
  /* Prevent horizontal spill */
}

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

@media (min-width: 1024px) {
  .secao {
    padding: 6rem 4rem;
  }
}

@media (min-width: 768px) {
  .secao {
    padding: 6rem 3rem;
  }
}

h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  background: linear-gradient(to right, #fff, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 900;
  width: 100%;
  letter-spacing: -1px;
}

@media (min-width: 480px) {
  h2 {
    font-size: 2rem;
  }
}

@media (min-width: 768px) {
  h2 {
    font-size: 3rem;
    margin-bottom: 4rem;
  }
}

/* ================================================= */
/* 🎨 CARDS & GALLERIES */
/* ================================================= */
.sobre-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  padding: 1.5rem;
  width: 100%;
  max-width: 900px;
  text-align: justify;
  transition: all 0.3s ease;
}

@media (min-width: 768px) {
  .sobre-card {
    padding: 3rem;
  }
}

.sobre-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

/* Certificates */
.galeria-certificados {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  width: 100%;
}

@media (min-width: 480px) {
  .galeria-certificados {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
  }
}

@media (min-width: 768px) {
  .galeria-certificados {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
  }
}

.certificado-item {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 1rem;
  transition: all 0.3s ease;
  width: 100%;
}

.certificado-item:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
}

.certificado-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: contain;
  border-radius: 10px;
  background: #020617;
  margin-bottom: 1rem;
}

/* Design Gallery (Carousel) */
.galeria-designs {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  width: 100%;
  padding: 0.5rem 0.5rem 2rem;
}

.galeria-designs::-webkit-scrollbar {
  display: none;
}

.design-item {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.design-item h3 {
  font-size: 1rem;
  margin-top: 1rem;
  padding: 0 1rem;
  color: #fff;
}

.design-item p {
  font-size: 0.8rem;
  padding: 0 1rem 1rem;
  color: var(--text-muted);
}

@media (min-width: 480px) {
  .galeria-designs .design-item {
    flex: 0 0 300px;
  }
}

@media (min-width: 768px) {
  .galeria-designs .design-item {
    flex: 0 0 350px;
  }
}

@media (min-width: 1024px) {
  .galeria-designs .design-item {
    flex: 0 0 400px;
  }
}

.design-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/5;
  object-fit: cover;
}

/* Projects Web */
.galeria-projetos {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  width: 100%;
  max-width: 1200px;
  justify-items: center;
  /* Center items in the grid */
}

.galeria-projetos .design-item {
  max-width: 280px;
  /* Smaller card size */
  width: 100%;
}

@media (min-width: 768px) {
  .galeria-projetos {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    justify-content: center;
  }

  .galeria-projetos .design-item {
    max-width: 320px;
    /* Slightly larger on desktop but still constrained */
  }
}

/* Quality Inspector Album */
.galeria-album {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  width: 100%;
}

@media (min-width: 480px) {
  .galeria-album {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
  }
}

.foto-item {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1/1;
}

.foto-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.foto-item:hover img {
  transform: scale(1.1);
}

/* ================================================= */
/* 🏁 FOOTER */
/* ================================================= */
footer {
  padding: 3rem 1rem;
  text-align: center;
  color: var(--text-muted);
  border-top: 1px solid var(--border-soft);
  background: rgba(10, 15, 25, 0.5);
  width: 100%;
}

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

/* ================================================= */
/* ⚡ ANIMATIONS & UTILITIES */
/* ================================================= */
.botao {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  border-radius: 99px;
  background: transparent;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.9rem;
}

@media (min-width: 768px) {
  .botao {
    padding: 0.8rem 2rem;
    font-size: 1rem;
  }
}

.botao:hover {
  background: var(--accent);
  color: #0f172a;
  box-shadow: 0 0 20px var(--accent-glow);
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}