/* ==========================================================================
   Academic Portfolio Stylesheet - Bruno Luçardo Olivaes
   ========================================================================== */

:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-serif: 'Charter', 'Bitstream Charter', 'Sitka Text', 'Cambria', Georgia, serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;

  --bg-primary: #0b0f19;
  --bg-secondary: #111827;
  --bg-card: #162032;
  --bg-card-hover: #1e293b;
  --border-color: #243247;
  --border-accent: #3b82f6;

  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-accent: #60a5fa;

  --accent-gold: #fbbf24;
  --accent-green: #34d399;
  --accent-purple: #c084fc;
  --accent-cyan: #38bdf8;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.5);
  --shadow-hover: 0 10px 30px -5px rgba(59, 130, 246, 0.2);
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--text-accent);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: #93c5fd;
  text-decoration: underline;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 0;
}

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

.nav-brand {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.nav-brand span {
  color: var(--accent-cyan);
}

.nav-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--text-primary);
  text-decoration: none;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  padding: 70px 0 50px;
  border-bottom: 1px solid var(--border-color);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.hero-content h1 {
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #ffffff 40%, #93c5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--accent-cyan);
  font-weight: 600;
  margin-bottom: 16px;
}

.hero-bio {
  font-size: 1.08rem;
  color: var(--text-secondary);
  max-width: 850px;
  line-height: 1.7;
  margin-bottom: 24px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.badge-cern {
  border-color: rgba(59, 130, 246, 0.4);
  color: #60a5fa;
  background: rgba(59, 130, 246, 0.1);
}

.badge-orcid {
  border-color: rgba(163, 230, 53, 0.4);
  color: #a3e635;
  background: rgba(163, 230, 53, 0.1);
}

.badge-open {
  border-color: rgba(245, 158, 11, 0.4);
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.1);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  text-decoration: none !important;
}

.btn-primary {
  background: #2563eb;
  color: #ffffff;
}

.btn-primary:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.btn-outline {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border-color);
}

.btn-outline:hover {
  background: var(--bg-card-hover);
  border-color: var(--text-accent);
  transform: translateY(-2px);
}

/* ==========================================================================
   Master Monograph Featured Card
   ========================================================================== */
.featured-section {
  padding: 48px 0;
  border-bottom: 1px solid var(--border-color);
}

.master-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid #3b82f6;
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.master-card-grid {
  display: flex;
  gap: 36px;
  align-items: center;
  justify-content: space-between;
}

.master-card-text {
  flex: 1;
}

.master-card-cover-wrap {
  flex-shrink: 0;
  text-align: center;
}

.master-cover-img {
  width: 220px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(59, 130, 246, 0.3);
  border: 1px solid rgba(59, 130, 246, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.master-cover-img:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7), 0 0 30px rgba(59, 130, 246, 0.5);
}

@media (max-width: 860px) {
  .master-card-grid {
    flex-direction: column-reverse;
    text-align: left;
  }
  .master-cover-img {
    width: 180px;
  }
}

.master-card::before {
  content: "FEATURED SYNTHESIS";
  position: absolute;
  top: 18px;
  right: -32px;
  background: #2563eb;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 4px 36px;
  transform: rotate(45deg);
}

.master-title {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 8px;
}

.master-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.master-desc {
  font-size: 1.02rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

/* ==========================================================================
   Section Headers
   ========================================================================== */
.section-title-wrap {
  margin: 50px 0 28px;
}

.section-title {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-subtitle {
  font-size: 0.98rem;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ==========================================================================
   Publications Grid & Cards
   ========================================================================== */
.papers-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.paper-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.paper-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.paper-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 12px;
}

.paper-num {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--accent-cyan);
  text-transform: uppercase;
}

.paper-cdd {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: rgba(192, 132, 252, 0.12);
  border: 1px solid rgba(192, 132, 252, 0.3);
  color: var(--accent-purple);
}

.paper-title {
  font-size: 1.32rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #ffffff;
  line-height: 1.35;
  margin-bottom: 12px;
}

.paper-authors {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.paper-summary {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 20px;
}

.paper-metrics {
  background: rgba(11, 15, 25, 0.6);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  border-left: 3px solid var(--border-accent);
}

.paper-metrics strong {
  color: var(--text-primary);
}

.paper-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.82rem;
}

/* ==========================================================================
   Methodology & Integrity Gates Banner
   ========================================================================== */
.methodology-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin: 50px 0;
}

.gates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.gate-item {
  background: var(--bg-card);
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.gate-item h4 {
  font-size: 0.9rem;
  color: var(--accent-cyan);
  margin-bottom: 4px;
}

.gate-item p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Contact Section & Footer
   ========================================================================== */
.contact-section {
  padding: 60px 0;
  text-align: center;
  border-top: 1px solid var(--border-color);
}

.contact-section h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.contact-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
}

footer {
  padding: 32px 0;
  border-top: 1px solid var(--border-color);
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.1rem;
  }
  .master-card {
    padding: 24px;
  }
  .master-card::before {
    display: none;
  }
  .nav-links {
    display: none;
  }
}

