/* Modern Professional CSS for Martin Kvist Portfolio Site */

:root {
  --primary-color: #2563eb;
  --primary-dark: #1e40af;
  --secondary-color: #64748b;
  --text-dark: #1e293b;
  --text-light: #64748b;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

/* Typography improvements */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--bg-white);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.display-4 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.lead {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text-light);
}

/* Modern Navigation */
.navbar {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.navbar-dark {
  background: var(--text-dark) !important;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
}

.navbar-brand h1 {
  display: inline;
  font-size: 1.5rem;
  margin: 0;
  margin-left: 1rem;
}

.nav-link {
  font-weight: 500;
  color: var(--text-light) !important;
  padding: 0.5rem 1rem !important;
  transition: color 0.3s ease;
}

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

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

/* Hero Section */
.hero-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-white) 100%);
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.min-vh-50 {
  min-height: 50vh;
}

/* Modern Buttons */
.btn {
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline-primary {
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  background: transparent;
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

.btn-outline-secondary {
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
  background: transparent;
}

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

/* Modern Cards */
.card {
  border: none !important;
  border-radius: 1rem;
  transition: all 0.3s ease;
  overflow: hidden;
}

.card.shadow-sm {
  box-shadow: var(--shadow-sm);
}

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

.card-body {
  padding: 1.5rem;
}

.card-title {
  font-weight: 700;
  margin-bottom: 0.75rem;
}

/* Badges */
.badge {
  font-weight: 500;
  padding: 0.35rem 0.75rem;
  border-radius: 0.25rem;
}

.badge.bg-secondary {
  background-color: var(--secondary-color) !important;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-color);
}

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

.timeline-marker {
  position: absolute;
  left: -2.4rem;
  top: 0.5rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary-color);
  border: 2px solid var(--bg-white);
  box-shadow: var(--shadow-sm);
}

.timeline-content h3 {
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.timeline-content p {
  margin-bottom: 0.5rem;
}

/* Tech Stack Visual placeholder */
.tech-stack-visual {
  min-height: 400px;
  background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-white) 100%);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.tech-stack-visual::before {
  content: 'Infrastructure Visualization';
  color: var(--text-light);
  font-size: 1.25rem;
  font-weight: 500;
}

/* Responsive improvements */
@media (max-width: 768px) {
  .hero-section {
    padding: 3rem 0;
  }

  .display-4 {
    font-size: 2rem;
  }

  .timeline {
    padding-left: 1rem;
  }

  .timeline-marker {
    left: -1.4rem;
  }
}

/* Content area improvements */
#content.content {
  max-width: 100%;
  padding: 0;
}

main#content {
  padding-top: 0 !important;
}

/* Footer improvements */
footer#postamble {
  background-color: var(--text-dark);
  color: var(--bg-light);
  padding: 3rem 0;
  margin-top: 5rem;
}

footer#postamble a {
  color: var(--primary-color);
  text-decoration: none;
}

footer#postamble a:hover {
  text-decoration: underline;
}

/* Remove default org-mode styling */
.title {
  display: none;
}

.subtitle {
  display: none;
}

/* Utility classes */
.text-muted {
  color: var(--text-light) !important;
}

.gap-3 {
  gap: 1rem !important;
}

.my-5 {
  margin-top: 3rem !important;
  margin-bottom: 3rem !important;
}

.mb-4 {
  margin-bottom: 1.5rem !important;
}

.mb-3 {
  margin-bottom: 1rem !important;
}

.text-uppercase {
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.list-unstyled {
  list-style: none;
  padding-left: 0;
}

.list-unstyled li {
  padding: 0.25rem 0;
}

/* Icon support */
.bi {
  margin-right: 0.5rem;
}

/* Feature icons */
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

/* Professional profile image */
.rounded-circle {
  border-radius: 50% !important;
}

/* Enhanced shadow */
.shadow {
  box-shadow: var(--shadow-lg) !important;
}

/* Background gradients */
.bg-gradient {
  background-image: linear-gradient(180deg, rgba(255,255,255,0.15), rgba(255,255,255,0)) !important;
}

/* Publication links */
.publication-item a {
  color: var(--text-dark);
  text-decoration: none;
}

.publication-item a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}