/* Reset & Core variables */
:root {
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-heading: 'Outfit', var(--font-primary);
  
  /* HSL Color Palette */
  --bg-primary: hsl(210, 20%, 98%);
  --bg-card: hsl(0, 0%, 100%);
  --text-primary: hsl(210, 24%, 16%);
  --text-secondary: hsl(210, 12%, 40%);
  --text-muted: hsl(210, 8%, 60%);
  
  --primary: hsl(220, 90%, 56%);
  --primary-hover: hsl(220, 95%, 48%);
  --primary-soft: hsl(220, 100%, 96%);
  --accent: hsl(280, 80%, 60%);
  
  --border-color: hsl(210, 14%, 90%);
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.4);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.08);
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-round: 50%;
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.25;
}

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

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Glassmorphism utility */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-md);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 14px;
  border-radius: 24px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  gap: 8px;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-secondary:hover {
  background-color: var(--primary-soft);
  transform: translateY(-1px);
}

.btn-full {
  width: 100%;
}

.btn-large {
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
}

.btn-tiny-outline {
  padding: 4px 12px;
  font-size: 11px;
  border-radius: 12px;
  border: 1px solid var(--primary);
  color: var(--primary);
  background: transparent;
}

.btn-tiny-outline:hover {
  background: var(--primary-soft);
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  height: 70px;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  display: flex;
  align-items: center;
  letter-spacing: -0.5px;
}

.logo-pin {
  color: var(--primary);
}

.logo-lyf {
  color: var(--text-primary);
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 24px;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.nav-link:hover {
  color: var(--primary);
}

.mobile-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.mobile-nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* Footer */
.footer {
  background-color: hsl(210, 24%, 12%);
  color: white;
  padding: 60px 0 20px;
  margin-top: 60px;
}

.footer-container {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
  margin-bottom: 40px;
}

.footer-logo .logo-lyf {
  color: white;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 14px;
  max-width: 320px;
  margin-top: 16px;
}

.footer-links-group {
  display: flex;
  justify-content: space-between;
  gap: 40px;
}

.footer-col h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 14px;
}

.footer-col a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
}

.footer-bottom-container {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
}

/* Hero Section */
.hero-section {
  padding: 80px 0 100px;
  background: radial-gradient(circle at 80% 20%, hsla(280, 80%, 60%, 0.08), transparent 40%),
              radial-gradient(circle at 10% 80%, hsla(220, 90%, 56%, 0.08), transparent 45%);
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-content {
  max-width: 800px;
}

.hero-title {
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

/* Search bar on Hero */
.search-box {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  border-radius: 30px;
  padding: 6px 6px 6px 20px;
  position: relative;
}

.search-icon {
  color: var(--text-muted);
  margin-right: 12px;
  flex-shrink: 0;
}

.search-box input {
  border: none;
  background: transparent;
  flex-grow: 1;
  font-family: var(--font-primary);
  font-size: 15px;
  outline: none;
  color: var(--text-primary);
}

.search-box input::placeholder {
  color: var(--text-muted);
}

.search-results-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  max-height: 300px;
  overflow-y: auto;
  border-radius: var(--radius-md);
  z-index: 10;
  text-align: left;
  display: flex;
  flex-direction: column;
}

.search-results-dropdown.hidden {
  display: none;
}

.search-result-item {
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition);
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background: rgba(255, 255, 255, 0.4);
}

.search-result-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-round);
  object-fit: cover;
}

.search-result-info h4 {
  font-size: 14px;
  font-weight: 600;
}

.search-result-info p {
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 400px;
}

/* Sections Global */
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 50px;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 14px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
}

/* Profiles Grid on Landing Page */
.featured-section {
  padding: 60px 0;
}

.profiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.profile-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.profile-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(37, 99, 235, 0.2);
}

.card-cover {
  height: 90px;
  background-size: cover;
  background-position: center;
}

.card-avatar-wrapper {
  margin-top: -40px;
  padding: 0 20px;
  display: flex;
}

.card-avatar {
  width: 76px;
  height: 76px;
  border-radius: var(--radius-round);
  border: 4px solid var(--bg-card);
  object-fit: cover;
  background: white;
}

