:root{
  --container-width:900px;
  --bg:#0b0d0e;
  --bg-soft:#0f1112;
  --card:#141617;
  --border:#242424;
  --border-strong:rgba(255,255,255,0.12);
  --stripe:rgba(255,255,255,0.12);
  --text:#ffffff;
  --muted:#9a9a9a;
  --muted-2:#6f6f6f;
  --icon:#ffffff;
  --skeleton:#1a1c1d;
}

body.light{
  --bg:#fafafa;
  --bg-soft:#ffffff;
  --card:#f3f3f3;
  --border:#e5e5e5;
  --border-strong:rgba(0,0,0,0.18);
  --stripe:rgba(0,0,0,0.06);
  --text:#111111;
  --muted:#555555;
  --muted-2:#777777;
  --icon:#111111;
  --skeleton:#e9e9e9;
}

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

body{
  font-family:Inter,sans-serif;
  background:var(--bg);
  color:var(--text);
  -webkit-user-select: none;
  user-select: none;
}

a{text-decoration:none;color:inherit}

body::before,
body::after{
  content:"";
  position:fixed;
  top:0;
  bottom:0;
  width:20px;
  pointer-events:none;
  z-index:1;
  background-image:repeating-linear-gradient(315deg,var(--stripe) 0,var(--stripe) 1px,transparent 1px,transparent 8px);
  border-left:1px dashed var(--border-strong);
  border-right:1px dashed var(--border-strong);
  mask-image:linear-gradient(to bottom,transparent 0%,black 12%,black 88%,transparent 100%);
}
body::before{left:calc(50% - var(--container-width) / 2 - 20px)}
body::after{right:calc(50% - var(--container-width) / 2 - 20px)}

@media(max-width:640px){
  body::before,
  body::after{display:none}
}

@media(max-width:640px){
  .github{display:none}
}

.container{
  max-width:var(--container-width);
  margin:auto;
  padding:40px 60px 12px;
  position:relative;
  z-index:2;
}
@media (max-width: 640px){
  .container{
    padding:40px 20px 12px;
  }
}

.topbar{
  display:flex;
  justify-content:flex-end;
  margin-bottom:61px;
}

.theme-btn{
  width:32px;
  height:32px;
  border-radius:8px;
  border:1px solid var(--border);
  background:var(--card);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}

.theme-btn svg{
  width:16px;
  height:16px;
  stroke:var(--icon);
  fill:none;
  stroke-width:1.8;
}

.hero small{
  font-family:'JetBrains Mono',monospace;
  font-size:12px;
  color:var(--muted);
}

.hero h1{
  font-family: "Crimpson Pro", serif;
  font-weight: 800;
  font-style: normal;
  margin-top:8px;
}

.handle{
  font-family:'JetBrains Mono',monospace;
  font-size:11px;
  color:var(--muted-2);
  margin-left:6px;
  text-decoration: none;
}
.handle:hover{
  color: var(--muted);
}

.hero p{
  margin-top:16px;
  /* max-width:620px; */
  font-size:15px;
  text-align: justify;
  color:var(--muted);
}

.actions{
  margin-top:22px;
  display:flex;
  gap:10px;
  align-items:center;
  font-family:'JetBrains Mono',monospace;
  font-size:11px;
}

.btn{
  background:var(--card);
  border:1px solid var(--border);
  padding:6px 10px;
  border-radius:6px;
  cursor:pointer;
}

.btn:hover{background:var(--bg-soft)}

.github{
  margin-top:36px;
  font-family:'JetBrains Mono',monospace;
  font-size:11px;
  color:var(--muted);
}

.github-wrapper{
  margin-top:12px;
  background:var(--card);
  border-radius:6px;
  padding:12px;
  overflow-x:auto;
}

.github-skeleton{
  height:110px;
  background:var(--skeleton);
  border-radius:4px;
}

.github-wrapper img{
  display:none;
  width:max-content;
  min-width:100%;
  height:auto;
}

body:not(.light) .github-wrapper img{
  filter:invert(1) hue-rotate(180deg);
}

.github-error{
  display:none;
  border:1px dashed var(--border);
  border-radius:4px;
  padding:24px;
  text-align:center;
  color:var(--muted-2);
}

.github[data-state="loaded"] .github-skeleton,
.github[data-state="loaded"] .github-error{display:none}

.github[data-state="loaded"] img{display:block}

.github[data-state="error"] .github-skeleton,
.github[data-state="error"] img{display:none}

.github[data-state="error"] .github-error{display:block}

section{margin-top:72px}

.section-title{
  font-family:'Manrope',sans-serif;
  font-size:13px;
  color:var(--muted);
  margin-bottom:20px;
}

.skills-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(140px,1fr));
  gap:14px;
}

