:root{
  --bg:#0b1220;
  --card:#111a2e;
  --text:#e8eefc;
  --muted:#a9b7d6;
  --accent:#6ea8fe;
  --border:rgba(255,255,255,.08);
  --shadow:0 18px 50px rgba(0,0,0,.35);
  --chip:rgba(255,255,255,.03);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", sans-serif;
  background:
    radial-gradient(900px 400px at 10% 0%, rgba(110,168,254,.20), transparent 60%),
    radial-gradient(900px 500px at 90% 10%, rgba(130,231,197,.12), transparent 60%),
    var(--bg);
  color:var(--text);
  line-height:1.65;
}
a{color:inherit}
.wrap{max-width: 1200px;margin:0 auto;padding:26px 18px 60px}
header{
  display:flex;align-items:center;justify-content:space-between;gap:14px;
  padding:8px 2px 18px;
}
.brand{display:flex;align-items:center;gap:12px;text-decoration:none}
.logo{
  width:44px;height:44px;border-radius:14px;
  background: linear-gradient(135deg, rgba(110,168,254,.95), rgba(130,231,197,.70));
  box-shadow: var(--shadow);
}
.nav{display:flex;gap:10px;flex-wrap:wrap}
.nav a{
  text-decoration:none;
  color:var(--muted);
  padding:8px 10px;border-radius:12px;
  border:1px solid transparent;
}
.nav a:hover{border-color:var(--border);color:var(--text);background:var(--chip)}
.hero{
  display:grid;
  grid-template-columns: 1.25fr .75fr;
  gap:18px;
  align-items:stretch;
  margin-top:10px;
}
@media (max-width: 920px){ .hero{grid-template-columns:1fr} }
.card{
  background:rgba(17,26,46,.80);
  border:1px solid var(--border);
  border-radius:22px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.hero-main{padding:26px}
.kicker{
  display:inline-flex;align-items:center;gap:8px;
  color:var(--muted);
  border:1px solid var(--border);
  border-radius:999px;
  padding:7px 12px;
  background:var(--chip);
  font-size:13px;
}
h1{margin:14px 0 10px;font-size:36px;line-height:1.15}
.subtitle{color:var(--muted);font-size:16px;max-width:78ch}
.cta{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}



.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  padding:10px 14px;border-radius:14px;
  border:1px solid var(--border);
  background:var(--chip);
  text-decoration:none;
  color:var(--text);
  cursor:pointer;
}
.btn.primary{
  background: linear-gradient(135deg, rgba(110,168,254,.95), rgba(110,168,254,.55));
  border-color: rgba(110,168,254,.35);
  color:#0b1220;
  font-weight:750;
}
.btn:hover{transform: translateY(-1px)}
.hero-side{padding:22px;display:flex;flex-direction:column;gap:14px}
.avatar{
  box-shadow: 0 12px 30px rgba(0,0,0,.28);
  width:100%;aspect-ratio: 4/3;border-radius:18px;
  background:
    radial-gradient(120px 80px at 30% 30%, rgba(255,255,255,.14), transparent 60%),
    linear-gradient(135deg, rgba(110,168,254,.25), rgba(130,231,197,.12)),
    rgba(255,255,255,.02);
  border:1px solid var(--border);
  overflow:hidden;
  position:relative;
}
.avatar img{width:100%;height:100%;object-fit:cover;object-position:50% 35%;display:block}
.avatar .hint{
  position:absolute;left:14px;bottom:12px;right:14px;
  color:rgba(255,255,255,.90);
  background:rgba(0,0,0,.24);
  border:1px solid rgba(255,255,255,.14);
  padding:10px 12px;border-radius:14px;
  font-size:13px;
}
.facts{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.fact{
  padding:12px;border-radius:16px;border:1px solid var(--border);
  background:rgba(255,255,255,.02)
}
.fact b{display:block;font-size:13px}
.fact span{color:var(--muted);font-size:13px}
section{margin-top:18px}
.grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}
@media (max-width: 920px){ .grid{grid-template-columns:1fr} }
.sec{padding:20px}
h2{margin:0 0 10px;font-size:20px}
h3{margin:0 0 6px;font-size:15px}
p{margin:0 0 10px}
.muted{color:var(--muted)}
.pillrow{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.pill{
  font-size:12px;color:var(--muted);
  border:1px solid var(--border);
  background:rgba(255,255,255,.02);
  padding:7px 10px;border-radius:999px;
}

.list{display:flex;flex-direction:column;gap:10px}
.item{
  border:1px solid var(--border);
  background:rgba(255,255,255,.02);
  padding:14px;border-radius:16px;
}
.item p{margin:0;color:var(--muted);font-size:14px}
.two{display:grid;grid-template-columns:1fr 1fr;gap:10px}
@media (max-width: 600px){ .two{grid-template-columns:1fr} }
.hr{height:1px;background:var(--border);margin:12px 0}
footer{margin-top:22px;color:var(--muted);font-size:13px;padding:10px 2px}
.small{font-size:12px}

/* Biography text same size as Profile short presentation */
#bio p {
  font-size: 1rem;
  line-height: 1.65;
}

/* Force Biography text to exactly match Profile 'Кратко представяне' text */
#bio .card.sec p {
  font-size: var(--text);
  line-height: var(--lh);
}

/* Biography text deliberately larger and more readable */
#bio p {
  font-size: 1.15rem;   /* visibly larger than normal text */
  line-height: 1.75;
}

/* Biography content intentionally smaller and more compact */
#bio p {
  font-size: 0.92rem;   /* smaller than base text */
  line-height: 1.55;
}

/* Biography content matches Hero role paragraph (size & color) */
#bio p {
  font-size: inherit;
  color: inherit;
  line-height: 1.6;
}

