/* ============================================
   Light Liquid Glass UI with Background Image
   ============================================ */

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

:root {
  --glass: rgba(255, 255, 255, 0.01);
  --glass-strong: rgba(255, 255, 255, 0.18);
  --glass-border: rgba(255, 255, 255, 0.10);
  --glass-border-strong: rgba(255, 255, 255, 0.4);
  --text: rgba(255, 255, 255, 1);
  --text-muted: rgba(255, 255, 255, 0.85);
  --text-dim: rgba(255, 255, 255, 0.7);
  --accent: rgba(255, 255, 255, 0.95);
  --shadow: rgba(0, 0, 0, 0.1);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Inter", system-ui, sans-serif;
  background: url('Background.jpeg') center center / cover no-repeat fixed;
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

/* Dark overlay for better readability */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  pointer-events: none;
  z-index: 0;
}

/* ============================================
   Navigation
   ============================================ */

.glass-nav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  gap: 8px;
  padding: 8px 12px;
  background: var(--glass);
  backdrop-filter: blur(6px) saturate(120%);
  -webkit-backdrop-filter: blur(6px) saturate(120%);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  box-shadow: 
    0 8px 32px var(--shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.nav-link {
  padding: 10px 20px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 30px;
  transition: all 0.3s ease;
}

.nav-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.15);
}

.nav-link.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.25);
}

/* ============================================
   Container
   ============================================ */

.container {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 120px 24px 80px;
}

.contact-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding-top: 80px;
}

/* ============================================
   Glass Cards
   ============================================ */

