/* Layout and grid systems - Clean Simple Design */

/* Container */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* Header - Clean and Simple */
header {
  background: white;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: var(--z-fixed);
}

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

.logo {
  font-size: 45px;
  font-weight: var(--font-weight-bold);
  text-decoration: none;
  transition: all var(--transition-normal);
  position: relative;
}

/* Individual letter colors - S C A L E, all Carnegie Red */
.letter-s,
.letter-c,
.letter-a1,
.letter-l,
.letter-e { color: #C41230; }

.logo:hover {
  transform: scale(1.05);
}

/* Add subtle glow on hover for each letter */
.logo:hover .letter-s,
.logo:hover .letter-e {
  text-shadow: 0 0 8px rgba(109, 110, 113, 0.6); /* Iron gray glow */
}

.logo:hover .letter-c,
.logo:hover .letter-l {
  text-shadow: 0 0 8px rgba(140, 13, 34, 0.6); /* Carnegie Red glow */
}

.logo:hover .letter-a1 {
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.6); /* Black glow */
}

/* Navigation - Simple Horizontal */
nav ul {
  display: flex;
  list-style: none;
  gap: 40px;
  margin: 0;
  padding: 0;
}

.nav-link {
  text-decoration: none;
  color: var(--text-color);
  font-weight: var(--font-weight-medium);
  font-size: 22px;
  padding: 10px 20px;
  border-radius: var(--border-radius-sm);
  transition: all var(--transition-normal);
}

.nav-link:hover,
.nav-link.active {
  background: var(--primary-color);
  color: white;
}

/* Main Content - Pure White Background */
body {
  background: white !important;
  margin: 0;
  padding: 0;
}

.section {
  padding: 60px 0;
  background: white !important;
}

/* Hero section - Clean and Centered */
.hero {
  text-align: center;
  padding: 100px 0;
  background: white !important;
}

.hero h1 {
  font-size: 60px;
  font-weight: var(--font-weight-bold);
  margin-bottom: 16px;
}

.hero .subtitle {
  font-size: 30px;
  font-weight: var(--font-weight-light);
  color: var(--text-light);
  margin-bottom: 24px;
}

.hero .description {
  font-size: 22px;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: var(--line-height-relaxed);
}

.cta-button {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: var(--border-radius-sm);
  font-weight: var(--font-weight-medium);
  transition: all var(--transition-normal);
}

.cta-button:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  color: white;
}

/* Section Titles */
.section-title {
  font-size: 40px;
  font-weight: var(--font-weight-semibold);
  margin-bottom: 40px;
  text-align: center;
  color: var(--text-color);
}

/* Research Grid */
.research-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.research-card {
  background: white;
  padding: 30px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  transition: all var(--transition-normal);
}

.research-card:hover {
  background: #C41230;
  color: white;
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.research-card h3 {
  font-size: 25px;
  font-weight: var(--font-weight-semibold);
  margin-bottom: 16px;
  color: #C41230;
}

.research-card:hover h3 {
  color: white;
}

.research-card p {
  color: var(--text-light);
  line-height: var(--line-height-relaxed);
}

.research-card:hover p {
  color: white;
}

/* Publications */
.publications-list {
  max-width: 1200px;
  margin: 0 auto;
}

.publication-item {
  background: white;
  padding: 30px;
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  transition: all var(--transition-normal);
}

.publication-item:hover {
  background: #F7E4E8; /* Pale red tint */
  color: black;
  transform: translateX(8px);
}

.publication-title {
  font-size: 22px;
  font-weight: var(--font-weight-semibold);
  margin-bottom: 8px;
  line-height: var(--line-height-tight);
}

.publication-authors {
  color: var(--text-light);
  margin-bottom: 8px;
  font-style: italic;
}

.publication-item:hover .publication-authors {
  color: black;
}

.publication-venue {
  color: var(--primary-color);
  font-weight: var(--font-weight-medium);
  margin-bottom: 16px;
}

.publication-item:hover .publication-venue {
  color: black;
}

.publication-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.publication-link {
  background: var(--bg-light);
  color: var(--text-color);
  padding: 4px 12px;
  text-decoration: none;
  border-radius: var(--border-radius-sm);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  transition: all var(--transition-normal);
}

.publication-link:hover,
.publication-item:hover .publication-link {
  background: #F7E4E8; /* Pale red tint */
  color: black;
}

/* People Section */
.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(600px, 1fr));
  gap: 30px;
}

