/* ============================================
   Human-centric Intelligence Lab — Stylesheet
   ============================================ */

:root {
  --primary: #1a365d;
  --primary-light: #2b4c7e;
  --primary-dark: #0f2440;
  --secondary: #0d9488;
  --secondary-light: #14b8a6;
  --accent: #d97706;
  --accent-light: #f59e0b;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --bg-dark: #0f172a;
  --text: #1e293b;
  --text-secondary: #64748b;
  --text-light: #94a3b8;
  --border: #e2e8f0;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
  --radius: 8px;
  --radius-lg: 12px;
  --transition: 0.3s ease;
  --max-width: 1200px;
}

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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.3;
}

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

a:hover {
  color: var(--secondary-light);
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Navigation ---- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary);
  text-decoration: none;
}

.nav-brand .brand-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  font-weight: 800;
}

.nav-brand span {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.nav-brand .brand-sub {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  background: var(--bg-alt);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ---- Hero Section ---- */
.hero {
  padding: 160px 0 100px;
  background: linear-gradient(135deg, #f0f9ff 0%, #f8fafc 50%, #f0fdf4 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.06) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(26, 54, 93, 0.05) 0%, transparent 70%);
  border-radius: 50%;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--secondary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero h1 {
  font-size: 3.5rem;
  color: var(--primary);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--secondary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 680px;
  margin-bottom: 12px;
  line-height: 1.7;
}

.hero-affiliation {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 36px;
}

.hero-affiliation strong {
  color: var(--text-secondary);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-decoration: none;
}

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

.btn-primary:hover {
  background: var(--primary-light);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: white;
  color: var(--primary);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  background: var(--bg-alt);
  color: var(--primary);
  border-color: var(--primary);
  transform: translateY(-1px);
}

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.stat-item {
  text-align: left;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ---- Section Common ---- */
.section {
  padding: 100px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-header {
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--secondary);
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 16px;
}

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

/* ---- About Section ---- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.about-text p {
  margin-bottom: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 32px;
}

.about-feature {
  padding: 24px;
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.about-feature:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--secondary);
}

.about-feature .feature-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.1), rgba(26, 54, 93, 0.1));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.about-feature h4 {
  font-size: 0.95rem;
  color: var(--primary);
  margin-bottom: 6px;
}

.about-feature p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.about-image {
  position: relative;
}

.about-image .image-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #e0f2fe, #ccfbf1);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--text-light);
  border: 1px solid var(--border);
}

.partnership-banner {
  margin-top: 40px;
  padding: 28px 32px;
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 24px;
}

.partnership-banner .uni-logos {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.uni-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--primary);
  white-space: nowrap;
}

.uni-separator {
  font-size: 1.2rem;
  color: var(--text-light);
}

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

/* ---- Research Section ---- */
.research-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.research-card {
  padding: 32px;
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.research-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--secondary), var(--primary-light));
  opacity: 0;
  transition: opacity var(--transition);
}

.research-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.research-card:hover::before {
  opacity: 1;
}

.research-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.1), rgba(26, 54, 93, 0.08));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.research-card h3 {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 12px;
}

.research-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.research-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.research-tag {
  padding: 4px 10px;
  background: var(--bg-alt);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
}

/* ---- People Section ---- */
.people-category {
  margin-bottom: 60px;
}

.people-category:last-child {
  margin-bottom: 0;
}

.people-category-title {
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}

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

/* Two-column faculty split (UniSQ / BUPT) */
.team-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.team-col {
  padding: 32px;
}

.team-col:first-child {
  border-right: 1px solid var(--border);
}

/* Force single-column cards within each team column */
.team-col .people-grid {
  grid-template-columns: 1fr;
  gap: 20px;
}

.team-col-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--border);
}

.team-col-logo {
  height: 26px;
  width: auto;
  flex-shrink: 0;
}

.team-col-logo--bupt {
  filter: brightness(0);
  opacity: 0.75;
}

.team-col-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-secondary);
}

.person-card {
  display: flex;
  gap: 20px;
  padding: 24px;
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.person-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--secondary);
}

.person-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e0f2fe, #ccfbf1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  flex-shrink: 0;
  overflow: hidden;
  border: 3px solid var(--border);
}

.person-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.person-info h4 {
  font-size: 1.05rem;
  color: var(--primary);
  margin-bottom: 4px;
}

.person-role {
  font-size: 0.85rem;
  color: var(--secondary);
  font-weight: 500;
  margin-bottom: 4px;
}

.person-affiliation {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 8px;
}

