:root {
  /* John Jay College Official Colors */
  --jj-navy: #002D62;
  --jj-light-blue: #5090CC;
  --jj-white: #FEFEFE;
  
  /* Extended Palette */
  --jj-navy-light: #003D7A;
  --jj-blue-lighter: #6FA8D6;
  --jj-accent: #4A8BC2;
  --text-dark: #1a1a1a;
  --text-medium: #4a4a4a;
  --text-light: #6a6a6a;
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  --border-color: #e0e0e0;
  --shadow-sm: 0 2px 8px rgba(0, 45, 98, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 45, 98, 0.12);
  --shadow-lg: 0 8px 32px rgba(0, 45, 98, 0.16);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  line-height: 1.7;
  color: var(--text-dark);
  background-color: var(--bg-white);
  overflow-x: hidden;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--bg-white);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition: transform 0.3s ease;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--jj-navy);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--jj-navy) 0%, var(--jj-light-blue) 100%);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 0.9rem;
}

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

.nav-links a {
  color: var(--text-medium);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--jj-light-blue);
}

.nav-cta {
  background: var(--jj-light-blue);
  color: white !important;
  padding: 0.6rem 1.5rem;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.nav-cta:hover {
  background: var(--jj-navy);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--jj-navy);
  cursor: pointer;
  padding: 0.5rem;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--jj-navy) 0%, var(--jj-navy-light) 100%);
  color: white;
  padding: 8rem 2rem 4rem;
  margin-top: 70px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(80, 144, 204, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(80, 144, 204, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 300;
  font-style: italic;
  color: var(--jj-blue-lighter);
  margin-bottom: 2rem;
}

/* Main Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.container-wide {
  max-width: 1400px;
}

/* Section Styles */
.section {
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--jj-navy);
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--jj-light-blue) 0%, var(--jj-blue-lighter) 100%);
  border-radius: 2px;
}

.section-content {
  font-size: 1.1rem;
  color: var(--text-medium);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.section-content strong {
  color: var(--text-dark);
  font-weight: 600;
}

/* Team Photo */
.team-photo {
  width: 100%;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  margin: 2rem 0 3rem;
  display: block;
  transition: transform 0.3s ease;
}

.team-photo:hover {
  transform: scale(1.01);
}

/* Feature List */
.feature-list {
  list-style: none;
  margin: 2rem 0;
}

.feature-list li {
  padding: 1rem 0 1rem 3rem;
  position: relative;
  border-bottom: 1px solid var(--border-color);
}

.feature-list li:last-child {
  border-bottom: none;
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.25rem;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--jj-light-blue) 0%, var(--jj-blue-lighter) 100%);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-list li strong {
  color: var(--jj-navy);
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
}

/* Topic Grid */
.topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.topic-card {
  background: var(--bg-white);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  text-decoration: none;
  color: var(--text-dark);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.topic-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--jj-navy) 0%, var(--jj-light-blue) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.topic-card:hover {
  border-color: var(--jj-light-blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.topic-card:hover::before {
  transform: scaleX(1);
}

.topic-number {
  display: inline-block;
  width: 40px;
  height: 40px;
  background: var(--jj-light-blue);
  color: white;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.topic-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--jj-navy);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.topic-arrow {
  color: var(--jj-light-blue);
  font-size: 1.5rem;
  transition: transform 0.3s ease;
  display: inline-block;
  margin-top: 0.5rem;
}

.topic-card:hover .topic-arrow {
  transform: translateX(6px);
}

/* Topic Page Styles */
.topic-header {
  background: linear-gradient(135deg, var(--jj-navy) 0%, var(--jj-navy-light) 100%);
  color: white;
  padding: 6rem 2rem 3rem;
  margin-top: 70px;
}

.topic-header-container {
  max-width: 1200px;
  margin: 0 auto;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--jj-blue-lighter);
  text-decoration: none;
  font-weight: 500;
  margin-bottom: 2rem;
  transition: all 0.2s ease;
}

.back-link:hover {
  color: white;
  transform: translateX(-4px);
}

.topic-page-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.research-team {
  font-size: 1.1rem;
  color: var(--jj-blue-lighter);
  font-weight: 500;
}

.topic-section {
  background: var(--bg-white);
  border-radius: 12px;
  padding: 2.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.topic-section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--jj-navy);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid var(--jj-light-blue);
}

.insights-list,
.gaps-list,
.references-list {
  list-style: none;
  margin-top: 1.5rem;
}

.insights-list li,
.gaps-list li {
  padding: 1.25rem 0 1.25rem 3rem;
  position: relative;
  border-bottom: 1px solid var(--border-color);
  font-size: 1.05rem;
  line-height: 1.7;
}

.insights-list li:last-child,
.gaps-list li:last-child {
  border-bottom: none;
}

.insights-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 1.25rem;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--jj-light-blue) 0%, var(--jj-blue-lighter) 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.2rem;
}

.gaps-list li::before {
  content: '?';
  position: absolute;
  left: 0;
  top: 1.25rem;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--jj-navy) 0%, var(--jj-navy-light) 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.3rem;
}

.insights-list li strong,
.gaps-list li strong {
  color: var(--jj-navy);
  font-weight: 700;
}

.references-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-medium);
}

.references-list li:last-child {
  border-bottom: none;
}

/* Contact Form */
.contact-section {
  background: var(--bg-light);
  border-radius: 12px;
  padding: 3rem;
  margin-top: 3rem;
}

.contact-form {
  max-width: 600px;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 600;
  color: var(--jj-navy);
  margin-bottom: 0.5rem;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.875rem;
  border: 2px solid var(--border-color);
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--jj-light-blue);
  box-shadow: 0 0 0 3px rgba(80, 144, 204, 0.1);
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

.submit-btn {
  background: var(--jj-light-blue);
  color: white;
  padding: 1rem 2.5rem;
  border: none;
  border-radius: 6px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.submit-btn:hover {
  background: var(--jj-navy);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Footer */
.footer {
  background: var(--jj-navy);
  color: white;
  padding: 3rem 2rem 2rem;
  margin-top: 4rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--jj-blue-lighter);
}

.footer-text {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.footer-credit {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-white);
    flex-direction: column;
    padding: 1rem;
    box-shadow: var(--shadow-md);
    gap: 0;
  }

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

  .nav-links li {
    width: 100%;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .hero {
    padding: 6rem 1.5rem 3rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .container {
    padding: 2rem 1.5rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .topics-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .topic-header {
    padding: 5rem 1.5rem 2rem;
  }

  .topic-page-title {
    font-size: 2rem;
  }

  .topic-section {
    padding: 1.5rem;
  }

  .contact-section {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .topic-card {
    padding: 1.5rem;
  }

  .topic-title {
    font-size: 1.1rem;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeInUp 0.6s ease-out forwards;
}

/* Print Styles */
@media print {
  .nav,
  .footer,
  .back-link,
  .contact-section {
    display: none;
  }

  .hero,
  .topic-header {
    background: white;
    color: black;
    padding: 2rem 0;
  }

  .topic-card {
    page-break-inside: avoid;
  }
}
