/* 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: #0a66c2;
  --primary-hover: #004182;
  --primary-soft: #edf3f8;
  --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;
  }
}

/* ──────────────────────────────────────────────────────────────────────────
   NEW PROFILE DESIGN STYLES (MATCHING FLUTTER DASHBOARD)
   ────────────────────────────────────────────────────────────────────────── */

/* Cover gradient overlay if no image is present */
.profile-cover-banner:not([style*="background-image"]) {
  background: linear-gradient(135deg, #0A66C2, #004182, #0073B1) !important;
}

/* Username below name */
.profile-username {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
  margin-top: 2px;
  margin-bottom: 6px;
}

/* Location + Industry */
.profile-meta-row {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 6px;
  display: flex;
  align-items: center;
}

/* Website URL */
.profile-website-row {
  margin-top: 6px;
}

.profile-website-link {
  font-size: 14px;
  color: var(--primary);
  font-weight: 600;
  transition: var(--transition);
}

.profile-website-link:hover {
  text-decoration: underline;
}

/* Social pills wrapper */
.profile-social-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition);
  border: 1px solid transparent;
}

.social-pill .pill-icon {
  flex-shrink: 0;
}

.social-pill:hover {
  transform: translateY(-1px);
}

/* Social media colors */
.social-pill.instagram {
  background-color: rgba(228, 64, 95, 0.08);
  border-color: rgba(228, 64, 95, 0.2);
  color: #e1306c;
}
.social-pill.instagram:hover {
  background-color: rgba(228, 64, 95, 0.12);
}

.social-pill.facebook {
  background-color: rgba(24, 119, 242, 0.08);
  border-color: rgba(24, 119, 242, 0.2);
  color: #1877f2;
}
.social-pill.facebook:hover {
  background-color: rgba(24, 119, 242, 0.12);
}

.social-pill.twitter {
  background-color: rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.2);
  color: #000000;
}
.social-pill.twitter:hover {
  background-color: rgba(0, 0, 0, 0.12);
}

.social-pill.linkedin {
  background-color: rgba(10, 102, 194, 0.08);
  border-color: rgba(10, 102, 194, 0.2);
  color: #0a66c2;
}
.social-pill.linkedin:hover {
  background-color: rgba(10, 102, 194, 0.12);
}

.social-pill.youtube {
  background-color: rgba(255, 0, 0, 0.08);
  border-color: rgba(255, 0, 0, 0.2);
  color: #ff0000;
}
.social-pill.youtube:hover {
  background-color: rgba(255, 0, 0, 0.12);
}

.social-pill.github {
  background-color: rgba(51, 51, 51, 0.08);
  border-color: rgba(51, 51, 51, 0.2);
  color: #333333;
}
.social-pill.github:hover {
  background-color: rgba(51, 51, 51, 0.12);
}

/* Skills list view */
.skills-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.skill-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.skill-verified-icon {
  color: var(--primary);
  flex-shrink: 0;
}

.skill-list-item .skill-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

/* ──────────────────────────────────────────────────────────────────────────
   PREMIUM SAAS LANDING PAGE (DARK THEME, SCOPED)
   ────────────────────────────────────────────────────────────────────────── */

