/* ========================= ALL PROJECTS PREMIUM DESIGN ========================= */
/* Variáveis CSS específicas para all_projects */
:root {
  --all-projects-primary: #8B5A3C;
  --all-projects-secondary: #6D4428;
  --all-projects-accent: #B8860B;
  --all-projects-light: #F5F0E8;
  --all-projects-white: #FFFFFF;
  --all-projects-dark: #2C1810;
  --all-projects-text: #4A4A4A;
  --all-projects-border: #E7D7C1;
  --all-projects-shadow: rgba(139, 90, 60, 0.1);
  --all-projects-gradient: linear-gradient(135deg, #8B5A3C 0%, #6D4428 100%);
  --all-projects-radius: 24px;
  --all-projects-transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================= HEADER PRINCIPAL FIX ========================= */
/* Header com altura ajustada e logo posicionada à esquerda */
header {
  padding: 12px 0 !important; /* Header um pouco maior */
  background-color: #FFFFFF !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}

header.sticky {
  padding: 10px 0 !important; /* Header sticky também maior */
}

header .container {
  max-width: 900px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important; /* Logo alinhada à esquerda */
  padding: 0 10px !important; /* Padding reduzido para logo mais à esquerda */
}

/* Logo posicionamento mais à esquerda */
.logo {
  width: 180px !important;
  display: block !important;
  margin-right: auto !important; /* Empurra o resto do conteúdo para a direita */
  margin-left: 0 !important; /* Garantir que fique bem à esquerda */
}

.logo-img {
  width: 100% !important;
  height: auto !important;
  max-height: 90px !important; /* Altura aumentada para header maior */
  object-fit: contain !important;
}

/* Header info reposicionamento */
.header-info {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  margin-left: auto !important;
}

.header-contact {
  display: flex !important;
  gap: 15px !important;
  margin-bottom: 5px !important;
}

.header-email,
.header-phone {
  font-size: 0.85rem !important;
}

/* Navegação principal */
.main-nav {
  display: flex !important;
}

.nav-list {
  display: flex !important;
  gap: 10px !important;
}

.nav-link {
  padding: 8px 12px !important;
  font-size: 0.9rem !important;
}

/* ========================= LAYOUT PRINCIPAL ========================= */
.all-projects-page {
  background: linear-gradient(135deg, #F9F7F4 0%, #F5F0E8 50%, #F0E6D2 100%);
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.all-projects-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.background-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 20%, rgba(139, 90, 60, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(184, 134, 11, 0.03) 0%, transparent 50%),
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 60"><defs><pattern id="modern-pattern" width="60" height="60" patternUnits="userSpaceOnUse"><circle cx="30" cy="30" r="1.5" fill="rgba(139,90,60,0.08)"/><circle cx="15" cy="15" r="1" fill="rgba(184,134,11,0.06)"/><circle cx="45" cy="45" r="1" fill="rgba(184,134,11,0.06)"/></pattern></defs><rect width="100%" height="100%" fill="url(%23modern-pattern)"/></svg>');
  animation: backgroundMove 60s linear infinite;
}

@keyframes backgroundMove {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(-60px, -60px) rotate(360deg); }
}

.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.float-element {
  position: absolute;
  background: linear-gradient(135deg, rgba(139, 90, 60, 0.1), rgba(184, 134, 11, 0.1));
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
}

.float-1 {
  width: 120px;
  height: 120px;
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.float-2 {
  width: 80px;
  height: 80px;
  top: 60%;
  right: 15%;
  animation-delay: 2s;
}

.float-3 {
  width: 60px;
  height: 60px;
  bottom: 20%;
  left: 70%;
  animation-delay: 4s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.3; }
  50% { transform: translateY(-30px) rotate(180deg); opacity: 0.6; }
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 20px 60px;
  position: relative;
  z-index: 2;
}

/* ========================= HEADER DA PÁGINA ========================= */
.page-header {
  text-align: center;
  margin-bottom: 80px;
  animation: fadeInUp 0.8s ease-out;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, var(--all-projects-white) 0%, rgba(245, 240, 232, 0.9) 100%);
  border: 2px solid rgba(139, 90, 60, 0.15);
  border-radius: 50px;
  padding: 12px 24px;
  margin-bottom: 24px;
  box-shadow: 0 8px 32px rgba(139, 90, 60, 0.08);
  backdrop-filter: blur(10px);
  transition: var(--all-projects-transition);
}

.section-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(139, 90, 60, 0.12);
}

.badge-icon {
  font-size: 1.2rem;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.badge-text {
  font-weight: 600;
  color: var(--all-projects-primary);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.page-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  color: var(--all-projects-dark);
  margin-bottom: 1.5rem;
  position: relative;
  line-height: 1.1;
}

.highlight-text {
  background: var(--all-projects-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.page-subtitle {
  font-size: 1.3rem;
  color: var(--all-projects-text);
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto;
  opacity: 0.9;
}

/* ========================= FILTROS MODERNOS ========================= */
.filters-section {
  margin: 20px 0 40px;
}

.project-filter-modern {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border-radius: var(--all-projects-radius);
  padding: 40px;
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.1),
    0 12px 24px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.filter-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.filter-label {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--all-projects-dark);
  display: flex;
  align-items: center;
  gap: 12px;
}

.filter-icon {
  font-size: 1.3rem;
}

.results-count {
  background: var(--all-projects-gradient);
  color: white;
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(139, 90, 60, 0.3);
}

.filter-form {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-label-small {
  font-weight: 600;
  color: var(--all-projects-dark);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-input,
.filter-select {
  width: 100%;
  padding: 16px 20px;
  border: 2px solid var(--all-projects-border);
  border-radius: 14px;
  font-size: 1rem;
  color: var(--all-projects-dark);
  background: white;
  transition: var(--all-projects-transition);
  font-weight: 500;
}

.filter-input:focus,
.filter-select:focus {
  outline: none;
  border-color: var(--all-projects-primary);
  box-shadow: 0 0 0 4px rgba(139, 90, 60, 0.1);
  transform: translateY(-2px);
}

.filter-actions {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.btn-filter,
.btn-clear {
  padding: 14px 28px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--all-projects-transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  border: none;
}

.btn-filter {
  background: var(--all-projects-gradient);
  color: white;
  box-shadow: 0 6px 20px rgba(139, 90, 60, 0.3);
}

.btn-filter:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(139, 90, 60, 0.4);
}

.btn-clear {
  background: rgba(139, 90, 60, 0.1);
  color: var(--all-projects-primary);
  border: 2px solid var(--all-projects-border);
}

.btn-clear:hover {
  background: rgba(139, 90, 60, 0.2);
  transform: translateY(-2px);
}

/* ========================= GRID DE PROJETOS ========================= */
.projects-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 30px;
  margin: 30px 0;
}

/* ========================= CARDS DE PROJETO ========================= */
.project-card-modern {
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--all-projects-radius);
  overflow: hidden;
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.08),
    0 12px 24px rgba(0, 0, 0, 0.04);
  transition: var(--all-projects-transition);
  border: 1px solid rgba(255, 255, 255, 0.5);
  position: relative;
  backdrop-filter: blur(10px);
}

.project-card-modern:hover {
  transform: translateY(-15px);
  box-shadow: 
    0 40px 80px rgba(0, 0, 0, 0.12),
    0 20px 40px rgba(0, 0, 0, 0.08);
}

.project-image-container {
  position: relative;
  overflow: hidden;
  height: 280px;
  background: linear-gradient(135deg, var(--all-projects-accent) 0%, var(--all-projects-primary) 100%);
}

.project-img-modern {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--all-projects-transition);
}

.project-card-modern:hover .project-img-modern {
  transform: scale(1.1);
}

.project-category-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--all-projects-primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.category-icon {
  font-size: 1rem;
}

.project-overlay-hover {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(139, 90, 60, 0.9), rgba(184, 134, 11, 0.9));
  opacity: 0;
  transition: var(--all-projects-transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-card-modern:hover .project-overlay-hover {
  opacity: 1;
}

.overlay-content {
  text-align: center;
  transform: translateY(20px);
  transition: var(--all-projects-transition);
}

.project-card-modern:hover .overlay-content {
  transform: translateY(0);
}

.btn-view-project {
  background: white;
  color: var(--all-projects-primary);
  padding: 14px 28px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: var(--all-projects-transition);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.btn-view-project:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* ========================= CONTEÚDO DO CARD ========================= */
.project-content-modern {
  padding: 28px;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-size: 0.85rem;
  color: var(--all-projects-text);
}

.project-date {
  font-weight: 500;
  color: var(--all-projects-accent);
}

.project-status {
  background: rgba(34, 197, 94, 0.1);
  color: #16a34a;
  padding: 4px 12px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.8rem;
}

.project-title-modern {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--all-projects-dark);
  margin-bottom: 12px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-description-modern {
  color: var(--all-projects-text);
  line-height: 1.6;
  margin-bottom: 24px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(139, 90, 60, 0.1);
  padding-top: 20px;
}

.project-stats {
  display: flex;
  gap: 15px;
}

.project-stats .stat-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--all-projects-text);
  padding: 6px 12px;
  background: rgba(139, 90, 60, 0.1);
  border-radius: 12px;
  min-width: auto;
}

.stat-icon {
  font-size: 1rem;
}

.btn-details-modern {
  background: var(--all-projects-gradient);
  color: white;
  padding: 10px 20px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--all-projects-transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-details-modern:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(139, 90, 60, 0.3);
}

.arrow {
  transition: var(--all-projects-transition);
}

.btn-details-modern:hover .arrow {
  transform: translateX(3px);
}

/* ========================= PAGINAÇÃO ========================= */
.pagination-container {
  display: flex;
  justify-content: center;
  margin: 60px 0;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(15px);
  padding: 15px 25px;
  border-radius: 50px;
  box-shadow: 0 15px 35px rgba(139, 90, 60, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.pagination a,
.pagination .current {
  padding: 12px 18px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--all-projects-transition);
  min-width: 48px;
  text-align: center;
  font-size: 0.9rem;
}

.pagination a {
  color: var(--all-projects-primary);
  background: transparent;
}

.pagination a:hover {
  background: var(--all-projects-primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(139, 90, 60, 0.3);
}

.pagination .current {
  background: var(--all-projects-primary);
  color: white;
  box-shadow: 0 4px 12px rgba(139, 90, 60, 0.3);
}

/* ========================= ESTADO VAZIO ========================= */
.empty-state {
  text-align: center;
  padding: 100px 40px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--all-projects-radius);
  backdrop-filter: blur(20px);
  border: 2px dashed rgba(139, 90, 60, 0.2);
  margin: 60px 0;
}

.empty-icon {
  font-size: 5rem;
  margin-bottom: 25px;
  opacity: 0.7;
}

.empty-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--all-projects-dark);
  margin-bottom: 16px;
}

