/* =========================================================
   Dr. Daehan Kwak – Academic Profile
   Design System: Material-inspired, Kean University palette
   ========================================================= */

/* --- Design Tokens --- */
:root {
  /* Kean University Blue palette */
  --kean-900: #0a1929;
  --kean-800: #0d2137;
  --kean-700: #14325a;
  --kean-600: #1a4480;
  --kean-500: #1e5399;
  --kean-400: #2563ab;
  --kean-300: #4a86c8;
  --kean-200: #8ab4e0;
  --kean-100: #c2d9f0;
  --kean-50:  #eaf2fb;

  /* Neutrals */
  --gray-900: #1a1a2e;
  --gray-800: #2d2d44;
  --gray-700: #3d3d56;
  --gray-600: #555573;
  --gray-500: #6e6e8a;
  --gray-400: #9494ab;
  --gray-300: #b8b8cc;
  --gray-200: #d6d6e3;
  --gray-100: #ebebf2;
  --gray-50:  #f5f5f9;

  /* Accent */
  --accent: #c0392b;
  --accent-light: #e74c3c;
  --success: #27ae60;
  --warning: #f39c12;

  /* Surface */
  --surface-primary: #ffffff;
  --surface-secondary: #f8f9fc;
  --surface-elevated: #ffffff;

  /* Text */
  --text-primary: #1a1a2e;
  --text-secondary: #555573;
  --text-tertiary: #9494ab;
  --text-on-dark: #ffffff;
  --text-on-dark-secondary: rgba(255, 255, 255, 0.75);

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;

  /* Elevation */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.04), 0 2px 4px rgba(0,0,0,0.03);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.06), 0 4px 10px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 40px rgba(0,0,0,0.08), 0 8px 16px rgba(0,0,0,0.04);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Container */
  --container-max: 1100px;
  --container-narrow: 800px;

  /* Transition */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 150ms var(--ease-out);
  --transition-normal: 250ms var(--ease-out);
  --transition-slow: 400ms var(--ease-out);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--surface-secondary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: var(--kean-500);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--kean-700);
}

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

ul, ol {
  list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
}

h1 { font-size: 2.75rem; letter-spacing: -0.02em; }
h2 { font-size: 1.875rem; letter-spacing: -0.015em; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; font-family: var(--font-body); font-weight: 600; }

p {
  margin-bottom: 1em;
  color: var(--text-secondary);
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

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

/* --- Sidebar & Main Layout (Light Theme) --- */
.sidebar {
  width: 270px;
  height: 100vh;
  height: 100dvh;
  position: fixed;
  top: 0;
  left: 0;
  background: #ffffff;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  border-right: 1px solid var(--gray-200);
  box-shadow: 2px 0 12px rgba(0, 0, 0, 0.03);
  transition: transform var(--transition-normal);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.sidebar__profile {
  padding: 32px 20px 20px;
  text-align: center;
  border-bottom: 1px solid var(--gray-100);
}

.sidebar__photo-wrapper {
  width: 96px;
  height: 96px;
  margin: 0 auto 14px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, var(--kean-200), var(--kean-500));
}

.sidebar__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.sidebar__name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--kean-900);
  margin-bottom: 4px;
}

.sidebar__role {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 4px;
}

.sidebar__dept {
  font-size: 0.75rem;
  color: var(--kean-600);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.sidebar__profile .sidebar__social {
  margin-top: 16px;
}

.sidebar__nav {
  position: relative;
  flex: 1;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar__indicator {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 0;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--kean-600);
  box-shadow: 0 2px 8px rgba(26, 68, 128, 0.25);
  transform: translateY(16px);
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1), height 0.38s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 0;
}

.sidebar__link {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  color: var(--gray-700);
  font-weight: 500;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  background: transparent;
  transition: color 0.22s ease, background-color 0.22s ease, font-weight 0.22s ease;
  text-decoration: none;
}

.sidebar__link:hover {
  color: var(--kean-700);
  background: var(--kean-50);
}