.glass-card {
  background: var(--glass);
  backdrop-filter: blur(6px) saturate(120%);
  -webkit-backdrop-filter: blur(6px) saturate(120%);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 32px;
  margin-bottom: 24px;
  position: relative;
  box-shadow: 
    0 8px 32px var(--shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.glass-card:hover {
  background: var(--glass-strong);
  transform: translateY(-2px);
  box-shadow: 
    0 16px 48px var(--shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* Clickable Card Links */
a.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease;
}

a.card-link .glass-card {
  margin-bottom: 0;
}

a.card-link:hover .glass-card {
  transform: translateY(-4px);
  box-shadow: 
    0 20px 56px var(--shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

a.card-link::after {
  content: '↗';
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

a.card-link:hover::after {
  opacity: 0.6;
}

a.card-link {
  position: relative;
}

/* ============================================
   Hero Card (Home)
   ============================================ */

.hero-card {
  text-align: center;
  padding: 48px 32px;
}

.avatar-container {
  margin-bottom: 24px;
}

.avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--glass-border-strong);
  box-shadow: 0 8px 32px var(--shadow);
}

.hero-name {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-title {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.hero-affiliation {
  font-size: 1rem;
  color: var(--text-dim);
  margin-bottom: 24px;
}

.tag-container {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.glass-tag {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text);
  transition: all 0.3s ease;
}

.glass-tag-link {
  text-decoration: none;
  color: inherit;
}

.glass-tag-link .glass-tag {
  text-decoration: underline;
}

.tag-link {
  color: inherit;
  text-decoration: underline;
}

.glass-tag-link:hover .glass-tag {
  background: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}

.hero-bio {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 28px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   Buttons
   ============================================ */

.glass-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--glass);
  backdrop-filter: blur(4px);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px var(--shadow);
}

.glass-button:hover {
  background: var(--glass-strong);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--shadow);
}

.glass-button.primary {
  background: rgba(255, 255, 255, 0.35);
  border-color: var(--glass-border-strong);
}

.glass-button.primary:hover {
  background: rgba(255, 255, 255, 0.5);
}

.btn-icon {
  font-size: 1.1rem;
}

/* ============================================
   Stats Card
   ============================================ */

.stats-card {
  display: flex;
  justify-content: space-around;
  padding: 24px;
}

.stat {
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
}

/* ============================================
   Page Titles
   ============================================ */

.page-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.section-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.lead-text {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.body-text {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: 16px;
}

/* ============================================
   Timeline (About)
   ============================================ */

.timeline {
  position: relative;
  padding-left: 28px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--glass-border);
  border-radius: 1px;
}

.timeline-item {
  position: relative;
  margin-bottom: 24px;
}

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

.timeline-marker {
  position: absolute;
  left: -28px;
  top: 4px;
  width: 14px;
  height: 14px;
  background: var(--glass-strong);
  border: 2px solid var(--glass-border-strong);
  border-radius: 50%;
}

.timeline-content {
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.timeline-year {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.03em;
  margin-bottom: 4px;
  display: block;
}

.timeline-content h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.timeline-content p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ============================================
   Skills Grid (About)
   ============================================ */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}

.skill-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.skill-item:hover {
  background: rgba(255, 255, 255, 0.2);
}

.skill-icon {
  font-size: 1.25rem;
}

.skill-name {
  font-size: 0.8125rem;
  font-weight: 500;
}

/* ============================================
   Research Grid
   ============================================ */

.research-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.research-card {
  text-align: center;
  padding: 32px 24px;
}

.research-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.research-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.research-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.research-tags {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.mini-tag {
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--text-dim);
}

/* ============================================
   Publications
   ============================================ */

.publications-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pub-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.pub-year {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
}

.pub-content h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.4;
}

.pub-authors {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.pub-venue {
  font-size: 0.8125rem;
  color: var(--text-dim);
}

.pub-status {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.6875rem;
  font-weight: 600;
  margin-top: 8px;
}

/* ============================================
   Contact
   ============================================ */

.contact-card {
  text-align: center;
  max-width: 500px;
  padding: 48px 32px;
}

.contact-methods {
  margin: 32px 0;
}

.contact-btn {
  font-size: 1rem;
}

.social-links {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.social-btn {
  padding: 12px 20px;
  font-size: 0.875rem;
}

.location-info {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  font-size: 0.875rem;
  color: var(--text-dim);
}

.location-icon {
  font-size: 1rem;
}

/* ============================================
   Footer
   ============================================ */

.glass-footer {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  padding: 10px 24px;
  background: var(--glass);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  font-size: 0.75rem;
  color: var(--text-dim);
  box-shadow: 0 4px 16px var(--shadow);
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 768px) {
  .glass-nav {
    top: auto;
    bottom: 70px;
    padding: 6px 8px;
    gap: 4px;
  }

  .nav-link {
    padding: 8px 14px;
    font-size: 0.75rem;
  }

  .container {
    padding: 100px 16px 140px;
  }

  .glass-card {
    padding: 24px;
    border-radius: 20px;
  }

  .hero-name {
    font-size: 2rem;
  }

  .avatar {
    width: 120px;
    height: 120px;
  }

  .stats-card {
    flex-direction: column;
    gap: 20px;
  }

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

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

  .pub-year {
    width: auto;
    height: auto;
    padding: 6px 14px;
  }

  .social-links {
    flex-direction: column;
  }

  .glass-footer {
    bottom: 16px;
    font-size: 0.6875rem;
    padding: 8px 16px;
  }
}

@media (max-width: 480px) {
  .glass-nav {
    width: calc(100% - 32px);
    justify-content: space-between;
  }

  .nav-link {
    padding: 8px 10px;
    font-size: 0.6875rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .glass-button {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================
   Fellowship Cards
   ============================================ */

.fellowships-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fellowship-card {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 24px;
}

.fellowship-logo {
  flex-shrink: 0;
}

.dual-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.logo-hint {
  font-size: 0.6875rem;
  color: var(--text-dim);
  opacity: 0.7;
  margin-bottom: 4px;
}

.fellowship-img {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid var(--glass-border-strong);
  box-shadow: 0 4px 16px var(--shadow);
}

.fellowship-img.cmse-logo {
  object-fit: contain;
  background: transparent;
  padding: 6px;
}

.fellowship-content {
  flex: 1;
}

.fellowship-year {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.fellowship-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.fellowship-org {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.fellowship-description {
  font-size: 0.9375rem;
  color: var(--text-dim);
  line-height: 1.6;
}

@media (max-width: 600px) {
  .fellowship-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .fellowship-img {
    width: 100px;
    height: 100px;
  }
}

/* ============================================
   Scrollbar
   ============================================ */

::-webkit-scrollbar {
  width: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

.dual-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.nsf-logo {
  max-width: 110px;
}

.cmse-logo {
  max-width: 80px;
}

.uif-logo {
  max-width: 120px;
}

.tcnj-logo {
  max-width: 85px;
}

.glass-tag .glass-tag-link{
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.glass-tag{
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
