/* ELMOVE-BUILD 2026-12-01T23:45 */
/* Aliasy wstecznej kompatybilności (dawniej :root w style.css) */
:root{--card:var(--surface);--card-border:var(--border);--radius:var(--radius-lg);--sidebar-width:var(--sidebar-w)}
/* Strona: portfolio.html (dawniej style.css) — style unikalne (wspólne: tokens + motyw + components). */
/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;

  /* 🔥 KLUCZ: odsunięcie od sidebara */
  padding-left: var(--sidebar-width);
}

/* BACKGROUND EFFECT */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, color-mix(in srgb, var(--accent) 0.14, transparent), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(90,120,255,0.10), transparent 55%);
  z-index: -1;
}

/* =========================
   SIDEBAR (RESPONSYWNY + HOVER)
========================= */

.sidebar {
  position: fixed;
  top: 0;
  left: 0;

  height: 100vh;
  width: 70px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;

  padding: 20px 0;
  gap: 30px;

  z-index: 999;

  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);

  /* UKRYTY START */
  transform: translateX(-52px);
  transition: transform 0.25s ease;
}

/* wysunięcie po hoverze */
.sidebar:hover {
  transform: translateX(0);
}

/* „trigger area” – cienki pasek zawsze widoczny */
.sidebar::before {
  content: "";
  position: absolute;
  right: -10px;
  top: 0;

  width: 10px;
  height: 100%;

  background: transparent;
}

/* ICONS */
.sidebar-icon {
  position: relative;
  width: 40px;
  height: 40px;

  display: flex;
  justify-content: center;
  align-items: center;

  cursor: pointer;
  transition: transform 0.2s ease;
}

/* TOOLTIP */
.tooltip {
  position: absolute;
  left: 60px;
  top: 50%;
  transform: translateY(-50%);

  padding: 6px 10px;

  background: rgba(10, 10, 10, 0.95);
  color: #e8eefc;

  font-size: 12px;
  border-radius: 6px;

  white-space: nowrap;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

@media (max-width: 900px) {

  .sidebar {
    transform: translateX(-55px);
  }

  /* jak dotkniesz/klikniesz lewą stronę */
  .sidebar:active {
    transform: translateX(0);
  }

  /* albo stałe lekkie „ucho” */
  .sidebar::after {
    content: "";
    position: absolute;
    right: -6px;
    top: 40%;

    width: 6px;
    height: 20%;

    background: color-mix(in srgb, var(--accent) 0.25, transparent);
    border-radius: 10px;
  }
}

/* =========================
   MAIN CONTENT
========================= */

.top {
  text-align: center;
  padding: 80px 20px 40px;
}

.logo {
  width: 90px;
  filter: drop-shadow(0 0 18px color-mix(in srgb, var(--accent) 0.6, transparent));
}

h1 {
  font-size: 40px;
}

.sub {
  color: var(--muted);
  font-size: 14px;
  margin-top: 10px;
}

/* GRID */
.wrap {
  max-width: 980px;
  margin: auto;
  padding: 20px;
  display: grid;
  gap: 18px;
}

/* CARD */
.box {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 24px;

  backdrop-filter: blur(10px);
  transition: 0.25s ease;
}

.box:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 0.5, transparent);
}

/* PROFILE */
.profile {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.avatar {
  width: 96px;
  border-radius: 50%;
  border: 2px solid var(--accent);
}

/* TEXT */
h2 {
  color: #cfe2ff;
  margin-bottom: 10px;
}

p {
  color: #d6e4ff;
}

/* LIST */
ul {
  padding-left: 18px;
}

li {
  margin: 6px 0;
}

/* LINKS */
a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* FOOTER */
.foot {
  text-align: center;
  padding: 40px 20px;
  margin-top: 40px;

  border-top: 1px solid color-mix(in srgb, var(--accent) 0.15, transparent);

  font-size: 13px;
  color: rgba(255,255,255,0.6);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {

  body {
    padding-left: 60px;
  }

  .sidebar {
    width: 60px;
  }

  .sidebar:hover {
    width: 60px; /* ❌ brak wysuwania na mobile */
  }

  .tooltip {
    display: none;
  }

  h1 {
    font-size: 28px;
  }

  .wrap {
    padding: 12px;
  }
}
