:root{
  --bg0:#070910;
  --bg1:#0b1020;
  --stroke: rgba(255,255,255,.10);
  --text:#f3f6ff;
  --muted: rgba(243,246,255,.72);
  --goldA:#f5d07a;
  --goldB:#d4af37;
  --goldC:#b8860b;
  --shadow: 0 22px 70px rgba(0,0,0,.55);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
  color:var(--text);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background:
    radial-gradient(1200px 800px at 12% 20%, rgba(50,120,255,.22), transparent 60%),
    radial-gradient(1000px 700px at 88% 12%, rgba(212,175,55,.18), transparent 60%),
    radial-gradient(900px 600px at 70% 88%, rgba(18,210,170,.10), transparent 60%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
  overflow-x:hidden;
  /* iOS notch safe areas */
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
}

a{color:inherit; text-decoration:none}
.wrap{
  /* Use percentage width so the layout respects the body's left/right padding
     on mobile (vw + body padding can exceed the viewport and look cropped). */
  width:100%;
  max-width:1040px;
  margin:0 auto;
  /* Side padding prevents horizontal cropping on mobile Safari */
  padding: 28px 14px 40px;
}

.top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-bottom:16px;
}

.controls{display:flex; align-items:center; gap:10px; justify-content:flex-end;}
.themeBtn,.themeToggle{
  display:flex; align-items:center; gap:8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.22);
  color: var(--text);
  font-weight: 900;
  letter-spacing: .2px;
  cursor:pointer;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  transition: transform 180ms ease, border 180ms ease, background 180ms ease;
}
.themeBtn:hover,.themeToggle:hover{transform: translateY(-1px); border-color: rgba(255,255,255,.24);}
.themeBtn .icon,.themeToggle .tIcon{
  width: 18px; height: 18px; display:grid; place-items:center;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,.25));
  font-size: 16px;
}
.themeBtn .txt,.themeToggle .tText{font-size:13px; opacity:.95;}

.pill, .themeToggle{
  display:flex;
  align-items:center;
  gap:12px;
  padding:10px 14px;
  border-radius:999px;
  background: rgba(255,255,255,.06);
  border:1px solid var(--stroke);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 16px 40px rgba(0,0,0,.35);

  cursor: pointer;}

.markMini{
  width:30px;height:30px;border-radius:10px;
  background: linear-gradient(135deg, rgba(212,175,55,.32), rgba(50,120,255,.18));
  border:1px solid rgba(255,255,255,.14);
  display:grid; place-items:center;
  font-weight:900;
  letter-spacing:.5px;
}

.pillTitle{display:flex; flex-direction:column; line-height:1.05}
.pillTitle b{font-size:13px}
.pillTitle span{font-size:12px; color:var(--muted); margin-top:3px}

.qrDot{
  width:10px;height:10px;border-radius:50%;
  background: linear-gradient(180deg, var(--goldA), var(--goldB));
  box-shadow: 0 0 18px rgba(212,175,55,.55);
}
.themeToggle span{font-weight:700; font-size:13px}

.card{
  position:relative;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
  border:1px solid rgba(255,255,255,.10);
  border-radius: 28px;
  box-shadow: var(--shadow);
  overflow:hidden;
}
.card::before{
  content:"";
  position:absolute;
  inset:-2px;
  background:
    radial-gradient(900px 520px at 20% 18%, rgba(50,120,255,.16), transparent 60%),
    radial-gradient(820px 520px at 92% 18%, rgba(212,175,55,.18), transparent 62%),
    linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.02));
  pointer-events:none;
}
.card::after{display:none;}
@media (max-width: 860px){
  .card::after{display:none;}
}

.inner{
  position:relative;
  display:grid;
  grid-template-columns: 1fr;
  gap:0;
}
@media (max-width: 860px){
  .inner{grid-template-columns: 1fr;}
}

.left{padding: 28px 26px 22px}

