*{margin:0;padding:0;box-sizing:border-box;font-family:system-ui,-apple-system,BlinkMacSystemFont,sans-serif}
html,body{height:100%;background:#000;color:#fff}
a{color:inherit;text-decoration:none}
button{font:inherit}

:root{
  --card-bg: rgba(15,15,15,.62);
  --card-border: rgba(255,255,255,.10);
  --btn-bg: rgba(255,255,255,.08);
  --btn-bg-hover: rgba(255,255,255,.18);
  --shadow: 0 0 40px rgba(0,0,0,.7);
}

/* Background */
.bg{
  position:fixed;
  inset:0;
  z-index:0;
  background-image:url("/assets/img/wallpaper.jpg");
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  filter:brightness(.72);
  animation:wind 20s ease-in-out infinite;
}



/* Page container + transitions */
.page{
  position:relative; z-index:2;
  min-height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
  opacity:0;
  transform:translateY(10px);
  transition:opacity .45s ease, transform .45s ease;
}
.page.is-ready{opacity:1;transform:translateY(0)}
.page.is-leaving{opacity:0;transform:translateY(10px)}

/* Card */
.card{
  width:min(420px, 92vw);
  padding:28px;
  border-radius:22px;
  background:var(--card-bg);
  backdrop-filter: blur(18px);
  border:1px solid var(--card-border);
  box-shadow:var(--shadow);
  text-align:center;
}
.card-lg{
  width:min(820px, 92vw);
  text-align:left;
}
.card h1{
  font-weight:600;
  letter-spacing:.5px;
  margin-bottom:6px;
}
.card p.sub{
  color:#aaa;
  font-size:14px;
  margin-bottom:18px;
}
.card-lg h1, .card-lg p.sub{ text-align:center; }

/* Nav (links styled as buttons) */
.nav{
  display:flex;
  gap:12px;
  justify-content:center;
  flex-wrap:wrap;
}
.nav a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  border-radius:14px;
  font-size:13px;
  background:var(--btn-bg);
  transition:background .25s ease, transform .25s ease;
  user-select:none;
}
.nav a:hover{background:var(--btn-bg-hover)}
.nav a:active{transform:translateY(1px)}

/* Toast */
.toast{
  position:fixed;
  bottom:96px;
  left:50%;
  transform:translateX(-50%);
  background:rgba(0,0,0,.85);
  color:#fff;
  padding:10px 18px;
  border-radius:14px;
  font-size:13px;
  opacity:0;
  transition:.25s;
  z-index:60;
}
.toast.show{opacity:1}

/* Player badge (TOP CENTER) */
.player-badge{
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 80;

  display: flex;
  align-items: center;
  gap: 10px;

  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(15,15,15,.62);
  border: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(14px);
  box-shadow: 0 0 24px rgba(0,0,0,.55);

  max-width: min(360px, 92vw);
}

.play-btn{
  width:36px;
  height:36px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.08);
  color:#fff;
  cursor:pointer;
  display:grid;
  place-items:center;
}
.play-btn:hover{background: rgba(255,255,255,.16)}
.track{
  display:flex;
  flex-direction:column;
  line-height:1.1;
  min-width:0;
}
.track strong{
  font-size:13px;
  font-weight:600;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.track span{
  font-size:12px;
  color:#bdbdbd;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.track .hint{
  display:block;
  margin-top:2px;
}

/* CONTACT LINKS (BOTTOM CENTER) */
.links{
  position:fixed;
  bottom:26px;
  left:50%;
  transform:translateX(-50%);
  z-index:70;

  display:flex;
  gap:20px;
  align-items:flex-end;
  justify-content:center;

  padding:10px 12px;
  border-radius:18px;
  background: rgba(15,15,15,.42);
  border:1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(12px);
}

.link{
  background:transparent;
  border:none;
  cursor:pointer;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
  color:#fff;
  user-select:none;
  padding:6px 8px;
  border-radius:14px;
  transition: background .2s ease, transform .2s ease;
}
.link:hover{background: rgba(255,255,255,.08)}
.link:active{transform:translateY(1px)}

.link img{
  width:44px;
  height:44px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.15);
  object-fit:cover;
  display:block;
}
.link span{font-size:12px;opacity:.8}

/* Back button */
.back-btn{
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 85;

  padding: 10px 14px;
  border-radius: 14px;

  background: rgba(15,15,15,.65);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 0 20px rgba(0,0,0,.55);

  font-size: 14px;
  color: #fff;
  opacity: .88;
  transition: .25s;
}
.back-btn:hover{opacity:1;background: rgba(255,255,255,.15)}

