/* Base - Matching gallery design */
:root {
  --bg0: #0b0f14;
  --bg1: #0f1620;
  --panel: rgba(255, 255, 255, .04);
  --panel-2: rgba(255, 255, 255, .06);
  --border: rgba(255, 255, 255, .10);
  --text: #e5e7eb;
  --muted: #a3aab8;
  --accent: #a855f7;
  --accent-2: #7c3aed;
  --card-radius: 18px;
  --maxw: 800px;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 800px at 15% 10%, rgba(168, 85, 247, .18), transparent 60%),
              radial-gradient(900px 600px at 85% 30%, rgba(124, 58, 237, .14), transparent 55%),
              linear-gradient(180deg, var(--bg0), var(--bg1));
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Particle Canvas */
#particles {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

/* Layout */
.wrap {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: min(var(--maxw), calc(100% - 40px));
  margin: 0 auto;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Navigation */
.nav {
  backdrop-filter: blur(10px);
  background: linear-gradient(180deg, rgba(11, 15, 20, .82), rgba(11, 15, 20, .55));
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  padding: 16px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  transition: transform 0.2s;
}

.brand:hover {
  transform: translateY(-2px);
}

.logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(168, 85, 247, .95), rgba(124, 58, 237, .75));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .10) inset,
              0 8px 20px rgba(168, 85, 247, .2);
}

.brand span {
  font-weight: 800;
  letter-spacing: .3px;
  font-size: 18px;
}

/* Hero Section */
.hero {
  padding: 60px 0 40px;
}

.profile-card {
  text-align: center;
  padding: 40px 32px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
}

.profile-avatar {
  width: 100px;
  height: 100px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 900;
  color: white;
  box-shadow: 0 0 0 4px rgba(168, 85, 247, .2),
              0 12px 30px rgba(168, 85, 247, .3);
  overflow: hidden;
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-card h1 {
  margin: 0 0 12px 0;
  font-size: 36px;
  font-weight: 900;
  letter-spacing: .4px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

/* Links Section */
.links-section {
  flex: 1;
  padding: 40px 0 60px;
}

.links-grid {
  display: grid;
  gap: 16px;
}

.link-card {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.3s;
  cursor: pointer;
}

.link-card:hover {
  transform: translateY(-4px);
  border-color: rgba(168, 85, 247, .4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .3);
  background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .04));
}

.link-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(168, 85, 247, .2), rgba(124, 58, 237, .2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  border: 1px solid rgba(168, 85, 247, .3);
}

.link-content {
  flex: 1;
  min-width: 0;
}

.link-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 4px 0;
  color: var(--text);
}

.link-description {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.link-arrow {
  font-size: 20px;
  color: var(--muted);
  transition: transform 0.2s;
}

.link-card:hover .link-arrow {
  transform: translateX(4px);
  color: var(--accent);
}

/* Footer */
.footer {
  padding: 30px 0;
  text-align: center;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, transparent, rgba(11, 15, 20, .5));
}

.footer p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

/* Responsive */
@media (max-width: 600px) {
  .hero {
    padding: 40px 0 30px;
  }

  .profile-card {
    padding: 32px 24px;
  }

  .profile-card h1 {
    font-size: 28px;
  }

  .profile-avatar {
    width: 80px;
    height: 80px;
    font-size: 28px;
  }

  .link-card {
    padding: 16px 20px;
  }

  .link-icon {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .brand span {
    font-size: 16px;
  }
}
