/* ==========================================================================
   Mohammad Hosseini — Personal Academic Portfolio Stylesheet
   Theme: Deep Navy & Charcoal with Electric Blue & Violet Accents
   ========================================================================== */

:root {
  --bg-page: #070b14;
  --bg-card: #101726;
  --bg-card-elevated: #162033;
  --bg-card-hover: #1c2840;
  --bg-nav: #182236;
  --border-subtle: rgba(148, 163, 184, 0.12);
  --border-accent: rgba(99, 102, 241, 0.45);
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --accent-blue: #3b82f6;
  --accent-purple: #8b5cf6;
  --accent-cyan: #38bdf8;
  --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  --gradient-subtle: linear-gradient(135deg, rgba(59, 130, 246, 0.14) 0%, rgba(139, 92, 246, 0.14) 100%);
  --shadow-card: 0 20px 45px -15px rgba(2, 6, 23, 0.75);
  --shadow-glow: 0 0 25px rgba(59, 130, 246, 0.22);
  --radius-xl: 24px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.65;
}

body {
  min-height: 100vh;
  background-color: var(--bg-page);
  background-image:
    radial-gradient(circle at 12% 15%, rgba(59, 130, 246, 0.10), transparent 35%),
    radial-gradient(circle at 88% 82%, rgba(139, 92, 246, 0.10), transparent 38%);
  background-attachment: fixed;
  color: var(--text-primary);
  overflow-x: hidden;
}

/* Layout Container (Inspired by vCard Academic Portfolio Layout) */
.page-wrapper {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2.25rem 1.25rem 3rem;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 1.75rem;
  align-items: start;
}

/* ==========================================================================
   Sidebar Profile Card
   ========================================================================== */
.profile-sidebar {
  position: sticky;
  top: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2rem 1.5rem 1.75rem;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.profile-sidebar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

.profile-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.avatar-box {
  position: relative;
  width: 124px;
  height: 124px;
  border-radius: 26px;
  background: linear-gradient(145deg, #17223b, #0d1322);
  border: 1px solid rgba(99, 102, 241, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.15rem;
  box-shadow: var(--shadow-glow);
  overflow: hidden;
}

.avatar-box svg {
  width: 100%;
  height: 100%;
}

.status-indicator {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #10b981;
  border: 2.5px solid var(--bg-card);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.7);
}

.profile-name {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.profile-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-card-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--accent-cyan);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.38rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 0.35rem;
}

.profile-subbadge {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.sidebar-toggle-btn {
  display: none;
  margin-top: 1rem;
  width: 100%;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-md);
  background: var(--bg-card-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.sidebar-toggle-btn:hover {
  border-color: var(--accent-blue);
  color: var(--text-primary);
}

.sidebar-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 1.35rem 0;
}

.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.icon-box {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--bg-card-elevated);
  border: 1px solid rgba(99, 102, 241, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-blue);
  flex-shrink: 0;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}

.contact-item:hover .icon-box {
  border-color: var(--accent-purple);
  color: #a78bfa;
  transform: translateY(-1px);
}

.contact-meta {
  min-width: 0;
  flex: 1;
}

.contact-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.1rem;
}

.contact-value,
.contact-value a {
  font-size: 0.83rem;
  color: var(--text-secondary);
  text-decoration: none;
  word-break: break-all;
  transition: var(--transition);
}

.contact-value a:hover {
  color: var(--accent-cyan);
}

.sidebar-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 1.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border-subtle);
}

.social-icon-link {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--bg-card-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: var(--transition);
}

.social-icon-link:hover {
  background: var(--gradient-primary);
  color: #ffffff;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px -6px rgba(59, 130, 246, 0.55);
}

/* ==========================================================================
   Main Content Area & Docked Top-Right Navigation
   ========================================================================== */
.main-panel {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.top-navbar-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  background: rgba(15, 23, 42, 0.75);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.85rem 1.5rem;
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 30;
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
}

.nav-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.86rem;
  font-weight: 600;
  padding: 0.5rem 0.9rem;
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.nav-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.nav-btn.active {
  color: #ffffff;
  background: var(--gradient-primary);
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
}

.view-mode-toggle {
  display: inline-flex;
  align-items: center;
  background: var(--bg-card-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 0.2rem;
  gap: 0.2rem;
}

.mode-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: 7px;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.mode-btn.active {
  background: rgba(59, 130, 246, 0.2);
  color: var(--accent-cyan);
}

.content-body {
  padding: 2.25rem 2.25rem 2.5rem;
}

/* Section Styling */
.content-section {
  margin-bottom: 3.25rem;
  scroll-margin-top: 5rem;
  animation: fadeIn 0.35s ease;
}

.content-section:last-of-type {
  margin-bottom: 1rem;
}

.content-section.hidden-section {
  display: none;
}

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

.section-header {
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  display: inline-block;
  position: relative;
  padding-bottom: 0.55rem;
}

.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 4px;
  border-radius: 999px;
  background: var(--gradient-primary);
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-top: 0.45rem;
}

/* ==========================================================================
   1. Home / Hero Banner
   ========================================================================== */
