@import url('https://fonts.googleapis.com/css2?family=Stack+Sans+Text:wght@200..700&display=swap');

:root {
  --bg: #000;
  --panel: #0a0a0a;
  --accent1: #c300ff; 
  --accent2: #a200ff;
  --muted: #a0a0a0;
  --radius: 1rem;
  --font: 'Stack Sans Text', 'Arial', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: var(--font);}

html, body {
  height: 100%;
  background: var(--bg);
  color: #fff;
  font-family: var(--font);
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  -webkit-font-smoothing: antialiased;
  opacity: 0;
  animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

/* Sidebar Dock */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5em;
  backdrop-filter: blur(1rem);
  border-right: 0.1rem solid rgba(255,255,255,0.05);
  border-radius: 0 var(--radius) var(--radius) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  box-shadow: 0.25rem 0 1.5rem rgba(0,0,0,0.6);
  transform: translateX(-1rem);
  opacity: 0;
  animation: slideInLeft 0.7s cubic-bezier(0.4,0,0.2,1) forwards;
}

@keyframes slideInLeft {
  from { transform: translateX(-2rem); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.sidebar i {
  font-size: 2rem;
  color: #ccc;
  cursor: pointer;
  transition: 0.2s ease;
  position: relative;
}

.sidebar i:hover {
  color: var(--accent1);
  transform: scale(1.15);
}

/* Tooltip */
.sidebar i::after {
  content: attr(title);
  position: absolute;
  left: 120%;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.85);
  color: #fff;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.6em;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  transition: opacity 0.2s ease, transform 0.2s ease;
  font-family: 'Segoe UI', sans-serif;
}

.sidebar i:hover::after {
  opacity: 1;
  transform: translate(0.5rem, -50%);
}

/* Main container */
.container {
  text-align: center;
  width: auto;
  padding: 0 1rem;
  margin-left: 8rem;
  margin-top: 2.5rem;
}

h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.05rem;
  background: linear-gradient(90deg, var(--accent1), var(--accent2));
  -webkit-background-clip: text; 
  -webkit-text-fill-color: transparent;
}

.active {
  background: linear-gradient(90deg, var(--accent1), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}


.container h1 {
  font-size: 10em;
}

p {
  color: var(--muted);
  margin-top: 0.75rem;
}

footer {
  position: fixed;
  bottom: 1.25rem;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.05rem;
}

@media (max-width: 44rem) { /* ~700px */
  .sidebar {
    flex-direction: row;
    bottom: 1.5rem; 
    left: 50%; 
    transform: translateX(-50%);
    top: auto;
    width: auto;
    height: 4rem;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius);
  }
  .sidebar i::after { display: none; }
  .container { margin-left: 0.5rem; padding: 0 0.5rem; }
  h1 { font-size: 2rem; }
}