.sidebar__link.active,
.sidebar__link.active:hover {
  color: #ffffff;
  background: transparent;
  font-weight: 600;
}

.sidebar__icon {
  font-size: 0.95rem;
  width: 20px;
  display: inline-flex;
  justify-content: center;
}

.sidebar__social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.sidebar__social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--kean-50);
  color: var(--kean-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  border: 1px solid var(--kean-100);
}

.sidebar__social a:hover {
  background: var(--kean-600);
  color: #ffffff;
  border-color: var(--kean-600);
  transform: translateY(-2px);
}

/* Main Wrapper */
.main-wrapper {
  margin-left: 270px;
  min-height: 100vh;
  transition: margin-left var(--transition-normal);
}

/* Mobile Header */
.mobile-header {
  display: none;
}

@media (max-width: 991px) {
  body.nav-open {
    overflow: hidden;
  }

  .mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: calc(60px + env(safe-area-inset-top));
    background: #ffffff;
    color: var(--kean-900);
    padding: env(safe-area-inset-top) 16px 0;
    z-index: 1100;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  }

  .mobile-header__brand {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--kean-900);
  }

  .mobile-header__toggle {
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    color: var(--kean-900);
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-header__bars {
    position: relative;
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
  }

  .mobile-header__bars::before,
  .mobile-header__bars::after {
    content: '';
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    transition: transform 0.22s ease, top 0.22s ease;
  }

  .mobile-header__bars::before { top: -6px; }
  .mobile-header__bars::after { top: 6px; }

  body.nav-open .mobile-header__bars {
    background: transparent;
  }

  body.nav-open .mobile-header__bars::before {
    top: 0;
    transform: rotate(45deg);
  }

  body.nav-open .mobile-header__bars::after {
    top: 0;
    transform: rotate(-45deg);
  }

  .sidebar {
    top: calc(60px + env(safe-area-inset-top));
    height: calc(100dvh - 60px - env(safe-area-inset-top));
    width: min(280px, 78vw);
    transform: translateX(-100%);
    z-index: 1090;
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 8px 0 28px rgba(10, 25, 41, 0.16);
    overscroll-behavior: contain;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar__profile {
    padding: 18px 16px 14px;
  }

  .sidebar__name {
    display: none;
  }

  .sidebar__photo-wrapper {
    width: 72px;
    height: 72px;
    margin-bottom: 10px;
  }

  .sidebar__nav {
    padding: 8px 10px 24px;
  }

  .sidebar__indicator {
    left: 10px;
    right: 10px;
  }

  .sidebar__link {
    padding: 11px 12px;
  }

  .sidebar-overlay {
    display: none;
    position: fixed;
    top: calc(60px + env(safe-area-inset-top));
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(10, 25, 41, 0.58);
    z-index: 1080;
  }

  .sidebar-overlay.active {
    display: block;
  }

  .main-wrapper {
    margin-left: 0;
    padding-top: calc(60px + env(safe-area-inset-top));
  }
}

/* --- Hero Section --- */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--kean-900) 0%, var(--kean-700) 50%, var(--kean-600) 100%);
  padding: 70px 0 60px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255,255,255,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(37,99,171,0.15) 0%, transparent 60%);
  pointer-events: none;
}

/* Subtle geometric pattern */
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(30deg, rgba(255,255,255,0.02) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,0.02) 87.5%),
    linear-gradient(150deg, rgba(255,255,255,0.02) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,0.02) 87.5%),
    linear-gradient(30deg, rgba(255,255,255,0.02) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,0.02) 87.5%),
    linear-gradient(150deg, rgba(255,255,255,0.02) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,0.02) 87.5%);
  background-size: 80px 140px;
  background-position: 0 0, 0 0, 40px 70px, 40px 70px;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: var(--space-3xl);
}

.hero__photo-wrapper {
  flex-shrink: 0;
}

.hero__photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.hero__text {
  color: var(--text-on-dark);
}

.hero__name {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--space-sm);
  letter-spacing: -0.02em;
}