.hero-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.75) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1px solid rgba(99, 102, 241, 0.28);
  border-radius: 20px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.hero-card::after {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 210px;
  height: 210px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.22), transparent 70%);
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.hero-heading {
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.025em;
  margin-bottom: 0.85rem;
}

.gradient-text {
  background: linear-gradient(135deg, #60a5fa 0%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 720px;
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.7rem 1.25rem;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  font-family: inherit;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #ffffff;
  border: none;
  box-shadow: 0 8px 20px -6px rgba(59, 130, 246, 0.55);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -6px rgba(139, 92, 246, 0.65);
}

.btn-secondary {
  background: var(--bg-card-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  border-color: var(--accent-blue);
  background: var(--bg-card-hover);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--border-subtle);
}

.metric-item {
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 0.9rem 1rem;
}

.metric-value {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
}

.metric-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

/* ==========================================================================
   2. About Me & Focus Cards
   ========================================================================== */
.bio-box {
  background: var(--bg-card-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  color: var(--text-secondary);
  font-size: 0.97rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}

.focus-card {
  background: var(--bg-card-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: var(--transition);
}

.focus-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
}

.focus-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--gradient-subtle);
  border: 1px solid rgba(99, 102, 241, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.focus-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}

.focus-desc {
  font-size: 0.87rem;
  color: var(--text-muted);
}

/* ==========================================================================
   3. Education Timeline Card
   ========================================================================== */
.timeline-container {
  position: relative;
  padding-left: 1.75rem;
}

.timeline-container::before {
  content: '';
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 7px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-blue), var(--accent-purple));
}

.timeline-item {
  position: relative;
  background: var(--bg-card-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: var(--transition);
}

.timeline-item:hover {
  border-color: var(--border-accent);
}

.timeline-dot {
  position: absolute;
  left: -1.75rem;
  top: 1.65rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-blue);
  border: 3px solid var(--bg-card);
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.8);
}

.edu-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.edu-degree {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.edu-uni {
  font-size: 0.95rem;
  color: var(--accent-cyan);
  font-weight: 600;
  margin-top: 0.15rem;
}

.edu-period {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(59, 130, 246, 0.14);
  border: 1px solid rgba(59, 130, 246, 0.32);
  color: #93c5fd;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
}

.edu-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.9rem;
}

.edu-badge {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.82rem;
  padding: 0.4rem 0.85rem;
  border-radius: 10px;
}

.edu-badge strong {
  color: var(--text-primary);
}

/* ==========================================================================
   4. Research Interests Grid
   ========================================================================== */
.interests-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.interest-card {
  background: var(--bg-card-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  transition: var(--transition);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: inherit;
}

.interest-card:hover,
.interest-card.active-interest {
  border-color: var(--accent-blue);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.interest-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.interest-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--gradient-subtle);
  border: 1px solid rgba(99, 102, 241, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
}

.interest-tag {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.interest-name {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text-primary);
}

.interest-caption {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   5. Publications Section
   ========================================================================== */
.pub-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.pub-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.filter-chip {
  background: var(--bg-card-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.42rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.filter-chip:hover {
  border-color: var(--accent-blue);
  color: var(--text-primary);
}

.filter-chip.active {
  background: var(--gradient-primary);
  color: #ffffff;
  border-color: transparent;
}

.pub-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.pub-card {
  background: var(--bg-card-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: var(--transition);
  position: relative;
}

.pub-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-glow);
}

.pub-meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.pub-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
}

.pub-type-journal {
  background: rgba(139, 92, 246, 0.16);
  border: 1px solid rgba(139, 92, 246, 0.4);
  color: #c4b5fd;
}

.pub-type-conference {
  background: rgba(59, 130, 246, 0.16);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #93c5fd;
}

.pub-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.pub-title {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 0.55rem;
}

.pub-title a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

.pub-title a:hover {
  color: var(--accent-cyan);
}

.pub-authors {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.author-self {
  color: #ffffff;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--accent-blue);
  text-underline-offset: 3px;
}

.pub-venue {
  font-size: 0.86rem;
  color: var(--accent-cyan);
  font-style: italic;
  margin-bottom: 1.1rem;
}

.pub-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.pub-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.48rem 0.95rem;
  border-radius: 9px;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.pub-btn-scholar {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.38);
  color: #93c5fd;
}

.pub-btn-scholar:hover {
  background: var(--accent-blue);
  color: #ffffff;
}

.pub-btn-cite {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.pub-btn-cite:hover {
  border-color: var(--accent-purple);
  color: var(--text-primary);
}

.cite-drawer {
  display: none;
  margin-top: 0.9rem;
  background: #090d16;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 0.9rem;
}

.cite-drawer.open {
  display: block;
}

.cite-pre {
  font-family: 'JetBrains Mono', Consolas, monospace;
  font-size: 0.76rem;
  color: var(--text-secondary);
  white-space: pre-wrap;
  word-break: break-word;
  margin-bottom: 0.6rem;
}

/* ==========================================================================
   6. Contact Section
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-card {
  background: var(--bg-card-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

.contact-card:hover {
  border-color: var(--accent-blue);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.contact-card-left {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.contact-card-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
}

.contact-card-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Quick Academic Message Box */
.inquiry-card {
  background: var(--bg-card-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.inquiry-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.inquiry-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.1rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-bottom: 0.9rem;
}

.form-input,
.form-textarea {
  width: 100%;
  background: #090d16;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 0.7rem 0.95rem;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.88rem;
  transition: var(--transition);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.form-textarea {
  min-height: 96px;
  resize: vertical;
  margin-bottom: 0.9rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 1.35rem 2.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: rgba(9, 13, 22, 0.45);
}

/* Toast Notification */
.toast-msg {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: #1e293b;
  border: 1px solid var(--accent-blue);
  color: #ffffff;
  padding: 0.75rem 1.15rem;
  border-radius: 12px;
  font-size: 0.84rem;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: var(--transition);
  z-index: 100;
}

.toast-msg.show {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .page-wrapper {
    grid-template-columns: 1fr;
  }

  .profile-sidebar {
    position: relative;
    top: 0;
  }

  .sidebar-toggle-btn {
    display: inline-flex;
  }

  .sidebar-collapsible {
    display: none;
  }

  .sidebar-collapsible.expanded {
    display: block;
  }
}

@media (max-width: 768px) {
  .content-body {
    padding: 1.5rem 1.25rem;
  }

  .hero-heading {
    font-size: 1.6rem;
  }

  .hero-metrics,
  .focus-grid,
  .interests-grid,
  .contact-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .top-navbar-wrap {
    padding: 0.75rem 1rem;
  }
}

/* ==========================================================================
   Honors, Leadership & Undergraduate Activities Section
   ========================================================================== */
.honors-banner-note {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #93c5fd;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  margin-bottom: 1.35rem;
}

.honors-sequence {
  position: relative;
  padding-left: 1.85rem;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.honors-sequence::before {
  content: '';
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 7px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-blue), var(--accent-purple), var(--accent-cyan));
}

.honor-card {
  position: relative;
  background: var(--bg-card-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.45rem 1.5rem;
  transition: var(--transition);
}

.honor-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-glow);
}

.honor-step-dot {
  position: absolute;
  left: -1.85rem;
  top: 1.55rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gradient-primary);
  border: 3px solid var(--bg-card);
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.75);
}

.honor-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
}

