/* ============================================================
   UNLV AI for Healthcare — Shared Stylesheet
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400&display=swap');

:root {
  --primary:        #004C97;
  --primary-dark:   #003570;
  --primary-light:  #1a6ac4;
  --accent:         #CF0A2C;
  --accent-light:   #e8102e;
  --gold:           #c9a84c;
  --light-bg:       #f7fafc;
  --card-bg:        #ffffff;
  --text-primary:   #1a202c;
  --text-secondary: #4a5568;
  --text-muted:     #718096;
  --border:         #e2e8f0;
  --shadow-sm:      0 2px 8px rgba(0,0,0,0.06);
  --shadow:         0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg:      0 8px 40px rgba(0,0,0,0.12);
  --shadow-hover:   0 12px 40px rgba(0,76,151,0.2);
  --radius:         12px;
  --radius-lg:      20px;
  --transition:     all 0.3s cubic-bezier(0.4,0,0.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-primary); line-height: 1.6;
  background: var(--light-bg); overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* === NAVIGATION === */
.site-nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,0.96); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.nav-inner {
  max-width: 1140px; margin: auto; padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between; height: 66px;
}
.nav-logo { display: flex; align-items: center; gap: 0.85rem; }
.nav-logo img { height: 34px; }
.nav-logo-text { display: flex; flex-direction: column; font-size: 0.8rem; line-height: 1.25; }
.nav-logo-text strong { font-weight: 800; color: var(--primary); font-size: 0.87rem; }
.nav-logo-text span { color: var(--text-muted); font-size: 0.72rem; }
.nav-links { display: flex; align-items: center; gap: 0.2rem; }
.nav-links a {
  padding: 0.45rem 0.9rem; border-radius: 8px; font-size: 0.855rem; font-weight: 500;
  color: var(--text-secondary); transition: var(--transition);
}
.nav-links a:hover { background: #eef4fb; color: var(--primary); }
.nav-links a.active { background: var(--primary); color: white; }
.nav-links .nav-cta { background: var(--accent); color: white !important; margin-left: 0.5rem; padding: 0.45rem 1rem; }
.nav-links .nav-cta:hover { background: var(--accent-light); }

/* === HERO === */
.hero {
  background: linear-gradient(140deg, #002a5e 0%, #004C97 45%, #0c6dc4 80%, #1a85e0 100%);
  color: white; position: relative; overflow: hidden;
}
.hero-dots {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(255,255,255,0.055) 1px, transparent 1px);
  background-size: 36px 36px;
}
.hero-inner {
  max-width: 1140px; margin: auto; padding: 5.5rem 2rem;
  display: grid; grid-template-columns: 1fr 420px; gap: 4rem; align-items: center;
  position: relative; z-index: 1;
}
.hero-inner.centered {
  grid-template-columns: 1fr; text-align: center; max-width: 820px; padding: 5rem 2rem;
}
.hero-inner.centered .hero-badge { justify-content: center; }
.hero-inner.centered .hero-btns { justify-content: center; }
.hero-inner.centered p { margin-left: auto; margin-right: auto; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(255,255,255,0.12); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.22); border-radius: 100px;
  padding: 0.4rem 1rem; font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.07em; text-transform: uppercase;
  color: rgba(255,255,255,0.9); margin-bottom: 1.5rem;
}
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: #4ade80; flex-shrink: 0; }
.hero h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.4rem); font-weight: 800;
  line-height: 1.12; margin-bottom: 1.25rem;
}
.hero h1 em { color: #93c5fd; font-style: normal; }
.hero h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.5rem); font-weight: 700;
  line-height: 1.2; margin-bottom: 1rem;
}
.hero p {
  font-size: 1.05rem; color: rgba(255,255,255,0.83);
  margin-bottom: 2.25rem; max-width: 520px; line-height: 1.75;
}
.hero-btns { display: flex; gap: 0.875rem; flex-wrap: wrap; }
.hero-meta {
  display: flex; gap: 2.5rem; flex-wrap: wrap;
  margin-top: 2.5rem; padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.hero-meta-num { font-size: 1.7rem; font-weight: 800; color: white; line-height: 1; }
.hero-meta-label { font-size: 0.73rem; color: rgba(255,255,255,0.55); margin-top: 0.25rem; }

/* === BUTTONS === */
.btn {
  padding: 0.75rem 1.75rem; border-radius: 100px; font-size: 0.9rem; font-weight: 600;
  cursor: pointer; border: none; transition: var(--transition);
  display: inline-flex; align-items: center; gap: 0.5rem; white-space: nowrap;
}
.btn-white { background: white; color: var(--primary); }
.btn-white:hover { background: #dbeafe; transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,0.15); }
.btn-outline-white { background: transparent; color: white; border: 2px solid rgba(255,255,255,0.4); }
.btn-outline-white:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.8); transform: translateY(-2px); }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.btn-accent { background: var(--accent); color: white; }
.btn-accent:hover { filter: brightness(1.1); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; transform: translateY(-2px); }
.btn-sm { padding: 0.5rem 1.2rem; font-size: 0.82rem; }
.btn-lg { padding: 0.95rem 2.25rem; font-size: 1rem; }

