@font-face{
  font-family:'Ethno';
  src:url('ethnocentric.ttf') format('truetype');
  font-display:swap;
}
@font-face{
  font-family:'CaveatCustom';
  src:url('Caveat-Medium.ttf') format('truetype');
  font-display:swap;
}
@font-face{
  font-family:'YarinCustom';
  src:url('Yarin-Bold.ttf') format('truetype');
  font-display:swap;
}

:root{
  --bg1:#17042b;
  --bg2:#0a0114;
  --text:#f8f4ff;
  --text-strong:#ffffff;
  --muted:#cbb7ee;
  --panel:rgba(19, 9, 35, 0.78);
  --panel-border:rgba(214,179,255,0.16);
  --card:rgba(255,255,255,0.045);
  --accent:#cf94ff;
  --accent2:#8b48ff;
  --shadow:0 26px 80px rgba(93, 34, 170, 0.22);
  --glow:0 0 14px rgba(207,148,255,.28), 0 0 30px rgba(139,72,255,.16);
  --font-main:'CaveatCustom', cursive;
}

body.theme-light{
  --bg1:#faf7ff;
  --bg2:#ece8f8;
  --text:#1d1730;
  --text-strong:#130f1f;
  --muted:#6b5d87;
  --panel:rgba(255,255,255,0.82);
  --panel-border:rgba(118, 85, 185, 0.14);
  --card:rgba(116,80,180,0.05);
  --accent:#7f4cff;
  --accent2:#b986ff;
  --shadow:0 20px 56px rgba(92, 75, 131, 0.12);
  --glow:0 0 10px rgba(127,76,255,.18), 0 0 24px rgba(185,134,255,.10);
}

body.font-ethno{--font-main:'Ethno', Arial, sans-serif}
body.font-caveat{--font-main:'CaveatCustom', cursive}
body.font-yarin{--font-main:'YarinCustom', sans-serif}

*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  min-height:100vh;
  color:var(--text);
  font-family:var(--font-main);
  background:
    radial-gradient(circle at 12% 14%, rgba(192, 108, 255, 0.24), transparent 0 25%),
    radial-gradient(circle at 84% 18%, rgba(126, 73, 255, 0.18), transparent 0 22%),
    radial-gradient(circle at 76% 84%, rgba(232, 134, 255, 0.12), transparent 0 18%),
    linear-gradient(180deg, var(--bg1), var(--bg2));
  overflow-x:hidden;
  transition:background .32s ease, color .32s ease;
}

#particles{
  position:fixed;
  inset:0;
  width:100%;
  height:100%;
  z-index:0;
  pointer-events:none;
}

.drawer{
  position:fixed;
  top:18px;
  left:18px;
  z-index:30;
  display:flex;
  align-items:flex-start;
  gap:12px;
}

.drawer-toggle{
  width:54px;
  height:54px;
  border:none;
  border-radius:18px;
  background:rgba(24,12,44,0.94);
  box-shadow:var(--shadow), 0 0 12px rgba(207,148,255,.16);
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:5px;
  padding:0 16px;
  cursor:pointer;
  transition:transform .22s ease, background .22s ease;
}
body.theme-light .drawer-toggle{
  background:rgba(255,255,255,0.96);
}
.drawer-toggle:active{
  transform:translateX(4px);
}
.drawer-toggle span{
  display:block;
  width:100%;
  height:2px;
  background:var(--text-strong);
  border-radius:999px;
  box-shadow:var(--glow);
}

.drawer-panel{
  width:0;
  opacity:0;
  overflow:hidden;
  padding:0;
  border-radius:24px;
  background:var(--panel);
  border:1px solid transparent;
  backdrop-filter:blur(16px);
  box-shadow:none;
  transition:width .28s ease, opacity .22s ease, padding .28s ease, border-color .28s ease, box-shadow .28s ease;
}
.drawer.open .drawer-panel{
  width:290px;
  opacity:1;
  padding:16px;
  border-color:var(--panel-border);
  box-shadow:var(--shadow), 0 0 12px rgba(207,148,255,.16);
}
.drawer-title{
  color:var(--accent);
  font-size:13px;
  margin-bottom:14px;
  text-shadow:var(--glow);
}

.control-block{
  margin-bottom:14px;
}
.control-label{
  display:block;
  color:var(--muted);
  font-size:12px;
  margin-bottom:8px;
  letter-spacing:.5px;
}

.theme-switch{
  display:flex;
  align-items:center;
  gap:10px;
  width:100%;
  min-height:46px;
  border-radius:14px;
  padding:0 14px;
  background:rgba(255,255,255,0.06);
  border:1px solid rgba(255,255,255,0.06);
  color:var(--text);
  cursor:pointer;
  user-select:none;
}
body.theme-light .theme-switch{
  background:rgba(20,12,40,0.04);
}
.moon-icon{
  width:18px;
  height:18px;
  color:var(--accent);
  display:inline-flex;
}
.moon-icon svg{
  width:100%;
  height:100%;
}

