/*
  Dark Blue Profile Card Theme
  - Drop your background image at assets/background.jpg
  - Drop your profile image at assets/profile.jpg
*/

:root {
  /* Core palette */
  --bg-0: #0a1220; /* deepest */
  --bg-1: #0f1b2e; /* base */
  --bg-2: #13243d; /* raised */
  --primary: #2f5fd7; /* blue */
  --primary-2: #00b3ff; /* cyan accent */
  --text: #e6edf7; /* high contrast */
  --muted: #94a3b8; /* slate */

  /* Effects */
  --card-blur: 14px;
  --ring: 0 0 0 3px color-mix(in oklab, var(--primary) 25%, transparent);
  --shadow-1: 0 10px 20px rgba(0,0,0,0.35), 0 6px 12px rgba(0,0,0,0.3);
  --shadow-2: 0 20px 40px rgba(0,0,0,0.45);

  /* Background image (replace the file below) */
  --bg-image: url('../assets/background.jpg');
}

/* Base reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: radial-gradient(1200px 600px at 20% 10%, color-mix(in oklab, var(--primary) 12%, transparent), transparent 70%),
              radial-gradient(1000px 500px at 90% 80%, color-mix(in oklab, var(--primary-2) 12%, transparent), transparent 70%),
              linear-gradient(180deg, var(--bg-1), var(--bg-0));
  min-height: 100dvh;
  overflow-x: hidden;
}

/* Background image overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: var(--bg-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.25; /* keep the UI dark and readable */
  filter: saturate(0.8) brightness(0.6);
  pointer-events: none;
  z-index: -2;
}

/* Subtle noise overlay for texture (CSS-only) */
body::after {
  content: "";
  position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background: repeating-linear-gradient(
    0deg,
    rgba(255,255,255,0.02) 0px,
    rgba(255,255,255,0.02) 1px,
    transparent 1px,
    transparent 2px
  );
  mix-blend-mode: overlay;
}

.site {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.card {
  width: min(520px, 92vw);
  background: color-mix(in oklab, var(--bg-2) 72%, rgba(255,255,255,0.02));
  border: 1px solid color-mix(in oklab, var(--primary) 18%, rgba(255,255,255,0.08));
  box-shadow: var(--shadow-1);
  backdrop-filter: blur(var(--card-blur)) saturate(1.05);
  -webkit-backdrop-filter: blur(var(--card-blur)) saturate(1.05);
  border-radius: 20px;
  padding: 28px 28px 24px;
  text-align: center;
}

.avatar {
  width: 128px; height: 128px;
  margin: -60px auto 16px auto;
  border-radius: 50%;
  position: relative;
  background:
    conic-gradient(from 220deg, color-mix(in oklab, var(--primary) 65%, transparent), color-mix(in oklab, var(--primary-2) 45%, transparent));
  padding: 3px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06) inset, var(--shadow-2);
}

.avatar img {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.08);
  background: #0b1324;
}

.title {
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.2rem);
  line-height: 1.1;
  margin: 8px 0 6px;
  letter-spacing: 0.2px;
}

.tagline {
  margin: 0 auto 22px;
  color: var(--muted);
  max-width: 38ch;
}

.actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.btn {
  --btn-bg: linear-gradient(135deg, color-mix(in oklab, var(--primary) 80%, #0a1220) 0%, color-mix(in oklab, var(--primary-2) 85%, #0a1220) 100%);
  --btn-border: color-mix(in oklab, var(--primary) 35%, rgba(255,255,255,0.12));
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid var(--btn-border);
  background: var(--btn-bg);
  color: white; text-decoration: none; font-weight: 600;
  box-shadow: 0 6px 18px rgba(0, 179, 255, 0.18);
  transition: transform .15s ease, box-shadow .15s ease, filter .2s ease, background .2s ease;
  width: min(280px, 88%);
  justify-content: center;
}

.btn:hover { transform: translateY(-1px); filter: saturate(1.05) brightness(1.04); }
.btn:active { transform: translateY(0); filter: brightness(0.98); }
.btn:focus-visible { outline: none; box-shadow: var(--ring), 0 0 0 1px rgba(255,255,255,0.12) inset; }

.btn .icon { display: inline-flex; }

.btn-instagram { --btn-bg: linear-gradient(135deg, #2f5fd7 0%, #00b3ff 100%); }

.site-footer {
  margin-top: 18px;
  color: color-mix(in oklab, var(--muted) 82%, white 0%);
  text-align: center;
}

/* Small screens adjustments */
@media (max-width: 480px) {
  .card { padding: 22px 18px 18px; }
  .avatar { width: 112px; height: 112px; margin-top: -50px; }
}
