/* Modern 2025 Design System */
:root {
  --primary-color: #2563eb;
  --secondary-color: #10b981;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --border-color: #e2e8f0;
  --card-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --card-shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

body {
  padding-top: 70px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
  color: var(--text-primary);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
}

/* Navbar */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
}

.navbar-brand {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  color: var(--primary-color) !important;
}

.nav-link {
  color: var(--text-primary) !important;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--primary-color) !important;
}

/* Cards */
.card-modern {
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
  background: white;
}

.card-modern:hover {
  box-shadow: var(--card-shadow-lg);
  transform: translateY(-4px);
}

/* Buttons */
.btn-primary {
  background: var(--primary-color);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

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

.btn-outline-secondary {
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
  transform: translateY(-2px);
}

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

/* Article Content */
.article-content {
  max-width: 800px;
}

.article-content h2 {
  padding-top: 2rem;
  margin-top: 1rem;
}

.article-content section {
  scroll-margin-top: 100px;
}

/* Table of Contents */
.toc {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.toc ol {
  padding-left: 1.25rem;
}

.toc li {
  margin-bottom: 0.5rem;
}

.toc a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.toc a:hover {
  color: var(--primary-color);
}

/* Callout Boxes */
.callout-box {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-left: 4px solid var(--primary-color);
  padding: 1.25rem;
  border-radius: 0 8px 8px 0;
  margin: 1.5rem 0;
}

.callout-box h6 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

/* Code Blocks - works with Highlight.js */
pre {
  padding: 1.25rem;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 0.875rem;
  line-height: 1.7;
  margin: 1rem 0;
}

pre code {
  padding: 0;
}

/* Inline code (not in pre blocks) */
:not(pre) > code {
  background: #f1f5f9;
  color: #be185d;
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
  font-size: 0.875em;
}

/* Tech Stack Grid */
.tech-stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.tech-item {
  background: #f8fafc;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.tech-item strong {
  display: block;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}

.tech-item span {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Project Cards */
.project-card {
  border-radius: 12px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  display: block;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-lg);
  color: inherit;
}

.project-card img {
  aspect-ratio: 16/10;
  object-fit: cover;
}

.project-card h5 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.project-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* Coming Soon Card */
.project-card.coming-soon {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-card.coming-soon:hover {
  transform: none;
  box-shadow: var(--card-shadow);
}

/* Projects Section */
.projects-section {
  background: white;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

/* Figure Captions */
.figure-caption {
  margin-top: 0.75rem;
  font-style: italic;
}

/* Custom height utilities */
.min-vh-75 {
  min-height: 75vh;
}
