@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=Poppins:wght@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');

@font-face {
  font-family: 'Aventa';
  src: url('../fonts/Aventa-LightPERSONALUSEONLY.woff2') format('opentype');
  font-weight: 600 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Aventa';
  src: url('../fonts/Aventa-LightItallicPERSONALUSEONLY.otf') format('opentype');
  font-weight: 300;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

p{
    margin-bottom: 0px;
}

p, button {
  font-family: 'Nunito', sans-serif;
}

span {
  font-family: 'Outfit', sans-serif;
}

b {
  font-family: 'Aventa', sans-serif;
  font-weight: 900;
}

div {
  font-family: 'Aventa', sans-serif;
  font-weight: 600;
}

li {
  font-family: 'Nunito', sans-serif;
}

body {
  background: #9A3032;
  overflow-x: hidden;
}

/* =============================================
   PAGE
============================================= */
.jp-card {
  width: 100vw;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

/* =============================================
   CARD WRAPPER
============================================= */
.jp-wrapper {
  width: 100%;
  max-width: 400px; /* Made responsive */
  border-radius: 24px;
  overflow: hidden;
  background: #292766;
  box-shadow: 0 16px 45px rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
  position: relative;
}

/* =============================================
   FULL BLEED PHOTO SECTION
============================================= */
.jp-photo-section {
  width: 100%;
  height: 650px; /* Increased height significantly */
  position: relative;
  margin-bottom: 0; 
}

.jp-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.jp-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(41, 39, 102, 0) 0%,
    rgba(41, 39, 102, 0.1) 30%,
    rgba(41, 39, 102, 0.85) 55%,
    #292766 100%
  );
  z-index: 2;
}

/* =============================================
   TOP BAR
============================================= */
.jp-top-bar {
  position: absolute;
  top: 24px;
  left: 24px;
  right: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

.jp-logo-badge {
  width: 45px;
  height: 45px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.jp-logo-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.jp-portfolio-btn {
  background: #fff;
  color: #9A3032;
  font-size: 13px;
  font-weight: 800;
  padding: 10px 22px;
  border-radius: 50px;
  text-decoration: none;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: background 0.2s ease, transform 0.2s ease;
}

.jp-portfolio-btn:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
}

/* =============================================
   VERTICAL NAME
============================================= */
.jp-name-vertical {
  position: absolute;
  left: 20px;
  bottom: 40px;
  z-index: 10;
  display: flex;
  flex-direction: row;
  gap: 12px;
  writing-mode: vertical-rl;
  transform: rotate(180deg); 
  align-items: center;
  white-space: nowrap;
}

.jp-last-name {
  font-size: 42px;
  font-weight: 900;
  color: #C89F59;
  letter-spacing: 4px;
  text-transform: uppercase;
  line-height: 1;
}

.jp-first-name {
  font-size: 42px;
  font-weight: 300;
  color: #ffffff;
  letter-spacing: 4px;
  text-transform: uppercase;
  line-height: 1;
}

/* =============================================
   BOTTOM CONTENT
============================================= */
.jp-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0 24px 30px 95px;
  z-index: 10;
}

.jp-title-block {
  margin-bottom: 12px;
}

.jp-title-role {
  font-size: 26px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* =============================================
   SERVICES
============================================= */
.jp-services {
  list-style: none;
  margin: 0 0 10px 0;
  padding: 0;
}

.jp-services li {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.6;
  font-weight: 600;
}

/* =============================================
   ABOUT SECTION (RE-STYLED)
============================================= */
.about-label {
  width: 100%;
  padding: 5px 0 6px 0; /* Aligned with grid */
}

.about-label span {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.card-about {
  padding-bottom: 5px;
}

.bio {
  font-size: 13.5px;
  color: rgba(255,255,255,0.75);
  line-height: 1.65;
  font-weight: 400;
}

/* =============================================
   ACTION BUTTONS
============================================= */
.jp-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  margin-top: 25px;
}

.jp-add-contact {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #fff;
  color: #000;
  border: none;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s ease;
}

.jp-add-contact:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
}

.jp-add-contact i {
  font-size: 11px;
  border: 1.5px solid #000;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.jp-icon-btn {
  width: 38px;
  height: 38px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #000;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s ease;
}

