/* ============================================
   Reset & Base
   ============================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  color: #374151;
  background: #f5f0e8;
  line-height: 1.65;
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: #a0845c;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #876e48;
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ============================================
   Background (subtle blobs for glass effect)
   ============================================ */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 15% 15%, rgba(222, 210, 190, 0.35) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 85%, rgba(210, 195, 170, 0.25) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(240, 228, 210, 0.3) 0%, transparent 60%),
    #f5f0e8;
}

.bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  animation: blob-drift 30s ease-in-out infinite;
}

.bg-blob-1 {
  width: 500px;
  height: 500px;
  background: rgba(222, 210, 190, 0.25);
  top: -150px;
  left: -100px;
}

.bg-blob-2 {
  width: 400px;
  height: 400px;
  background: rgba(210, 195, 170, 0.2);
  bottom: -100px;
  right: -100px;
  animation-delay: -15s;
}

.bg-blob-3 {
  width: 300px;
  height: 300px;
  background: rgba(235, 222, 200, 0.2);
  top: 40%;
  right: 20%;
  animation-delay: -8s;
}

@keyframes blob-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 15px) scale(0.95); }
}

/* ============================================
   Layout
   ============================================ */
.layout {
  display: flex;
  gap: 24px;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
  height: 100vh;
  align-items: stretch;
}

/* ============================================
   Card (light glassmorphism)
   ============================================ */
.card {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 16px;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.04),
    0 1px 2px rgba(0, 0, 0, 0.03);
}

/* ============================================
   Sidebar
   ============================================ */
.sidebar {
  width: 240px;
  flex-shrink: 0;
  padding: 28px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.avatar-wrap {
  width: 96px;
  height: 96px;
  margin: 0 auto 16px;
  border-radius: 14px;
  overflow: hidden;
  border: 3px solid rgba(160, 132, 92, 0.2);
  flex-shrink: 0;
}

.avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #eee;
}

.name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.email-text {
  font-size: 0.78rem;
  color: #6b7280;
  display: block;
  margin-bottom: 10px;
  transition: color 0.2s;
}

.email-text:hover {
  color: #a0845c;
}

.badge {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(160, 132, 92, 0.08);
  color: #a0845c;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.sep {
  height: 1px;
  background: rgba(0, 0, 0, 0.06);
  margin: 18px 0;
  flex-shrink: 0;
}

/* Side Navigation */
.side-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #9ca3af;
  text-decoration: none;
  transition: all 0.2s;
  border-left: 2px solid transparent;
}

.nav-btn i {
  width: 18px;
  text-align: center;
  font-size: 0.85rem;
}

.nav-btn:hover {
  color: #374151;
  background: rgba(0, 0, 0, 0.03);
}

.nav-btn.active {
  color: #a0845c;
  background: rgba(160, 132, 92, 0.07);
  border-left-color: #a0845c;
  font-weight: 600;
}

/* Info list */
.info-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.info-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  font-size: 0.78rem;
  color: #6b7280;
}

.info-list li i {
  width: 16px;
  text-align: center;
  color: #9ca3af;
  font-size: 0.72rem;
}

.info-list li a {
  color: #6b7280;
}

.info-list li a:hover {
  color: #a0845c;
}

/* Social row */
.social-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: auto;
}

.social-row a {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-size: 1.3rem;
  transition: all 0.2s;
}

.social-row a:hover {
  color: #a0845c;
  background: rgba(160, 132, 92, 0.07);
  transform: translateY(-1px);
}

/* ============================================
   Main Content
   ============================================ */
.main {
  flex: 1;
  overflow-y: auto;
  padding: 32px 36px;
  min-width: 0;
}

.main::-webkit-scrollbar {
  width: 5px;
}

.main::-webkit-scrollbar-track {
  background: transparent;
}

.main::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.08);
  border-radius: 3px;
}

.main::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.15);
}

/* Sections */
.section {
  scroll-margin-top: 16px;
}

.section-divider {
  height: 1px;
  background: rgba(0, 0, 0, 0.06);
  margin: 32px 0;
}

/* ============================================
   Section Title
   ============================================ */
.section-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
  padding-bottom: 10px;
  border-bottom: 2px solid #a0845c;
  display: inline-block;
}

/* ============================================
   About
   ============================================ */
.about-body p {
  margin-bottom: 12px;
  font-size: 0.95rem;
  line-height: 1.75;
  color: #4b5563;
}

.about-body strong {
  color: #111827;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0;
}

.tags li {
  padding: 5px 16px;
  background: rgba(160, 132, 92, 0.07);
  border: 1px solid rgba(160, 132, 92, 0.15);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #a0845c;
  transition: all 0.2s;
}

.tags li:hover {
  background: rgba(160, 132, 92, 0.14);
  transform: translateY(-1px);
}

