/* =============================================
   Jose Acevedo — Digital Business Card
   ============================================= */

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

html{
  background-color: #0d0d0d;
}

body {
  margin: 0;
  background-color: #0d0d0d;
  font-family: 'Lato', sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

/* =============================================
   Card
   ============================================= */

.card {
  background-color: #0d0d0d;
  min-height: 100svh;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* =============================================
   Top Bar
   ============================================= */

.top-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: calc(18px + env(safe-area-inset-top, 0px)) 20px 18px;
}

.icon-btn {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.2s, border-color 0.2s;
  flex-shrink: 0;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

/* =============================================
   Hero
   ============================================= */

.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.05;
  max-height: 480px;
  overflow: hidden;
  flex-shrink: 0;
  margin-top: -50px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 30%, rgba(60, 30, 10, 0.4) 0%, #080808 91%);
  z-index: 1;
}

/* Gradient fade at bottom so hero bleeds into card content */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 55%;
  background: linear-gradient(to top, #0d0d0d 0%, rgba(13,13,13,0.6) 55%, transparent 100%);
  z-index: 2;
}

.avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* =============================================
   Identity
   ============================================= */

.identity {
  text-align: center;
  padding: 0 24px 4px;
  margin-top: -115px;
  position: relative;
  z-index: 3;
}

.name-logo {
  width: 100%;
  max-width: 280px;
  height: auto;
  display: block;
  margin: 0 auto 6px;
  /* SVG is white paths, perfect for dark bg */
}

.vocalist-title {
  color: rgba(255, 255, 255, 0.70);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 0 0 14px;
}

.services {
  font-size: 12.5px;
  font-weight: 300;
  line-height: 1.7;
  color: #fff;
  margin: 0 0 15px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 0 0 15px;
}

.social-circle {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  transition: transform 0.18s, background 0.18s, border-color 0.18s;
}

.social-circle:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.24);
}

.social-circle svg {
  width: 24px;
  height: 24px;
  display: block;
}

.social-circle span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* =============================================
   Divider
   ============================================= */

.divider {
  width: 40px;
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
  margin: 0 auto 24px;
}

/* =============================================
   Contact Info
   ============================================= */

.contact-info {
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  padding: 12px 16px;
  text-decoration: none;
  color: rgb(255, 255, 255);
  font-size: 14px;
  font-weight: 300;
  transition: background 0.2s, border-color 0.2s;
}

.contact-row:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.18);
}

.contact-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.55;
}

/* =============================================
   Payment Section
   ============================================= */

.payment-section {
  padding: 13px 24px 0;
}

.pay-label {
  color: rgba(255, 255, 255, 0.35);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  margin: 0 0 14px;
}

.payment-grid {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.pay-btn {
  flex: 1;
  max-width: 140px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 14px 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.pay-btn:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.25);
}

.pay-btn:active {
  transform: scale(0.96);
}

.pay-logo {
  height: 24px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* =============================================
   Add Contact
   ============================================= */

.actions {
  padding: 24px 24px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.add-contact {
  background: #ffffff;
  border: none;
  border-radius: 30px;
  color: #080808;
  font-family: 'Lato', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 20px;
  cursor: pointer;
  width: 100%;
  max-width: 300px;
  transition: opacity 0.2s, transform 0.15s;
}

.add-contact:hover {
  opacity: 0.85;
}

.add-contact:active {
  transform: scale(0.97);
}

/* =============================================
   Modals (shared)
   ============================================= */

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.80);
  z-index: 999;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.modal.is-open {
  display: flex;
}

.modal-content {
  position: relative;
  background: #161616;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 20px;
  width: fit-content;
  max-width: calc(100vw - 48px);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.7);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 32px;
  padding-bottom: 14px;
  padding-right: 0px;
}

.modal-title {
  color: rgba(255, 255, 255, 0.6);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.modal-close {
  position: absolute;
  top: -2px;
  right: -4px;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* QR code box */
#qr-code {
  display: inline-flex;
  justify-content: center;
  padding: 12px;
  background: #fff;
  border-radius: 12px;
  line-height: 0;
}

/* =============================================
   Payment Modal
   ============================================= */

.payment-modal-content {
  padding: 20px;
  min-width: 240px;
}

.payment-modal-header {
  padding-right: 36px;
  justify-content: flex-start;
  gap: 0;
}

.payment-modal-logo {
  height: 28px;
  width: auto;
  object-fit: contain;
  max-width: 120px;
}

.payment-qr-img {
  display: block;
  width: 100%;
  max-width: 240px;
  border-radius: 12px;
  margin-top: 4px;
}

/* =============================================
   Desktop Layout
   ============================================= */

@media (min-width: 740px) {
  body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
      radial-gradient(circle at 15% 20%, rgba(60, 20, 5, 0.35) 0%, transparent 45%),
      radial-gradient(circle at 85% 80%, rgba(30, 15, 5, 0.3) 0%, transparent 40%),
      #080808;
    padding: 40px 20px;
  }

  .card {
    flex-direction: row;
    min-height: auto;
    height: auto;
    width: min(900px, 100%);
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    box-shadow:
      0 40px 100px rgba(0, 0, 0, 0.7),
      0 0 0 1px rgba(0, 0, 0, 0.9) inset;
    align-items: stretch;
  }

  .top-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding: 20px;
    z-index: 20;
  }

  .hero {
    width: 44%;
    max-height: none;
    aspect-ratio: unset;
    flex-shrink: 0;
    position: relative;
  }

  .hero::after {
    /* On desktop, fade right instead of bottom */
    bottom: 0;
    left: unset;
    right: 0;
    top: 0;
    height: 100%;
    width: 40%;
    background: linear-gradient(to left, #0d0d0d 0%, transparent 100%);
  }

  .identity {
    margin-top: 0;
    text-align: left;
    padding: 60px 32px 0 28px;
  }

  .name-logo {
    margin: 0 0 8px 0;
    max-width: 260px;
  }

  .vocalist-title {
    text-align: left;
  }

  .services {
    text-align: left;
    font-size: 12px;
  }

  .right-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
  }

  .right-col .contact-info {
    padding: 16px 32px 0 32px;
  }

  .right-col .payment-section {
    padding: 20px 32px 0 32px;
  }

  .right-col .pay-label {
    text-align: left;
  }

  .right-col .payment-grid {
    justify-content: flex-start;
  }

  .right-col .actions {
    padding: 20px 32px 40px 32px;
    align-items: flex-start;
  }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