.hero__title {
  font-size: 1.15rem;
  color: var(--text-on-dark-secondary);
  margin-bottom: var(--space-lg);
  font-weight: 400;
  line-height: 1.6;
}

.hero__title-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.hero__title-link:hover {
  color: #ffffff;
  border-bottom-color: #ffffff;
}

.hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.hero__tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 100px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.hero__actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero__btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-fast);
  letter-spacing: 0.02em;
}

.hero__btn--primary {
  background: #fff;
  color: var(--kean-700);
}

.hero__btn--primary:hover {
  background: var(--gray-100);
  color: var(--kean-800);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.hero__btn--secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.hero__btn--secondary:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  transform: translateY(-1px);
}

/* --- Stats Bar --- */
.stats-bar {
  position: relative;
  z-index: 2;
  margin-top: -40px;
  margin-bottom: var(--space-3xl);
}

.stats-bar__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.stat-card {
  background: var(--surface-primary);
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
  transition: background var(--transition-fast);
}

.stat-card:hover {
  background: var(--kean-50);
}

.stat-card__number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--kean-600);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.stat-card__label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* --- Section --- */
.section {
  padding: var(--space-4xl) 0;
}

.section:nth-child(even) {
  background: var(--surface-primary);
}

.section__header {
  margin-bottom: var(--space-2xl);
}

.section__label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--kean-500);
  margin-bottom: var(--space-sm);
}

.section__label::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--kean-500);
  border-radius: 1px;
}

.section__title {
  font-size: 2rem;
  margin-bottom: var(--space-md);
}

.section__subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 680px;
  line-height: 1.7;
}

/* --- Bio Section --- */
.bio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
}

.bio-text p {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.2em;
}

.bio-text a {
  color: var(--kean-500);
  border-bottom: 1px solid var(--kean-200);
  transition: all var(--transition-fast);
}

.bio-text a:hover {
  color: var(--kean-700);
  border-color: var(--kean-500);
}

/* Education Cards */
.edu-card {
  background: var(--surface-primary);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
  transition: all var(--transition-fast);
}

.edu-card:hover {
  border-color: var(--kean-200);
  box-shadow: var(--shadow-sm);
}

.edu-card__degree {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 1rem;
  margin-bottom: 4px;
}

.edu-card__degree a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--kean-200);
}

.edu-card__degree a:hover {
  color: var(--kean-600);
  border-bottom-color: var(--kean-600);
}

.edu-card__school {
  color: var(--kean-600);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 2px;
}

.edu-card__year {
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

.edu-card__note {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-top: 4px;
}

/* --- Research Interests --- */
.research-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.research-card {
  background: var(--surface-primary);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.research-card:hover {
  border-color: var(--kean-200);
  box-shadow: var(--shadow-sm);
}

.research-card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--kean-50);
  color: var(--kean-600);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  font-size: 1.25rem;
}

.research-card__title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.research-card__desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 0;
}

/* --- Publications --- */
.pub-tabs {
  display: flex;
  gap: var(--space-xs);
  margin-bottom: var(--space-xl);
  border-bottom: 2px solid var(--gray-100);
  padding-bottom: 0;
}

.pub-tab {
  padding: var(--space-sm) var(--space-lg);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-tertiary);
  cursor: pointer;
  border: none;
  background: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all var(--transition-fast);
}

.pub-tab:hover {
  color: var(--text-secondary);
}

.pub-tab.active {
  color: var(--kean-600);
  border-bottom-color: var(--kean-600);
}

.pub-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.pub-item {
  padding: var(--space-lg);
  background: var(--surface-primary);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.pub-item:hover {
  border-color: var(--kean-200);
  box-shadow: var(--shadow-sm);
}

.pub-item__title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
  line-height: 1.5;
}

.pub-item__authors {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-xs);
  line-height: 1.5;
}

.pub-item__authors strong {
  color: var(--kean-600);
  font-weight: 600;
}

.pub-item__venue {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  font-style: italic;
}