/* ============================================
   Experience
   ============================================ */
.exp-category {
  font-size: 0.95rem;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.exp-category i {
  color: #a0845c;
  font-size: 0.88rem;
}

.exp-category:not(:first-of-type) {
  margin-top: 24px;
}

.exp-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 4px;
}

.exp-item {
  display: flex;
  gap: 16px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 10px;
  transition: all 0.2s;
}

.exp-item:hover {
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.exp-time {
  flex-shrink: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: #a0845c;
  min-width: 130px;
  padding-top: 2px;
}

.exp-detail h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 2px;
}

.exp-role {
  font-size: 0.88rem;
  color: #6b7280;
  margin-bottom: 2px;
}

.exp-desc {
  font-size: 0.85rem;
  color: #9ca3af;
}

/* ============================================
   Research / Publications
   ============================================ */
.section-desc {
  font-size: 0.95rem;
  color: #4b5563;
  margin-bottom: 24px;
  line-height: 1.7;
}

.research-area {
  font-size: 0.95rem;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 12px;
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.research-area:first-of-type {
  margin-top: 0;
}

.research-area i {
  color: #a0845c;
  font-size: 0.88rem;
}

.pub-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pub {
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-left: 3px solid transparent;
  border-radius: 10px;
  transition: all 0.2s;
}

.pub:hover {
  background: rgba(255, 255, 255, 0.8);
  border-left-color: #a0845c;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.pub-venue {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(160, 132, 92, 0.1);
  color: #a0845c;
  border-radius: 50px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.pub-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 4px;
  line-height: 1.4;
}

.pub-authors {
  font-size: 0.78rem;
  color: #9ca3af;
  margin-bottom: 8px;
}

.pub-authors strong {
  color: #4b5563;
}

.pub-links {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.pub-links a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 500;
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #9ca3af;
  transition: all 0.2s;
}

.pub-links a:hover {
  background: rgba(160, 132, 92, 0.07);
  color: #a0845c;
  border-color: rgba(160, 132, 92, 0.2);
}

/* ============================================
   Awards
   ============================================ */
.awards-list li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  line-height: 1.4;
}

.awards-list li:first-child {
  padding-top: 0;
}

.awards-list li:last-child {
  border-bottom: none;
}

.award-year {
  flex-shrink: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: #a0845c;
  min-width: 70px;
}

.awards-list h3 {
  font-size: 0.92rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 1px;
}

.awards-list p {
  font-size: 0.84rem;
  color: #9ca3af;
  line-height: 1.35;
}

/* ============================================
   Service
   ============================================ */
.service-list li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  line-height: 1.4;
  font-size: 0.92rem;
  color: #1f2937;
}

.service-list li:first-child {
  padding-top: 0;
}

.service-list li:last-child {
  border-bottom: none;
}

.service-label {
  flex-shrink: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: #1f2937;
  min-width: 200px;
}

/* ============================================
   Misc
   ============================================ */
.misc-body p {
  font-size: 0.95rem;
  color: #4b5563;
  margin-bottom: 12px;
  line-height: 1.7;
}

.misc-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.misc-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 10px;
  font-size: 0.92rem;
  color: #4b5563;
  line-height: 1.5;
  transition: all 0.2s;
}

.misc-item:hover {
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.misc-item i {
  color: #a0845c;
  font-size: 0.95rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.facts li i {
  color: #a0845c;
  font-size: 0.8rem;
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 860px) {
  .layout {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
    padding: 16px;
  }

  .sidebar {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
  }

  .avatar-wrap {
    width: 64px;
    height: 64px;
    margin: 0;
  }

  .name {
    margin-bottom: 4px;
  }

  .sep {
    display: none;
  }

  .side-nav {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    width: 100%;
  }

  .nav-btn {
    border-left: none;
    border-bottom: 2px solid transparent;
    padding: 6px 12px;
    font-size: 0.75rem;
  }

  .nav-btn.active {
    border-left-color: transparent;
    border-bottom-color: #a0845c;
  }

  .info-list {
    flex-direction: row;
    gap: 16px;
    margin-bottom: 8px;
  }

  .main {
    max-height: none;
    overflow-y: visible;
  }

  .service-grid,
  .facts {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  .layout {
    padding: 10px;
    gap: 12px;
  }

  .sidebar {
    flex-direction: column;
    padding: 20px 16px;
  }

  .avatar-wrap {
    margin: 0 auto;
  }

  .info-list {
    flex-direction: column;
    gap: 8px;
  }

  .side-nav {
    flex-direction: column;
  }

  .nav-btn {
    border-bottom: none;
    border-left: 2px solid transparent;
  }

  .nav-btn.active {
    border-bottom-color: transparent;
    border-left-color: #a0845c;
  }

  .main {
    padding: 24px 20px;
  }
}
