/* =============================================
   Goes Produtos Digitais — Estilos Customizados
   ============================================= */

/* --- Fontes e base --- */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #ffffff;
  color: #1a1f2e;
  -webkit-font-smoothing: antialiased;
}

/* --- Animação do Hero --- */
@keyframes heroGlow {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-bg {
  background: linear-gradient(135deg, #1a1f2e 0%, #1e2640 40%, #252e58 70%, #1a1f2e 100%);
  background-size: 300% 300%;
  animation: heroGlow 10s ease infinite;
}

/* --- Navbar --- */
#navbar {
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}

#navbar.scrolled {
  background-color: rgba(26, 31, 46, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* --- Tag de posicionamento (Hero) --- */
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(108, 142, 245, 0.12);
  border: 1px solid rgba(108, 142, 245, 0.28);
  color: #6C8EF5;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 9999px;
  letter-spacing: 0.03em;
  margin-bottom: 1.25rem;
}

.hero-tag-dot {
  width: 7px;
  height: 7px;
  background: #6C8EF5;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

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

/* --- Badges de serviço (Hero) --- */
.service-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #8899bb;
  font-size: 0.75rem;
  padding: 5px 12px;
  border-radius: 6px;
}

/* --- Section label (tag acima do título) --- */
.section-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  color: #3d5fe0;
  background: #e8edff;
  padding: 4px 12px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.75rem;
}

.section-tag-light {
  color: #6C8EF5;
  background: rgba(108, 142, 245, 0.14);
  border: 1px solid rgba(108, 142, 245, 0.22);
}

/* --- Cards de serviço --- */
.service-card {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 1.5rem;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.service-card:hover {
  box-shadow: 0 8px 24px rgba(26, 31, 46, 0.08);
  transform: translateY(-2px);
}

.service-icon {
  width: 40px;
  height: 40px;
  background: #1a1f2e;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

/* --- Cards de diferenciais --- */
.diff-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 1.5rem;
  transition: background-color 0.2s ease;
}

.diff-card:hover {
  background: rgba(255, 255, 255, 0.07);
}

.diff-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: rgba(108, 142, 245, 0.25);
  line-height: 1;
  margin-bottom: 0.75rem;
  font-variant-numeric: tabular-nums;
}

/* --- Processo (etapas) --- */
.process-connector {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, #6C8EF5, rgba(108, 142, 245, 0.15));
  margin-top: 15px;
  margin-left: -1px;
  margin-right: -1px;
}

.step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #6C8EF5;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-circle.last {
  background: #3d5fe0;
}

/* --- Portfolio cards --- */
.portfolio-card {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.portfolio-card-trigger {
  cursor: pointer;
}

.portfolio-card-trigger:hover {
  box-shadow: 0 8px 24px rgba(26, 31, 46, 0.1);
  transform: translateY(-3px);
}

/* Wrap da thumbnail para posicionar o overlay */
.portfolio-thumb-wrap {
  position: relative;
  overflow: hidden;
}

.portfolio-thumb {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.portfolio-card-trigger:hover .portfolio-thumb {
  transform: scale(1.04);
}

/* Overlay "Ver projeto" no hover */
.portfolio-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 31, 46, 0.65);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.portfolio-card-trigger:hover .portfolio-hover-overlay {
  opacity: 1;
}

.portfolio-thumb-placeholder {
  width: 100%;
  height: 180px;
  background: repeating-linear-gradient(
    45deg,
    #f0f0ee,
    #f0f0ee 4px,
    #e8e8e6 4px,
    #e8e8e6 10px
  );
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Modal de portfólio --- */
.portfolio-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.portfolio-modal.open {
  pointer-events: all;
  opacity: 1;
}

.portfolio-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 20, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
}

.portfolio-modal-content {
  position: relative;
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  max-width: 780px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.4);
  transform: scale(0.94) translateY(12px);
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.portfolio-modal.open .portfolio-modal-content {
  transform: scale(1) translateY(0);
}

.portfolio-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(26, 31, 46, 0.65);
  color: #ffffff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.portfolio-modal-close:hover {
  background: #1a1f2e;
}

.portfolio-modal-img-wrap {
  width: 100%;
  background: #1a1f2e;
}

.portfolio-modal-img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  display: block;
}

.portfolio-modal-placeholder {
  width: 100%;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(
    45deg,
    #1e2438,
    #1e2438 4px,
    #1a1f2e 4px,
    #1a1f2e 10px
  );
}

.portfolio-modal-info {
  padding: 24px 28px 28px;
}

/* --- Formulário de contato --- */
.form-field {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 12px 16px;
  width: 100%;
  color: #e0e6f8;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.form-field::placeholder {
  color: rgba(136, 153, 187, 0.6);
}

.form-field:focus {
  border-color: rgba(108, 142, 245, 0.5);
  background: rgba(255, 255, 255, 0.08);
}

.form-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  color: #8899bb;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 6px;
}

/* --- Botão primário --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #6C8EF5;
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease;
  text-decoration: none;
}

.btn-primary:hover {
  background: #3d5fe0;
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* --- Botão secundário --- */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: #8899bb;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 12px 20px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
}

.btn-secondary:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
}

/* --- Mensagem de feedback do formulário --- */
#form-feedback {
  display: none;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.875rem;
  margin-top: 12px;
}

#form-feedback.success {
  display: block;
  background: rgba(78, 205, 196, 0.12);
  border: 1px solid rgba(78, 205, 196, 0.3);
  color: #4ECDC4;
}

#form-feedback.error {
  display: block;
  background: rgba(255, 90, 90, 0.12);
  border: 1px solid rgba(255, 90, 90, 0.3);
  color: #ff6b6b;
}

/* --- Menu mobile --- */
#mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 0 16px;
}

#mobile-menu.open {
  display: flex;
}

#mobile-menu a {
  color: #aab;
  font-size: 0.95rem;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  text-decoration: none;
  transition: color 0.2s;
}

#mobile-menu a:hover {
  color: #ffffff;
}

#mobile-menu .btn-primary {
  margin-top: 8px;
  justify-content: center;
}

/* --- Nav link ativo (scroll spy) --- */
.nav-link {
  color: #8899bb;
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.2s ease;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}

.nav-link:hover {
  color: #ffffff;
}

.nav-link.active {
  color: #ffffff;
  border-bottom-color: #6C8EF5;
}

/* --- Footer --- */
.footer-link {
  color: #444;
  font-size: 0.8rem;
  text-decoration: none;
  transition: color 0.2s ease;
  display: block;
  margin-bottom: 6px;
}

.footer-link:hover {
  color: #6C8EF5;
}

/* --- Utilitários --- */
.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.section-sub {
  font-size: 0.9rem;
  line-height: 1.7;
  color: #888;
  margin-top: 6px;
}

.section-sub-light {
  color: #6677aa;
}
