/* ===========================
   STYLE V2 — rivansyah.com
   Minimalist Academic Card
   =========================== */

:root {
  --color-primary: #0f172a;
  --color-text: #1e293b;
  --color-text-muted: #64748b;
  --color-accent: #3b82f6;
  --color-accent-hover: #2563eb;
  --color-border: #e2e8f0;
  --color-bg: #f8fafc;
  --color-card: #ffffff;
  --radius: 1rem;
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 20px 50px -12px rgba(0,0,0,0.12);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Background Decoration ---------- */
body::before {
  content: '';
  position: fixed;
  top: -40%;
  right: -20%;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  bottom: -30%;
  left: -15%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ---------- Main Card ---------- */
.profile-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 1.5rem;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 520px;
  padding: 3rem 2.5rem;
  position: relative;
  z-index: 1;
  text-align: center;
}

/* ---------- Entrance Animation ---------- */
@keyframes cardEntrance {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.profile-card {
  animation: cardEntrance 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ---------- Avatar ---------- */
.avatar-wrapper {
  margin-bottom: 1.5rem;
}

.avatar {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--color-card);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15), var(--shadow);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.avatar:hover {
  transform: scale(1.06);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.25), 0 8px 25px -8px rgba(0,0,0,0.2);
}

/* ---------- Name & Title ---------- */
.profile-name {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.profile-degree {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.profile-affiliation {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 1.75rem;
}

.profile-affiliation strong {
  color: var(--color-text);
}

/* ---------- Divider ---------- */
.divider {
  height: 1px;
  background: var(--color-border);
  margin: 0 auto 1.75rem;
  width: 60%;
}

/* ---------- Research Interests ---------- */
.section-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin-bottom: 1.75rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.7rem;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 9999px;
  border: 1px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition);
}

.badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px -2px rgba(0,0,0,0.1);
}

.badge-blue   { background: #dbeafe; color: #1d4ed8; border-color: #bfdbfe; }
.badge-indigo { background: #e0e7ff; color: #4338ca; border-color: #c7d2fe; }
.badge-emerald{ background: #d1fae5; color: #047857; border-color: #a7f3d0; }
.badge-amber  { background: #fef3c7; color: #b45309; border-color: #fde68a; }
.badge-rose   { background: #ffe4e6; color: #be123c; border-color: #fecdd3; }
.badge-cyan   { background: #cffafe; color: #0e7490; border-color: #a5f3fc; }

/* ---------- Publication Buttons ---------- */
.pub-buttons {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  border-radius: 0.625rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

.btn-scholar {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}

.btn-scholar:hover {
  background: #1e293b;
  box-shadow: 0 4px 14px -3px rgba(15, 23, 42, 0.4);
  transform: translateY(-2px);
}

.btn-scopus {
  background: #ffffff;
  color: var(--color-primary);
  border-color: var(--color-border);
}

.btn-scopus:hover {
  background: var(--color-bg);
  border-color: #cbd5e1;
  box-shadow: 0 4px 14px -3px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 0.625rem;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  background: var(--color-card);
  text-decoration: none;
  transition: all var(--transition);
}

.social-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px -4px rgba(0,0,0,0.12);
}

.social-link:hover.sl-github       { color: #24292e; border-color: #24292e; background: #f6f8fa; }
.social-link:hover.sl-linkedin     { color: #0a66c2; border-color: #0a66c2; background: #e8f4fd; }
.social-link:hover.sl-scholar      { color: #4285f4; border-color: #4285f4; background: #e8f0fe; }
.social-link:hover.sl-scopus       { color: #eb5f07; border-color: #eb5f07; background: #fff3eb; }
.social-link:hover.sl-orcid        { color: #a6ce39; border-color: #a6ce39; background: #f5fae8; }
.social-link:hover.sl-researchgate { color: #00ccbb; border-color: #00ccbb; background: #e6faf8; }
.social-link:hover.sl-sinta        { color: #0077b6; border-color: #0077b6; background: #e0f2fe; }
.social-link:hover.sl-wos          { color: #5e2ced; border-color: #5e2ced; background: #f3effe; }
.social-link:hover.sl-email        { color: #ea4335; border-color: #ea4335; background: #fce8e6; }

.social-link svg {
  width: 19px;
  height: 19px;
}

/* ---------- Footer text ---------- */
.card-footer {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border);
}

.card-footer p {
  font-size: 0.7rem;
  color: #94a3b8;
}

/* ---------- Responsive ---------- */
@media (max-width: 480px) {
  body {
    padding: 1rem 0.75rem;
    align-items: flex-start;
    padding-top: 2rem;
  }
  .profile-card {
    padding: 2rem 1.5rem;
    border-radius: 1.25rem;
  }
  .avatar {
    width: 110px;
    height: 110px;
  }
  .profile-name {
    font-size: 1.4rem;
  }
  .pub-buttons {
    flex-direction: column;
    align-items: stretch;
  }
}