/* Scoped root theme variables for dark landing page */
.landing-page-wrapper {
  background-color: #030406;
  color: #f4f4f5;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

.landing-page-wrapper h1, 
.landing-page-wrapper h2, 
.landing-page-wrapper h3, 
.landing-page-wrapper h4 {
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
}

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

/* Green vibrant buttons */
.landing-btn-green {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-weight: 600;
  font-size: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, #05b056, #00c853);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(5, 176, 86, 0.2);
  gap: 8px;
}

.landing-btn-green:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(5, 176, 86, 0.35);
  background: linear-gradient(135deg, #00c853, #05b056);
}

/* Header */
.landing-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(3, 4, 6, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  height: 76px;
}

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

.landing-logo {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 700;
  display: flex;
  align-items: center;
}

.landing-logo .logo-pin {
  color: #05b056;
}

.landing-logo .logo-lyf {
  color: #ffffff;
}

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

.landing-nav-link {
  font-size: 14px;
  font-weight: 500;
  color: #a1a1aa;
  transition: all 0.3s ease;
}

.landing-nav-link:hover {
  color: #ffffff;
}

.landing-header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.theme-toggle-btn {
  background: transparent;
  border: none;
  color: #a1a1aa;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
}

.theme-toggle-btn:hover {
  color: #ffffff;
}

/* Hero Section */
.landing-hero {
  position: relative;
  padding: 120px 0 100px;
  background: #030406;
  text-align: center;
  overflow: hidden;
}

/* Background floating glow circles */
.hero-glow-1 {
  position: absolute;
  top: -10%;
  left: 20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(5, 176, 86, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
  animation: floatGlow 12s ease-in-out infinite alternate;
}

.hero-glow-2 {
  position: absolute;
  top: 20%;
  right: 15%;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(45px);
  pointer-events: none;
  animation: floatGlow 8s ease-in-out infinite alternate-reverse;
}

.hero-glow-3 {
  position: absolute;
  bottom: -10%;
  left: 30%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(50px);
  pointer-events: none;
  animation: floatGlow 15s ease-in-out infinite alternate;
}

@keyframes floatGlow {
  0% {
    transform: translateY(0) scale(1);
  }
  100% {
    transform: translateY(-30px) scale(1.1);
  }
}

.landing-hero-content {
  max-width: 900px;
  margin: 0 auto 60px;
  position: relative;
  z-index: 2;
}

.landing-hero-title {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
}

.landing-hero-title .gradient-highlight-green {
  background: linear-gradient(135deg, #05b056 0%, #00e5ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.landing-hero-subtitle {
  font-size: 18px;
  color: #a1a1aa;
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto;
}

/* 3-Column Hero Grid */
.landing-hero-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 60px;
  position: relative;
  z-index: 2;
}

.landing-hero-card {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 20px;
  padding: 40px 32px;
  text-align: left;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.landing-hero-card.card-accent-green:hover {
  border-color: rgba(5, 176, 86, 0.3);
  box-shadow: 0 12px 40px rgba(5, 176, 86, 0.15);
  background: rgba(5, 176, 86, 0.02);
}
.landing-hero-card.card-accent-blue:hover {
  border-color: rgba(0, 229, 255, 0.3);
  box-shadow: 0 12px 40px rgba(0, 229, 255, 0.15);
  background: rgba(0, 229, 255, 0.02);
}
.landing-hero-card.card-accent-purple:hover {
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: 0 12px 40px rgba(139, 92, 246, 0.15);
  background: rgba(139, 92, 246, 0.02);
}

.landing-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 28px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-accent-green .landing-card-icon {
  background: rgba(5, 176, 86, 0.08);
  color: #05b056;
  border: 1px solid rgba(5, 176, 86, 0.15);
}
.card-accent-green:hover .landing-card-icon {
  background: #05b056;
  color: #ffffff;
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 0 20px rgba(5, 176, 86, 0.4);
}

.card-accent-blue .landing-card-icon {
  background: rgba(0, 229, 255, 0.08);
  color: #00e5ff;
  border: 1px solid rgba(0, 229, 255, 0.15);
}
.card-accent-blue:hover .landing-card-icon {
  background: #00e5ff;
  color: #030406;
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.4);
}

.card-accent-purple .landing-card-icon {
  background: rgba(139, 92, 246, 0.08);
  color: #a78bfa;
  border: 1px solid rgba(139, 92, 246, 0.15);
}
.card-accent-purple:hover .landing-card-icon {
  background: #8b5cf6;
  color: #ffffff;
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}

.landing-hero-card h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 12px;
}

.landing-hero-card p {
  font-size: 14px;
  color: #a1a1aa;
  line-height: 1.6;
}

/* Alternating Detail Sections */
.landing-detail-section {
  padding: 100px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.landing-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.landing-detail-content h2 {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}

.landing-detail-desc {
  font-size: 16px;
  color: #a1a1aa;
  margin-bottom: 32px;
}

.landing-detail-list {
  list-style: none;
  margin-bottom: 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.landing-detail-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 500;
  color: #e4e4e7;
}

.landing-list-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.landing-mockup-wrapper {
  position: relative;
  border-radius: 20px;
  background: radial-gradient(circle at top left, rgba(5, 176, 86, 0.15), transparent 45%);
  padding: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.landing-mockup-img {
  max-width: 100%;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Decisions Section */
.landing-decisions-section {
  padding: 100px 0 120px;
  background: radial-gradient(circle at 90% 80%, rgba(5, 176, 86, 0.06), transparent 50%);
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.landing-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: #05b056;
  background: rgba(5, 176, 86, 0.08);
  border: 1px solid rgba(5, 176, 86, 0.2);
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.landing-checklist-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.landing-checklist-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #f4f4f5;
}

.checklist-check {
  color: #05b056;
  font-size: 16px;
}

.landing-btn-row {
  display: flex;
  align-items: center;
  gap: 20px;
}

.landing-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-weight: 600;
  font-size: 14px;
  color: #ffffff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.landing-btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: #ffffff;
}

/* Landing Footer */
.landing-footer {
  background-color: #020304;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding: 60px 0 30px;
}

.landing-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 80px;
  margin-bottom: 40px;
}

.landing-footer-desc {
  color: #71717a;
  font-size: 14px;
  margin-top: 16px;
  max-width: 400px;
}

.landing-footer-links {
  display: flex;
  justify-content: flex-end;
  gap: 80px;
}

.landing-footer-col h4 {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.landing-footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.landing-footer-col a {
  color: #71717a;
  font-size: 14px;
  transition: color 0.3s ease;
}

.landing-footer-col a:hover {
  color: #ffffff;
}

.landing-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #52525b;
}

/* Mobile responsive landing page rules */
@media (max-width: 992px) {
  .landing-hero-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .landing-detail-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .landing-detail-grid > :nth-child(2) {
    grid-row: 1;
  }
  .landing-hero-title {
    font-size: 38px;
  }
  .landing-footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .landing-footer-links {
    justify-content: flex-start;
  }
}
