/* Realistic glassy profile with snow, subtle glow, smooth motion & labeled icon tiles */
:root {
  --bg-void: #050608;
  --glass-base: rgba(16, 20, 27, 0.46);
  --glass-shine: rgba(255, 255, 255, 0.12);
  --glass-inner: rgba(255, 255, 255, 0.045);
  --line-dim: rgba(255, 255, 255, 0.14);
  --line-bright: rgba(255, 255, 255, 0.30);
  --ink-high: #f7f9fc;
  --ink-mid: rgba(247, 249, 252, 0.74);
  --ink-low: rgba(247, 249, 252, 0.50);
  --emerald: #39d98a;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html,
body {
  min-height: 100%;
  background-color: var(--bg-void);
  color: var(--ink-high);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 16px;
  position: relative;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Snow canvas across the screen */
#snow-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

/* Realistic ambient motion & light glow */
.ambient-scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.ambient-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(92px);
  will-change: transform;
}

.orb-top {
  width: 400px;
  height: 400px;
  top: 6%;
  left: 14%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 72%);
  animation: driftOrb1 14s ease-in-out infinite alternate;
}

.orb-emerald {
  width: 340px;
  height: 340px;
  top: 24%;
  right: 12%;
  background: radial-gradient(circle, rgba(57, 217, 138, 0.14) 0%, transparent 74%);
  animation: driftOrb2 16s ease-in-out infinite alternate;
}

.orb-bottom {
  width: 360px;
  height: 360px;
  bottom: 6%;
  left: 34%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.10) 0%, transparent 75%);
  animation: driftOrb3 18s ease-in-out infinite alternate;
}

@keyframes driftOrb1 {
  0% { transform: translate3d(-22px, -14px, 0) scale(1); }
  100% { transform: translate3d(28px, 24px, 0) scale(1.07); }
}

@keyframes driftOrb2 {
  0% { transform: translate3d(24px, -16px, 0) scale(0.96); }
  100% { transform: translate3d(-26px, 22px, 0) scale(1.06); }
}

@keyframes driftOrb3 {
  0% { transform: translate3d(0, 16px, 0) scale(1); }
  100% { transform: translate3d(20px, -24px, 0) scale(1.05); }
}

.ambient-scanline {
  position: absolute;
  left: -30%;
  top: 38%;
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  animation: scanAcross 10s linear infinite;
}

@keyframes scanAcross {
  0% { transform: translateX(0); opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateX(250%); opacity: 0; }
}

/* Main Viewport Stage & Glass Card */
.viewport-stage {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 500px;
}

.glass-card {
  position: relative;
  background: linear-gradient(155deg, var(--glass-shine) 0%, var(--glass-base) 54%, rgba(9, 12, 16, 0.74) 100%);
  backdrop-filter: blur(28px) saturate(145%);
  -webkit-backdrop-filter: blur(28px) saturate(145%);
  border: 1px solid var(--line-dim);
  border-radius: 28px;
  padding: 22px 24px 22px;
  box-shadow:
    0 26px 68px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 0 42px rgba(57, 217, 138, 0.05);
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -125%;
  width: 72%;
  height: 100%;
  background: linear-gradient(95deg, transparent, rgba(255, 255, 255, 0.075), transparent);
  transform: skewX(-18deg);
  animation: sheenSweep 9s ease-in-out infinite;
  pointer-events: none;
}

@keyframes sheenSweep {
  0%, 66% { left: -125%; }
  100% { left: 155%; }
}

.card-entrance {
  opacity: 0;
  transform: translateY(16px) scale(0.986);
  animation: enterCard 0.72s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes enterCard {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.card-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.top-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  color: var(--ink-low);
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 8px var(--emerald);
}

/* Identity block */
.identity-block {
  text-align: center;
  padding-top: 20px;
}

.emblem-frame {
  width: 72px;
  height: 72px;
  margin: 0 auto 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 0 24px rgba(255, 255, 255, 0.07);
  animation: emblemFloat 5.5s ease-in-out infinite;
}

@keyframes emblemFloat {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-4px) rotate(2deg); }
}

.display-name {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  text-shadow: 0 0 22px rgba(255, 255, 255, 0.14);
}

.role-line {
  margin-top: 6px;
  font-size: 0.88rem;
  color: var(--ink-mid);
}

.role-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
}

.mini-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--glass-inner);
  border: 1px solid rgba(255, 255, 255, 0.11);
  color: var(--ink-mid);
}

.tag-green {
  color: var(--ink-high);
  border-color: rgba(57, 217, 138, 0.34);
  box-shadow: 0 0 14px rgba(57, 217, 138, 0.09);
}

/* Icon tiles with text directly under each icon (static hover, no cursor tracking) */
.icon-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.icon-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 15px 10px 13px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line-dim);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 0 18px rgba(255, 255, 255, 0.04);
  transition: background-color 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.icon-tile:hover {
  background: rgba(255, 255, 255, 0.11);
  border-color: var(--line-bright);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 0 24px rgba(255, 255, 255, 0.1);
}

.tile-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 2px;
}

.tile-primary {
  background: rgba(247, 249, 252, 0.94);
  color: #050608;
  border-color: rgba(255, 255, 255, 0.96);
  box-shadow: 0 0 26px rgba(255, 255, 255, 0.16);
}

.tile-primary:hover {
  background: #ffffff;
  border-color: #ffffff;
  box-shadow: 0 0 32px rgba(255, 255, 255, 0.26);
}

.tile-primary .tile-icon-wrap {
  background: rgba(5, 6, 8, 0.08);
  border-color: rgba(5, 6, 8, 0.14);
}

.tile-label {
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.15;
}

.tile-sub {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  opacity: 0.68;
  line-height: 1.15;
}

/* About section below in Romanian */
.about-section {
  margin-top: 22px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.042);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.about-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.about-kicker {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--emerald);
}

.about-badge {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  color: var(--ink-low);
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.about-text {
  font-size: 0.9rem;
  line-height: 1.64;
  color: var(--ink-mid);
}

.focus-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.focus-item {
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.focus-key {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  color: var(--ink-low);
  margin-bottom: 2px;
}

.focus-val {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--ink-high);
}

/* Footer */
.card-footer {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 0.69rem;
  color: var(--ink-low);
}

.status-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 10px var(--emerald);
  animation: pulseState 2.2s ease-in-out infinite;
}

@keyframes pulseState {
  0%, 100% { opacity: 0.45; transform: scale(0.92); }
  50% { opacity: 1; transform: scale(1.15); }
}

@media (max-width: 440px) {
  .icon-grid,
  .focus-strip {
    grid-template-columns: 1fr;
  }
}