.pub-item__meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-sm);
  flex-wrap: wrap;
}

.pub-item__badge {
  display: inline-flex;
  padding: 2px 10px;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 100px;
  letter-spacing: 0.04em;
}

.pub-item__badge--q1 {
  background: #e8f5e9;
  color: #2e7d32;
}

.pub-item__badge--q2 {
  background: #fff3e0;
  color: #e65100;
}

.pub-item__badge--conf {
  background: var(--kean-50);
  color: var(--kean-700);
}

.pub-item__badge--citations {
  background: var(--gray-50);
  color: var(--gray-700);
}

.pub-item__doi {
  font-size: 0.75rem;
  color: var(--kean-500);
}

.pub-show-more {
  display: flex;
  justify-content: center;
  margin-top: var(--space-xl);
}

.pub-show-more__btn {
  padding: var(--space-sm) var(--space-xl);
  background: var(--surface-primary);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--kean-600);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.pub-show-more__btn:hover {
  background: var(--kean-50);
  border-color: var(--kean-300);
}

/* --- Grants --- */
.grants-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.grant-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--space-lg);
  align-items: start;
  padding: var(--space-lg);
  background: var(--surface-primary);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.grant-item:hover {
  border-color: var(--kean-200);
  box-shadow: var(--shadow-sm);
}

.grant-item__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.grant-item__icon--nsf {
  background: #e3f2fd;
  color: #1565c0;
}

.grant-item__icon--google {
  background: #e8f5e9;
  color: #2e7d32;
}

.grant-item__icon--other {
  background: #fff3e0;
  color: #e65100;
}

.grant-item__icon--internal {
  background: var(--kean-50);
  color: var(--kean-600);
}

.grant-item__title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.grant-item__source {
  font-size: 0.825rem;
  color: var(--text-secondary);
}

.grant-item__role {
  font-size: 0.75rem;
  color: var(--kean-600);
  font-weight: 600;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.grant-item__role .pub-item__doi {
  font-weight: 600;
}

.grant-item__amount {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--kean-700);
  white-space: nowrap;
}

.grant-item__year {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin-top: 2px;
}

/* --- Teaching --- */
.course-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.course-card {
  padding: var(--space-lg);
  background: var(--surface-primary);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.course-card:hover {
  border-color: var(--kean-200);
  box-shadow: var(--shadow-sm);
}

.course-card__code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--kean-600);
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.course-card__name {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.course-card__desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* --- Awards --- */
.awards-timeline {
  position: relative;
  padding-left: var(--space-xl);
}

.awards-timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--gray-100);
}

.award-item {
  position: relative;
  padding-bottom: var(--space-xl);
}

.award-item::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-xl) + 3px);
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--kean-500);
  border: 2px solid var(--surface-secondary);
  z-index: 1;
}

.award-item__year {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--kean-500);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.award-item__title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.award-item__detail {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* --- Mentoring --- */
.mentor-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.mentor-card {
  padding: var(--space-lg);
  background: var(--surface-primary);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.mentor-card:hover {
  border-color: var(--kean-200);
  box-shadow: var(--shadow-sm);
}

.mentor-card__name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.mentor-card__award {
  font-size: 0.85rem;
  color: var(--kean-600);
  font-weight: 500;
  margin-top: 2px;
}

.mentor-card__detail {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 4px;
  margin-bottom: 0;
}

/* --- Services --- */
.service-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.service-item {
  display: flex;
  align-items: baseline;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--surface-primary);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.service-item:hover {
  border-color: var(--kean-200);
}

.service-item__bullet {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--kean-400);
  flex-shrink: 0;
  margin-top: 8px;
}

/* --- Patents --- */
.patent-item {
  padding: var(--space-md) var(--space-lg);
  background: var(--surface-primary);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-sm);
}