/* Person card styles moved to components.css for horizontal layout */

/* Fun Section */
.fun-category {
  margin-bottom: 60px;
}

.category-title {
  font-size: 35px;
  color: var(--text-color);
  margin-bottom: 30px;
  text-align: center;
  font-weight: var(--font-weight-semibold);
}

.fun-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.fun-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 24px;
  text-align: center;
  transition: all var(--transition-normal);
}

.fun-card:hover {
  background: #F7E4E8; /* Pale red tint */
  color: black;
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.fun-icon {
  font-size: 60px;
  margin-bottom: 16px;
}

.fun-card h4 {
  font-size: 22px;
  font-weight: var(--font-weight-semibold);
  margin-bottom: 12px;
}

.fun-card p {
  color: var(--text-light);
  line-height: var(--line-height-relaxed);
  margin: 0;
}

.fun-card:hover p {
  color: black;
}

/* Achievements Grid */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.achievement-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all var(--transition-normal);
}

.achievement-card:hover {
  background: #F7E4E8; /* Pale red tint */
  color: black;
  transform: translateX(8px);
}

.achievement-icon {
  font-size: 40px;
  flex-shrink: 0;
}

.achievement-content h4 {
  font-size: 20px;
  font-weight: var(--font-weight-semibold);
  margin-bottom: 4px;
}

.achievement-content p {
  color: var(--text-light);
  margin: 0;
  font-size: 18px;
}

.achievement-card:hover .achievement-content p {
  color: black;
}

/* Traditions Grid */
.traditions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.tradition-item {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  transition: all var(--transition-normal);
}

.tradition-item:hover {
  background: #F7E4E8; /* Pale red tint */
  color: black;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.tradition-icon {
  font-size: 45px;
  flex-shrink: 0;
}

.tradition-content h4 {
  font-size: 20px;
  font-weight: var(--font-weight-semibold);
  margin-bottom: 8px;
}

.tradition-content p {
  color: var(--text-light);
  line-height: var(--line-height-relaxed);
  margin: 0;
  font-size: 18px;
}

.tradition-item:hover .tradition-content p {
  color: black;
}

/* Fun Facts Grid */
.facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.fact-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 24px;
  text-align: center;
  transition: all var(--transition-normal);
}

.fact-card:hover {
  background: #F7E4E8; /* Pale red tint */
  color: black;
  transform: scale(1.05);
  box-shadow: var(--shadow-xl);
}

.fact-number {
  font-size: 60px;
  font-weight: var(--font-weight-bold);
  color: var(--primary-color);
  margin-bottom: 8px;
}

.fact-card:hover .fact-number {
  color: black;
}

.fact-label {
  font-size: 18px;
  font-weight: var(--font-weight-medium);
  color: var(--text-color);
  line-height: var(--line-height-tight);
}

.fact-card:hover .fact-label {
  color: black;
}

.fact-label small {
  font-size: 15px;
  color: var(--text-light);
  font-weight: var(--font-weight-normal);
}

.fact-card:hover .fact-label small {
  color: rgba(0, 0, 0, 0.8);
}

/* Photo Gallery */
.photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
}

.photo-placeholder {
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  text-align: center;
  transition: all var(--transition-normal);
  cursor: pointer;
}

.photo-placeholder:hover {
  background: var(--primary-color);
  color: white;
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}

/* Contact Section - Remove all contact styles since we're removing the section */

