/* ===========================
   Data Calculator - DASlab @ Harvard
   Modern Bootstrap Theme
   Color palette: Harvard crimson
   =========================== */

/* Base */
html, body {
    background-color: #fff;
}

body {
    overflow-x: hidden;
    font-family: 'Lato', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

p {
    font-size: 18px;
    font-weight: 300;
    line-height: 1.8;
    color: #4a3f44;
}

a,
a:focus,
a:active,
a.active {
    outline: 0;
    color: #A51C30;
    transition: color 0.2s ease;
}

a:hover {
    color: #c82135;
    text-decoration: none;
}

a.anchor {
    display: block;
    position: relative;
    visibility: hidden;
    top: -80px;
}

@media (min-width: 992px) {
    a.anchor {
        top: -100px;
    }
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 700;
    letter-spacing: 0.02em;
}

/* ===========================
   Navbar
   =========================== */
.navbar {
    background: rgba(26, 10, 14, 0.97);
    border: none;
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
    min-height: 65px;
    padding: 0;
}

.navbar-brand {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #fff !important;
    letter-spacing: 0.05em;
    padding: 20px 15px;
    text-transform: uppercase;
}

.navbar-brand span.accent {
    color: #c82135;
}

.navbar-nav > li > a {
    color: rgba(255,255,255,0.8) !important;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 22px 14px;
    transition: color 0.2s ease;
}

.navbar-nav > li > a:hover {
    color: #c82135 !important;
    background: transparent !important;
}

.navbar-toggle {
    border-color: rgba(255,255,255,0.3);
    margin-top: 15px;
}

.navbar-toggle .icon-bar {
    background-color: #fff;
}

/* ===========================
   Hero Header
   =========================== */
header {
    background: linear-gradient(135deg, #1a0a0e 0%, #2d1018 50%, #1a0a0e 100%);
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at center, rgba(165, 28, 48, 0.15) 0%, transparent 70%);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background: rgba(165, 28, 48, 0.15);
    border: 1px solid rgba(165, 28, 48, 0.4);
    color: #e8a0ab;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 6px 18px;
    border-radius: 20px;
    margin-bottom: 24px;
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 52px;
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.hero-title span {
    color: #c82135;
}

.hero-subtitle {
    font-size: 20px;
    color: rgba(255,255,255,0.6);
    font-weight: 300;
    margin-bottom: 40px;
    line-height: 1.5;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero-meta {
    font-size: 14px;
    color: rgba(255,255,255,0.45);
    font-weight: 400;
    letter-spacing: 0.02em;
}

.hero-meta a {
    color: rgba(255,255,255,0.65);
}

.hero-meta a:hover {
    color: #c82135;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
    }
    .hero-subtitle {
        font-size: 16px;
    }
    header {
        padding: 100px 0 60px;
    }
}

/* ===========================
   Sections
   =========================== */
section {
    padding: 80px 0;
    background: #fff;
}

section h2 {
    font-size: 28px;
    text-transform: uppercase;
    color: #1a0a0e;
    margin-bottom: 40px;
    letter-spacing: 0.05em;
}

section h2::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: #A51C30;
    margin-top: 12px;
}

section h2.text-center::after {
    margin-left: auto;
    margin-right: auto;
}

section.alt {
    background: #faf4f5;
}

section.alt h2 {
    color: #1a0a0e;
}

/* Dark (Highlights) section */
section.dark {
    background: #1a0a0e;
    color: #fff;
}

section.dark h2 {
    color: #fff;
}

section.dark h2::after {
    background: #c82135;
}

section.dark p {
    color: rgba(255,255,255,0.85);
}

/* ===========================
   Flat feature blocks
   =========================== */
.flat-feature {
    margin-bottom: 40px;
}

.flat-feature .flat-icon {
    font-size: 28px;
    color: #A51C30;
    margin-bottom: 12px;
}

.flat-feature h3 {
    font-size: 16px;
    font-weight: 700;
    color: #1a0a0e;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.flat-feature p {
    font-size: 16px;
    color: #6a5a60;
    line-height: 1.7;
    margin: 0;
}

.flat-feature + .flat-feature {
    border-top: 1px solid #e8d1d5;
    padding-top: 32px;
}

/* ===========================
   Stat Boxes  (Highlights only)
   =========================== */
.stat-grid {
    margin: 40px 0;
}

.stat-box {
    text-align: center;
    padding: 32px 20px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 6px;
    margin-bottom: 16px;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.stat-box:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(200, 33, 53, 0.4);
}

.stat-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 44px;
    font-weight: 700;
    color: #c82135;
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 13px;
    color: rgba(255,255,255,0.9);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    margin-bottom: 4px;
}

