/* ================================
   Theme variables
================================ */
:root{
  --bg: #0b0b10;
  --card: rgba(255,255,255,0.06);
  --border: rgba(255,255,255,0.12);
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.68);

  --primary: #ff4fd8;
  --primary-2: #7c4dff;

  --radius: 22px;
  --shadow: 0 20px 60px rgba(0,0,0,0.45);
}

/* ================================
   Reset / base
================================ */
*{
  box-sizing:border-box;
}

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

body{
  margin:0;
  color:var(--text);
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Helvetica,
    Arial,
    "Apple Color Emoji",
    "Segoe UI Emoji";

  font-size: clamp(15px, 1.6vw, 16.5px);
  line-height: 1.6;

  /* Infinite dark background */
  background-color: var(--bg);

  /* Decorative fade at the top only */
  background-image:
    radial-gradient(
      1200px 600px at 50% -10%,
      rgba(255,79,216,0.25),
      transparent 60%
    ),
    radial-gradient(
      1000px 600px at 80% 0%,
      rgba(124,77,255,0.22),
      transparent 55%
    );

  background-repeat: no-repeat;
}

/* ================================
   Page layout
================================ */
.page{
  min-height:100vh;
  display:flex;
  align-items:flex-start;
  justify-content:center;
  padding: 24px;
  padding-top: max(24px, env(safe-area-inset-top));
  padding-bottom: max(24px, env(safe-area-inset-bottom));
}

.card{
  width: min(520px, 100%);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  backdrop-filter: blur(10px);
}

/* ================================
   Header / hero
================================ */
.header{
  text-align:center;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap: 12px;
}

.avatar{
  width: 140px;
  height: 140px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

.title{
  margin: 6px 0 0;
  font-size: clamp(22px, 3.2vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.tagline{
  margin: 0;
  color: var(--muted);
  font-size: 0.98em;
  max-width: 42ch;
}

/* ================================
   Shared sections (About / Links / Contact)
================================ */
.section{
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.section-title{
  margin: 0 0 12px;
  font-size: clamp(18px, 2.6vw, 22px);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
}

.section-title::after{
  content:"";
  display:block;
  width: 42px;
  height: 3px;
  margin-top: 6px;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    var(--primary),
    var(--primary-2)
  );
}

.section-body{
  margin-top: 10px;
}

/* Rich text (About / Contact) */
.richtext{
  color: var(--text);
  opacity: 0.95;
  line-height: 1.65;
}

.richtext p{
  margin: 0 0 10px;
}

.richtext p:last-child{
  margin-bottom: 0;
}

/* ================================
   Links / buttons
================================ */
.links{
  display:flex;
  flex-direction:column;
  gap: 12px;
}

.btn{
  display:flex;
  align-items:center;
  gap: 0;

  text-decoration:none;
  color: var(--text);

  padding: 14px 16px;
  border-radius: 14px;

  border: 1px solid rgba(255,79,216,0.35);
  background: linear-gradient(
    135deg,
    rgba(255,79,216,0.30),
    rgba(124,77,255,0.22)
  );

  overflow:hidden;

  transition:
    transform 120ms ease,
    background 120ms ease,
    box-shadow 120ms ease;
}

.btn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,0.08);
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

.btn:active{
  transform: translateY(0);
}

.btn:focus-visible{
  outline: 3px solid rgba(255,79,216,0.45);
  outline-offset: 2px;
}

/* Icon slot */
.icon-slot{
  width: 72px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex: 0 0 auto;
}

.icon{
  max-height: 32px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display:block;
}

/* Centered label */
.label{
  flex: 1;
  text-align:center;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding-right: 72px; /* balances icon-slot */
}

/* ================================
   Footer
================================ */
.footer{
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  text-align:center;
}

.footer p{
  margin: 0 0 6px;
}

.footer p:last-child{
  margin-bottom: 0;
}

.muted{
  color: var(--muted);
}
