* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Escala global: simula 80% de zoom mantendo o padrão de 100% nos navegadores */
html {
  font-size: 14px; /* Reduz de 16px (padrão) → ~80% da escala visual */
}

:root {
  --primary: #2563eb;
  --primary-dark: #1e40af;
  --secondary: #8b5cf6;
  --dark: #0f172a;
  --dark-light: #1e293b;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --accent: #06b6d4;
  --whatsapp: #25D366;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

header {
  padding: 4rem 0 2.5rem;
  text-align: center;
  position: relative;
}

.back-button {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  padding: 0.75rem 1.6rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.back-button:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateX(-5px);
}

h1 {
  font-size: 2.6rem;
  margin-bottom: 0.6rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInDown 0.8s ease;
}

.subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  animation: fadeInUp 0.8s ease 0.2s backwards;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(22rem, 1fr));
  gap: 2rem;
  margin: 2.5rem 0 5rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
  animation: fadeIn 0.8s ease backwards;
}

.project-card .icone-sol { color: #FA9F2E; }
.project-card .icone-usuario { color: #0f172a; }
.project-card .icone-caderno { color: #F87A43; }
.project-card .icone-sacola { color: #F89626; }
.project-card .icone-artes { color: #080808; }

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }
.project-card:nth-child(4) { animation-delay: 0.4s; }
.project-card:nth-child(5) { animation-delay: 0.5s; }
.project-card:nth-child(6) { animation-delay: 0.6s; }

.project-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.3);
}

.project-image {
  width: 100%;
  height: 12.5rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}

.project-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
}

.project-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-title {
  font-size: 1.25rem;
  color: var(--text);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.project-description {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.tag {
  padding: 0.3rem 0.75rem;
  background: rgba(37, 99, 235, 0.2);
  border: 1px solid var(--primary);
  border-radius: 1rem;
  font-size: 0.8rem;
  color: var(--primary);
}

.project-links {
  display: flex;
  gap: 0.75rem;
  margin-top: auto;
}

.project-btn {
  flex: 1;
  padding: 0.65rem 1.25rem;
  text-align: center;
  text-decoration: none;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.btn-demo {
  background: var(--primary);
  color: white;
}

.btn-demo:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-code {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-code:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--text);
}

.cta-section {
  text-align: center;
  padding: 4rem 0;
  margin: 5rem 0;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-title {
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
  color: var(--text);
}

.cta-text {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 1rem;
}

.contact-buttons {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 1rem 2.2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border: 2px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

footer {
  text-align: center;
  padding: 2.5rem 0;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 3.5rem;
}

/* Botão WhatsApp Fixo */
.whatsapp-float {
  position: fixed;
  bottom: 1.8rem;
  right: 1.8rem;
  width: 3.5rem;
  height: 3.5rem;
  background: var(--whatsapp);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
  z-index: 1000;
  animation: pulse 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 4px 30px rgba(37, 211, 102, 0.7); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Responsividade */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  /* .projects-grid { grid-template-columns: 1fr; } */
  .projects-grid { 
    grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
  }
  .back-button { position: static; margin-bottom: 1.25rem; }
  .contact-buttons { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 18rem; justify-content: center; }
  .whatsapp-float { bottom: 1.2rem; right: 1.2rem; width: 3rem; height: 3rem; font-size: 1.6rem; }
}
