:root {
  --brand-1: #5AA3C6;
  --brand-2: #387EA2;
  --brand-3: #164767;
  --ink: #0d1b2a;
  --muted: #607086;
  --bg: #ffffff;
  --bg-alt: #f6f9fc;
  --line: #e6edf3;
  --glass: rgba(255, 255, 255, 0.55);
  --radius: 16px;
  --shadow: 0 10px 30px rgba(22, 71, 103, 0.10), 0 4px 14px rgba(0, 0, 0, 0.05);
  --container: 680px;
  --container-lg: 920px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: Manrope, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 40px 20px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero .gradient {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(60% 50% at 10% 10%, rgba(90, 163, 198, 0.35), transparent 60%),
    radial-gradient(60% 50% at 90% 0%, rgba(56, 126, 162, 0.35), transparent 60%),
    linear-gradient(180deg, #f1f9ff 0%, #ffffff 60%);
  filter: saturate(110%);
}

.hero .grid {
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(#0000 31px, rgba(22, 71, 103, 0.06) 32px),
    linear-gradient(90deg, #0000 31px, rgba(22, 71, 103, 0.06) 32px);
  background-size: 32px 32px;
  opacity: 0.25;
  mix-blend-mode: multiply;
}

.hero .blob {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
  will-change: transform;
}

.hero .b1 {
  background: radial-gradient(circle at 30% 30%, #5AA3C6, #387EA2);
  top: 10%;
  left: -120px;
}

.hero .b2 {
  background: radial-gradient(circle at 60% 50%, #387EA2, #164767);
  bottom: -120px;
  right: -120px;
}

/* Main Card */
.card-main {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 28px;
  width: 100%;
  max-width: 520px;
  padding: 40px 32px;
  box-shadow: var(--shadow);
  text-align: center;
  animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Avatar */
.avatar-wrap {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto 20px;
}

.avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 8px 24px rgba(22, 71, 103, 0.2);
}

.status-dot {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  background: #10b981;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

/* Name & Title */
.name {
  font-size: 28px;
  font-weight: 900;
  color: var(--brand-3);
  margin: 0 0 8px;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.title {
  font-size: 18px;
  font-weight: 600;
  color: var(--brand-2);
  margin: 20 0 4px;
}

.position {
  font-size: 18px;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 24px;
}

.position strong {
  color: var(--ink);
  font-weight: 800;
}

/* Contact Grid */
.contact-grid {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s ease;
  text-align: left;
}

.contact-item:hover {
  background: #f8fbfe;
  border-color: var(--brand-2);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(22, 71, 103, 0.1);
}

.contact-item .icon {
  width: 20px;
  height: 20px;
  color: var(--brand-2);
  flex-shrink: 0;
}

.contact-item span {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Action Buttons */
.actions {
  display: grid;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  box-shadow: var(--shadow);
}

.btn svg {
  width: 20px;
  height: 20px;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand-2), var(--brand-3));
}

.btn-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(22, 71, 103, 0.25);
}

.btn-ghost {
  background: #fff;
  color: var(--brand-3);
  border-color: var(--line);
}

.btn-ghost:hover {
  background: #f8fbfe;
  border-color: var(--brand-2);
  transform: translateY(-2px);
}

/* Hide Save Contact button on desktop */
.btn-mobile-only {
  display: inline-flex;
}

/* Content Section */
.content {
  padding: 40px 0 60px;
  background: var(--bg);
}

/* Section Block */
.section-block {
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.section-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  background: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.section-header:hover {
  background: #f8fbfe;
}

.section-header-content {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.section-icon {
  width: 24px;
  height: 24px;
  color: var(--brand-2);
  flex-shrink: 0;
}

.section-title {
  font-size: 16px;
  font-weight: 900;
  color: var(--brand-3);
  margin: 0;
  letter-spacing: 0.5px;
  text-align: left;
}

.chevron {
  width: 20px;
  height: 20px;
  color: var(--muted);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.section-header[aria-expanded="true"] .chevron {
  transform: rotate(180deg);
}

.section-content {
  height: 0;
  overflow: hidden;
  opacity: 0;
  transition: height 350ms cubic-bezier(0.4, 0, 0.2, 1), opacity 300ms ease;
  will-change: height, opacity;
  border-top: 1px solid transparent;
}

.section-content.open {
  border-top-color: var(--line);
}

/* Timeline */
.timeline {
  padding: 28px 20px;
}

.timeline-item {
  position: relative;
  padding-left: 32px;
  padding-bottom: 24px;
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateX(0);
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 24px;
  bottom: -8px;
  width: 2px;
  background: linear-gradient(180deg, var(--brand-2), var(--line));
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-dot {
  position: absolute;
  left: 0;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--brand-1);
  z-index: 1;
}

.timeline-content {
  background: #f8fbfe;
  border-radius: 12px;
  padding: 12px 14px;
  border: 1px solid #e7f2f8;
}

.timeline-year {
  display: inline-block;
  font-size: 12px;
  font-weight: 900;
  color: var(--brand-2);
  background: rgba(90, 163, 198, 0.15);
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 6px;
}

.timeline-content p {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: #2a4761;
  font-weight: 600;
}

/* Patent List */
.patent-list {
  padding: 28px 20px;
}

.patent-item {
  display: flex;
  gap: 20px;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.patent-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.patent-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.patent-year {
  font-size: 18px;
  font-weight: 900;
  color: var(--brand-2);
  flex-shrink: 0;
  width: 50px;
}

.patent-content {
  flex: 1;
}

.patent-content h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--brand-3);
  margin: 0 0 8px;
  line-height: 1.3;
}

.patent-content p {
  margin: 6px 0;
  font-size: 14px;
  line-height: 1.5;
  color: #36516a;
}

.patent-meta {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

.patent-desc {
  font-weight: 600;
  color: #2a4761;
}

/* Reward List */
.reward-list {
  padding: 28px 20px;
}

.reward-item {
  display: flex;
  gap: 20px;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.reward-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.reward-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.reward-year {
  font-size: 18px;
  font-weight: 900;
  color: var(--brand-2);
  flex-shrink: 0;
  width: 50px;
}

.reward-content {
  flex: 1;
}

.reward-content h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--brand-3);
  margin: 0 0 10px;
  line-height: 1.3;
}

.reward-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.reward-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--brand-2);
  text-decoration: none;
  transition: all 0.2s ease;
  width: fit-content;
}

.reward-link:hover {
  color: var(--brand-3);
  gap: 12px;
}

.reward-link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.reward-sublist {
  margin: 8px 0 0;
  padding-left: 20px;
}

.reward-sublist li {
  font-size: 14px;
  line-height: 1.6;
  color: #36516a;
  font-weight: 600;
  margin-bottom: 6px;
}

/* Publication List */
.publication-list {
  padding: 28px 20px;
}

.publication-item {
  display: flex;
  gap: 20px;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.publication-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.publication-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.publication-year {
  font-size: 18px;
  font-weight: 900;
  color: var(--brand-2);
  flex-shrink: 0;
  width: 50px;
}

.publication-content {
  flex: 1;
}

.pub-authors {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0 0 8px;
  font-weight: 600;
}

.pub-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--brand-3);
  margin: 0 0 8px;
  line-height: 1.4;
}

.pub-journal {
  font-size: 14px;
  color: #36516a;
  margin: 6px 0;
  font-weight: 600;
  font-style: italic;
}

.pub-meta {
  font-size: 13px;
  color: var(--muted);
  margin: 6px 0;
  font-weight: 600;
}

.pub-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--brand-2);
  text-decoration: none;
  margin-top: 10px;
  transition: all 0.2s ease;
}

.pub-link:hover {
  color: var(--brand-3);
  gap: 12px;
}

.pub-link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Footer */
.footer {
  background: linear-gradient(180deg, #0d1b2a 0%, #162938 100%);
  padding: 32px 0;
  border-top: 1px solid #1a2b3d;
}

.footer-content {
  text-align: center;
}

.footer-text {
  font-size: 14px;
  color: #92a6b8;
  margin: 6px 0;
  font-weight: 600;
}

/* Desktop Optimizations */
@media (min-width: 769px) {
  .hero {
    padding: 60px 20px;
  }

  .card-main {
    max-width: 560px;
    padding: 48px 40px;
  }

  .btn-mobile-only {
    display: none !important;
  }

  .actions {
    grid-template-columns: 1fr;
  }

  .container {
    max-width: var(--container-lg);
  }

  .avatar-wrap {
    width: 160px;
    height: 160px;
    margin-bottom: 24px;
  }

  .name {
    font-size: 32px;
  }

  .title {
    font-size: 16px;
  }

  .position {
    font-size: 17px;
  }

  .section-title {
    font-size: 17px;
  }

  .patent-list,
  .reward-list,
  .publication-list,
  .timeline {
    padding: 32px 28px;
  }
}

/* Tablet & Mobile */
@media (max-width: 768px) {
  .hero {
    padding: 30px 16px;
  }

  .card-main {
    max-width: 100%;
    padding: 32px 24px;
    border-radius: 24px;
  }

  .avatar-wrap {
    width: 130px;
    height: 130px;
  }

  .name {
    font-size: 26px;
  }

  .title {
    font-size: 14px;
  }

  .position {
    font-size: 15px;
    margin-bottom: 20px;
  }

  .contact-grid {
    gap: 10px;
    margin-bottom: 16px;
  }

  .contact-item {
    padding: 12px 14px;
    font-size: 13.5px;
  }

  .actions {
    gap: 10px;
  }

  .btn {
    padding: 13px 18px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 10px 12px;
    min-height: 100vh;
  }

  .card-main {
    padding: 58px 60px;
    border-radius: 20px;
  }

  .avatar-wrap {
    width: 140px;
    height: 140px;
    margin-bottom: 16px;
  }

  .name {
    font-size: 24px;
  }

  .title {
    font-size: 14px;
  }

  .position {
    font-size: 16px;
    margin-bottom: 18px;
  }

  .contact-item {
    padding: 11px 12px;
    font-size: 13px;
  }

  .contact-item .icon {
    width: 18px;
    height: 18px;
  }

  .btn {
    padding: 12px 16px;
    font-size: 13px;
  }

  .section-header {
    padding: 16px;
  }

  .section-title {
    font-size: 14px;
  }

  .section-icon {
    width: 20px;
    height: 20px;
  }

  .timeline {
    padding: 20px 16px;
  }

  .timeline-item {
    padding-left: 28px;
  }

  .timeline-content {
    padding: 10px 12px;
  }

  .timeline-content p {
    font-size: 13px;
  }

  .patent-list,
  .reward-list,
  .publication-list {
    padding: 20px 16px;
  }

  .patent-item,
  .reward-item,
  .publication-item {
    flex-direction: column;
    gap: 12px;
  }

  .patent-year,
  .reward-year,
  .publication-year {
    width: auto;
    font-size: 16px;
  }

  .patent-content h3,
  .reward-content h3 {
    font-size: 15px;
  }

  .pub-title {
    font-size: 14px;
  }

  .hero .blob {
    width: 280px;
    height: 280px;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* Print Styles */
@media print {
  .hero-bg,
  .blob {
    display: none;
  }

  .card-main {
    box-shadow: none;
    border: 2px solid var(--line);
  }

  .btn {
    display: none;
  }

  .section-content {
    height: auto !important;
    opacity: 1 !important;
  }

  .timeline-item,
  .patent-item,
  .reward-item,
  .publication-item {
    opacity: 1 !important;
    transform: none !important;
    page-break-inside: avoid;
  }
}
