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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f4f4f4;
  color: #1a1a1a;
  line-height: 1.5;
}

.card {
  max-width: 480px;
  margin: 0 auto;
  background: #fff;
  min-height: 100vh;
  box-shadow: 0 0 40px rgba(0,0,0,0.08);
}

.card::before {
  content: "";
  display: block;
  height: 8px;
  background: linear-gradient(90deg, #0b1f3a 0%, #1e3a5f 50%, #e63946 100%);
}

.cover {
  background: #fff;
  padding: 28px 24px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cover img.brand {
  max-height: 130px;
  max-width: 85%;
  object-fit: contain;
}

.accent-strip {
  height: 8px;
  background: linear-gradient(90deg, #e63946 0%, #1e3a5f 50%, #0b1f3a 100%);
}

.profile-photo {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  border: 4px solid #fff;
  background: #ddd;
  margin: 28px auto 0;
  display: block;
  object-fit: cover;
  object-position: center 0%;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.profile-photo.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0b1f3a, #e63946);
  color: #fff;
  font-size: 48px;
  font-weight: 700;
}

.profile-photo.logo-fallback {
  background: #fff;
  padding: 18px;
  object-fit: contain;
}

.identity {
  text-align: center;
  padding: 16px 24px 24px;
}

.identity h1 {
  font-size: 26px;
  font-weight: 700;
  color: #0b1f3a;
}

.identity .title {
  font-size: 15px;
  color: #666;
  margin-top: 4px;
}

.identity .company {
  font-size: 14px;
  color: #e63946;
  font-weight: 600;
  margin-top: 6px;
  letter-spacing: 0.5px;
}

.actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 0 20px 20px;
}

.actions a {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 4px;
  background: #f4f4f4;
  border-radius: 12px;
  text-decoration: none;
  color: #0b1f3a;
  font-size: 11px;
  font-weight: 600;
  transition: background 0.2s;
}

.actions a:hover { background: #e8e8e8; }

.actions .icon {
  font-size: 22px;
  margin-bottom: 4px;
}

.primary-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 20px 20px;
}

.primary-buttons a {
  padding: 14px;
  background: #e63946;
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  text-align: center;
  font-size: 14px;
  transition: background 0.2s;
}

.primary-buttons a:hover { background: #c1121f; }

.primary-buttons a.secondary {
  background: #0b1f3a;
}

.primary-buttons a.secondary:hover { background: #1e3a5f; }

.section {
  padding: 24px 24px;
  border-top: 1px solid #eee;
}

.section h2 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #666;
  margin-bottom: 12px;
}

.section p {
  font-size: 15px;
  color: #333;
}

.contact-row {
  display: flex;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f4f4f4;
  text-decoration: none;
  color: #1a1a1a;
}

.contact-row:last-child { border-bottom: none; }

.contact-row .label {
  font-size: 12px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-row .value {
  font-size: 15px;
  color: #0b1f3a;
  font-weight: 500;
  margin-top: 2px;
}

.contact-row .icon {
  width: 36px;
  height: 36px;
  background: #f4f4f4;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 14px;
  font-size: 16px;
}

.contact-row .text { flex: 1; }

.social {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 20px;
}

.social a {
  width: 44px;
  height: 44px;
  background: #0b1f3a;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  transition: background 0.2s;
}

.social a:hover { background: #e63946; }

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 0 0 4px;
}

.gallery a {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  position: relative;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.gallery a:hover img { transform: scale(1.05); }

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox.active { display: flex; }

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255,255,255,0.15);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  font-size: 20px;
  cursor: pointer;
}

.qr-section {
  padding: 24px 16px;
  text-align: center;
  background: #f9f9f9;
}

.qr-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  max-width: 460px;
  margin: 0 auto;
}

.qr-row .side {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 10px;
  background: #eee;
}

.qr-row .side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.qr-row .qr-wrap {
  width: 160px;
  height: 160px;
  background: #fff;
  padding: 10px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.qr-row .qr-wrap img {
  width: 100%;
  height: 100%;
  display: block;
}

.qr-section p {
  margin-top: 14px;
  font-size: 13px;
  color: #666;
}

.footer {
  padding: 20px;
  text-align: center;
  font-size: 12px;
  color: #999;
  background: #fff;
}

.footer a { color: #e63946; text-decoration: none; }

@media (max-width: 380px) {
  .actions { grid-template-columns: repeat(2, 1fr); }
  .actions .icon { font-size: 20px; }
}
