/* ============================================
   masslengthtime.com - Custom Styles
   ============================================ */

/* ---- Typography ---- */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #2c3e50;
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0d2b3e;
}

a {
  color: #1a6b8a;
  transition: color 0.2s ease;
}

a:hover {
  color: #0d4b63;
}

/* ---- Header / Branding ---- */
.header {
  background: linear-gradient(135deg, #0d2b3e 0%, #1a6b8a 100%);
}

.navbar-brand a {
  color: #ffffff;
}

.logo {
  filter: brightness(0) invert(1);
}

.site-description {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  font-weight: 300;
}

/* ---- Navigation ---- */
.container-nav {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e9ecef;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.nav-item {
  transition: background 0.2s ease;
}

/* ---- Cards / Content ---- */
.card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

/* ---- Buttons ---- */
.btn-primary {
  background-color: #1a6b8a;
  border-color: #1a6b8a;
  border-radius: 50px;
  padding: 0.5rem 1.5rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background-color: #0d4b63;
  border-color: #0d4b63;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26,107,138,0.3);
}

/* ---- Footer ---- */
.container-footer {
  background: #0d2b3e;
  color: rgba(255, 255, 255, 0.8);
}

.container-footer a {
  color: #80cbc4;
}

.container-footer a:hover {
  color: #ffffff;
}

/* ---- Profile Photo ---- */
.profile-photo img {
  border-radius: 50%;
  border: 4px solid #ffffff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  max-width: 200px;
  height: auto;
}

/* ---- Publication Listings ---- */
.publication-item {
  padding: 1.5rem;
  margin-bottom: 1rem;
  border-left: 4px solid #1a6b8a;
  background: #f8fafc;
  border-radius: 0 8px 8px 0;
  transition: background 0.2s ease;
}

.publication-item:hover {
  background: #f0f7fb;
}

.publication-item .pub-title {
  font-weight: 600;
  color: #0d2b3e;
}

.publication-item .pub-authors {
  color: #6c757d;
  font-size: 0.9rem;
}

.publication-item .pub-meta {
  color: #495057;
  font-size: 0.85rem;
  font-style: italic;
}

/* ---- Section Headers ---- */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-header::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: #1a6b8a;
  margin: 1rem auto 0;
  border-radius: 2px;
}

/* ---- Responsive adjustments ---- */
@media (max-width: 768px) {
  .publication-item {
    padding: 1rem;
  }
}

/* ---- Smooth scroll ---- */
html {
  scroll-behavior: smooth;
}

/* ---- Back to top ---- */
.back-to-top-link {
  background: #1a6b8a;
  color: #ffffff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  transition: all 0.2s ease;
}

.back-to-top-link:hover {
  background: #0d4b63;
  transform: translateY(-2px);
}