/* Footer - Simple and Clean */
.site-footer {
  background: var(--bg-light);
  padding: 40px 0;
  border-top: 1px solid var(--border-color);
  margin-top: var(--spacing-5xl);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.footer-section h3 {
  color: var(--text-color);
  margin-bottom: var(--spacing-md);
}

.footer-section p,
.footer-section a {
  color: var(--text-light);
  text-decoration: none;
  line-height: var(--line-height-relaxed);
}

.footer-section a:hover {
  color: var(--primary-color);
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.social-links {
  display: flex;
  gap: var(--spacing-md);
}

.social-links a {
  font-size: var(--font-size-xl);
  text-decoration: none;
  transition: transform var(--transition-normal);
}

.social-links a:hover {
  transform: scale(1.2);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-xl);
  border-top: 1px solid var(--border-color);
  color: var(--text-light);
}

.footer-bottom a {
  color: var(--text-light);
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--primary-color);
}

/* Team Preview Grid (for index.html) */
.team-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px; /* Reduced gap */
  max-width: 1000px; /* Reduced max-width */
  margin: 0 auto;
}

/* Utility classes */
.text-center {
  text-align: center;
}

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

.text-right {
  text-align: right;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }
.mb-5 { margin-bottom: var(--spacing-xl); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }
.mt-5 { margin-top: var(--spacing-xl); }
/* ==========================================================================
   CMU theme: Carnegie Red accent bar + black footer
   ========================================================================== */

header {
  border-top: 4px solid var(--cmu-red);
}

.site-footer {
  background: var(--cmu-black);
  color: #ffffff;
}

.site-footer .footer-section h3 {
  color: #ffffff;
}

.site-footer .footer-section p,
.site-footer .footer-section a {
  color: #C9C9C9;
}

.site-footer .footer-section a:hover,
.site-footer .footer-bottom a:hover {
  color: var(--cmu-red-on-dark);
}

.site-footer .footer-bottom {
  border-top: 1px solid #333333;
  color: #C9C9C9;
}

.site-footer .footer-bottom a {
  color: #C9C9C9;
}

/* ==========================================================================
   Hero (holds the Venn diagram): black, over the hyperscale network map
   ========================================================================== */

.hero {
  position: relative;
  background:
    linear-gradient(rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.62)),
    url('../images/backgrounds/hyperscale.jpg') center / cover no-repeat,
    var(--cmu-black) !important;
  color: #ffffff;
}

.hero h1 {
  color: #ffffff;
}

.hero .subtitle,
.hero .description {
  color: #E6E6E6;
}

.hero .description strong {
  color: var(--cmu-red-on-dark);
  font-weight: var(--font-weight-semibold);
}

/* Keep the Venn circles legible against the black backdrop */
.hero .intersection-circle {
  border: 2px solid rgba(255, 255, 255, 0.38);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.55);
}

.hero .intersection-circle.efficiency {
  background: linear-gradient(135deg, #4A4A4A, #1A1A1A);
}

.hero .intersection-center {
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.hero .cta-button {
  background: var(--cmu-red);
  color: #ffffff;
}

.hero .cta-button:hover {
  background: var(--cmu-red-dark);
  color: #ffffff;
}

/* ==========================================================================
   Top bar: black, with larger logo and nav type
   ========================================================================== */

header {
  background: var(--cmu-black);
  border-bottom: 1px solid #2A2A2A;
  padding: 15px 0;         /* ~69px total bar */
  border-top-width: 3px;   /* trim the red accent to match */
}

/* Logo reads in the lighter red so it stays legible on black */
header .logo .letter-s,
header .logo .letter-t,
header .logo .letter-a1,
header .logo .letter-r,
header .logo .letter-l,
header .logo .letter-a2,
header .logo .letter-b,
header .logo .letter-c,
header .logo .letter-e {
  color: var(--cmu-red-on-dark);
}

header .logo {
  font-size: 32px;
  line-height: 1.1;
  color: var(--cmu-red-on-dark);
}

header .nav-links a.nav-link {
  color: #F0F0F0;
  font-size: 22px;
  font-weight: var(--font-weight-bold);
  padding: 6px 14px;
  line-height: 1.2;
}

header .nav-links a.nav-link:hover,
header .nav-links a.nav-link.active {
  background: var(--cmu-red);
  color: #ffffff;
}

/* Mobile menu toggle, if shown */
header .menu-toggle,
header .mobile-menu-toggle {
  color: #F0F0F0;
}