.empty-description {
  color: var(--all-projects-text);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 35px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ========================= CTA FINAL ========================= */
.projects-cta-modern {
  margin-top: 80px;
  text-align: center;
}

.cta-container {
  background: rgba(255, 255, 255, 0.9);
  padding: 60px 40px;
  border-radius: var(--all-projects-radius);
  backdrop-filter: blur(20px);
  box-shadow: 0 25px 50px rgba(139, 90, 60, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.cta-content {
  margin-bottom: 30px;
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--all-projects-dark);
  margin-bottom: 15px;
}

.cta-description {
  font-size: 1.2rem;
  color: var(--all-projects-text);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.cta-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary-modern,
.btn-secondary-modern {
  padding: 16px 32px;
  border-radius: 14px;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: var(--all-projects-transition);
  font-size: 1rem;
}

.btn-primary-modern {
  background: var(--all-projects-gradient);
  color: white;
  box-shadow: 0 8px 24px rgba(139, 90, 60, 0.3);
}

.btn-primary-modern:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(139, 90, 60, 0.4);
}

.btn-secondary-modern {
  background: rgba(139, 90, 60, 0.1);
  color: var(--all-projects-primary);
  border: 2px solid var(--all-projects-border);
}

.btn-secondary-modern:hover {
  background: rgba(139, 90, 60, 0.2);
  transform: translateY(-2px);
}

/* ========================= RESPONSIVIDADE ========================= */
@media (max-width: 1024px) {
  .projects-grid-modern {
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 25px;
  }
  
  .filter-form {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  /* Header tablet adjustments para header ajustado */
  header {
    padding: 10px 0 !important;
  }
  
  header.sticky {
    padding: 8px 0 !important;
  }
  
  .logo {
    width: 160px !important;
  }
  
  .logo-img {
    max-height: 80px !important;
  }
  
  header .container {
    padding: 0 8px !important; /* Padding ainda menor no tablet */
  }
}

@media (max-width: 768px) {
  .container {
    padding: 100px 15px 40px;
  }
  
  /* Header mobile adjustments para header ajustado */
  header {
    padding: 8px 0 !important;
  }
  
  header.sticky {
    padding: 6px 0 !important;
  }
  
  .logo {
    width: 140px !important;
  }
  
  .logo-img {
    max-height: 70px !important;
  }
  
  header .container {
    padding: 0 5px !important; /* Padding mínimo no mobile */
    flex-direction: row !important;
    justify-content: space-between !important;
  }
  
  .header-info {
    display: none !important; /* Ocultar info no mobile para header mais limpo */
  }
  
  .projects-grid-modern {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .projects-stats {
    gap: 20px;
  }
  
  .stat-item {
    padding: 20px 25px;
    min-width: 120px;
  }
  
  .project-filter-modern {
    padding: 25px;
  }
  
  .filter-actions {
    justify-content: center;
  }
  
  .cta-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .floating-elements {
    display: none;
  }
}

@media (max-width: 480px) {
  .page-header {
    margin-bottom: 50px;
  }
  
  /* Header mobile small adjustments para header ajustado */
  header {
    padding: 6px 0 !important;
  }
  
  header.sticky {
    padding: 4px 0 !important;
  }
  
  .logo {
    width: 120px !important;
  }
  
  .logo-img {
    max-height: 60px !important;
  }
  
  .project-image-container {
    height: 240px;
  }
  
  .project-content-modern {
    padding: 20px;
  }
  
  .pagination {
    flex-wrap: wrap;
    gap: 5px;
  }
  
  .projects-stats {
    flex-direction: column;
    align-items: center;
  }
}

/* ========================= ANIMAÇÕES ========================= */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

/* Loading state */
.loading-state {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px;
  font-size: 1.1rem;
  color: var(--all-projects-text);
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--all-projects-border);
  border-top: 3px solid var(--all-projects-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 15px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ========================= MAIN CONTENT POSITIONING ========================= */
/* Garantir que o conteúdo apareça abaixo do header sem sobrepor */
main {
  margin-top: 10px !important; /* Espaço menor para aproveitar melhor o espaço */
  padding-top: 0 !important;
}

.hero-section {
  margin-top: 0 !important;
}

/* Ajustar seção principal de projetos */
.hero-content {
  padding-top: 15px !important; /* Padding reduzido */
}