.honor-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
}

.honor-org {
  font-size: 0.88rem;
  color: var(--accent-cyan);
  font-weight: 600;
  margin-top: 0.18rem;
}

.honor-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.38);
  color: #c4b5fd;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.32rem 0.8rem;
  border-radius: 999px;
  white-space: nowrap;
}

.honor-desc {
  color: var(--text-secondary);
  font-size: 0.91rem;
  margin-bottom: 0.85rem;
}

.honor-desc:last-child {
  margin-bottom: 0;
}

.honor-bullets {
  list-style: disc;
  padding-left: 1.25rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.45rem;
}

.honor-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #93c5fd;
  font-size: 0.81rem;
  font-weight: 600;
  padding: 0.48rem 0.95rem;
  border-radius: 9px;
  text-decoration: none;
  transition: var(--transition);
  margin-bottom: 1rem;
}

.honor-link-btn:hover {
  background: var(--accent-blue);
  color: #ffffff;
}

/* Gallery Grid inside Honor Cards */
.honor-gallery-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 0.5rem;
}

.honor-gallery-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 0.75rem;
}

.gallery-slot {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.65));
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.gallery-slot:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
}

.gallery-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .honor-gallery-3,
  .honor-gallery-2 {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Undergraduate Courses Section
   ========================================================================== */
   .courses-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
  }
  
  .course-card {
    background: var(--bg-card-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 0.95rem 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    transition: var(--transition);
  }
  
  .course-card:hover {
    border-color: var(--accent-blue);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
  }
  
  .course-name {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-primary);
  }
  
  .course-score {
    display: inline-flex;
    align-items: center;
    background: rgba(59, 130, 246, 0.14);
    border: 1px solid rgba(59, 130, 246, 0.35);
    color: #93c5fd;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.28rem 0.75rem;
    border-radius: 999px;
    white-space: nowrap;
  }
  
  .course-score.score-top {
    background: rgba(139, 92, 246, 0.18);
    border-color: rgba(139, 92, 246, 0.45);
    color: #c4b5fd;
  }
  
  @media (max-width: 768px) {
    .courses-grid {
      grid-template-columns: 1fr;
    }
  }

  /* ==========================================================================
   Personal Photo Gallery Section
   ========================================================================== */
.personal-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

.photo-card {
  background: var(--bg-card-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.photo-card:hover {
  border-color: var(--accent-blue);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.photo-frame {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #090d16;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.photo-card:hover .photo-frame img {
  transform: scale(1.05);
}

.photo-caption {
  padding: 0.75rem 1rem;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-align: center;
}

@media (max-width: 900px) {
  .personal-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .personal-gallery-grid {
    grid-template-columns: 1fr;
  }
}


