/* ==========================================================================
   DIGITAL BUSINESS CARD & QR STYLES - JR DEVELOPER
   ========================================================================== */

:root {
  --bg-dark: #050509;
  --bg-card: rgba(15, 15, 23, 0.75);
  --bg-card-hover: rgba(22, 22, 34, 0.85);
  --gold: #f5c14b;
  --gold-glow: rgba(245, 193, 75, 0.35);
  --gold-dark: #d4a028;
  --text-primary: #f7f7f8;
  --text-secondary: #9a9daa;
  --text-muted: #6b6e7d;
  --border-glass: rgba(255, 255, 255, 0.1);
  --border-gold: rgba(245, 193, 75, 0.3);
  --accent-green: #25D366;
  --accent-blue: #0077b5;
  --radius-xl: 24px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-family);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  position: relative;
  overflow-x: hidden;
}

/* Dynamic background glow */
body::before {
  content: '';
  position: fixed;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--gold-glow) 0%, rgba(5, 5, 9, 0) 70%);
  z-index: 0;
  pointer-events: none;
  filter: blur(50px);
}

.card-container {
  width: 100%;
  max-width: 440px;
  position: relative;
  z-index: 1;
}

/* Header bar for language & site link */
.card-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding: 0 4px;
}

.home-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(10px);
  transition: all 0.2s ease;
}

.home-link:hover {
  color: var(--gold);
  border-color: var(--border-gold);
  background: rgba(245, 193, 75, 0.1);
}

.lang-selector {
  display: flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(10px);
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.lang-btn.active, .lang-btn:hover {
  background: var(--gold);
  color: #000;
}

/* Main Profile Card */
.profile-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 32px 24px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6),
              0 0 40px rgba(245, 193, 75, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Avatar container */
.avatar-wrapper {
  position: relative;
  margin-bottom: 20px;
}

.avatar-img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold);
  box-shadow: 0 0 25px var(--gold-glow);
  background-color: #111;
}

.badge-available {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: #10B981;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 3px solid #050509;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.6);
}

.profile-name {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}

.profile-role {
  color: var(--gold);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.profile-tagline {
  color: var(--text-secondary);
  font-size: 13px;
  margin-bottom: 24px;
  line-height: 1.4;
  max-width: 320px;
}

/* Action Buttons Grid */
.actions-grid {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.btn-primary-action {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: #000;
  font-weight: 700;
  font-size: 15px;
  padding: 16px;
  border-radius: var(--radius-lg);
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 20px var(--gold-glow);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.btn-primary-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(245, 193, 75, 0.45);
  filter: brightness(1.05);
}

.btn-primary-action:active {
  transform: translateY(0);
}

.btn-secondary-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
}

.btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
  padding: 14px 12px;
  border-radius: var(--radius-lg);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-wsp {
  border-color: rgba(37, 211, 102, 0.3);
  color: #fff;
}
.btn-wsp:hover {
  background: rgba(37, 211, 102, 0.15);
  border-color: var(--accent-green);
}

/* Contact Details Info List */
.info-section {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.info-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 13px;
}

.info-item:last-child {
  border-bottom: none;
}

.info-left {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
}

.info-left svg {
  color: var(--gold);
}

.info-value {
  color: var(--text-primary);
  font-weight: 500;
  text-align: right;
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.copy-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  margin-left: 6px;
  transition: color 0.2s;
}

.copy-btn:hover {
  color: var(--gold);
}

/* QR Code Section */
.qr-card-section {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.qr-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 6px;
}

.qr-frame {
  background: #ffffff;
  padding: 14px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 180px;
  height: 180px;
}

.qr-frame canvas, .qr-frame img {
  width: 100% !important;
  height: 100% !important;
}

.qr-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 193, 75, 0.12);
  color: var(--gold);
  border: 1px solid var(--border-gold);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.qr-download-btn:hover {
  background: var(--gold);
  color: #000;
}

/* Social Footer Links */
.social-links {
  display: flex;
  gap: 16px;
  margin-top: 20px;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.2s ease;
  text-decoration: none;
}

.social-icon:hover {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(245, 193, 75, 0.1);
  transform: translateY(-3px);
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--gold);
  color: #000;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 9999;
  pointer-events: none;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

/* Footer Copyright */
.card-footer {
  margin-top: 20px;
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
}

/* Responsive tweaks */
@media (max-width: 400px) {
  .profile-card {
    padding: 24px 16px;
  }
  .btn-secondary-group {
    grid-template-columns: 1fr;
  }
  .info-value {
    max-width: 140px;
  }
}
