/* =========================
   BLACK & WHITE / CLEAN UI
   ========================= */

:root{
  --bg: #ffffff;
  --bg2:#fafafa;
  --text:#111111;
  --muted:#5b5b5b;
  --border:#e7e7e7;
  --shadow: 0 10px 30px rgba(0,0,0,.06);
  --radius: 18px;

  --accent:#111111;      /* used for primary elements */
  --accentText:#ffffff;

  --max: 1080px;
}

[data-theme="dark"]{
  --bg:#0b0b0b;
  --bg2:#101010;
  --text:#f4f4f4;
  --muted:#b7b7b7;
  --border:#1f1f1f;
  --shadow: 0 14px 35px rgba(0,0,0,.35);

  --accent:#f4f4f4;
  --accentText:#0b0b0b;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: linear-gradient(180deg, var(--bg), var(--bg2));
  color: var(--text);
  line-height:1.6;
}

/* remove purple/visited styling */
a, a:visited{
  text-decoration: none;
}
a:hover{ text-decoration: underline; text-underline-offset: 4px; }

.container{
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.skip-link{
  position:absolute;
  left:-999px;
  top: 8px;
  padding:10px 12px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  z-index: 9999;
}
.skip-link:focus{ left: 10px; }

.sr-only{
  position:absolute;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);
  white-space:nowrap;border:0;
}

/* =========================
   HEADER
   ========================= */
.header{
  position: sticky;
  top:0;
  z-index: 50;
  background: rgba(255,255,255,.86);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}
[data-theme="dark"] .header{
  background: rgba(11,11,11,.76);
}

.header__inner{
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: .2px;
}
.brand__mark{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--text);
  opacity: .9;
}
.brand__text{ font-size: 14px; color:var(--accent); }

.nav{
  display:flex;
  align-items:center;
  gap: 10px;
}

.nav__toggle{
  display:none;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
}
.nav__burger{
  display:block;
  width: 18px;
  height: 2px;
  background: var(--text);
  position: relative;
}
.nav__burger::before,
.nav__burger::after{
  content:"";
  position:absolute;
  left:0;
  width:18px;
  height:2px;
  background: var(--text);
}
.nav__burger::before{ top:-6px; }
.nav__burger::after{ top: 6px; }

.nav__menu{
  display:flex;
  align-items:center;
  gap: 14px;
}
.nav__menu a{
  font-size: 14px;
  color: var(--muted);
}
.nav__menu a:hover{
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Right-side controls */
.controls{
  display:flex;
  align-items:center;
  gap: 10px;
  margin-left: 6px;
}

/* Language switch (segmented control) */
.langSwitch{
  display:flex;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow:hidden;
  background: transparent;
}
.langBtn{
  appearance:none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  font-size: 12px;
  padding: 8px 10px;
  cursor: pointer;
}
.langBtn[aria-pressed="true"]{
  background: var(--text);
  color: var(--bg);
}

/* Theme button (futuristic minimal) */
.themeBtn{
  width: 38px;
  height: 34px;
  display:none;
  align-items:center;
  justify-content:center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}
.themeBtn:hover{ transform: translateY(-1px); }
.themeIcon svg{ display:block; }

/* =========================
   HERO
   ========================= */
.hero{
  padding: 54px 0 18px;
}
.hero__inner{
  display:grid;
  grid-template-columns: 1.3fr .9fr;
  gap: 22px;
  align-items:start;
}

.eyebrow{
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--muted);
}

h1{
  margin: 0 0 12px;
  font-size: clamp(30px, 3.6vw, 46px);
  line-height:1.1;
  letter-spacing: -0.8px;
}
.h1__muted{
  color: var(--muted);
  font-weight: 700;
}

.lead{
  margin: 0 0 18px;
  color: var(--muted);
  max-width: 68ch;
  font-size: 15px;
}

.actions{
  display:inline-flex;
  flex-wrap:wrap;
  align-items:center;
  gap: 10px 10px;
  margin-bottom: 16px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
}
.btn:hover{
  background: rgba(0,0,0,.03);
  color:var(--accent);
  text-decoration:none;
}
[data-theme="dark"] .btn:hover{
  background: rgba(255,255,255,.06);
  color: var(--accent);
}

.btn--primary{
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}
.btn--primary:hover{
  filter: brightness(0.95);
}
.btn--ghost{
  color: var(--text);
}

