@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700;800;900&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

button, h1, div, a {
  font-family: 'Nunito', sans-serif;
}

h3, h2 {
  font-family: 'Aventa', sans-serif;
}

p {
  font-family: 'Poppins', sans-serif;
}

span {
  font-family: 'Outfit', sans-serif;
}

body {
  background: #A42F32;
}

/* =============================================
   PAGE
============================================= */
.jpc-card {
  width: 100vw;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

/* =============================================
   CARD WRAPPER
============================================= */
.jpc-wrapper {
  width: 320px;
  border-radius: 20px;
  overflow: hidden;
  background: #000000;
  box-shadow: 0 15px 40px rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
  position: relative;
}

/* =============================================
   PHOTO SECTION
============================================= */
.jpc-photo-section {
  width: 100%;
  height: 420px;
  position: relative;
}

.jpc-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.jpc-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0) 30%,
    rgba(0, 0, 0, 0.8) 70%,
    #000000 100%
  );
  z-index: 2;
}

/* =============================================
   TOP BAR
============================================= */
.jpc-top-bar {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

.jpc-logo-badge {
  width: 40px;
  height: 40px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 6px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.jpc-logo-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* =============================================
   NAME
============================================= */
.jpc-name {
  position: absolute;
  bottom: 15px;
  left: 20px;
  right: 20px;
  z-index: 10;
}

.jpc-full-name {
  display: flex;
  gap: 8px;
  font-size: 32px;
  color: #fff;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.jpc-last-name { font-weight: 900; }
.jpc-first-name { font-weight: 300; }

/* =============================================
   CONTENT
============================================= */
.jpc-content {
  width: 100%;
  background: #000000;
  padding: 25px 20px;
  display: flex;
  flex-direction: column;
}

.jpc-title-block { margin-bottom: 12px; }

.jpc-title-senior {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  margin-bottom: -2px;
}

.jpc-title-role {
  font-size: 24px;
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
  line-height: 1.1;
  letter-spacing: 0.5px;
}

.jpc-bio {
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  line-height: 1.4;
  margin-bottom: 20px;
}

/* =============================================
   ACTION BUTTONS
============================================= */
.jpc-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}

.jpc-add-contact {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: #ffffff;
  color: #000000;
  border: none;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.jpc-add-contact:hover { background: #f0f0f0; }

.jpc-icon-btn {
  width: 34px;
  height: 34px;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #000000;
  cursor: pointer;
  transition: all 0.25s ease;
  flex-shrink: 0;
  text-decoration: none;
}

/* =============================================
   CONNECT BUTTON + COUNT
============================================= */
/*.jpc-connect {*/
/*  display: flex;*/
/*  flex-direction: column;*/
/*  align-items: center;*/
/*  gap: 10px;*/
/*  padding-bottom: 6px;*/
/*}*/

.jpc-connect {
  width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px 0 6px;
}

.jpc-connect-btn {
  width: 70%;
  padding: 11px;
  background: #A42F32;
  color: #fff;
  border: 1.5px solid #fff;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(164,47,50,0.4);
}

.jpc-connect-btn:hover {
  background: #8f2427;
  transform: translateY(-1px);
}

.jpc-connect-count span {
  background: #1a1a1a;
  border-radius: 50px;
  padding: 8px 20px;
  color: rgba(255,255,255,0.4);
  font-size: 10px;
  font-weight: 600;
  font-family: 'Nunito', sans-serif;
}

/* =============================================
   SOCIAL ICONS
============================================= */
.jpc-socials {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-evenly;
  padding: 15px 20px;
  width: 100%;
  background: #A42F32;
  gap: 5px;
}

.jpc-social {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.jpc-social:hover { transform: scale(1.1); }

.jpc-social a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
}

.jpc-social.phone     { background: #00A859; }
.jpc-social.instagram { background: #ffffff; }
.jpc-social.instagram a { color: #A42F32; }
.jpc-social.linkedin  { background: #0077B5; }
.jpc-social.facebook  { background: #1877F2; }
.jpc-social.globe     { background: #ffffff; }
.jpc-social.globe a   { color: #A42F32; }
.jpc-social.share     { background: #000; border: 1.5px solid rgba(255,255,255,0.3); }

/* =============================================
   CARD BOTTOM
============================================= */
.card-bottom {
  width: 100%;
  height: 25px;
  background: #000000;
}

/* =============================================
   POPUPS
============================================= */
.popup-container {
  visibility: hidden;
  opacity: 0;
  transition: all 0.3s ease-in-out;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
}

.popup-container:target {
  visibility: visible;
  opacity: 1;
}

.popup-content {
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  width: 280px;
  position: relative;
  text-align: center;
}

.popup-content h3 {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 16px;
}

.popup-content a.close {
  position: absolute;
  top: 12px;
  right: 16px;
  color: #aaa;
  font-size: 22px;
  font-weight: bold;
  text-decoration: none;
}

.qr-share {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.qr-share img { width: 190px; height: 190px; border-radius: 10px; }

.qr-share button {
  background: transparent;
  border: 1.5px solid rgba(0,0,0,0.2);
  border-radius: 50px;
  padding: 9px 22px;
  font-size: 12px;
  color: #000;
  cursor: pointer;
}

.connect-popup-container {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.connect-popup-container.popup-visible { opacity: 1; }

.connect-popup-content {
  background: #fff;
  padding: 28px;
  border-radius: 16px;
  width: 90%;
  max-width: 320px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.connect-popup-container.popup-visible .connect-popup-content { transform: translateY(0); }

.connect-title {
  font-size: 14px;
  font-weight: 700;
  color: #A42F32;
  margin-bottom: 14px;
  font-family: 'Poppins', sans-serif;
}

.connect-popup-close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 22px;
  cursor: pointer;
  color: #999;
}

.connect-form input,
.connect-form textarea {
  width: 100%;
  margin-bottom: 10px;
  font-size: 12px;
  padding: 10px 14px;
  border: 1.5px solid #eee;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s ease;
  font-family: 'Poppins', sans-serif;
}

.connect-form input:focus,
.connect-form textarea:focus { border-color: #A42F32; }

.connect-form textarea { resize: vertical; min-height: 80px; }

.send-btn {
  width: 100%;
  padding: 11px;
  background: #A42F32;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
}

.send-btn:hover { background: #8f2427; }

.connect-success-message {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  border-radius: 8px;
  text-align: center;
  padding: 14px;
}

.connect-success-message p { font-size: 12px; }

/* =============================================
   RESPONSIVE
============================================= */
@media (max-width: 360px) {
  .jpc-wrapper { width: 290px; }
  .jpc-photo-section { height: 350px; }
  .jpc-full-name { font-size: 26px; }
  .jpc-title-role { font-size: 20px; }
}