:root {
  --bg: #05050a;
  --card: rgba(255, 255, 255, 0.06);
  --primary: #8a2be2;
  --accent: #a855f7;
  --text: #ffffff;
  --muted: #b8b8b8;
  --line: rgba(168, 85, 247, 0.28);
  --glow: 0 0 32px rgba(168, 85, 247, 0.42);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: radial-gradient(circle at 20% 0%, rgba(138, 43, 226, 0.24), transparent 32%), radial-gradient(circle at 90% 24%, rgba(168, 85, 247, 0.18), transparent 28%), var(--bg);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(168, 85, 247, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(168, 85, 247, 0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, black, transparent 78%);
}
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { color: inherit; }
.app-shell { width: min(100%, 980px); margin: 0 auto; padding: 18px 12px 48px; }
.profile-card, .glass-card, .posts-section {
  border: 1px solid var(--line);
  background: var(--card);
  backdrop-filter: blur(20px);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.profile-card { padding: 18px; border-radius: 28px; }
.profile-line { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 16px; }
.dp-ring {
  width: clamp(92px, 25vw, 148px);
  aspect-ratio: 1;
  padding: 4px;
  border-radius: 999px;
  background: conic-gradient(from 180deg, var(--primary), var(--accent), #ffffff, var(--primary));
  box-shadow: 0 0 36px rgba(168, 85, 247, 0.65);
}
.dp-ring img { width: 100%; height: 100%; display: block; border: 5px solid #090911; border-radius: inherit; object-fit: cover; }
h1 {
  margin: 0;
  font-size: clamp(2.1rem, 10vw, 5rem);
  line-height: 0.92;
  font-weight: 900;
  letter-spacing: 0;
  text-shadow: 0 0 28px rgba(168, 85, 247, 0.56);
}
.name-stack span {
  display: block;
  margin-bottom: 7px;
  color: var(--accent);
  font-size: clamp(0.76rem, 2.4vw, 1rem);
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(168, 85, 247, 0.72);
}
.bio { margin: 18px 0 0; display: grid; gap: 6px; color: var(--muted); line-height: 1.55; }
.role-boxes { margin-top: 14px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.role-boxes span {
  min-height: 44px;
  border: 1px solid rgba(168, 85, 247, 0.32);
  border-radius: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.065);
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 900;
  box-shadow: inset 0 0 20px rgba(168, 85, 247, 0.05);
}
.role-boxes i { color: var(--accent); text-shadow: 0 0 16px rgba(168, 85, 247, 0.72); }
.action-row { margin-top: 18px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.action-row button, .action-row a {
  min-height: 48px;
  border: 1px solid rgba(168, 85, 247, 0.34);
  border-radius: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 900;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.action-row button:hover, .action-row a:hover, .action-row button:active, .action-row a:active { transform: translateY(-2px); background: rgba(168, 85, 247, 0.2); box-shadow: var(--glow); }
.posts-section { margin-top: 16px; border-radius: 28px; overflow: hidden; }
.section-title { padding: 16px 16px 14px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; border-bottom: 1px solid rgba(168, 85, 247, 0.18); }
.section-title h2, .glass-card h2 { margin: 0; font-size: 1.34rem; }
.section-title span { color: var(--muted); font-size: 0.82rem; font-weight: 700; }
.post-grid { padding: 10px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.post-card {
  position: relative;
  min-width: 0;
  aspect-ratio: 1;
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  background: #0d0d0d;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.post-card img { width: 100%; height: 100%; display: block; object-fit: cover; filter: saturate(1.04) contrast(1.08); transition: transform 180ms ease, filter 180ms ease; }
.post-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(5, 5, 10, 0.72)); }
.post-card span {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  z-index: 1;
  padding: 6px 7px;
  border-radius: 999px;
  color: white;
  background: rgba(5, 5, 10, 0.62);
  backdrop-filter: blur(10px);
  font-size: 0.68rem;
  font-weight: 900;
  text-align: center;
}
.post-card:hover img, .post-card:active img { transform: scale(1.05); filter: saturate(1.28) contrast(1.12); }
.info-section { margin-top: 16px; }
.glass-card { padding: 18px; border-radius: 24px; }
.glass-card p { margin: 12px 0 0; color: var(--muted); line-height: 1.7; }
.chip-grid, .service-grid { margin-top: 14px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.chip-grid span, .service-grid span, .mini-list a {
  border: 1px solid rgba(168, 85, 247, 0.24);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  font-weight: 800;
}
.chip-grid span, .service-grid span { min-height: 46px; padding: 10px; display: inline-flex; align-items: center; gap: 8px; }
.mini-list { margin-top: 14px; display: grid; gap: 10px; }
.mini-list a { min-height: 52px; padding: 0 14px; display: flex; align-items: center; justify-content: space-between; }
.contact-options { margin-top: 14px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.contact-options a {
  min-height: 54px;
  border: 1px solid rgba(168, 85, 247, 0.28);
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: rgba(255, 255, 255, 0.055);
  font-weight: 900;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.contact-options a:hover, .contact-options a:active { transform: translateY(-2px); background: rgba(168, 85, 247, 0.18); box-shadow: var(--glow); }
.contact-options i { font-size: 1.2rem; }
.contact-form { margin-top: 14px; display: grid; gap: 10px; }
.contact-form input, .contact-form textarea { width: 100%; border: 1px solid rgba(168, 85, 247, 0.24); border-radius: 16px; color: var(--text); background: rgba(255, 255, 255, 0.055); outline: none; padding: 14px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--accent); box-shadow: var(--glow); }
.contact-form button { min-height: 50px; border: 1px solid rgba(168, 85, 247, 0.48); border-radius: 16px; color: white; background: linear-gradient(135deg, var(--primary), var(--accent)); cursor: pointer; font-weight: 900; box-shadow: 0 0 24px rgba(168, 85, 247, 0.36); }
.post-modal, .qr-modal { position: fixed; inset: 0; z-index: 50; padding: 18px; display: none; place-items: center; background: rgba(0, 0, 0, 0.72); backdrop-filter: blur(12px); }
.post-modal.is-open, .qr-modal.is-open { display: grid; }
.modal-card { width: min(520px, 100%); max-height: 88vh; overflow: auto; border: 1px solid var(--line); border-radius: 26px; background: #0d0d0d; box-shadow: 0 0 60px rgba(168, 85, 247, 0.35); }
.modal-card img { width: 100%; aspect-ratio: 1; display: block; object-fit: cover; }
.modal-card div { padding: 18px; }
.modal-card span { color: var(--accent); font-weight: 900; }
.modal-card h2 { margin: 8px 0; }
.modal-card p { margin: 0; color: var(--muted); line-height: 1.7; }
.modal-close { position: absolute; width: 42px; height: 42px; margin: 12px; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 999px; color: white; background: rgba(5, 5, 10, 0.72); cursor: pointer; }
.qr-card { position: relative; width: min(360px, 100%); padding: 22px; border: 1px solid var(--line); border-radius: 26px; background: rgba(13, 13, 13, 0.94); box-shadow: 0 0 60px rgba(168, 85, 247, 0.42); text-align: center; }
.qr-card h2 { margin: 4px 44px 8px; font-size: 1.7rem; text-shadow: 0 0 24px rgba(168, 85, 247, 0.72); }
.qr-card p { margin: 0 auto 16px; max-width: 280px; color: var(--muted); font-size: 0.82rem; line-height: 1.45; overflow-wrap: anywhere; }
.qr-card img { width: min(240px, 78vw); aspect-ratio: 1; padding: 12px; border-radius: 20px; background: white; box-shadow: var(--glow); }
.toast { position: fixed; left: 50%; bottom: 18px; z-index: 60; max-width: min(420px, calc(100% - 28px)); padding: 12px 15px; border: 1px solid var(--line); border-radius: 16px; color: white; background: rgba(13, 13, 13, 0.92); box-shadow: var(--glow); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: opacity 180ms ease, transform 180ms ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 720px) {
  .app-shell { padding-top: 34px; }
  .profile-card, .posts-section, .info-section { width: min(720px, 100%); margin-left: auto; margin-right: auto; }
  .profile-card { padding: 24px; }
  .action-row { gap: 12px; }
  .post-grid { gap: 10px; padding: 14px; }
}
@media (min-width: 1024px) {
  .app-shell { width: min(1120px, calc(100% - 48px)); display: grid; grid-template-columns: minmax(360px, 430px) minmax(0, 1fr); gap: 18px; align-items: start; }
  .profile-card { position: sticky; top: 24px; width: 100%; margin: 0; }
  .posts-section, .info-section { width: 100%; margin-top: 0; }
  .posts-section, #about { grid-column: 2; }
  .info-section { grid-column: 2; }
}