.card-content {
  padding: 16px 20px 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-name {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
}

.card-headline {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  min-height: 40px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-location {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 16px;
}

.card-footer-metrics {
  margin-top: auto;
  font-size: 12px;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  padding: 12px 0;
  margin-bottom: 12px;
}

/* Features Grid */
.features-section {
  padding: 80px 0;
  background-color: rgba(255, 255, 255, 0.3);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.feature-card {
  padding: 30px;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 32px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
}

/* CTA Section */
.cta-section {
  padding: 80px 0 60px;
}

.cta-container {
  padding: 60px 40px;
  border-radius: var(--radius-lg);
  text-align: center;
}

.cta-title {
  font-size: 36px;
  margin-bottom: 16px;
}

.cta-desc {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

/* Profile Body & Main Grid */
.profile-body {
  background-color: hsl(210, 20%, 95%);
}

.profile-grid-container {
  display: grid;
  grid-template-columns: 2.5fr 1fr;
  gap: 24px;
  padding-top: 30px;
}

/* Profile Section Card */
.profile-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
  overflow: hidden;
}

/* Profile Header Card */
.profile-header-card {
  position: relative;
}

.profile-cover-banner {
  height: 200px;
  background-size: cover;
  background-position: center;
}

.profile-header-meta {
  padding: 0 24px 24px;
  position: relative;
}

.profile-avatar-container {
  margin-top: -100px;
  margin-bottom: 16px;
  display: inline-block;
  position: relative;
}

.profile-avatar {
  width: 152px;
  height: 152px;
  border-radius: var(--radius-round);
  border: 6px solid var(--bg-card);
  object-fit: cover;
  background-color: white;
}

/* Quick institutions list (Top Right on profile cards) */
.profile-quick-institutions {
  position: absolute;
  top: 24px;
  right: 24px;
  max-width: 250px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quick-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
}

.quick-badge:hover .badge-text {
  color: var(--primary);
}

.badge-icon {
  font-size: 16px;
}

.badge-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Profile Identity */
.profile-identity {
  margin-top: 8px;
}

.name-pronouns {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.profile-name {
  font-size: 24px;
  font-weight: 600;
}

.profile-pronouns {
  font-size: 14px;
  color: var(--text-secondary);
}

.profile-headline {
  font-size: 16px;
  color: var(--text-primary);
  margin-top: 4px;
}

.profile-info-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 10px;
}

.contact-info-trigger {
  color: var(--primary);
  font-weight: 600;
}

.contact-info-trigger:hover {
  text-decoration: underline;
}

.profile-connections {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 10px;
}

.profile-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

/* Profile Section Content Cards */
.profile-section-card {
  padding: 24px;
}

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

.about-content {
  font-size: 15px;
  color: var(--text-secondary);
  white-space: pre-line;
}

/* Experience / Education Lists */
.experience-list, .education-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.experience-item, .education-item {
  display: flex;
  gap: 16px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 20px;
}

.experience-item:last-child, .education-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.item-logo-wrapper {
  flex-shrink: 0;
}

.item-logo {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.item-details {
  flex-grow: 1;
}

.item-title {
  font-size: 16px;
  font-weight: 600;
}

.item-subtitle {
  font-size: 14px;
  color: var(--text-primary);
  margin-top: 2px;
}

.item-date {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.item-location {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.item-description {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 8px;
  white-space: pre-line;
}

/* Skills list tags */
.skills-tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-tag {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.skill-endorsements {
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 10px;
  font-weight: 600;
}

/* Sidebar Columns cards */
.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 24px;
}

.sidebar-card-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
}

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

.sidebar-profile-item {
  display: flex;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-profile-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sidebar-profile-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-round);
  object-fit: cover;
  flex-shrink: 0;
}

.sidebar-profile-info {
  flex-grow: 1;
}

.sidebar-profile-name {
  font-size: 14px;
  font-weight: 600;
}

.sidebar-profile-headline {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.promo-widget {
  background: linear-gradient(135deg, hsl(220, 90%, 56%), hsl(280, 80%, 60%));
  color: white;
  border: none;
  text-align: center;
}

.promo-widget h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.promo-widget p {
  font-size: 13px;
  opacity: 0.9;
  margin-bottom: 20px;
}

.promo-widget .btn {
  background: white;
  color: var(--primary);
  border: none;
}

.promo-widget .btn:hover {
  background: var(--bg-primary);
}

/* Modals overlays */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.modal-card {
  width: 100%;
  max-width: 480px;
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: modal-enter 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.hidden .modal-card {
  transform: scale(0.9) translateY(20px);
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-close {
  background: transparent;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-secondary);
}

.modal-body {
  padding: 24px;
}

.contact-details-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-detail-item {
  display: flex;
  flex-direction: column;
}

.detail-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
}

.detail-value {
  font-size: 15px;
  color: var(--primary);
  font-weight: 500;
  margin-top: 2px;
}

.detail-value:hover {
  text-decoration: underline;
}

.social-links-grid {
  display: flex;
  justify-content: flex-start;
  gap: 12px;
}

.social-icon-btn {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-round);
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-icon-btn:hover {
  transform: translateY(-2px);
  color: white;
}

.social-icon-btn.linkedin:hover { background-color: #0a66c2; border-color: #0a66c2; }
.social-icon-btn.github:hover { background-color: #24292e; border-color: #24292e; }
.social-icon-btn.twitter:hover { background-color: #15181c; border-color: #15181c; }
.social-icon-btn.instagram:hover { background-color: #e1306c; border-color: #e1306c; }
.social-icon-btn.facebook:hover { background-color: #1877f2; border-color: #1877f2; }
.social-icon-btn.youtube:hover { background-color: #ff0000; border-color: #ff0000; }

/* Custom Toast */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: hsl(210, 24%, 12%);
  color: white;
  padding: 12px 24px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  transition: var(--transition);
}

.toast.hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(20px);
  pointer-events: none;
}

/* Animations */
@keyframes modal-enter {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.8s ease-out forwards;
}

.animate-fade-in-delay {
  animation: fadeIn 0.8s ease-out 0.2s forwards;
  opacity: 0;
}

.animate-fade-in-delay-2 {
  animation: fadeIn 0.8s ease-out 0.4s forwards;
  opacity: 0;
}

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

/* Error Pages structure */
.error-body {
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.error-main {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 0;
}

.error-card {
  text-align: center;
  padding: 50px 40px;
  border-radius: var(--radius-lg);
  max-width: 500px;
  margin: 0 auto;
}

.error-code {
  font-size: 96px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.error-title {
  font-size: 24px;
  margin-bottom: 12px;
}

.error-desc {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 30px;
}

.error-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
}

/* SVG Avatar Placeholders */
.profile-avatar-placeholder {
  width: 152px;
  height: 152px;
  border-radius: var(--radius-round);
  border: 6px solid var(--bg-card);
  background-color: hsl(210, 14%, 88%);
  color: hsl(210, 10%, 60%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.profile-avatar-placeholder svg {
  width: 55%;
  height: 55%;
}

.sidebar-avatar-placeholder {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-round);
  background-color: hsl(210, 14%, 88%);
  color: hsl(210, 10%, 60%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sidebar-avatar-placeholder svg {
  width: 50%;
  height: 50%;
}

.card-avatar-placeholder {
  width: 76px;
  height: 76px;
  border-radius: var(--radius-round);
  border: 4px solid var(--bg-card);
  background-color: hsl(210, 14%, 88%);
  color: hsl(210, 10%, 60%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-avatar-placeholder svg {
  width: 50%;
  height: 50%;
}

.search-result-avatar-placeholder {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-round);
  background-color: hsl(210, 14%, 88%);
  color: hsl(210, 10%, 60%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.search-result-avatar-placeholder svg {
  width: 50%;
  height: 50%;
}

/* Responsive breakdowns */
@media (max-width: 992px) {
  .profile-grid-container {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 42px;
  }
  .footer-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .nav {
    display: none; /* simple mobile nav toggle in real site would show it */
  }
  .mobile-nav-toggle {
    display: flex;
  }
  .profile-avatar, .profile-avatar-placeholder {
    width: 120px;
    height: 120px;
    margin-top: -80px;
  }
  .profile-quick-institutions {
    position: static;
    margin-top: 16px;
    max-width: 100%;
  }
  .hero-title {
    font-size: 36px;
  }
  .cta-container {
    padding: 40px 24px;
  }
}
