/* Swarup Saha — Personal card (about.me style) */

*, *::before, *::after { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: 'Computer Modern Serif', 'Latin Modern Roman', 'CMU Serif', Georgia, 'Times New Roman', serif;
  color: #333;
  background: #4A4A4A;
  background: linear-gradient(135deg, #4A4A4A 0%, #4A4A4A 30%, #7e7e7e 100%) fixed;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; margin: 0; padding: 0; }
h1, h2, p { margin: 0; }

/* Vertically centered stage */
.stage {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
}

.card {
  width: 100%;
  max-width: 640px;
  background: #fff;
  border-radius: 6px;
  padding: 0 20px 40px;
  text-align: center;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
}

/* Avatar */
.avatar-wrap {
  width: 130px;
  height: 130px;
  margin: -65px auto 20px;
}
.avatar {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow:
    inset 0 0 10px 0 rgba(0, 0, 0, 0.2),
    0 0 2px 0 rgba(0, 0, 0, 0.1);
}

/* Name + headline (LaTeX serif) */
.name {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #222;
  line-height: 1.2;
  margin: 24px 20px 8px;
  font-variant: small-caps;
}
.headline {
  font-size: 18px;
  font-weight: 700;
  color: #333;
  line-height: 1.3;
  margin: 0 20px;
  font-style: italic;
}
.headline .soft { font-weight: 400; font-style: italic; }

/* CTA button */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 420px;
  padding: 14px 30px;
  margin: 28px auto 0;
  border-radius: 5px;
  background: #4A4A4A;
  color: #fff;
  font-size: 18px;
  font-family: inherit;
  font-weight: 400;
  border: 1px solid #4A4A4A;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
  box-shadow: inset 0 0 0 100px rgba(255, 255, 255, 0);
}
.cta:hover {
  box-shadow: inset 0 0 0 100px rgba(255, 255, 255, 0.1);
}
.cta svg { flex-shrink: 0; }

/* Bio */
.bio {
  font-size: 17px;
  color: #333;
  margin: 28px 20px 0;
  font-style: italic;
}

/* Meta (work / education) */
.meta {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 28px 20px 0;
  font-size: 15px;
}
.meta-col {
  flex: 1;
  max-width: 280px;
  min-width: 0;
}
.meta-label {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 2px;
  color: #999;
  text-transform: uppercase;
  margin-bottom: 6px;
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
}
.meta-value {
  color: #333;
  font-size: 15px;
}

/* Grouped social sections */
.group {
  margin-top: 28px;
}
.group-label {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 3px;
  color: #b0b0b0;
  text-transform: uppercase;
  margin-bottom: 14px;
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  position: relative;
  display: inline-block;
  padding: 0 12px;
}
.group-label::before,
.group-label::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 28px;
  height: 1px;
  background: #e0e0e0;
}
.group-label::before { right: 100%; }
.group-label::after  { left: 100%; }

/* Social icons */
.socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin: 0 auto;
  max-width: 480px;
}
.socials li {
  width: 32px;
  height: 32px;
}
.socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  transition: opacity 0.15s ease, transform 0.15s ease;
  opacity: 0.75;
}
.socials a:hover {
  opacity: 1;
  transform: translateY(-2px);
}
.socials img,
.socials svg {
  width: 26px;
  height: 26px;
  display: block;
}
.socials svg { fill: #9a9a9a; }

/* Responsive */
@media (max-width: 520px) {
  .stage  { padding: 70px 15px; }
  .card   { padding: 0 15px 30px; }
  .name   { font-size: 26px; }
  .headline { font-size: 16px; }
  .meta   { flex-direction: column; align-items: center; gap: 20px; }
  .socials { gap: 14px; }
  .socials li, .socials a { width: 30px; height: 30px; }
  .socials img { width: 24px; height: 24px; }
}

/* Selection */
::selection {
  background: rgba(74, 74, 74, 0.25);
}
