:root {
  --primary: #1C75BC;
  --primary-light: #2A8AD4;
  --primary-dark: #095EA2;
  --dark: #1C75BC;
  --light: #FFFFFF;
  --gray: #FFFFFF;
  --gray-dark: #FFFFFF;
  --bg-card: #031D30;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--dark);
  color: var(--light);
  min-height: 100vh;
  line-height: 1.6;
}

.bg-pattern {
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, #1C75BC 0%, #095EA2 100%);
  pointer-events: none;
  z-index: 0;
}

.container {
  position: relative;
  z-index: 1;
  max-width: 420px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 32px 16px;
}

.header {
  text-align: center;
  margin-bottom: 28px;
}

.logo {
  width: 160px;
  height: auto;
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
}

.nome {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--light);
  margin-bottom: 2px;
  letter-spacing: -0.3px;
}

.cargo {
  font-size: 0.95rem;
  color: var(--gray);
  margin-bottom: 14px;
}

.card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 16px;
}

.card-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary);
  margin-bottom: 14px;
  font-weight: 600;
}

.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 20px;
  background: #25D366;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

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

.btn-primary svg {
  width: 22px;
  height: 22px;
  color: #FFFFFF;
}

.botoes-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

.btn-secundario {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--light);
  font-weight: 500;
  font-size: 0.85rem;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-secundario:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-secundario svg {
  width: 18px;
  height: 18px;
}

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

.link-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

.link-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.link-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.link-icon svg {
  width: 22px;
  height: 22px;
  color: var(--light);
}

.link-icon.whatsapp { background: #25D366; }
.link-icon.instagram { background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF); }
.link-icon.email { background: #EA4335; }
.link-icon.phone { background: var(--primary); }
.link-icon.globe { background: #4285F4; }
.link-icon.location { background: #E74C3C; }

.link-text h3 {
  font-size: 0.95rem;
  font-weight: 600;
}

.link-text p {
  font-size: 0.8rem;
  color: var(--gray);
  word-break: break-word;
}

.info-grid {
  display: grid;
  gap: 12px;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.info-item label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
  font-weight: 600;
}

.info-item span {
  font-size: 0.9rem;
  color: var(--light);
}

.qr-section {
  text-align: center;
  padding: 16px 0;
}

.qr-section img {
  width: 140px;
  height: 140px;
  border-radius: 14px;
  background: var(--light);
  padding: 10px;
}

#qr-container {
  display: inline-block;
  padding: 10px;
  background: #fff;
  border-radius: 14px;
}

.qr-section p {
  font-size: 0.75rem;
  color: var(--gray);
  margin-top: 10px;
}

.footer {
  text-align: center;
  padding: 16px;
  font-size: 0.7rem;
  color: var(--gray-dark);
}

.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  color: var(--primary);
}

@media (max-width: 380px) {
  .nome {
    font-size: 1.5rem;
  }
  .botoes-row {
    grid-template-columns: 1fr;
  }
}