.person-interests {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.person-links {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.person-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: var(--bg-alt);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.person-link:hover {
  background: var(--secondary);
  color: white;
}

/* ---- Publications Section ---- */
.pub-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.pub-filter {
  padding: 8px 16px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: white;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
}

.pub-filter:hover,
.pub-filter.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

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

.pub-item {
  padding: 24px;
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

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

.pub-venue {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(13, 148, 136, 0.1);
  color: var(--secondary);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.pub-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 6px;
  line-height: 1.5;
}

.pub-authors {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.pub-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pub-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.pub-link:hover {
  border-color: var(--secondary);
  color: var(--secondary);
}

.pub-year-divider {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 16px;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}

/* ---- News Section ---- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.news-item {
  padding: 28px;
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: all var(--transition);
  display: flex;
  gap: 20px;
}

.news-item:hover {
  box-shadow: var(--shadow-md);
}

.news-date {
  flex-shrink: 0;
  text-align: center;
  padding: 12px 16px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  min-width: 70px;
}

.news-date .month {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--secondary);
  letter-spacing: 1px;
}

.news-date .day {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}

.news-date .year {
  font-size: 0.7rem;
  color: var(--text-light);
}

.news-content h4 {
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 8px;
}

.news-content p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.news-type {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.news-type.award { background: #fef3c7; color: #92400e; }
.news-type.paper { background: #dbeafe; color: #1e40af; }
.news-type.event { background: #dcfce7; color: #166534; }
.news-type.announcement { background: #f3e8ff; color: #6b21a8; }

/* ---- Join Section ---- */
.join-content {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: start;
}

.join-text h3 {
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 16px;
  margin-top: 32px;
}

.join-text h3:first-child {
  margin-top: 0;
}

.join-text p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 12px;
}

.join-text ul {
  list-style: none;
  padding: 0;
}

.join-text ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 8px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.join-text ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  background: var(--secondary);
  border-radius: 50%;
}

.join-card {
  padding: 36px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-lg);
  color: white;
}

.join-card h3 {
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.join-card p {
  font-size: 0.95rem;
  opacity: 0.9;
  line-height: 1.7;
  margin-bottom: 24px;
}

.join-card .btn {
  background: white;
  color: var(--primary);
  width: 100%;
  justify-content: center;
}

.join-card .btn:hover {
  background: var(--bg-alt);
  color: var(--primary);
}

.join-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.9rem;
  opacity: 0.9;
}

.join-contact-item .icon {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

/* ---- Footer ---- */
.footer {
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 30px;
}

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

.footer-brand h3 {
  color: white;
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.7;
  max-width: 300px;
}

.footer-col h4 {
  color: white;
  font-size: 0.9rem;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

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

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.88rem;
  transition: color var(--transition);
}

.footer-col ul li a:hover {
  color: var(--secondary-light);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  transition: all var(--transition);
}

.footer-social a:hover {
  background: var(--secondary);
  color: white;
}

/* ---- University Logos ---- */
.nav-uni-logos {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 8px;
  padding-left: 16px;
  border-left: 1px solid var(--border);
}

.nav-uni-logo {
  height: 28px;
  width: auto;
  object-fit: contain;
  opacity: 0.85;
  transition: opacity var(--transition);
}

.nav-uni-logo:hover {
  opacity: 1;
}

.nav-uni-sep {
  width: 1px;
  height: 20px;
  background: var(--border);
  display: block;
}

/* BUPT logo is white-on-transparent.
   Both navbar and partnership banner are light/white backgrounds,
   so darken the logo to match dark text — no background pill needed. */
.nav-bupt-wrap {
  display: flex;
  align-items: center;
}

.nav-uni-logo--bupt {
  filter: brightness(0);
  opacity: 0.75;
  transition: opacity var(--transition);
}

.nav-bupt-wrap:hover .nav-uni-logo--bupt {
  opacity: 1;
}

.bupt-logo-wrap {
  display: flex;
  align-items: center;
}

.uni-logo-img--bupt {
  filter: brightness(0);
  opacity: 0.75;
  transition: opacity var(--transition);
}

.bupt-logo-wrap:hover .uni-logo-img--bupt {
  opacity: 1;
}

.uni-logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
  display: block;
}

.footer-partner-logos {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 28px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 24px;
}

.footer-uni-logo {
  height: 36px;
  width: auto;
  object-fit: contain;
  opacity: 0.7;
  transition: opacity var(--transition);
  filter: brightness(0) invert(1);
}

.footer-uni-logo--dark {
  filter: brightness(0) invert(1);
}

.footer-uni-logo:hover {
  opacity: 1;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .hero h1 { font-size: 2.8rem; }
  .research-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .nav-uni-logos {
    display: none;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .hero { padding: 120px 0 60px; }
  .hero h1 { font-size: 2.2rem; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }

  .section { padding: 60px 0; }
  .section-title { font-size: 1.8rem; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-features { grid-template-columns: 1fr; }

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

  .people-grid { grid-template-columns: 1fr; }
  .person-card { flex-direction: column; text-align: center; }
  .person-avatar { margin: 0 auto; }

  .team-columns { grid-template-columns: 1fr; }
  .team-col:first-child { border-right: none; border-bottom: 1px solid var(--border); }
  .team-col { padding: 24px; }

  .partnership-banner { flex-direction: column; text-align: center; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.8rem; }
  .hero-subtitle { font-size: 1rem; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
}

/* ---- Animations ---- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-alt);
}

::-webkit-scrollbar-thumb {
  background: var(--text-light);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}
