* { box-sizing: border-box; }
body {
  margin: 0;
  padding: 0;
  font-family: 'Consolas', monospace;
  background: #0a0a0a;
  color: white;
  overflow: hidden;
}
canvas#bg {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -1;
}

/* Header */
header {
  position: relative;
  text-align: center;
  padding: 40px 20px 10px;
}
.page-title {
  font-size: 2.8rem;
  font-weight: 800;
  color: rgba(255,255,255,0.9);
  transition: color 0.3s, text-shadow 0.3s;
}
.page-title:hover {
  color: #b3f4ff;
  text-shadow: 0 0 15px #b3f4ff;
}

/* Buttons */
button {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.85);
  font-size: 1rem;
  font-weight: 600;
  padding: 12px 24px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color 0.3s ease;
}
button::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  width: 0%; height: 2px;
  background: white;
  transform: translateX(-50%);
  transition: all 0.3s ease;
}
button:hover {
  color: white;
  text-shadow: 0 0 8px white;
}
button:hover::after {
  width: 100%; opacity: 0.8;
}

/* Pyramid Layout */
.main-buttons {
  margin: 80px auto 20px;
  width: 60%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.bottom-buttons {
  display: flex;
  gap: 20px;
}

/* Dropbar */
.dropbar {
  position: absolute;
  top: 25px; right: 25px;
  width: 30px; cursor: pointer;
  z-index: 10;
}
.dropbar .line {
  height: 3px; background: grey;
  margin: 5px 0; border-radius: 2px;
  transition: all 0.3s;
}
.dropbar:hover .line {
  background: white;
  box-shadow: 0 0 5px white;
}

/* Dropdown */
.dropdown {
  position: absolute;
  right: 20px; top: 70px;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  display: flex; flex-direction: column;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(15px);
  border-radius: 10px;
  padding: 0 10px;
  box-shadow: 0 0 15px rgba(255,255,255,0.1);
  transition: all 0.4s ease;
}
.dropdown.active {
  opacity: 1;
  max-height: 150px;
  padding: 10px;
}
.dropdown button {
  margin: 5px 0;
  font-size: 0.9rem;
}

/* Terminal */
footer {
  display: flex;
  justify-content: center;
  padding: 20px 0 60px;
}
.glass {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 14px;
  box-shadow: 0 0 20px rgba(255,255,255,0.05);
}
.terminal {
  width: 85%;
  max-width: 800px;
  color: rgba(255,255,255,0.9);
  font-size: 0.9rem;
  padding: 20px;
  position: relative;
  height: 260px;
  overflow-y: hidden;
}
.terminal-label {
  position: absolute;
  top: 5px; left: 10px;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.5);
}
.terminal-content {
  margin-top: 15px;
  height: 100%;
  overflow-y: auto;
  white-space: pre-wrap;
  scrollbar-width: none;
}
.terminal-content::-webkit-scrollbar { display: none; }

/* Popup */
.popup-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 20;
}
.popup-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.popup {
  width: 80%;
  max-width: 700px;
  max-height: 80vh;
  overflow-y: auto;
  padding: 25px;
  position: relative;
  animation: fadeInUp 0.4s ease;
}
@keyframes fadeInUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.close-btn {
  position: absolute;
  top: 10px; right: 15px;
  background: none; border: none;
  color: white; font-size: 1.5rem;
  cursor: pointer;
  text-shadow: 0 0 6px white;
}
.popup h2 {
  margin-top: 0;
  text-align: center;
  text-shadow: 0 0 8px white;
}
.popup pre {
  white-space: pre-wrap;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.9);
}
.popup ul { margin-left: 20px; line-height: 1.5; }
