/* ── PeopleApps Digital vCard v2.1.1 — Premium Design ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@600;700&display=swap');

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

/* ── Page background ── */
body {
  background: #0d0d0d;
  min-height: 100vh;
}

.pav-page-wrap {
  display: flex !important;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  padding: 0;
  background: linear-gradient(135deg, #0d0d0d 0%, #1a1a2e 50%, #0d0d0d 100%);
}

/* ── Card ── */
.pav-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative; /* Crucial for absolute children */
  overflow: hidden;
  box-shadow: 0 0 60px rgba(0,0,0,0.15);
}

/* ── HEADER ── */
.pav-header {
  position: relative;
  overflow: hidden;
  padding: 56px 28px 42px;
  background: var(--pav-color, #0f6e56);
  min-height: 260px;
}

/* Animated gradient mesh overlay */
.pav-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(255,255,255,0.18) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 80%, rgba(0,0,0,0.25) 0%, transparent 60%);
  z-index: 0;
}

/* Animated floating orbs */
.pav-header::after {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  animation: pav-float 8s ease-in-out infinite alternate;
  z-index: 0;
}

@keyframes pav-float {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-20px, 20px) scale(1.1); }
}

/* Geometric dot grid bg */
.pav-header-bg {
  position: absolute; inset: 0; z-index: 0;
  opacity: 0.08;
  background-image: radial-gradient(circle, #fff 1px, transparent 1px);
  background-size: 24px 24px;
}

.pav-header-gradient {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(160deg,
    rgba(0,0,0,0.45) 0%,
    rgba(0,0,0,0.15) 50%,
    transparent 100%
  );
}

.pav-header-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Top Right Logo Circle - Perfected Placement */
.pav-top-logo {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 54px;
  height: 54px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100; /* Ensure it stays on top */
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15), inset 0 0 0 1px rgba(255,255,255,0.5);
  border: 1px solid rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}
.pav-top-logo:hover {
  transform: scale(1.08) rotate(5deg);
}
.pav-top-logo img {
  max-width: 70%;
  max-height: 70%;
  object-fit: contain;
}

/* ── Avatar ── */
.pav-avatar-wrap {
  width: 96px; height: 96px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.9);
  overflow: hidden;
  margin-bottom: 18px;
  box-shadow:
    0 8px 32px rgba(0,0,0,0.35),
    0 0 0 6px rgba(255,255,255,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.pav-avatar-wrap:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 40px rgba(0,0,0,0.45), 0 0 0 8px rgba(255,255,255,0.15);
}
.pav-avatar-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 10%;
  display: block;
}

.pav-avatar-initials {
  width: 96px; height: 96px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border: 3px solid rgba(255,255,255,0.6);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 32px; color: #fff;
  margin-bottom: 18px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  letter-spacing: 2px;
}

.pav-name {
  font-family: 'Playfair Display', serif;
  font-size: 28px; color: #fff;
  line-height: 1.2;
  letter-spacing: -0.3px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.pav-title {
  font-size: 13px;
  color: rgba(255,255,255,0.8);
  font-weight: 400;
  margin-top: 6px;
  letter-spacing: 0.3px;
}

.pav-badge {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 14px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 24px; padding: 6px 14px;
  font-size: 12px; font-weight: 600;
  color: #fff;
  letter-spacing: 0.5px;
}

.pav-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #a8f0d0;
  box-shadow: 0 0 6px #a8f0d0;
  animation: pav-pulse 2s ease-in-out infinite;
}

@keyframes pav-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px #a8f0d0; }
  50% { opacity: 0.6; box-shadow: 0 0 12px #a8f0d0; }
}

/* ── QUICK ACTIONS ── */
.pav-actions {
  display: grid;
  border-bottom: 1px solid #f0f0f0;
  background: #fff;
}

