@import url('https://fonts.googleapis.com/css2?family=Libre+Caslon+Text:ital,wght@0,400;0,700;1,400&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

h1, h2, h3, p, button {
  font-family: 'Libre Caslon Text', Georgia, serif;
}

/* =============================================
   PAGE WRAPPER
============================================= */
.inch-hub-card {
  width: 100vw;
  min-height: 100vh;
  background-image: url('/wp-content/uploads/2026/03/image-7-scaled.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 20px 40px;
}

/* =============================================
   CARD WRAPPER
============================================= */
.card-wrapper {
  width: 280px;
  border-radius: 20px;
  overflow: visible;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.card-top {
  width: 100%;
  background: linear-gradient(180deg, transparent 0%, #080286 35%, #080286 100%);
}

/* =============================================
   PHOTO
============================================= */
.card-photo {
  width: 100%;
  height: 300px;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
  position: relative;
  z-index: 1;
}

.card-photo::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30%;
  background: linear-gradient(to bottom, transparent, #080286);
  z-index: 2;
}

.card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: grayscale(100%);
  display: block;
}

/* =============================================
   LOGO
============================================= */
.card-logo {
  position: absolute;
  top: 190px;
  left: 16px;
  width: 100%;
  z-index: 10;
}

.card-logo img {
  width: 85px;
  height: 85px;
  object-fit: contain;
  background: #fff;
  border-radius: 50%;
  padding: 5px;
  border: 2px solid rgba(255,255,255,0.4);
}

/* =============================================
   NAME BLOCK
============================================= */
.card-name {
  width: 100%;
  padding: 8px 16px 6px 45px;
  color: #fff;
  text-align: right;
  position: relative;
  z-index: 3;
  margin-top: 20px;
}

.card-name .last-name {
  font-weight: 400;
  font-size: clamp(10px, 8vw, 18px);
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  display: block;
}

.card-name .first-name {
  font-size: clamp(20px, 8vw, 40px);
  font-weight: 700;
  color: #fff;
  line-height: 1;
  margin-bottom: 4px;
  font-family: 'Libre Caslon Text', Georgia, serif;
}

.card-name .job-title {
  font-size: 11px;
  color: rgba(255,255,255,0.75);
}

.card-name .company {
  font-size: 11px;
  color: rgba(255,255,255,0.6);
}

.company {
  margin-bottom: 5px;
}

/* =============================================
   SOCIAL ICONS
============================================= */
.card-socials {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 7px;
  padding: 10px 16px;
  width: 100%;
  justify-content: space-evenly;
}

.social-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  cursor: pointer;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.social-icon:hover {
  transform: scale(1.12);
}

.social-icon a {
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 11px;
}

.social-icon.phone       { background: #058114; }
.social-icon.instagram   { background: #E1306C; }
.social-icon.linkedin    { background: #0077B5; }
.social-icon.facebook    { background: #0C6BE8; }
.social-icon.globe       { background: #7B2FBE; }
.social-icon.share       { background: transparent; border: 1.5px solid rgba(255,255,255,0.6); }

/* =============================================
   ABOUT ME LABEL
============================================= */
.card-bottom {
  width: 100%;
  background: #080286;
  padding: 15px 0px;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
}

.about-label {
  width: calc(100% - 24px);
  margin: 0 12px 8px;
  display: flex;
  justify-content: flex-end;
}

.about-label span {
  display: inline-block;
  background: #b11212;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 5px 18px;
  border-radius: 50px;
  font-family: 'Libre Caslon Text', Georgia, serif;
  letter-spacing: 0.5px;
}

/* =============================================
   ABOUT
============================================= */
.card-about {
  width: calc(100% - 24px);
  border-radius: 12px;
  padding: 6px 14px;
  margin: 0 12px;
}

.card-about .location {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-end;
  margin-bottom: 6px;
}

.card-about .location i {
  color: rgba(255,255,255,0.8);
  font-size: 10px;
}

.card-about .location span {
  font-size: 10px;
  color: rgba(255,255,255,0.75);
}

.card-about .bio {
  text-align: right;
  font-size: 10px;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
}

/* =============================================
   ACTION BUTTONS
============================================= */
.card-actions {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  gap: 8px;
  padding: 10px 12px 14px;
  width: 100%;
}

.add-contact-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  background: #fff;
  color: #b11212;
  border: 1.5px solid rgba(255,255,255,0.35);
  border-radius: 50px;
  font-size: 9px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
  font-family: 'Libre Caslon Text', Georgia, serif;
  text-decoration: none;
}

.add-contact-btn:hover {
  background: rgba(255,255,255,0.2);
}

.add-contact-btn i {
  font-size: 8px;
  border: 1px solid #b11212;
  border-radius: 50%;
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-btn {
  width: 30px;
  height: 30px;
  background: #fff;
  border: 1.5px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #b11212;
  cursor: pointer;
  transition: all 0.25s ease;
  flex-shrink: 0;
  text-decoration: none;
}

.icon-btn a {
  color: #b11212;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.icon-btn:hover {
  background: rgba(255,255,255,0.2);
}

/* =============================================
   CONNECT
============================================= */
.card-connect {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 16px 0;
}

.connect-btn {
  width: 60%;
  padding: 11px;
  background: #1F0173;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-family: 'Libre Caslon Text', Georgia, serif;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.connect-btn:hover {
  background: rgba(255,255,255,0.88);
  transform: translateY(-1px);
}

.connect-count button {
  background: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50px;
  padding: 12px;
  color: #00000080;
  font-size: 10px;
  cursor: default;
  font-family: 'Libre Caslon Text', Georgia, serif;
}

/* =============================================
   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: 20px;
  padding: 24px;
  width: 280px;
  position: relative;
}

.popup-content h3 {
  text-align: center;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 16px;
  font-family: 'Libre Caslon Text', Georgia, serif;
}

.popup-content a.close {
  position: absolute;
  top: 12px;
  right: 16px;
  color: #aaa;
  font-size: 22px;
  font-weight: bold;
  text-decoration: none;
}

.popup-content a.close:hover { color: #333; }

.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
============================================= */
.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: #080286;
  margin-bottom: 14px;
  font-family: 'Libre Caslon Text', Georgia, 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: 'Libre Caslon Text', Georgia, serif;
}

.connect-form input:focus,
.connect-form textarea:focus {
  border-color: #080286;
}

.connect-form textarea {
  resize: vertical;
  min-height: 80px;
}

.send-btn {
  width: 100%;
  padding: 11px;
  background: #080286;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Libre Caslon Text', Georgia, serif;
}

.send-btn:hover { background: #060170; }

.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; }

/* =============================================
   DESKTOP
============================================= */
@media (min-width: 1024px) {
  .card-wrapper {
    width: 300px;
  }

  .card-photo {
    height: 300px;
  }

  .card-logo {
    top: 210px;
  }
}

/* =============================================
   MOBILE
============================================= */
@media (max-width: 767px) {
  .inch-hub-card {
    height: 100vh;
    min-height: unset;
    overflow: hidden;
    padding: 10px;
    justify-content: center;
  }

  .card-wrapper {
    width: 240px;
  }

  .card-photo {
    height: 180px;
  }

  .card-logo {
    top: 138px;
    left: 12px;
  }

  .card-logo img {
    width: 60px;
    height: 60px;
  }

  .card-name {
    padding: 4px 12px;
    margin-top: -6px;
  }

  .card-name .last-name {
    font-size: 11px;
    letter-spacing: 2px;
  }

  .card-name .first-name {
    font-size: 36px;
  }

  .card-name .job-title,
  .card-name .company {
    font-size: 9px;
  }

  .card-socials {
    padding: 6px 12px;
    gap: 5px;
  }

  .social-icon {
    width: 24px;
    height: 24px;
    font-size: 9px;
  }

  .card-bottom {
    padding: 8px 0;
  }

  .about-label {
    margin: 0 10px 5px;
  }

  .about-label span {
    font-size: 9px;
    padding: 4px 12px;
  }

  .card-about {
    padding: 5px 10px;
    margin: 0 10px;
    width: calc(100% - 20px);
  }

  .card-about .location span {
    font-size: 9px;
  }

  .card-about .bio {
    font-size: 9px;
    line-height: 1.5;
  }

  .card-actions {
    padding: 6px 10px 8px;
    gap: 5px;
  }

  .add-contact-btn {
    font-size: 8px;
    padding: 5px 8px;
  }

  .icon-btn {
    width: 24px;
    height: 24px;
    font-size: 9px;
  }

  .card-connect {
    padding: 8px 12px 0;
    gap: 5px;
  }

  .connect-btn {
    width: 55%;
    padding: 8px;
    font-size: 11px;
  }

  .connect-count button {
    padding: 6px 10px;
    font-size: 8px;
  }
}

/* =============================================
   LARGE DESKTOP 1440px+
============================================= */
@media (min-width: 1440px) {
  .card-wrapper {
    width: 320px;
  }

  .card-photo {
    height: 280px;
  }

  .card-logo {
    top: 228px;
  }

  .card-name .first-name {
    font-size: 56px;
  }
}