@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@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, button, span {
  font-family: 'Poppins', sans-serif;
}

/* =============================================
   PAGE
============================================= */
.bridge-card {
  width: 100vw;
  min-height: 100vh;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 20px 40px;
}

/* =============================================
   CARD WRAPPER
============================================= */
.bridge-wrapper {
  width: 300px;
  border-radius: 20px;
  overflow: hidden;
  isolation: isolate;
  transform: translateZ(0);
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
}

/* =============================================
   TOP — photo with overlay and logo
   Photo drives the height naturally.
   Overlay and logo are absolute on top of the photo.
   No content here — just the visual.
============================================= */
.bridge-top {
  width: 100%;
  position: relative;
}

.bridge-photo {
  width: 100%;
  height: 300px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.bridge-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  filter: grayscale(100%);
}

/* Fades photo bottom into black middle section */
.bridge-photo::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(to bottom, transparent, #000);
  z-index: 2;
}

/* Full overlay for extra depth */
.bridge-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.05) 0%,
    rgba(0,0,0,0.15) 50%,
    rgba(0,0,0,0.9) 100%
  );
  z-index: 3;
}

/* Logo — top left, over photo */
.bridge-logo {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 10;
}

.bridge-logo img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

/* =============================================
   MIDDLE — normal flow on black background
   Name, about pill, bio all stack naturally
   centered, no absolute positioning
============================================= */
.bridge-middle {
  width: 100%;
  background: #000;
  padding: 20px 30px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* NAME */
.bridge-name {
  width: 100%;
  text-align: center;
  margin-bottom: 14px;
}

.bridge-last-name {
  display: block;
  font-size: 20px;
  font-family: 'Aventa', sans-serif;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  /*margin-bottom: 2px;*/
}

.bridge-first-name {
  font-size: 42px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  font-family: 'Aventa', sans-serif;
  margin-bottom: 6px;
}

.bridge-company {
  font-size: 10px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 2px;
  font-family: 'Aventa', sans-serif;
  font-weight: 300;
  font-style: italic;
}

.bridge-job-title {
  font-family: 'Aventa', sans-serif;
  font-weight: 300;
  font-style: italic;
  font-size: 10px;
  color: rgba(255,255,255,0.55);
}

/* ABOUT PILL */
.bridge-about-label {
  margin-bottom: 12px;
}

.bridge-about-pill {
  display: inline-block;
  background: #fff;
  color: #000;
  font-family: 'Poppins', sans-serif;
  font-size: 10px;
  font-weight: 700;
  padding: 5px 28px;
  border-radius: 50px;
  letter-spacing: 0.5px;
}

/* BIO */
.bridge-bio {
  font-size: 9px;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  text-align: center;
}

/* =============================================
   SOCIAL ICONS — yellow strip
============================================= */
.bridge-socials {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-around;
  gap: 8px;
  padding: 10px 16px;
  width: 100%;
  background: #f5c500;
}

.bridge-social {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  cursor: pointer;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.bridge-social:hover { transform: scale(1.12); }

.bridge-social a {
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 11px;
}

.bridge-social.phone     { background: #058114; }
.bridge-social.instagram { background: #E1306C; }
.bridge-social.linkedin  { background: #0077B5; }
.bridge-social.facebook  { background: #0C6BE8; }
.bridge-social.globe     { background: #7B2FBE; }
.bridge-social.share     { background: #111; border: 1.5px solid rgba(255,255,255,0.3); }

/* =============================================
   ACTION BUTTONS — black strip
============================================= */
.bridge-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 14px 16px;
  width: 100%;
  background: #000;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
}

.bridge-add-contact {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: #fff;
  color: #111;
  border: 1.5px solid #fff;
  border-radius: 50px;
  font-size: 9px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
  font-family: 'Poppins', sans-serif;
}

.bridge-add-contact:hover { background: #ddd; }

.bridge-add-contact i {
  font-size: 8px;
  border: 1px solid #111;
  border-radius: 50%;
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bridge-icon-btn {
  width: 30px;
  height: 30px;
  background: #222;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #fff;
  cursor: pointer;
  transition: all 0.25s ease;
  flex-shrink: 0;
  text-decoration: none;
}

.bridge-icon-btn a {
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.bridge-icon-btn:hover { background: #333; }

/* =============================================
   CONNECT — outside card
============================================= */
.bridge-connect {
  width: 300px;
  display: flex;
  justify-content: center;
  padding: 16px 0 10px;
}

.bridge-connect-btn {
  width: 55%;
  padding: 13px;
  background: #f5c500;
  color: #111;
  border: none;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(245,197,0,0.4);
}

.bridge-connect-btn:hover { background: #e0b400; transform: translateY(-1px); }

/* =============================================
   TOTAL CONTACTS
============================================= */
.bridge-count {
  width: 300px;
  display: flex;
  justify-content: center;
  padding: 6px 0 20px;
}

.bridge-count span {
  background: #fff;
  border-radius: 50px;
  padding: 10px 22px;
  color: rgba(0,0,0,0.5);
  font-size: 10px;
  font-weight: 600;
}

/* =============================================
   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;
}

.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: #111; margin-bottom: 14px; }
.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: #f5c500; }

.connect-form textarea { resize: vertical; min-height: 80px; }

.send-btn {
  width: 100%;
  padding: 11px;
  background: #f5c500;
  color: #111;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
}

.send-btn:hover { background: #e0b400; }

.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: 374px) {
  .bridge-wrapper { width: 260px; }
  .bridge-connect, .bridge-count { width: 260px; }
  .bridge-photo { height: 240px; }
  .bridge-first-name { font-size: 24px; }
  .bridge-logo img { height: 32px; }
}

@media (min-width: 375px) and (max-width: 767px) {
  .bridge-wrapper { width: 290px; }
  .bridge-connect, .bridge-count { width: 290px; }
  .bridge-photo { height: 270px; }
  .bridge-first-name { font-size: 34px; }
}

@media (min-width: 1024px) {
  .bridge-wrapper { width: 320px; }
  .bridge-connect, .bridge-count { width: 320px; }
  .bridge-photo { height: 320px; }
  .bridge-first-name { font-size: 42px; }
}