.pav-action {
  display: flex; flex-direction: column;
  align-items: center; gap: 7px;
  padding: 20px 8px;
  text-decoration: none; color: #1a1a1a;
  border-right: 1px solid #f0f0f0;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}
.pav-action::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--pav-color, #0f6e56);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.pav-action:last-child { border-right: none; }
.pav-action:hover::before { opacity: 0.05; }
.pav-action:hover { transform: translateY(-1px); }
.pav-action:active { transform: translateY(0); }

.pav-action-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  transition: transform 0.2s ease;
  position: relative; z-index: 1;
}
.pav-action-icon i {
  font-size: 18px;
  line-height: 1;
}
/* Action icon colour theming */
.pav-icon-call  { background: linear-gradient(135deg,#dcfce7,#bbf7d0); color: #15803d; }
.pav-icon-wa    { background: linear-gradient(135deg,#dcfce7,#bbf7d0); color: #16a34a; }
.pav-icon-email { background: linear-gradient(135deg,#dbeafe,#bfdbfe); color: #1d4ed8; }
.pav-icon-web   { background: linear-gradient(135deg,#ede9fe,#ddd6fe); color: #7c3aed; }

.pav-action:hover .pav-action-icon { transform: scale(1.1); }

.pav-action span {
  font-size: 10px;
  font-weight: 600;
  color: #555;
  text-align: center;
  line-height: 1.2;
  letter-spacing: 0.3px;
  position: relative; z-index: 1;
}

/* ── SECTION WRAPPER ── */
.pav-section {
  padding: 22px 24px;
  border-bottom: 1px solid #f5f5f5;
  background: #fff;
}

.pav-section-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.8px;
  color: var(--pav-color, #1d9e75);
  text-transform: uppercase;
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.pav-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--pav-color, #1d9e75), transparent);
  opacity: 0.3;
}

.pav-about {
  font-size: 14px;
  color: #4a4a4a;
  line-height: 1.75;
  font-weight: 400;
}

/* ── SERVICES / SKILLS PILLS ── */
.pav-services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.pav-pill {
  background: #f8fffe;
  border: 1.5px solid transparent;
  background-clip: padding-box;
  border-radius: 10px;
  padding: 11px 13px;
  font-size: 12px;
  color: #1a1a1a;
  font-weight: 500;
  display: flex; align-items: center; gap: 8px;
  transition: all 0.2s ease;
  position: relative;
  box-shadow: 0 1px 6px rgba(0,0,0,0.05);
}
.pav-pill::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: 10px;
  border: 1.5px solid var(--pav-color, #1d9e75);
  opacity: 0.2;
}
.pav-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.pav-pill-icon {
  font-size: 13px;
  color: var(--pav-color, #1d9e75);
  flex-shrink: 0;
}

/* ── PLATFORMS ── */
.pav-platforms { display: flex; flex-direction: column; gap: 10px; }

.pav-platform {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  background: #fafafa;
  border: 1px solid #efefef;
  border-radius: 14px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 1px 6px rgba(0,0,0,0.04);
}
.pav-platform:hover {
  background: #f5fdfb;
  border-color: var(--pav-color, #1d9e75);
  border-opacity: 0.4;
  transform: translateX(3px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.pav-platform-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
  transition: transform 0.2s ease;
}
.pav-platform-icon i {
  font-size: 18px;
  line-height: 1;
}
.pav-platform:hover .pav-platform-icon { transform: scale(1.1); }
.pav-platform-info { flex: 1; overflow: hidden; }
.pav-platform-name {
  font-size: 13px; font-weight: 600; color: #1a1a1a;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pav-platform-desc { font-size: 11px; color: #888; margin-top: 2px; }
.pav-arrow {
  font-size: 13px;
  color: var(--pav-color, #1d9e75);
  opacity: 0.7;
  flex-shrink: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.pav-platform:hover .pav-arrow { transform: translate(2px,-2px); opacity: 1; }

/* ── RECENT UPDATES ── */
.pav-updates { display: flex; flex-direction: column; gap: 12px; }

.pav-update {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px;
  background: #fafafa;
  border: 1px solid #efefef;
  border-radius: 14px;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  position: relative; overflow: hidden;
}
.pav-update::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--pav-color, #1d9e75);
  border-radius: 3px 0 0 3px;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.pav-update:hover::before { opacity: 1; }
.pav-update:hover {
  background: #f5fdfb;
  border-color: rgba(29,158,117,0.2);
  transform: translateX(4px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.07);
}
.pav-update-icon {
  width: 50px; height: 50px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.pav-update-icon i {
  font-size: 20px;
  line-height: 1;
}
.pav-update-body { flex: 1; overflow: hidden; }
.pav-tag {
  font-size: 9px; font-weight: 700; letter-spacing: 1px;
  color: var(--pav-color, #0f6e56);
  background: rgba(15,110,86,0.08);
  border-radius: 6px; padding: 3px 8px;
  display: inline-block; text-transform: uppercase;
}
.pav-update-title {
  font-size: 13px; color: #1a1a1a; font-weight: 600;
  line-height: 1.45; margin-top: 6px;
}
.pav-update-meta { font-size: 11px; color: #888; margin-top: 4px; }

/* ── SOCIAL ── */
.pav-social { display: flex; gap: 8px; flex-wrap: wrap; }

.pav-social { display: flex; gap: 8px; flex-wrap: wrap; }

.pav-social-link {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 500;
  color: var(--pav-color, #0f6e56);
  text-decoration: none;
  background: #f8fffe;
  border: 1.5px solid rgba(15,110,86,0.15);
  border-radius: 20px;
  padding: 8px 14px;
  transition: all 0.2s ease;
}
.pav-social-link i {
  font-size: 14px;
  line-height: 1;
}
.pav-social-link span { font-size: 12px; }
.pav-social-link:hover {
  background: var(--pav-color, #0f6e56);
  color: #fff;
  border-color: var(--pav-color, #0f6e56);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(15,110,86,0.2);
}
/* Brand-coloured social icons on hover */
.pav-social-linkedin i   { color: #0a66c2; }
.pav-social-instagram i  { color: #e1306c; }
.pav-social-facebook i   { color: #1877f2; }
.pav-social-twitter i    { color: #000; }
.pav-social-youtube i    { color: #ff0000; }
.pav-social-website2 i,
.pav-social-custom i     { color: var(--pav-color, #0f6e56); }
.pav-social-link:hover i { color: #fff !important; }

/* ── BROCHURE DOWNLOAD ── */
.pav-brochure-btn {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 20px;
  background: linear-gradient(135deg,
    var(--pav-color, #0f6e56) 0%,
    var(--pav-dark, #0a4a3a) 100%
  );
  border-radius: 14px; color: #fff;
  text-decoration: none; font-size: 14px; font-weight: 600;
  transition: all 0.25s ease;
  box-shadow: 0 6px 24px rgba(15,110,86,0.3);
  position: relative; overflow: hidden;
}
.pav-brochure-btn::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 60%);
}
.pav-brochure-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(15,110,86,0.4);
  color: #fff;
}
.pav-brochure-icon {
  font-size: 22px;
  position: relative; z-index: 1;
  line-height: 1;
}
.pav-brochure-btn span {
  position: relative; z-index: 1;
  flex: 1;
}
.pav-brochure-arrow {
  margin-left: auto;
  font-size: 13px;
  opacity: 0.9;
  position: relative; z-index: 1;
  transition: transform 0.2s ease;
}
.pav-brochure-btn:hover .pav-brochure-arrow { transform: translateY(3px); }

/* ── BOTTOM ACTIONS ── */
.pav-bottom {
  padding: 20px 24px 28px;
  display: flex; gap: 12px;
  background: #fff;
  border-top: 1px solid #f5f5f5;
  margin-top: auto;
}

.pav-btn-save,
a.pav-btn-save {
  flex: 1;
  background: var(--pav-color, #0f6e56);
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 14px 12px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(15,110,86,0.25);
  position: relative; overflow: hidden;
  letter-spacing: 0.3px;
}
.pav-btn-save i, a.pav-btn-save i { font-size: 15px; line-height: 1; }
.pav-btn-save::before,
a.pav-btn-save::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
}
.pav-btn-save:hover,
a.pav-btn-save:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(15,110,86,0.35);
  opacity: 0.95;
  color: #fff;
}
.pav-btn-save:active,
a.pav-btn-save:active { transform: translateY(0); }

.pav-btn-share {
  flex: 1;
  background: #fff;
  color: var(--pav-color, #0f6e56);
  border: 2px solid var(--pav-color, #0f6e56);
  border-radius: 14px;
  padding: 14px 12px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.pav-btn-share i { font-size: 15px; line-height: 1; }
.pav-btn-share:hover {
  background: var(--pav-color, #0f6e56);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(15,110,86,0.25);
}

.pav-btn-full { flex: 1; }

/* ── FOOTER ── */
.pav-footer {
  text-align: center;
  font-size: 11px;
  color: #777;
  padding: 24px 28px 32px;
  font-weight: 400;
  letter-spacing: 0.3px;
}
.pav-footer-divider {
  width: 28px; height: 2px;
  background: var(--pav-color, #0f6e56);
  border-radius: 2px;
  margin: 0 auto 12px;
  opacity: 0.3;
}
.pav-footer-brand {
  font-weight: 600;
  margin-bottom: 4px;
  color: #555;
}
.pav-footer-credit {
  font-size: 10px;
  color: #999;
}
.pav-footer-credit a {
  color: var(--pav-color, #0f6e56);
  text-decoration: none;
  font-weight: 500;
}
.pav-footer-credit a:hover {
  text-decoration: underline;
}

/* ── ENTRANCE ANIMATION ── */
@keyframes pav-slide-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.pav-section {
  animation: pav-slide-up 0.4s ease both;
}
.pav-section:nth-child(1) { animation-delay: 0.05s; }
.pav-section:nth-child(2) { animation-delay: 0.10s; }
.pav-section:nth-child(3) { animation-delay: 0.15s; }
.pav-section:nth-child(4) { animation-delay: 0.20s; }
.pav-section:nth-child(5) { animation-delay: 0.25s; }
.pav-section:nth-child(6) { animation-delay: 0.30s; }

.pav-actions {
  animation: pav-slide-up 0.35s ease 0.05s both;
}
.pav-bottom {
  animation: pav-slide-up 0.4s ease 0.35s both;
}

/* ── QR + SHARE TOAST ── */
.pav-toast {
  position: fixed;
  bottom: 90px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: #1a1a1a; color: #fff;
  padding: 10px 20px; border-radius: 50px;
  font-size: 13px; font-weight: 500;
  opacity: 0; transition: all 0.3s ease;
  white-space: nowrap; z-index: 9999;
  pointer-events: none;
}
.pav-toast.show {
  opacity: 1; transform: translateX(-50%) translateY(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 480px) {
  .pav-card { max-width: 100%; }
  .pav-header { padding: 44px 20px 36px; }
  .pav-section { padding: 20px; }
  .pav-bottom { padding: 16px 20px 24px; }
  .pav-name { font-size: 24px; }
  .pav-services { grid-template-columns: 1fr; }
}