.stat-detail {
    font-size: 13px;
    color: rgba(255,255,255,0.55);
    margin-top: 2px;
}

/* ===========================
   Publications (flat)
   =========================== */
.publication-entry {
    padding: 28px 0;
    border-bottom: 1px solid #e8d1d5;
}

.publication-entry:last-child {
    border-bottom: none;
}

.publication-entry .pub-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a0a0e;
    margin-bottom: 8px;
    line-height: 1.4;
}

.publication-entry .pub-title a {
    color: #1a0a0e;
}

.publication-entry .pub-title a:hover {
    color: #A51C30;
}

.publication-entry .pub-authors {
    font-size: 15px;
    color: #6a5a60;
    margin-bottom: 5px;
    line-height: 1.6;
}

.publication-entry .pub-venue {
    font-size: 14px;
    color: #999;
    font-style: italic;
}

.pub-badge {
    display: inline-block;
    background: #A51C30;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 3px 9px;
    border-radius: 3px;
    margin-right: 10px;
    vertical-align: middle;
    position: relative;
    top: -2px;
}

.pub-badge.alt {
    background: #2d1018;
}

/* ===========================
   People Section (flat)
   =========================== */
.team-member {
    text-align: center;
    margin-bottom: 36px;
}

.team-member img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #e8d1d5;
    transition: border-color 0.2s ease;
    margin-bottom: 14px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.team-member:hover img {
    border-color: #A51C30;
}

.team-avatar-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 2px solid #e8d1d5;
    background: #faf0f1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    font-size: 40px;
    color: #c8a0a8;
    transition: border-color 0.2s ease;
}

.team-member:hover .team-avatar-placeholder {
    border-color: #A51C30;
}

.team-member h4 {
    font-size: 16px;
    font-weight: 700;
    color: #1a0a0e;
    text-transform: none;
    margin-bottom: 4px;
    letter-spacing: 0;
}

.team-member p.role {
    font-size: 13px;
    color: #999;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0;
}

.team-member a {
    color: inherit;
    text-decoration: none;
}

/* ===========================
   Feature blocks
   =========================== */
.feature-block {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 32px;
}

.feature-block .feature-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #A51C30;
    padding-top: 2px;
}

.feature-block .feature-text h4 {
    font-size: 14px;
    font-weight: 700;
    color: #1a0a0e;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 5px;
}

.feature-block .feature-text p {
    font-size: 15px;
    color: #6a5a60;
    margin: 0;
    line-height: 1.65;
}

/* ===========================
   Footer
   =========================== */
footer {
    background: #0e0608;
    color: rgba(255,255,255,0.4);
    text-align: center;
}

footer .footer-above {
    padding: 36px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

footer .footer-below {
    padding: 18px 0;
    font-size: 13px;
}

footer a {
    color: rgba(255,255,255,0.5);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-decoration: none;
    transition: color 0.2s ease;
}

footer a:hover {
    color: #c82135;
}

/* ===========================
   Scroll to top
   =========================== */
.scroll-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
}

.scroll-top .btn {
    background: #A51C30;
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(165,28,48,0.4);
}

.scroll-top .btn:hover {
    background: #c82135;
}

/* ===========================
   Utility
   =========================== */
.section-lead {
    font-size: 19px;
    color: #6a5a60;
    max-width: 900px;
    margin-bottom: 48px;
    line-height: 1.75;
}

.section-lead.center {
    margin-left: auto;
    margin-right: auto;
}

.divider {
    width: 48px;
    height: 3px;
    background: #A51C30;
    margin: 12px 0 36px;
}

.divider.center {
    margin-left: auto;
    margin-right: auto;
}

code {
    background: #faf0f1;
    color: #A51C30;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.9em;
}

/* Responsive */
@media (max-width: 768px) {
    section {
        padding: 56px 0;
    }
    .stat-number {
        font-size: 34px;
    }
}