/* Avatar */
.avatar{
  width: 96px;
  height: 96px;
  margin: 0 auto 14px;
  display: block;

  border-radius: 50%;
  object-fit: cover;

  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 0 25px rgba(0,0,0,.6);

  background: rgba(255,255,255,.05);
}

/* About blocks */
.about-block{
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 16px;

  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  text-align: left;
}
.about-block p{font-size:14px;line-height:1.45;color:#e6e6e6}
.about-block ul{margin-top:8px;padding-left:18px}
.about-block li{font-size:13px;color:#cfcfcf;margin-bottom:4px}

/* Skills */
.skill{margin-top:14px}
.skill-header{
  display:flex;
  justify-content:space-between;
  font-size:13px;
  color:#eaeaea;
  margin-bottom:6px;
}
.skill-bar{
  width:100%;
  height:8px;
  border-radius:8px;
  background:rgba(255,255,255,.12);
  overflow:hidden;
}
.skill-fill{
  height:100%;
  border-radius:8px;
  background:linear-gradient(90deg, rgba(255,255,255,.9), rgba(180,180,180,.6));
}

/* Projects */
.projects-grid{
  margin-top: 10px;
  display:grid;
  gap:14px;
  grid-template-columns: 1fr;
}
@media (min-width: 860px){
  .projects-grid{ grid-template-columns: 1fr 1fr; }
  .card-lg h1, .card-lg p.sub{ text-align:left; }
}

.project-card{
  padding:16px 16px;
  border-radius:18px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 0 18px rgba(0,0,0,.35);
}
.project-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:8px;
}
.project-card h2{
  font-size:15px;
  font-weight:650;
  letter-spacing:.2px;
}
.badge{
  font-size:11px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.08);
  color:#eaeaea;
}
.badge-soft{
  background: rgba(180,180,180,.12);
}

.project-desc{
  font-size:13px;
  color:#cfcfcf;
  line-height:1.45;
  margin-bottom:10px;
}

.project-list{
  margin: 8px 0 10px;
  padding-left: 18px;
}
.project-list li{
  font-size:13px;
  color:#cfcfcf;
  margin-bottom:4px;
}

.project-meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:10px;
}
.tag{
  font-size:11px;
  padding:6px 10px;
  border-radius:999px;
  background: rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.10);
  color:#dedede;
}

.project-link{
  display:inline-flex;
  margin-top:12px;
  padding:10px 12px;
  border-radius:14px;
  background: var(--btn-bg);
  border:1px solid rgba(255,255,255,.10);
  transition:.25s;
  user-select:none;
}
.project-link:hover{background: var(--btn-bg-hover)}
.project-link:active{transform: translateY(1px)}

.project-foot{
  display:flex;
  align-items:center;
  gap:8px;
  margin-top:10px;
}
.status-dot{
  width:8px;height:8px;border-radius:50%;
  background: rgba(255,255,255,.65);
  box-shadow: 0 0 10px rgba(255,255,255,.25);
}

.muted{color:#9a9a9a;font-size:12px}
/* ===== Projects (fix) ===== */
.card-lg{
  width: min(820px, 92vw);
  text-align: left;
}

.projects-grid{
  margin-top: 10px;
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

@media (min-width: 860px){
  .projects-grid{ grid-template-columns: 1fr 1fr; }
}

.project-card{
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 0 18px rgba(0,0,0,.35);
}

.project-top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.project-card h2{
  font-size: 15px;
  font-weight: 650;
  letter-spacing: .2px;
}

.project-desc{
  font-size: 13px;
  color: #cfcfcf;
  line-height: 1.45;
  margin-bottom: 10px;
}

.project-list{
  margin: 8px 0 10px;
  padding-left: 18px;
}

.project-list li{
  font-size: 13px;
  color: #cfcfcf;
  margin-bottom: 4px;
}

.project-meta{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.tag{
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.10);
  color: #dedede;
}

.badge{
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.08);
  color: #eaeaea;
}

.badge-soft{
  background: rgba(180,180,180,.12);
}

.project-link{
  display: inline-flex;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.10);
  transition: .25s;
  user-select: none;
}

.project-link:hover{
  background: rgba(255,255,255,.18);
}

.project-foot{
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.status-dot{
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.65);
  box-shadow: 0 0 10px rgba(255,255,255,.25);
}

/* background path (если у тебя wallpaper в assets/img/) */
.bg{
  background-image: url("/assets/img/wallpaper.jpg");
}