.brand{
  display:flex;
  align-items:center;
  gap:16px;
  margin-bottom:18px;
}
.mark{
  width:92px;height:92px;border-radius:26px;
  background:
    radial-gradient(40px 40px at 30% 25%, rgba(255,255,255,.28), transparent 70%),
    linear-gradient(135deg, rgba(245,208,122,.26), rgba(50,120,255,.18));
  border:1px solid rgba(255,255,255,.14);
  display:grid; place-items:center;
  font-weight:1000;
  letter-spacing:2px;
  font-size:28px;
  text-shadow: 0 10px 22px rgba(0,0,0,.45);
}
.name{
  /* Fluid type so the name never overflows on mobile */
  font-size:clamp(28px, 7.5vw, 40px);
  font-weight:1000;
  letter-spacing: .8px;
  text-transform: uppercase;
  line-height:1.05;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.role{
  margin-top:8px;
  font-size:16px;
  letter-spacing:2.2px;
  font-weight:800;
  color: rgba(245,208,122,.96);
  text-transform: uppercase;
}
.company{
  margin-top:8px;
  font-size:13px;
  color: var(--muted);
  letter-spacing:1.4px;
  text-transform: uppercase;
}

.rows{
  display:grid;
  gap:12px;
  margin-top: 14px;
}

.row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(16,20,30,.60);
  border:1px solid rgba(255,255,255,.10);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.row:hover{border-color: rgba(245,208,122,.22)}
.ico{
  width:44px;height:44px;border-radius:14px;
  background: linear-gradient(180deg, rgba(245,208,122,.18), rgba(50,120,255,.08));
  border:1px solid rgba(255,255,255,.12);
  display:grid; place-items:center;
  flex: 0 0 auto;
}
.ico svg{
  width:20px;height:20px;
  stroke: var(--text);
  stroke-width:2;
  fill:none;
  stroke-linecap:round;
  stroke-linejoin:round;
  opacity:.95;
}
.txt{flex:1 1 auto; min-width:0}
.lbl{font-size:12px; color: var(--muted); letter-spacing:.4px}
.val{
  margin-top:4px;
  font-size:18px;
  font-weight:850;
  letter-spacing:.2px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.go{
  width:36px;height:36px;border-radius:12px;
  display:grid; place-items:center;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  color: rgba(245,208,122,.95);
  font-weight:900;
  flex: 0 0 auto;
}

.actions{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:12px;
  margin-top: 14px;
}
@media (max-width: 560px){
  /* prevent grid overflow on narrow screens */
  .actions{grid-template-columns: repeat(2, minmax(0, 1fr));}
}

.btn{
  border-radius: 16px;
  padding: 14px 12px;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  font-weight:900;
}
.btn svg{width:18px;height:18px; stroke: var(--text); stroke-width:2; fill:none; opacity:.95}
.btn.wa{
  background: linear-gradient(135deg, rgba(18,210,170,.16), rgba(50,120,255,.10));
  border-color: rgba(18,210,170,.22);
}
.btn:hover{transform: translateY(-1px); transition: .15s ease}
.btn:active{transform: translateY(0px)}

.addrBar{
  margin-top: 14px;
  display:flex;
  align-items:center;
  gap:12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(245,208,122,.16), rgba(255,255,255,.05));
  border:1px solid rgba(255,255,255,.12);
}
.addrBar .ico{width:44px;height:44px}
.addrTxt{
  font-size:13px;
  color: rgba(243,246,255,.86);
  letter-spacing:.2px;
  line-height:1.35;
}

.right{
  border-left: 1px solid rgba(255,255,255,.10);
  padding: 28px 22px;
  display:flex;
  align-items:center;
  justify-content:center;
}
@media (max-width: 860px){
  .right{
    border-left:none;
    border-top:1px solid rgba(255,255,255,.10);
    padding: 22px 18px 26px;
  }
}

.qrBox{
  width:100%;
  max-width: 340px;
  border-radius: 22px;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
  padding: 18px 18px 16px;
  text-align:center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.qrBox img{
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  background:#fff;
  padding: 10px;
}
.qrCap{
  margin-top:10px;
  font-size:12px;
  color: var(--muted);
  letter-spacing:1px;
  text-transform: uppercase;
}
.qrLink{
  margin-top:6px;
  font-weight:900;
  letter-spacing:.7px;
}

/* NEW: Social icon row (Website / WhatsApp / Facebook / LinkedIn) */
.socialRow{
  margin-top: 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 12px;
  flex-wrap: wrap;
}
.socialIcon{
  width:46px;
  height:46px;
  border-radius: 16px;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
  display:grid;
  place-items:center;
}
.socialIcon svg{
  width:20px;
  height:20px;
  stroke: currentColor;
  stroke-width:2;
  fill:none;
  stroke-linecap:round;
  stroke-linejoin:round;
  opacity:.98;
}
.socialIcon:hover{
  border-color: rgba(245,208,122,.22);
  transform: translateY(-1px);
  transition: .15s ease;
}

.footer{
  margin-top: 14px;
  display:flex;
  justify-content:space-between;
  gap:10px;
  color: rgba(243,246,255,.55);
  font-size:12px;
}
.footer a{color: rgba(243,246,255,.75)}


/* Theme toggle text/icon */
.themeToggle .tIcon{font-size:14px; line-height:1; opacity:.95;}
.themeToggle .tText{font-weight:800; letter-spacing:.2px;}
.themeToggle:active{transform:translateY(1px);}



/* Social strip (no QR on page) */
.socialStrip{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:12px;
  margin-top:12px;
  margin-bottom:2px;
}
@media (max-width: 860px){
  .socialStrip{justify-content:center;}
}


/* Light theme */
body.light{
  --bg0:#f7f9ff;
  --bg1:#ffffff;
  --text:#0b1220;
  --muted:rgba(11,18,32,.60);
  --stroke:rgba(11,18,32,.14);
  --ring:rgba(212,175,55,.40);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(57,130,255,.22), transparent 65%),
    radial-gradient(900px 500px at 90% 0%, rgba(212,175,55,.18), transparent 60%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
}
body.light .card{background: rgba(255,255,255,.72); border-color: rgba(11,18,32,.14);}
/* Remove the unwanted full-width strip behind the top controls in Light mode */
body.light .top{background: transparent;}
body.light .divider{background: linear-gradient(90deg, transparent, rgba(11,18,32,.15), transparent);}
body.light .row{background: rgba(255,255,255,.80); border-color: rgba(11,18,32,.12);}

/* Light-mode readability fixes (Bottom "Home" / address bar) */
body.light .addrBar{
  background: rgba(255,255,255,.82);
  border-color: rgba(11,18,32,.14);
  box-shadow: 0 14px 30px rgba(8,18,38,.10), inset 0 1px 0 rgba(255,255,255,.55);
}
body.light .addrTxt{color: rgba(11,18,32,.78);}
body.light .addrTxt strong{color: rgba(11,18,32,.92);}
body.light .row:hover{border-color: rgba(212,175,55,.45);}
body.light .ico{background: linear-gradient(180deg, rgba(212,175,55,.14), rgba(57,130,255,.06)); border-color: rgba(11,18,32,.12);}
body.light .btn{background: rgba(255,255,255,.78); border-color: rgba(11,18,32,.14);}
body.light .btn:hover{border-color: rgba(212,175,55,.45);}
body.light .pill{background: rgba(255,255,255,.72); border-color: rgba(11,18,32,.14);}
body.light .themeToggle{background: rgba(255,255,255,.72); border-color: rgba(11,18,32,.14); color: var(--text);}
body.light .themeToggle:hover{border-color: rgba(212,175,55,.45);}
body.light .socialIcon{background: rgba(255,255,255,.78); border-color: rgba(11,18,32,.14);}
body.light .mark{background: linear-gradient(180deg, rgba(11,18,32,.03), rgba(11,18,32,.06)); border-color: rgba(11,18,32,.12);}
body.light .markMini{background: rgba(255,255,255,.72); border-color: rgba(11,18,32,.14);}


/* Brand mark images */
.mark img{
  width: 74px;
  height: 74px;
  object-fit: contain;
  filter: drop-shadow(0 12px 22px rgba(0,0,0,.35));
}
.markMini img{
  width: 24px;
  height: 24px;
  object-fit: contain;
}


/* Hide row arrows (requested) */
.go{display:none !important;}
.row{justify-content:flex-start;}


/* Brand-colored social icons */
.socialIcon{color: var(--text); transition: transform .15s ease, filter .15s ease, background .2s ease, border-color .2s ease;}
.socialIcon:hover{transform: translateY(-1px);}
.socialIcon.site{color: var(--goldB); background: rgba(212,175,55,.14); border-color: rgba(212,175,55,.28);}
.socialIcon.wa{color:#25D366; background: rgba(37,211,102,.14); border-color: rgba(37,211,102,.28);}
.socialIcon.fb{color:#1877F2; background: rgba(24,119,242,.14); border-color: rgba(24,119,242,.28);}
.socialIcon.in{color:#0A66C2; background: rgba(10,102,194,.14); border-color: rgba(10,102,194,.28);}
/* Keep good contrast in light mode */
body.light .socialIcon{background: rgba(255,255,255,.70); border-color: rgba(11,18,32,.14); box-shadow: 0 10px 26px rgba(8,18,38,.10);}
body.light .socialIcon.site{background: rgba(212,175,55,.10); border-color: rgba(212,175,55,.24);}
body.light .socialIcon.wa{background: rgba(37,211,102,.10); border-color: rgba(37,211,102,.22);}
body.light .socialIcon.fb{background: rgba(24,119,242,.10); border-color: rgba(24,119,242,.22);}
body.light .socialIcon.in{background: rgba(10,102,194,.10); border-color: rgba(10,102,194,.22);}


/* Theme toggle polish */
.themeToggle{font-weight:800; letter-spacing:.2px; min-width:110px; justify-content:center;}
body.light .themeToggle{background: rgba(255,255,255,.78); color:#0b1220; box-shadow: 0 16px 40px rgba(8,18,38,.12), inset 0 1px 0 rgba(255,255,255,.55);}


/* Match Amir resume light control styling */
body.light .pill,
body.light .themeBtn,
body.light .themeToggle{
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(11,43,87,.14);
  box-shadow: 0 12px 26px rgba(0,0,0,.10);
  color: var(--text);
}


/* ------------------------------
   Mobile responsive (matches Amir resume behavior)
   Only affects small screens
--------------------------------*/

html, body{overflow-x:hidden;}

@media (max-width: 720px){
  .wrap{padding: 18px 12px 28px;}
  .top{flex-wrap: wrap; gap: 10px; justify-content: space-between;}
  .pill{max-width: 100%;}

  .card{border-radius: 26px; padding: 18px;}

  .brand{flex-wrap: wrap; gap: 12px; margin-bottom: 14px;}
  .mark{width: 72px; height: 72px; border-radius: 20px;}

  .name{
    font-size: clamp(26px, 9.2vw, 38px);
    line-height: 1.05;
    max-width: 100%;
    word-break: break-word;
  }
  .role{font-size: clamp(12px, 3.8vw, 14px);}
  .company{font-size: clamp(11px, 3.4vw, 12px);}

  .row{grid-template-columns: 66px 1fr; padding: 14px 14px;}
  .ico{width: 46px; height: 46px; border-radius: 14px;}

  /* Let long values (email/location) wrap instead of overflowing */
  .val{white-space: normal; overflow: visible; text-overflow: unset; overflow-wrap: anywhere;}

  .actions{grid-template-columns: 1fr 1fr; gap: 10px;}
  .btn{padding: 12px 12px; min-height: 48px;}

  .socialStrip{justify-content: center;}
  .addrBar{padding: 12px 12px;}
  .addrText{white-space: normal; overflow: visible; text-overflow: unset; overflow-wrap: anywhere;}
}

@media (max-width: 420px){
  .wrap{padding: 14px 10px 24px;}
  .card{padding: 16px;}
  .mark{width: 64px; height: 64px; border-radius: 18px;}
  .row{grid-template-columns: 62px 1fr;}
  .btn{font-size: 14px;}
}