.linkRow{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}
.linkRow .sep{ opacity: .6; }

.link{
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.link:hover{ color: var(--text); }

.meta{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 6px;
}
.meta__item{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  background: transparent;
}
.meta__label{
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}
.meta__value{
  font-size: 13px;
}

/* =========================
   PROFILE CARD
   ========================= */
.profileCard{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  background: transparent;
  box-shadow: none;
}

.profileTop{
  display:flex;
  gap: 12px;
  align-items:center;
  margin-bottom: 12px;
}
.profileImg{
  object-position: top;
  width: 200px;
  height: 200px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid var(--border);
}
.profileName{
  font-weight: 900;
  letter-spacing: -.2px;
}
.profileDesc{
  color: var(--muted);
  font-size: 14px;
}
.profileLoc{
  color: var(--muted);
  font-size: 13px;
}

.profileBody{
  border-top: 1px solid var(--border);
  padding-top: 10px;
}
.kv{
  display:flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
}
.kv:first-child{ border-top: none; }
.kv__k{ color: var(--muted); font-size: 13px; }
.kv__v{ font-size: 13px; }

.linkBtn{
  padding:0;
  border:none;
  background:none;
  color: var(--muted);
  cursor:pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
  font-size: 13px;
}
.linkBtn:hover{ color: var(--text); }

.toast{
  margin-top: 10px;
  min-height: 18px;
  color: var(--muted);
  font-size: 12px;
}

/* =========================
   SECTIONS
   ========================= */
.section{
  padding: 20px 0;
}
.sectionHead{
  margin-bottom: 14px;
}
.sectionHead h2{
  margin: 0 0 6px;
  font-size: 20px;
  letter-spacing: -.2px;
}
.sub{
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  max-width: 80ch;
}

.bullets{
  margin: 0;
  padding-left: 18px;
  color: var(--text);
}
.bullets li{
  margin: 8px 0;
  color: var(--text);
}

/* =========================
   SKILLS (bars)
   ========================= */
.skillGrid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.skill{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  background: transparent;
}
.skill__top{
  display:flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.skill__name{ font-weight: 900; font-size: 14px; }
.skill__lvl{ color: var(--muted); font-size: 13px; white-space:nowrap; }

.bar{
  height: 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  overflow:hidden;
}
.fill{
  display:block;
  height: 100%;
  background: var(--text);
  border-radius: 999px;
}

/* =========================
   CONTACT
   ========================= */
.contactGrid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 14px;
  align-items:start;
}
.contactActions{
  display:flex;
  gap: 10px;
  flex-wrap:wrap;
  margin-top: 12px;
}
.contactSide{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  background: transparent;
}

/* =========================
   FOOTER
   ========================= */
.footer{
  padding: 26px 0 34px;
  border-top: 1px solid var(--border);
  color: var(--muted);
}
.footer__inner{
  display:flex;
  justify-content: space-between;
  align-items:center;
  gap: 12px;
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 980px){
  .hero__inner{ grid-template-columns: 1fr; }
  .meta{ grid-template-columns: 1fr; }
  .skillGrid{ grid-template-columns: 1fr; }
  .contactGrid{ grid-template-columns: 1fr; }
}

@media (max-width: 760px){
  .nav__toggle{ display:none; }
  .nav__menu{
    position: absolute;
    right: 20px;
    top: 56px;
    width: min(360px, calc(100vw - 40px));
    display:none;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,.95);
  }
  [data-theme="dark"] .nav__menu{
    background: rgba(11,11,11,.92);
  }
  .controls{ width:100%; justify-content: space-between; }
  .hero{
  padding: 20px 0 18px;
}
.actions{
  display:inline;
}
}
.toast{
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  min-height: 18px;
}

.contact{
  display:grid;
  grid-template-columns: 1.4fr;
  gap: 14px;
  align-items:start;
  padding:20px;
}
.contact__row{
  display:flex;
  gap: 10px;
  flex-wrap:wrap;
  margin: 12px 0 0;
}
.panel{
  border: 1px solid var(--line);
  background: rgba(255,255,255,.05);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.footer__links a{ color: var(--muted); }
/* exemplo */
.isCopied { opacity: .8; }
.isCopyFail { opacity: .8; }