.skill{
  border:1px dashed var(--border);
  border-radius:8px;
  padding:12px 10px;
  text-align:center;
}

.skill img{
  width:28px;
  filter:grayscale(1);
  transition:.25s;
}

.skill:hover img{filter:grayscale(0)}

.skill span{
  display:block;
  margin-top:8px;
  font-family:'JetBrains Mono',monospace;
  font-size:11px;
  color:var(--muted);
}

@media(max-width:640px){
  .skills-grid{grid-template-columns:repeat(2,1fr)}
}

.projects{
  margin-top:72px;
}

.projects small{
  font-size:13px;
  color:var(--muted);
}

.projects .grid{
  margin-top:20px;
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:16px;
}

.projects .card{
  border:1px dashed var(--border);
  padding:16px;
  border-radius:8px;
  transition:transform .15s ease, background .15s ease;
}

.projects .card:hover{
  transform:translateY(-2px);
  background:var(--bg-soft);
}

.projects .card img{
  width:100%;
  border-radius:6px;
  margin-bottom:12px;
  filter:grayscale(1);
  transition:filter .15s ease;
}

.projects .card:hover img{
  filter:grayscale(0);
}

.projects .card h3{
  font-size:14px;
  font-weight:500;
}

.projects .card p{
  margin-top:6px;
  font-size:12px;
  color:var(--muted);
}

.experience {
  margin-top: 72px;
}

.exp-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 32px;
  padding-top: 26px;
  align-items: center;
}

.exp-track::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: calc(26px + 13px);
  height: 1px;
  background: linear-gradient(to right,var(--border-strong),var(--border));
  z-index: 1;
}

.exp-item {
  position: relative;
  text-align: center;
  color: var(--muted-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
  min-width: 120px;
}

.exp-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  z-index: 3;
  box-sizing: border-box;
  flex: 0 0 26px;
}

.exp-dot .exp-letter{
  font-family: 'Manrope',sans-serif;
  font-size:14px;
  color:var(--muted);
  line-height:1;
}

.exp-item.active {
  color: var(--text);
}

.exp-item.active .exp-dot {
  background: var(--text);
  border-color: var(--text);
}

.exp-item.active .exp-dot .exp-letter {
  color: var(--bg);
}

.exp-title {
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
}

.exp-time {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1;
}

@media (max-width: 640px) {
  .exp-track {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .exp-track::before {
    content: "";
    position: absolute;
    left: 18px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom,var(--border-strong),var(--border));
    z-index: 1;
  }

  .exp-item {
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: left;
  }

  .exp-dot {
    margin: 0;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
  }

  .exp-dot .exp-letter { font-size:16px }

  .exp-title { font-size: 15px; }
  .exp-time { font-size: 13px; }
}

.exp-dot svg{
  color: var(--muted);
}

.exp-item.active .exp-dot svg{
  color: var(--bg);
}

.explore{
  margin-top:72px;
  text-align:center;
}

.explore-text{
  font-family:'JetBrains Mono',monospace;
  font-size:13px;
  color:var(--muted);
  margin-bottom:18px;
}

.explore-text span{color:var(--text)}

.links-row{
  display:flex;
  justify-content:center;
  gap:14px;
  flex-wrap:wrap;
}

.link-btn{
  border:1px dashed var(--border);
  border-radius:8px;
  padding:10px 14px;
  font-family:'JetBrains Mono',monospace;
  font-size:12px;
  color:var(--muted);
}

.link-btn:hover{
  background:var(--bg-soft);
  color:var(--text);
}

footer{
  margin-top:100px;
  font-size:11px;
  color:var(--muted-2);
  text-align:center;
}

@media (max-width: 640px){
  footer{
    margin-top:50px;
  }
}

.certifications{
  margin-top:72px;
}

.certifications .grid{
  margin-top:20px;
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:16px;
}

.certifications .card{
  border:1px dashed var(--border);
  padding:16px;
  border-radius:8px;
  transition:transform .15s ease, background .15s ease;
}

.certifications .card:hover{
  transform:translateY(-2px);
  background:var(--bg-soft);
}

.cert-icon{
  width:36px;
  height:36px;
  border-radius:8px;
  background:var(--card);
  border:1px solid var(--border);
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom:12px;
}

.cert-icon svg{
  color:var(--muted);
}

.certifications .card:hover .cert-icon svg{
  color:var(--text);
}

.certifications h3{
  font-size:14px;
  font-weight:500;
}

.certifications p{
  margin-top:6px;
  font-size:12px;
  color:var(--muted);
}

.cert-meta{
  display:block;
  margin-top:10px;
  font-family:'JetBrains Mono',monospace;
  font-size:11px;
  color:var(--muted-2);
}