.patent-item__title {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.patent-item__number {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
}

/* --- News --- */
.news-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.news-item {
  display: flex;
  gap: var(--space-lg);
  padding: var(--space-lg);
  background: var(--surface-primary);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.news-item:hover {
  border-color: var(--kean-200);
  box-shadow: var(--shadow-sm);
}

.news-item__date {
  flex-shrink: 0;
  width: 70px;
  text-align: center;
}

.news-item__month {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--kean-500);
}

.news-item__year-small {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--text-primary);
  line-height: 1.1;
}

.news-item__text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.news-item__text strong {
  color: var(--text-primary);
}

/* --- Contact --- */
.contact-section {
  background: linear-gradient(135deg, var(--kean-900) 0%, var(--kean-700) 100%);
  color: white;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
}

.contact-info .section__label {
  margin-bottom: var(--space-xl);
}

.contact-info__title {
  font-family: var(--font-display);
  font-size: 2rem;
  color: white;
  margin-bottom: var(--space-lg);
}

.contact-info__text {
  color: var(--text-on-dark-secondary);
  font-size: 1rem;
  margin-bottom: var(--space-xl);
  line-height: 1.8;
}

.contact-detail {
  display: flex;
  align-items: start;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.contact-detail__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.contact-detail__label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 2px;
}

.contact-detail__value {
  color: white;
  font-size: 0.95rem;
}

.contact-detail__value a {
  color: var(--kean-200);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-detail__value a:hover {
  color: white;
}

.contact-links {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.contact-link-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: white;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.contact-link-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: white;
  transform: translateY(-1px);
}

/* Map placeholder */
.contact-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: none;
  border-radius: var(--radius-lg);
  filter: grayscale(30%) contrast(1.05);
}

/* --- Footer --- */
.footer {
  background: var(--kean-900);
  padding: var(--space-xl) 0;
  text-align: center;
}

.footer__text {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 0;
}

/* --- Subsection Label --- */
.subsection-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--kean-500);
  margin-bottom: var(--space-md);
  margin-top: var(--space-2xl);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--kean-100);
}

.subsection-label:first-child {
  margin-top: 0;
}

/* --- Scroll to top --- */
.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--kean-600);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-normal);
  z-index: 100;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--kean-700);
  transform: translateY(-2px);
}

/* --- Tab content visibility --- */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* --- Utility --- */
.hidden { display: none !important; }
.text-center { text-align: center; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .research-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-bar__inner { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  html { font-size: 15px; }
  
  .nav__links { 
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: var(--space-md);
    border-bottom: 1px solid var(--gray-100);
    box-shadow: var(--shadow-lg);
  }
  
  .nav__links.open { display: flex; }
  .nav__toggle { display: block; }
  
  .hero { padding: 28px 0 40px; }
  .hero__content { flex-direction: column; text-align: center; gap: var(--space-lg); }
  .hero__name { font-size: 2rem; line-height: 1.2; }
  .hero__title { font-size: 1rem; }
  .hero__tags { justify-content: center; }
  .hero__actions { justify-content: center; gap: 10px; }
  .hero__btn { justify-content: center; padding: 9px 16px; }
  .contact-links { flex-wrap: wrap; }
  .scroll-top {
    bottom: calc(18px + env(safe-area-inset-bottom));
    right: 16px;
  }
  
  .stats-bar__inner { grid-template-columns: repeat(2, 1fr); }
  
  .bio-grid { grid-template-columns: 1fr; }
  .research-grid { grid-template-columns: 1fr; }
  .course-grid { grid-template-columns: 1fr; }
  .mentor-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  
  .grant-item { grid-template-columns: 1fr; gap: var(--space-sm); }
  .grant-item__icon { display: none; }
  
  .section { padding: var(--space-3xl) 0; }
  
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  
  .section__title { font-size: 1.625rem; }
}

@media (max-width: 480px) {
  .stats-bar__inner { grid-template-columns: 1fr 1fr; }
  .hero__photo { width: 150px; height: 150px; }
  .hero__name { font-size: 1.875rem; }
  .pub-tabs { overflow-x: auto; flex-wrap: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sidebar__indicator,
  .sidebar__link {
    transition: none;
  }
}