#fontSelect{
  width:100%;
  min-height:46px;
  border:none;
  outline:none;
  border-radius:14px;
  padding:0 14px;
  background:rgba(255,255,255,0.06);
  color:var(--text);
  font-family:inherit;
  border:1px solid rgba(255,255,255,0.06);
}
body.theme-light #fontSelect{
  background:rgba(20,12,40,0.04);
}

.drawer-footer{
  margin-top:8px;
}
.drawer-divider{
  width:100%;
  height:1px;
  background:linear-gradient(90deg, transparent, rgba(207,148,255,.92), transparent);
  box-shadow:var(--glow);
  margin:8px 0 12px;
}
.drawer-love{
  font-size:12px;
  color:rgba(231,208,255,.86);
  text-align:center;
}
body.theme-light .drawer-love{
  color:rgba(81,61,123,.78);
}

.page{
  position:relative;
  z-index:2;
  width:min(1100px, calc(100% - 30px));
  margin:0 auto;
  padding:84px 0 54px;
}

.hero,
.panel{
  background:var(--panel);
  border:1px solid var(--panel-border);
  backdrop-filter:blur(16px);
  box-shadow:var(--shadow);
  position:relative;
  overflow:hidden;
}
.hero::before,
.panel::before,
.card::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(135deg, rgba(255,255,255,0.05), transparent 45%, rgba(192,132,255,0.06));
  pointer-events:none;
}

.hero{
  display:flex;
  align-items:center;
  border-radius:30px;
  padding:34px;
  margin-bottom:20px;
}
.hero-left{
  margin-right:20px;
}
.avatar{
  width:96px;
  height:96px;
  border-radius:50%;
  object-fit:cover;
  box-shadow:var(--shadow), 0 0 12px rgba(207,148,255,.16);
  border:1px solid rgba(255,255,255,0.06);
  animation:avatarFloat 4s ease-in-out infinite;
}
.hero-label{
  color:var(--muted);
  font-size:13px;
  margin-bottom:14px;
}
.hero-name-wrap{
  position:relative;
  display:inline-block;
}
.hero-name-link{
  position:absolute;
  inset:0;
  z-index:2;
}
.hero-name{
  position:relative;
  z-index:1;
  margin-top:12px;
  font-size:clamp(38px, 8vw, 72px);
  line-height:1;
  font-weight:300;
  letter-spacing:.15px;
  color:var(--accent);
  text-shadow:var(--glow);
}
.subline{
  margin-top:14px;
  color:var(--muted);
  font-size:13px;
}
.subline a{
  color:rgba(255,255,255,.06);
  text-decoration:none;
  text-shadow:0 0 8px rgba(207,148,255,.22);
}
body.theme-light .subline a{
  color:rgba(0,0,0,.08);
}

.panel{
  border-radius:26px;
  padding:24px;
  margin-bottom:18px;
}
.section-title{
  font-size:19px;
  margin-bottom:18px;
  color:var(--accent);
  text-shadow:var(--glow);
}

.stairs{
  display:flex;
  flex-direction:column;
  gap:16px;
}
.card{
  position:relative;
  width:min(100%, 680px);
  display:flex;
  flex-direction:column;
  gap:8px;
  padding:20px;
  border-radius:20px;
  text-decoration:none;
  color:var(--text);
  background:var(--card);
  border:1px solid rgba(255,255,255,0.04);
  box-shadow:var(--glow);
  transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover{
  transform:translateY(-5px);
  border-color:rgba(214,179,255,.18);
  box-shadow:0 0 10px rgba(207,148,255,.20), 0 0 22px rgba(139,72,255,.10);
}
.stairs .step1{margin-left:0}
.stairs .step2{margin-left:140px}
.stairs .step3{margin-left:280px}
.stairs.reverse .step1{margin-left:280px}
.stairs.reverse .step2{margin-left:140px}
.stairs.reverse .step3{margin-left:0}

.card-top,.card-bottom,.coder-text{
  font-size:11px;
  color:var(--muted);
}
.card-main{
  font-size:20px;
  color:var(--text);
  text-shadow:none;
}

.coder-text{
  margin-bottom:14px;
}
.skill{
  margin-bottom:14px;
  padding:16px;
  border-radius:18px;
  background:var(--card);
  border:1px solid rgba(255,255,255,0.04);
  box-shadow:var(--glow);
}
.skill:last-child{margin-bottom:0}
.skill-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:10px;
  color:var(--text);
  font-size:13px;
}
.bar{
  height:12px;
  border-radius:999px;
  background:rgba(255,255,255,0.08);
  overflow:hidden;
}
.bar span{
  display:block;
  height:100%;
  width:0;
  border-radius:999px;
  background:linear-gradient(90deg, #8b47ff, #cf90ff 72%, #fff2ff);
  box-shadow:var(--glow);
  transition:width .9s cubic-bezier(.2,.8,.2,1);
}

.site-footer{
  padding:8px 6px 4px;
  text-align:center;
}
.site-footer span{
  font-size:11px;
  color:rgba(232,220,248,.34);
  letter-spacing:.4px;
}
body.theme-light .site-footer span{
  color:rgba(64,48,94,.30);
}

.reveal{
  opacity:0;
  transform:translateY(34px);
  transition:opacity .55s ease, transform .55s ease;
}
.reveal.show{
  opacity:1;
  transform:none;
}

@keyframes avatarFloat{
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(-7px)}
}

