html, body {
  height: 100%;
}

body.gradient-background {
  margin: 0 !important;
  background: var(--bg-main);
  color: var(--text-main);
}

#onepage {
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 24px;
  padding: 24px;
}

#left-rail {
  flex: 0 0 30%;
  min-width: 280px;
  max-width: 420px;
  background: var(--bg-panel);
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 24px;
  height: calc(100vh - 48px);
  overflow: auto;
}

#right-rail {
  flex: 1 1 auto;
  min-width: 0;
  background: var(--bg-panel);
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  padding: 18px;
  height: calc(100vh - 48px);
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

#right-rail > .projects {
  margin-top: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  width: 100%;
}

.projects-header {
  flex: 1 1 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.play-game-link {
  flex-shrink: 0;
  padding: 8px 14px;
  font-size: .85rem;
  color: var(--text-main);
  background: var(--bg-panel-soft);
  border: 1px solid var(--accent-cool);
  border-radius: 12px;
  text-decoration: none;
  transition: background 0.18s ease;
}

.play-game-link:hover {
  background: var(--accent-warm);
  color: #101418;
}

#right-rail > .projects > .project-container {
  flex: 1 1 100%;
  max-width: 100%;
  min-width: 0;
  background: var(--bg-panel-soft);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.35);
  box-sizing: border-box;
}

#right-rail > .projects > .project-container.full-width-project {
  flex: 1 1 100%;
  max-width: 100%;
}

#right-rail > .projects > .project-container.half-width-project {
  flex: 1 1 calc(50% - 8px);
  max-width: calc(50% - 8px);
}

#right-rail.horizontal {
  overflow: hidden;
}

#right-rail.horizontal > .projects {
  height: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

#right-rail.horizontal > .projects > .project-container {
  flex: 0 0 min(560px, 80vw);
  height: 100%;
  overflow: auto;
  scroll-snap-align: start;
}

#right-rail.horizontal > .projects > .project-container.full-width-project {
  flex-basis: min(820px, 92vw);
}

#right-rail.horizontal > .projects > .project-container.half-width-project {
  flex-basis: min(560px, 80vw);
}

#right-rail.horizontal > .projects::-webkit-scrollbar {
  height: 10px;
}

#right-rail.horizontal > .projects::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.04);
  border-radius: 999px;
}

#right-rail.horizontal > .projects::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.14);
  border-radius: 999px;
}
.info-holder {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-main);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
}
#about-section, .info-holder, .monitor-holder, #color-controls, .section-selector {
    background: var(--bg-panel-soft);
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    font-size: 1rem;
    padding: 12px 16px;
}
.monitor-holder {
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-sizing: border-box;
}

.statuses-title-holder {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.statuses-title {
  font-weight: 600;
  color: var(--text-main);
  font-size: .95rem;
}

#status-holder {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.status-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 10px;
  background: var(--bg-panel);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  font-size: .85rem;
  color: var(--text-main);
}

.status-item a {
  color: var(--text-main);
  text-decoration: none;
}

.status-item a:hover {
  text-decoration: underline;
}

.letters.green {
  color: #7fdc8a;
  font-weight: 600;
}

.info-holder span {
  font-size: 1.05rem;
  font-weight: 600;
}

#social-holder {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-link {
  display: flex;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  align-items: center;
  justify-content: center;

  background: var(--bg-panel);
  border: 1px solid var(--border-soft);
  color: var(--text-main);
  text-decoration: none;

  transition: all 0.18s ease;
}

.social-link:hover {
  background: var(--bg-panel-soft);
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-1px);
}

.social-link i {
  pointer-events: none;
}
.section-selector {
  display: flex;
  width: 100%;
  gap: 5px;
  /* overflow: hidden; */
}

.section-selector a {
  flex: 1;
  text-align: center;
  padding: 10px 12px;
  font-size: .9rem;
  color: var(--text-main);
  background: var(--bg-panel-soft);
  border: 1px solid var(--accent-cool);
  transition: background 0.18s ease, color 0.18s ease;
  border-radius: 12px;
}

.section-selector a.active {
  background: var(--accent-warm);
  color: #101418;
  font-weight: 700;
}

.section-selector a:hover:not(.active) {
  background: var(--bg-panel);
}