/* === SECTIONS === */
.section { padding: 5rem 2rem; }
.section-inner { max-width: 1140px; margin: auto; }
.section-alt { background: white; }
.section-dark { background: linear-gradient(135deg, #002a5e 0%, #003d7a 100%); color: white; }
.section-dark .section-title { color: white; }
.section-dark .section-subtitle { color: rgba(255,255,255,0.72); }
.section-dark .section-label { color: #93c5fd; }
.section-label {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 0.6rem;
  display: block;
}
.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 800;
  color: var(--primary); margin-bottom: 1rem; line-height: 1.2;
}
.section-subtitle { font-size: 1.05rem; color: var(--text-secondary); max-width: 620px; line-height: 1.75; }
.section-header { margin-bottom: 3rem; }
.section-header.centered { text-align: center; }
.section-header.centered .section-subtitle { margin-left: auto; margin-right: auto; }

/* === STATS BAR === */
.stats-bar { background: white; border-bottom: 1px solid var(--border); }
.stats-bar-inner { max-width: 1140px; margin: auto; display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-item { padding: 1.75rem 2rem; text-align: center; border-right: 1px solid var(--border); }
.stat-item:last-child { border-right: none; }
.stat-num { font-size: 2.2rem; font-weight: 800; color: var(--primary); line-height: 1; }
.stat-label { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.3rem; font-weight: 500; }

/* === CARDS === */
.cards-grid { display: grid; gap: 1.5rem; }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: white; border-radius: var(--radius); padding: 1.75rem;
  box-shadow: var(--shadow); border: 1px solid var(--border);
  transition: var(--transition); position: relative; overflow: hidden;
}
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); border-color: rgba(0,76,151,0.22); }
.card-top-bar { position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--primary), var(--accent)); }
.card-icon {
  width: 52px; height: 52px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem; font-size: 1.5rem;
}
.icon-blue   { background: #dbeafe; }
.icon-red    { background: #fee2e2; }
.icon-green  { background: #d1fae5; }
.icon-purple { background: #ede9fe; }
.icon-gold   { background: #fef3c7; }
.card-tag {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 0.5rem; display: block;
}
.card h3 { font-size: 1.1rem; font-weight: 700; color: var(--primary); margin-bottom: 0.65rem; line-height: 1.3; }
.card p { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.7; }
.card-link {
  display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 1.25rem;
  font-size: 0.85rem; font-weight: 600; color: var(--primary); transition: var(--transition);
}
.card-link:hover { gap: 0.7rem; color: var(--accent); }

/* Project cards */
.project-card {
  background: white; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--border);
  transition: var(--transition); display: flex; flex-direction: column;
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.project-card-hdr {
  padding: 2rem 2rem 1.75rem;
  background: linear-gradient(135deg, #003570 0%, #004C97 100%);
  color: white; position: relative; overflow: hidden;
}
.project-card-hdr::after {
  content: ''; position: absolute; bottom: -40px; right: -40px;
  width: 120px; height: 120px; border-radius: 50%; background: rgba(255,255,255,0.05);
}
.project-card-hdr::before {
  content: ''; position: absolute; top: -20px; left: -20px;
  width: 80px; height: 80px; border-radius: 50%; background: rgba(255,255,255,0.04);
}
.project-card-label {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(255,255,255,0.6); margin-bottom: 0.6rem; display: block;
}
.project-card-hdr h3 { font-size: 1.1rem; font-weight: 700; line-height: 1.35; position: relative; z-index: 1; }
.project-card-body { padding: 1.75rem; flex: 1; }
.project-card-footer {
  padding: 1.25rem 1.75rem; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.75rem;
}
.investigator-tags { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.inv-tag {
  font-size: 0.7rem; font-weight: 600; padding: 0.25rem 0.65rem;
  border-radius: 100px; background: #dbeafe; color: var(--primary);
}
.inv-tag.pi { background: var(--primary); color: white; }
.inv-tag.coi { background: #e0e7ff; color: #3730a3; }

/* === PEOPLE / TEAM === */
.people-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.people-grid-2 { grid-template-columns: repeat(2, 1fr); max-width: 780px; margin-left: auto; margin-right: auto; }

.person-card {
  background: white; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--border);
  transition: var(--transition); text-align: center;
}
.person-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.person-img-wrap {
  position: relative; padding-top: 90%;
  background: linear-gradient(135deg, #dbeafe, #bfdbfe); overflow: hidden;
}
.person-img-wrap img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: top;
}
.person-info { padding: 1.5rem 1.25rem; }
.person-info h3 { font-size: 1rem; font-weight: 700; color: var(--primary); margin-bottom: 0.2rem; }
.person-role { font-size: 0.73rem; color: var(--accent); font-weight: 700; margin-bottom: 0.75rem; }
.person-bio { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.65; }
.person-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; justify-content: center; margin-top: 0.85rem; }

/* === TAGS === */
.tag {
  display: inline-block; padding: 0.28rem 0.75rem; border-radius: 100px;
  font-size: 0.72rem; font-weight: 600;
}
.tag-blue   { background: #dbeafe; color: #1e40af; }
.tag-red    { background: #fee2e2; color: #991b1b; }
.tag-green  { background: #d1fae5; color: #065f46; }
.tag-purple { background: #ede9fe; color: #5b21b6; }
.tag-gold   { background: #fef3c7; color: #92400e; }
.tag-gray   { background: #f1f5f9; color: #475569; }

/* === CALLOUT BOXES === */
.callout {
  border-radius: var(--radius); padding: 1.5rem 2rem;
  border-left: 4px solid var(--primary); background: #dbeafe;
}
.callout.accent  { background: #fee2e2; border-color: var(--accent); }
.callout.green   { background: #d1fae5; border-color: #059669; }
.callout.gold    { background: #fef3c7; border-color: #d97706; }
.callout.purple  { background: #ede9fe; border-color: #7c3aed; }
.callout h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--primary); }
.callout.accent h4 { color: var(--accent); }
.callout p { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.7; }

.pullquote {
  font-size: 1.2rem; font-weight: 600; color: var(--primary); font-style: italic;
  border-left: 4px solid var(--accent); padding: 1rem 1.75rem;
  margin: 2rem 0; line-height: 1.55; background: #f8faff;
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* === IMPACT STATS === */
.impact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.impact-block {
  background: white; border-radius: var(--radius); padding: 1.75rem 1.25rem;
  border: 1px solid var(--border); box-shadow: var(--shadow-sm); text-align: center;
  position: relative; overflow: hidden;
}
.impact-block::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}
.impact-num {
  font-size: 2.6rem; font-weight: 900; line-height: 1;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.impact-label { font-size: 0.8rem; color: var(--text-secondary); margin-top: 0.5rem; line-height: 1.5; }

/* === TIMELINE === */
.timeline { position: relative; padding-left: 2.5rem; }
.timeline::before {
  content: ''; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--accent));
}
.timeline-item { position: relative; margin-bottom: 2.25rem; }
.timeline-item::before {
  content: ''; position: absolute; left: -2.5rem; top: 4px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--primary); border: 3px solid white; box-shadow: 0 0 0 2px var(--primary);
}
.timeline-date { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.25rem; }
.timeline-item h4 { font-size: 0.95rem; font-weight: 700; color: var(--primary); margin-bottom: 0.35rem; }
.timeline-item p { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.65; }

/* === DELIVERABLE TABLE === */
.deliv-table { width: 100%; border-collapse: collapse; }
.deliv-table th {
  background: var(--primary); color: white; padding: 0.75rem 1rem;
  font-size: 0.8rem; font-weight: 700; text-align: left;
}
.deliv-table th:first-child { border-radius: var(--radius) 0 0 0; }
.deliv-table th:last-child  { border-radius: 0 var(--radius) 0 0; }
.deliv-table td { padding: 0.85rem 1rem; font-size: 0.875rem; border-bottom: 1px solid var(--border); }
.deliv-table tr:nth-child(even) td { background: #f8fafc; }
.deliv-table tr:last-child td { border-bottom: none; }

/* === BREADCRUMB === */
.breadcrumb { background: white; border-bottom: 1px solid var(--border); padding: 0.85rem 2rem; }
.breadcrumb-inner {
  max-width: 1140px; margin: auto; display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.82rem; color: var(--text-muted);
}
.breadcrumb a { color: var(--primary); font-weight: 500; }
.breadcrumb a:hover { text-decoration: underline; }

/* === FOOTER === */
.site-footer { background: #001833; color: white; padding: 4rem 2rem 2rem; }
.footer-inner { max-width: 1140px; margin: auto; }
.footer-top { display: grid; grid-template-columns: 2.5fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand h3 { font-size: 1rem; font-weight: 800; margin-bottom: 0.75rem; }
.footer-brand p { font-size: 0.82rem; color: rgba(255,255,255,0.48); line-height: 1.75; max-width: 300px; }
.footer-brand img { margin-top: 1.5rem; height: 30px; opacity: 0.45; filter: brightness(10); }
.footer-col h4 {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(255,255,255,0.38); margin-bottom: 1rem;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a { font-size: 0.84rem; color: rgba(255,255,255,0.62); transition: var(--transition); }
.footer-col a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08); padding-top: 1.75rem;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
}
.footer-bottom p { font-size: 0.78rem; color: rgba(255,255,255,0.35); }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .impact-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .section { padding: 3.5rem 1.25rem; }
  .cards-2, .cards-3, .cards-4 { grid-template-columns: 1fr; }
  .people-grid, .people-grid-2 { grid-template-columns: 1fr; }
  .stats-bar-inner { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(even) { border-right: none; }
  .stat-item { border-bottom: 1px solid var(--border); }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .impact-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .hero-inner { padding: 3rem 1.25rem; }
  .nav-links a { padding: 0.4rem 0.55rem; font-size: 0.78rem; }
  .hero h1 { font-size: 1.9rem; }
  .hero-btns { flex-direction: column; align-items: flex-start; }
  .hero-inner.centered .hero-btns { align-items: center; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); }
}
@keyframes spinSlow {
  from { transform: rotate(0deg); } to { transform: rotate(360deg); }
}
@keyframes particle {
  0%   { transform: translateY(0) scale(1); opacity: 0.7; }
  100% { transform: translateY(-100vh) scale(0.4); opacity: 0; }
}
@keyframes dash { to { stroke-dashoffset: 0; } }

.anim-fade-up    { animation: fadeInUp 0.7s ease both; }
.anim-fade-up-d1 { animation: fadeInUp 0.7s 0.15s ease both; }
.anim-fade-up-d2 { animation: fadeInUp 0.7s 0.3s ease both; }
.anim-fade-up-d3 { animation: fadeInUp 0.7s 0.45s ease both; }
.anim-float      { animation: floatY 5s ease-in-out infinite; }

/* === UTILITY === */
.text-center { text-align: center; }
.divider { height: 1px; background: var(--border); margin: 2.5rem 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.two-col-wide { display: grid; grid-template-columns: 3fr 2fr; gap: 3rem; align-items: start; }
@media (max-width: 768px) {
  .two-col, .two-col-wide { grid-template-columns: 1fr; }
}