@media (max-width: 900px){
  .stairs .step1,.stairs .step2,.stairs .step3,
  .stairs.reverse .step1,.stairs.reverse .step2,.stairs.reverse .step3{
    margin-left:0;
  }
  .card{width:100%}
}

@media (max-width: 680px){
  .drawer{
    top:12px;
    left:12px;
  }
  .drawer.open .drawer-panel{
    width:250px;
  }
  .page{
    width:min(100% - 14px, 1100px);
    padding-top:78px;
  }
  .hero{
    padding:18px;
    border-radius:22px;
    align-items:flex-start;
  }
  .hero-left{margin-right:14px}
  .avatar{
    width:66px;
    height:66px;
  }
  .hero-name{
    font-size:42px;
    margin-top:6px;
  }
  .panel{
    padding:16px;
    border-radius:20px;
  }
  .card{
    padding:16px;
    border-radius:16px;
  }
}


















body{
  line-height:1.45;
}

.page{
  max-width:1080px;
}

.hero,
.panel{
  border-color: rgba(214,179,255,0.10);
}

body.theme-light .hero,
body.theme-light .panel{
  border-color: rgba(118, 85, 185, 0.08);
}

.hero-name{
  color:var(--accent);
  text-shadow:0 0 10px rgba(207,148,255,.16);
}

.subline{
  color:var(--text);
  opacity:.82;
}

.card-top,.card-bottom,.coder-text,.hero-label{
  opacity:.82;
}

.card-main,
.skill-head,
.section-title{
  letter-spacing:0;
}




body.font-inter .section-title{
  font-size:21px;
}
body.font-inter .skill-head,


.hero-accent-line{
  width:72px;
  height:2px;
  margin-top:14px;
  border-radius:999px;
  background:linear-gradient(90deg, rgba(207,148,255,.9), rgba(139,72,255,.45), transparent);
  box-shadow:0 0 12px rgba(207,148,255,.20);
}

body.font-caveat .hero-name{
  font-size:clamp(44px, 8vw, 82px);
  letter-spacing:.1px;
  font-weight:400;
}

body.font-caveat .section-title{
  font-size:22px;
  font-weight:400;
}

body.font-caveat .card-main{
  font-size:24px;
  line-height:1.2;
}

body.font-caveat .skill-head,
body.font-caveat .subline,
body.font-caveat .hero-label,
body.font-caveat .card-top,
body.font-caveat .card-bottom,
body.font-caveat .coder-text,
body.font-caveat .drawer-title,
body.font-caveat .control-label,
body.font-caveat .drawer-love{
  font-size:16px;
  letter-spacing:0;
}

body.font-caveat #fontSelect,
body.font-caveat .theme-switch{
  font-size:16px;
}

.hero,
.panel,
.card,
.skill,
.drawer-panel{
  backface-visibility:hidden;
  -webkit-backface-visibility:hidden;
  transform:translateZ(0);
}

.hero,
.panel{
  outline:none;
}

.card{
  border-color:rgba(255,255,255,0.03);
}

body.theme-light .card{
  border-color:rgba(118,85,185,0.05);
}

.page{
  padding-bottom:66px;
}

.site-footer{
  display:grid;
  gap:6px;
}

.site-footer-note{
  font-size:10px;
  color:rgba(232,220,248,.22);
  letter-spacing:.6px;
  text-transform:lowercase;
}

body.theme-light .site-footer-note{
  color:rgba(64,48,94,.22);
}

/* subtle extra polish from me */
.hero::after{
  content:"";
  position:absolute;
  right:-60px;
  top:-60px;
  width:180px;
  height:180px;
  border-radius:50%;
  background:radial-gradient(circle, rgba(207,148,255,.08), transparent 65%);
  pointer-events:none;
}

.panel:hover{
  box-shadow:0 22px 60px rgba(93, 34, 170, 0.18);
}
