/* Digital Business Card — Modern UI */
:root{
  --bg: #0b1220;
  --card: #0f172a;
  --text: #e5e7eb;
  --muted: #94a3b8;
  --accent: #06b6d4;
  --accent-2:#22d3ee;
  --border: #1f2937;
  --pill: #111827;
}

:root.light{
  --bg: #f8fafc;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --accent: #2563eb;
  --accent-2:#60a5fa;
  --border: #e5e7eb;
  --pill: #f1f5f9;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: radial-gradient(1200px 800px at 80% -10%, rgba(34,211,238,0.15), transparent 60%),
              radial-gradient(1000px 600px at -10% 120%, rgba(37,99,235,0.18), transparent 60%),
              var(--bg);
  color:var(--text);
  line-height:1.6;
}

.page{
  max-width: 980px;
  margin: 24px auto 64px;
  padding: 0 16px;
}

.card{
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0)) , var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 18px;
  backdrop-filter: blur(10px);
}

.shadow-xl{ box-shadow: 0 20px 45px rgba(0,0,0,0.25); }

.head{
  display:flex;
  justify-content: flex-end;
}

.icon-btn{
  background: var(--pill);
  border:1px solid var(--border);
  color: var(--text);
  padding:10px 12px;
  border-radius: 12px;
  cursor:pointer;
}
.icon-btn:hover{ opacity:.9 }

.hero{
  display:grid;
  grid-template-columns: 112px 1fr;
  gap: 18px;
  align-items:center;
  margin-top:8px;
}

.avatar{
  width:112px; height:112px; border-radius: 50%;
  border:2px solid var(--border); background:var(--pill); padding:10px;
}

.identity .name{ margin:0; font-size: clamp(24px, 3.6vw, 36px); line-height:1.15 }
.identity .title{ margin:.25rem 0; color:var(--muted); font-weight:600 }
.identity .tagline{ margin:.25rem 0; color:var(--text) }

.cta-grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.btn{
  display:flex; align-items:center; justify-content:center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 12px;
  border:1px solid var(--border);
  background: var(--pill);
  color:var(--text);
  text-decoration: none;
  font-weight: 600;
  cursor:pointer;
}
.btn:hover{ transform: translateY(-1px); }
.btn:active{ transform: translateY(0); }
.btn.primary{
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: white; border: none;
}
.btn.outline{ background: transparent; }

.btn-ico{ display:inline-flex; }
.btn-ico svg{ width:18px; height:18px; }

.grid-2{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.block h2{ margin-top:0 }
.details{ list-style:none; padding-left:0; margin:.5rem 0 }
.details li{ margin:.35rem 0 }
.details a{ color: var(--accent) }

.pill-list{ list-style:none; padding-left:0; display:flex; flex-wrap:wrap; gap:8px; margin:.5rem 0 }
.pill-list li{
  padding:8px 12px; border-radius:999px; background:var(--pill);
  border:1px solid var(--border);
}

.gallery{
  display:grid; gap:12px;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}
.gallery a{ display:block; border-radius:14px; overflow:hidden; border:1px solid var(--border) }
.gallery img{ width:100%; height:160px; object-fit:cover; display:block }

.socials{ display:flex; flex-wrap:wrap; gap:12px; }
.socials a{
  display:flex; align-items:center; gap:10px;
  padding:10px 12px; border-radius:12px; background:var(--pill); border:1px solid var(--border);
  text-decoration:none; color:var(--text); font-weight:600
}
.social-ico svg{ width:18px; height:18px }

.footer{ text-align:center; color:var(--muted); margin-top:20px }

.muted{ color: var(--muted); font-size: 14px }

@media (max-width: 640px){
  .hero{ grid-template-columns: 84px 1fr; }
  .avatar{ width:84px; height:84px; }
  .gallery img{ height:140px }
}
