/* ===== Easy customization: change these first ===== */
:root {
  --bg-image: url("bg.jpg");          /* your background image file */
  --overlay: rgba(10, 12, 18, 0.35);  /* dark tint over the image (raise last number for more contrast) */

  --glass: rgba(190, 195, 200, 0.16); /* panel color: foggy grey */
  --glass-hover: rgba(210, 215, 220, 0.26);
  --glass-border: rgba(255, 255, 255, 0.28);
  --blur: 16px;                       /* higher = foggier */
  --radius: 18px;

  --text: #ffffff;
  --text-soft: rgba(255, 255, 255, 0.72);
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
}

/* ===== Base ===== */
* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {
  font-family: var(--font);
  color: var(--text);
  display: flex;
  justify-content: center;
  padding: 48px 16px;
}

/* Fixed full-screen background (stays put while you scroll, works on mobile) */
.bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: var(--bg-image) center / cover no-repeat;
  background-color: #2b2f38; /* fallback if image is missing */
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--overlay);
}

/* ===== Layout ===== */
.card {
  width: min(420px, 100%);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.profile { text-align: center; }

.avatar {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--glass-border);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  margin-bottom: 12px;
}

h1 {
  margin: 0;
  font-size: 1.8rem;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.tagline {
  margin: 6px 0 0;
  color: var(--text-soft);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

/* ===== Glass link panels ===== */
.links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.link {
  --accent: #ffffff; /* overridden per link in index.html */
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  color: var(--text);
  text-decoration: none;
  background: var(--glass);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(120%);
  backdrop-filter: blur(var(--blur)) saturate(120%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25),
              inset 0 1px 0 rgba(255, 255, 255, 0.25);
  overflow: hidden;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

/* soft accent glow in the corner */
.link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0% 50%, var(--accent), transparent 60%);
  opacity: 0.18;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.link:hover,
.link:focus-visible {
  transform: translateY(-3px);
  background: var(--glass-hover);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35),
              0 0 0 1px var(--accent),
              inset 0 1px 0 rgba(255, 255, 255, 0.3);
  outline: none;
}

.link:hover::before { opacity: 0.38; }

.badge {
  position: relative;
  flex: none;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.text {
  position: relative;
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.text strong { font-size: 1.05rem; }
.text small { color: var(--text-soft); font-size: 0.82rem; }

footer {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-soft);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

/* Fallback for browsers without backdrop-filter */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .link { background: rgba(60, 64, 72, 0.75); }
}

@media (prefers-reduced-motion: reduce) {
  .link { transition: none; }
}
