:root {
  --bg: #000000;
  --btn-bg: #2a2a2a;
  --btn-text: #ffffff;
  --glow: rgba(128, 128, 128, 0.6);
  --line-color: #ffffff;
}

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

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.site-title {
  position: relative;
  z-index: 1;
  margin-bottom: 2rem;
  font-size: 2.25rem;
  font-weight: 600;
}

.site-title__entropy {
  color: rgba(180, 60, 60, 0.8);
  text-shadow: 0 0 20px rgba(200, 60, 60, 0.6), 0 0 40px rgba(200, 60, 60, 0.4);
}

.site-title__dev {
  color: #ffffff;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.6), 0 0 40px rgba(255, 255, 255, 0.4);
}

.site-tagline {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 0.35rem;
  letter-spacing: 0.08em;
}

.entropy-readout {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  z-index: 10;
}

.entropy-readout__value {
  color: rgba(180, 60, 60, 0.9);
  font-weight: 600;
}

.entropy-readout__unit {
  margin-left: 0.25rem;
  opacity: 0.7;
}

.entropy-stream {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  opacity: 0.06;
}

.entropy-byte {
  position: absolute;
  font-family: 'Consolas', monospace;
  font-size: 0.65rem;
  color: #fff;
  animation: entropy-float linear infinite;
}

@keyframes entropy-float {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% { opacity: 0.5; }
  90% { opacity: 0.5; }
  100% {
    transform: translateY(-20vh) rotate(360deg);
    opacity: 0;
  }
}

.entropy-footer {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.25);
  z-index: 10;
}

.snowfall {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.snowflake {
  position: absolute;
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  opacity: 0.8;
  animation: snowfall linear infinite;
}

@keyframes snowfall {
  0% {
    transform: translateY(-100vh) translateX(0);
  }
  100% {
    transform: translateY(100vh) translateX(0);
  }
}

.nav-container {
  position: relative;
  width: 440px;
  height: 340px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 0;
  place-items: center;
  z-index: 1;
}

.connector-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.connector-lines path {
  stroke: var(--line-color);
  stroke-width: 1.5;
  fill: none;
}

.nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  background: var(--btn-bg);
  color: var(--btn-text);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 20px var(--glow), 0 0 40px rgba(128, 128, 128, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  z-index: 1;
}

.nav-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px var(--glow), 0 0 60px rgba(128, 128, 128, 0.4);
}

.nav-btn--home {
  grid-column: 1 / -1;
  grid-row: 1;
}

.socials-wrapper {
  grid-column: 1;
  grid-row: 2;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav-btn--pgp {
  grid-column: 2;
  grid-row: 2;
}

.nav-btn--projects {
  grid-column: 3;
  grid-row: 2;
}

.socials-branches {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  padding-top: 0.5rem;
  z-index: 2;
}

.socials-branches[hidden] {
  display: none !important;
}

.social-branch {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--btn-bg);
  box-shadow: 0 0 15px var(--glow);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  z-index: 1;
}

.social-branch:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px var(--glow);
}

.social-branch__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
}

.social-branch__icon svg {
  width: 100%;
  height: 100%;
}

.social-branch__icon--telegram,
.social-branch__icon--discord,
.social-branch__icon--github {
  color: #ffffff;
}

.pgp-window {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.pgp-window[hidden] {
  display: none;
}

.pgp-window__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}

.pgp-window__panel {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 70vh;
  background: var(--btn-bg);
  border-radius: 12px;
  box-shadow: 0 0 30px var(--glow), 0 0 60px rgba(128, 128, 128, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.pgp-window__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pgp-window__title {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

.pgp-window__close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem;
  transition: color 0.2s;
}

.pgp-window__close:hover {
  color: #fff;
}

.pgp-window__key {
  padding: 1.25rem;
  margin: 0;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 0.7rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  overflow: auto;
  max-height: 50vh;
  white-space: pre-wrap;
  word-break: break-all;
}
