/* Custom Modern Design System for Louis Rossignol Research Website */

:root {
  --primary-color: #0f172a;
  --accent-blue: #2563eb;
  --accent-cyan: #0284c7;
  --accent-purple: #7c3aed;
  --accent-emerald: #059669;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --bg-light: #f8fafc;
  --card-bg: #ffffff;
  --card-border: #e2e8f0;
  --radius-lg: 16px;
  --radius-md: 10px;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-hover: 0 20px 30px -10px rgba(37, 99, 235, 0.15);
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.65;
  padding-top: 85px; /* Offset for fixed navbar since masthead is removed */
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: -0.02em;
}

/* Glassmorphism Navbar */
#mainNav {
  background-color: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  transition: all 0.3s ease;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

#mainNav .navbar-brand {
  color: var(--primary-color) !important;
  font-weight: 800;
  font-size: 1.35rem;
}

#mainNav .navbar-nav .nav-item .nav-link {
  color: var(--text-dark) !important;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  transition: all 0.2s ease;
}

#mainNav .navbar-nav .nav-item .nav-link:hover,
#mainNav .navbar-nav .nav-item .nav-link.active {
  color: var(--accent-blue) !important;
  background-color: rgba(37, 99, 235, 0.08);
}

/* Header Masthead */
header.masthead {
  margin-bottom: 2.5rem;
  position: relative;
  border-bottom-left-radius: 24px;
  border-bottom-right-radius: 24px;
  overflow: hidden;
}

header.masthead .overlay {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.82) 0%, rgba(30, 41, 59, 0.75) 100%);
}

header.masthead .page-heading, header.masthead .site-heading {
  padding: 80px 0 60px;
}

header.masthead .page-heading h1, header.masthead .site-heading h1 {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

header.masthead .subheading {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 400;
  opacity: 0.95;
  margin-top: 0.5rem;
}

/* Modern Card Component */
.content-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow-md);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}

.content-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(37, 99, 235, 0.3);
}

.content-card h3 {
  font-size: 1.35rem;
  margin-top: 0;
  margin-bottom: 0.6rem;
  color: var(--primary-color);
}

/* Status & Tag Chips */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.825rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-right: 0.4rem;
  margin-bottom: 0.4rem;
}

.chip-blue {
  background-color: rgba(37, 99, 235, 0.1);
  color: var(--accent-blue);
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.chip-purple {
  background-color: rgba(124, 58, 237, 0.1);
  color: var(--accent-purple);
  border: 1px solid rgba(124, 58, 237, 0.2);
}

.chip-emerald {
  background-color: rgba(5, 150, 105, 0.1);
  color: var(--accent-emerald);
  border: 1px solid rgba(5, 150, 105, 0.2);
}

.chip-cyan {
  background-color: rgba(2, 132, 199, 0.1);
  color: var(--accent-cyan);
  border: 1px solid rgba(2, 132, 199, 0.2);
}

/* Profile Section Grid */
.hero-profile-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.25rem;
  align-items: center;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 2.5rem;
}

.profile-avatar-wrap {
  position: relative;
  width: 100%;
  max-width: 260px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 3px solid #ffffff;
}

.profile-avatar-wrap img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.profile-avatar-wrap:hover img {
  transform: scale(1.04);
}

/* Timeline Components */
.timeline {
  position: relative;
  padding-left: 2rem;
  margin-left: 0.5rem;
  border-left: 2px solid var(--card-border);
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.4rem;
  top: 0.35rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-blue);
  border: 3px solid #ffffff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.timeline-date {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-blue);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

/* Section Titles */
.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--card-border);
}

.section-title-wrap h2 {
  margin: 0;
  font-size: 1.75rem;
}

.section-title-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--accent-blue);
  font-size: 1.1rem;
}

/* Responsive Rules */
@media (max-width: 768px) {
  .hero-profile-container {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 1.5rem;
  }

  .profile-avatar-wrap {
    margin: 0 auto;
  }

  header.masthead .page-heading h1 {
    font-size: 2.1rem;
  }
}