.jp-icon-btn:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
}

/* =============================================
   SOCIAL ICONS
============================================= */
.jp-socials {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-evenly;
  padding: 20px 15px;
  width: 100%;
  background: #9A3032;
  position: relative;
  z-index: 10;
}

.jp-social {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.jp-social:hover {
  transform: scale(1.1);
}

.jp-social a {
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 15px;
  text-decoration: none;
}

.jp-social.phone     { background: #00A859; }
.jp-social.instagram { background: #fff; }
.jp-social.instagram a { color: #E1306C; }
.jp-social.linkedin  { background: #0077B5; }
.jp-social.facebook  { background: #1877F2; }
.jp-social.globe     { background: #fff; }
.jp-social.globe a   { color: #9A3032; }
.jp-social.share     { background: rgba(0,0,0,0.5); }

/* =============================================
   BOTTOM SPACER
============================================= */
.card-bottom {
  width: 100%;
  height: 30px;
  background: #292766;
}

/* =============================================
   POPUPS
============================================= */
.popup-container {
  visibility: hidden;
  opacity: 0;
  transition: all 0.3s ease-in-out;
  transform: scale(1.1);
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(0,0,0,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
}

.popup-container:target {
  visibility: visible;
  opacity: 1;
  transform: scale(1);
}

.popup-content {
  background: #fff;
  border-radius: 24px;
  padding: 30px;
  width: 90%;
  max-width: 320px;
  position: relative;
}

.popup-content h3 {
  text-align: center;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 20px;
}

.popup-content a.close {
  position: absolute;
  top: 15px;
  right: 20px;
  color: #aaa;
  font-size: 26px;
  font-weight: bold;
  text-decoration: none;
}

.qr-share {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.qr-share img {
  width: 220px;
  height: 220px;
  border-radius: 12px;
}

.qr-share button {
  background: transparent;
  border: 2px solid rgba(0,0,0,0.2);
  border-radius: 50px;
  padding: 12px 26px;
  font-size: 14px;
  color: #000;
  cursor: pointer;
  font-weight: 700;
  transition: background 0.2s;
}

.qr-share button:hover {
  background: rgba(0,0,0,0.05);
}




.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: #1a2233;
  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: #ff4500;
}

.connect-form textarea {
  resize: vertical;
  min-height: 80px;
}

.send-btn {
  width: 100%;
  padding: 11px;
  background: #ff4500;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'poppins', sans-serif;
}

.send-btn:hover { background: #e03d00; }

.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; }



/* =============================================
   CONNECT BUTTON
============================================= */
.jp-connect {
  width: 320px;
  padding: 16px 20px 12px;
  display: flex;
  justify-content: center;
}

.jp-connect-btn {
  width: 60%;
  padding: 13px;
  background: #A42F32;
  color: #fff;
  border: 1.5px solid #fff;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'poppins', sans-serif;
  transition: all 0.3s ease;
  box-shadow:  0 4px 16px rgba(164,47,50,0.4);
}

.jp-connect-btn:hover {
  background: #e03d00;
  transform: translateY(-1px);
}

/* =============================================
   TOTAL CONTACTS — single centred pill
============================================= */
.jp-count {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 10px 20px 20px;
}

.jp-count span {
  background: #fff;
  border-radius: 50px;
  padding: 10px 22px;
  color: rgba(0,0,0,0.5);
  font-size: 10px;
  font-family: 'poppins', sans-serif;
  font-weight: 600;
}


/* =============================================
   RESPONSIVE (Max Width Adjustments)
============================================= */
@media (max-width: 420px) {
  .jp-photo-section { 
    height: 620px; /* Scales down slightly for very small phones */
  }
  .jp-first-name, .jp-last-name { 
    font-size: 36px; 
  }
  .jp-title-role { 
    font-size: 23px; 
  }
  .jp-bottom { 
    padding: 0 20px 25px 85px; 
  }
  .jp-name-vertical {
    left: 15px;
  }
}

@media (max-width: 360px) {
  .jp-photo-section { 
    height: 580px;
  }
  .jp-first-name, .jp-last-name { 
    font-size: 32px; 
  }
  .jp-bottom { 
    padding: 0 16px 20px 75px; 
  }
  .jp-actions {
    flex-wrap: wrap; 
  }
}