/* Make biography text identical to hero role paragraph */
.role-text {
  font-size: var(--text);
  color: var(--muted);
  line-height: 1.6;
}

/* Biography content matches hero subtitle paragraph (size & color) */
#bio p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
  max-width: 78ch;
}

/* Justify biography text */
#bio p {
  text-align: left
  text-justify: inter-word;
}

/* Unified text style for all subsection content */
.card.sec p,
.item p,
.facts span {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.65;
}

/* Biography text: full width of section */
#bio p {
  max-width: none;
  width: 100%;
}

/* Official profile line matches hero descriptive paragraph */
.hero-main .official-profile,
.hero-main .official-profile a {
  font-size: 16px;
  color: var(--muted);
}

/* Lighter blue links without underline */
a {
  color: #7fb3ff;
  text-decoration: none;
}
a:hover {
  color: #9fc6ff;
  text-decoration: none;
}

/* Mobile hamburger menu */
.hamburger {
  display: none;
  font-size: 26px;
  background: none;
  border: none;
  color: #9fc6ff;
  cursor: pointer;
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
  }
  .nav-links.active {
    display: flex;
  }
}

/* Official profile link – lighter blue */
.official-link {
  color: #9fc6ff;
}
.official-link:hover {
  color: #b7d6ff;
}

/* FORCE lighter blue for official profile link */
.hero-main a.official-link {
  color: #8fc5ff !important;
}
.hero-main a.official-link:hover {
  color: #a9d4ff !important;
}

/* Force official link to lighter blue (high specificity) */
.hero-main p.official-profile a.official-link,
.hero-main p.official-profile a.official-link:visited,
.hero-main p.official-profile a.official-link:active {
  color: #8fc5ff !important;
  text-decoration: none !important;
}
.hero-main p.official-profile a.official-link:hover {
  color: #a9d4ff !important;
  text-decoration: none !important;
}

/* Mobile nav: hamburger toggles menu */
.nav{align-items:center}
.nav .nav-links{display:flex;gap:10px;flex-wrap:wrap}

/* Hamburger button */
.nav .hamburger{
  display:none;
  font-size:26px;
  background:none;
  border:none;
  color:#9fc6ff;
  cursor:pointer;
  padding:8px 10px;
  border-radius:12px;
}
.nav .hamburger:hover{background:var(--chip);}

@media (max-width: 768px){
  .nav{flex-wrap:nowrap;gap:0}
  .nav .hamburger{display:block;}
  .nav .nav-links{
    display:none;
    position:absolute;
    right:18px;
    top:76px;
    background:rgba(17,26,46,.95);
    border:1px solid var(--border);
    border-radius:16px;
    padding:10px;
    box-shadow:0 18px 40px rgba(0,0,0,.35);
    flex-direction:column;
    min-width:220px;
    z-index:50;
  }
  .nav .nav-links.active{display:flex;}
  .nav .nav-links a{width:100%;}
}

/* Social media section */
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 12px;
}
.social-links a {
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  color: #8fc5ff;
  font-weight: 500;
}
.social-links a:hover {
  background: rgba(255,255,255,0.08);
  color: #b7d6ff;
}

/* Contacts – social networks as subsection list */
.contact-socials {
  list-style: none;
  padding: 0;
  margin: 8px 0 0 0;
}
.contact-socials li {
  margin-bottom: 6px;
}
.contact-socials a {
  color: #8fc5ff;
}
.contact-socials a:hover {
  color: #b7d6ff;
}

/* Language toggle */
.lang-toggle{
  display:flex;
  align-items:center;
  gap:8px;
}
.lang-btn{
  background:transparent;
  border:1px solid rgba(255,255,255,0.18);
  padding:6px 10px;
  border-radius:10px;
  cursor:pointer;
  color:#b7d6ff;
}
.lang-btn.active{
  border-color: rgba(143,197,255,0.9);
  color:#8fc5ff;
}
.lang-sep{opacity:0.6}
@media (max-width: 768px){
  .lang-toggle{margin-left:auto}
}

/* Floating scroll-to-top button */
.to-top{
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(17, 27, 48, 0.75);
  color: #d7e8ff;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, background .18s ease;
  z-index: 999;
}
.to-top:hover{
  background: rgba(17, 27, 48, 0.92);
}
.to-top.show{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}


/* Biography text – better readability on mobile */
#biography,
#biography p {
  text-align: left;
}

/* --- Mobile menu toggle support (added) --- */
.nav-links.is-open,
#navLinks.is-open,
.menu.is-open {
  display: block !important;
}

.pill-share {
  background-color: #6262fc;
  color: #2a4fd7;
  border: 1px dashed #c9d9f2;
}

.primary1{
  background: linear-gradient(95deg, rgba(110,168,254,.95), rgba(110,168,254,.55));
  border-color: rgba(110,168,254,.35);
  color:#0b1220;
  font-weight:250;
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  padding:3px 12px;border-radius:14px;
  border:1px solid var(--border);

  text-decoration:none;

  cursor:pointer;
  
  
}

.qr {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 8px;
  background: #fff;
    width: 128px;
  max-width: 100%;
}


.brand{
  display:flex;
  align-items:center;
  gap:14px;
  text-decoration:none;
}

.logo{
  width:44px;
  height:44px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.logo img{
  width:100%;
  height:100%;
  object-fit:contain;
  border-radius:10px; /*   */
}
@media (max-width: 520px){
  .logo{
    width:36px;
    height:36px;
  }
}

.logo{
  background:
    radial-gradient(900px 400px at 10% 0%, rgba(110,168,254,.20), transparent 60%),
    radial-gradient(900px 500px at 90% 10%, rgba(130,231,197,.12), transparent 60%),
    var(--bg);
  padding:2px;
  border-radius:12px;
}