@media (max-width: 900px) {
  #onepage {
    flex-direction: column;
    gap: 14px;
    padding: 14px;
  }

  #left-rail {
    position: static;
    height: auto;
    max-width: none;
    min-width: 0;
    overflow: visible;
  }

  #right-rail {
    height: auto;
    overflow: visible;
    padding: 14px;
  }

  #right-rail > .projects,
  #right-rail.horizontal > .projects {
    flex-direction: column;
    overflow: visible;
    scroll-snap-type: none;
    height: auto;
    gap: 14px;
  }

  #right-rail > .projects > .project-container,
  #right-rail.horizontal > .projects > .project-container {
    width: 100% !important;
    max-width: 100% !important;
    height: auto;
    overflow: visible;
    flex: 1 1 auto;
  }
}
.isitup-link {
  text-decoration: underline !important;
}

/* ── Tech bubbles ───────────────────────────────────────────── */
.built-with-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 8px;
}

.tech-bubble {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  white-space: nowrap;
  background: rgba(255,255,255,0.1);
  color: #e8e8e8;
  border: 1px solid rgba(255,255,255,0.15);
}

/* Languages & frameworks — ordered general → specific so more specific wins */
.tech-bubble[data-tech*="css"]          { background: #1572b6; color: #fff;    border-color: #1572b6; }
.tech-bubble[data-tech*="html"]         { background: #e34f26; color: #fff;    border-color: #e34f26; }
.tech-bubble[data-tech*="javascript"]   { background: #f7df1e; color: #1a1a1a; border-color: #f7df1e; }
.tech-bubble[data-tech*="typescript"]   { background: #3178c6; color: #fff;    border-color: #3178c6; }
.tech-bubble[data-tech*="python"]       { background: #3776ab; color: #ffd343; border-color: #3776ab; }
.tech-bubble[data-tech*="pygame"]       { background: #3776ab; color: #ffd343; border-color: #3776ab; }
.tech-bubble[data-tech*="django"]       { background: #0c4b33; color: #44b78b; border-color: #1a6644; }
.tech-bubble[data-tech*="php"]          { background: #7a86b8; color: #fff;    border-color: #7a86b8; }
.tech-bubble[data-tech*="react"]        { background: #61dafb; color: #0d1117; border-color: #61dafb; }
.tech-bubble[data-tech*="vue"]          { background: #42b883; color: #fff;    border-color: #42b883; }
.tech-bubble[data-tech*="node"]         { background: #339933; color: #fff;    border-color: #339933; }
.tech-bubble[data-tech*="express"]      { background: #353535; color: #ddd;    border-color: #555;    }
.tech-bubble[data-tech*="socket"]       { background: #1a1a1a; color: #fff;    border-color: #555;    }
.tech-bubble[data-tech*="rust"]         { background: #ce422b; color: #fff;    border-color: #ce422b; }
.tech-bubble[data-tech*="godot"]        { background: #478cbf; color: #fff;    border-color: #478cbf; }
.tech-bubble[data-tech*="openai"]       { background: #10a37f; color: #fff;    border-color: #10a37f; }
.tech-bubble[data-tech*="discord"]      { background: #5865f2; color: #fff;    border-color: #5865f2; }
.tech-bubble[data-tech*="wordpress"]    { background: #21759b; color: #fff;    border-color: #21759b; }
.tech-bubble[data-tech*="drupal"]       { background: #0678be; color: #fff;    border-color: #0678be; }

/* Databases */
.tech-bubble[data-tech*="mysql"]        { background: #4479a1; color: #fff;    border-color: #4479a1; }
.tech-bubble[data-tech*="postgre"]      { background: #336791; color: #fff;    border-color: #336791; }
.tech-bubble[data-tech*="mongo"]        { background: #47a248; color: #fff;    border-color: #47a248; }
.tech-bubble[data-tech*="redis"]        { background: #dc382d; color: #fff;    border-color: #dc382d; }

/* Infra & tools */
.tech-bubble[data-tech*="git"]          { background: #f05032; color: #fff;    border-color: #f05032; }
.tech-bubble[data-tech*="docker"]       { background: #2496ed; color: #fff;    border-color: #2496ed; }
.tech-bubble[data-tech*="aws"]          { background: #ff9900; color: #1a1a1a; border-color: #ff9900; }
.tech-bubble[data-tech*="digitalocean"] { background: #0080ff; color: #fff;    border-color: #0080ff; }
.tech-bubble[data-tech*="raspberry"]    { background: #c51a4a; color: #fff;    border-color: #c51a4a; }
.tech-bubble[data-tech*="iot"]          { background: #00b4d8; color: #0d1117; border-color: #00b4d8; }
.tech-bubble[data-tech*="lamp"]         { background: #f4a261; color: #1a1a1a; border-color: #f4a261; }
.tech-bubble[data-tech*="gunicorn"]     { background: #4c9b3f; color: #fff;    border-color: #4c9b3f; }
.tech-bubble[data-tech*="systemd"]      { background: #4a4a6a; color: #ccc;    border-color: #5a5a8a; }
