/* css styles */

/* Modern Design Styles */

:root {
  --primary-color: #3498db;
  --secondary-color: #2c3e50;
  --accent-color: #e74c3c;
  --light-bg: #f8f9fa;
  --dark-bg: #343a40;
  --text-color: #212529;
  --light-text: #f8f9fa;
  --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --hover-shadow: 0 10px 15px rgba(0, 0, 0, 0.15);
  --border-radius: 8px;
  --transition-speed: 0.3s;
}

/* Base typography improvements */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
  position: relative;
  display: inline-block;
}

/* Remove the underline from h1 */
h1:after {
  content: none;
}

/* Page title specific styling */
.quarto-title > h1 {
  border-bottom: none;
  text-decoration: none;
}

h2 {
  font-size: 1.8rem;
  color: var(--primary-color);
}

/* Links styling */
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-speed);
}

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

/* Profile/about section */
.about-image img {
  border-radius: 50%;
  box-shadow: var(--card-shadow);
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.about-image img:hover {
  transform: scale(1.03);
  box-shadow: var(--hover-shadow);
}

.about-links .about-link {
  border-radius: var(--border-radius);
  transition: transform var(--transition-speed), background-color var(--transition-speed);
}

.about-links .about-link:hover {
  transform: translateY(-3px);
}

/* Content container styling */
.content-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.content-section {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--card-shadow);
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.content-section:hover {
  transform: translateY(-5px);
  box-shadow: var(--hover-shadow);
}

/* List styling */
ul li, ol li {
  margin-bottom: 0.5rem;
}

/* Card styling */
.card {
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
  margin-bottom: 1.5rem;
  overflow: hidden;
  height: 100%;
}

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

.card-body {
  padding: 1.5rem;
}

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

/* Button styling */
.btn {
  border-radius: var(--border-radius);
  padding: 0.5rem 1.5rem;
  font-weight: 600;
  transition: all var(--transition-speed);
}

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

.btn-primary:hover {
  background-color: transparent;
  color: var(--primary-color);
}

/* Table styling */
table {
  width: 100%;
  margin-bottom: 1.5rem;
  border-radius: var(--border-radius);
  overflow: hidden;
}

thead {
  background-color: var(--primary-color);
  color: white;
}

th {
  font-weight: 600;
  padding: 1rem;
}

td {
  padding: 0.75rem 1rem;
}

tbody tr:nth-child(even) {
  background-color: rgba(0, 0, 0, 0.05);
}

/* Callout styling */
.callout {
  border-left: 5px solid var(--primary-color);
  background-color: rgba(52, 152, 219, 0.1);
  padding: 1.25rem;
  margin: 1.5rem 0;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

/* For better mobile experience */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .card {
    margin-bottom: 1rem;
  }
}

/* Quarto-specific styling */
#quarto-content {
  padding-top: 2rem;
}

.quarto-title-block {
  margin-bottom: 2rem;
}

.quarto-title {
  font-weight: 800;
  margin-bottom: 1.5rem;
}

/* Grid improvements */
.grid {
  gap: 1.5rem;
}

/* Navbar styling */
.navbar {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 1rem 2rem;
}

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

.navbar-toggler {
  border: none;
}

/* Footer styling */
.footer {
  margin-top: 3rem;
  padding: 2rem 0;
  background-color: var(--light-bg);
  text-align: center;
}

/* Code blocks */
pre {
  border-radius: var(--border-radius);
  padding: 1rem;
}

code {
  color: var(--accent-color);
}

/* Print styles for CV */
@media print {
  :root {
    --text-color: black;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.5;
  }
  
  .card {
    box-shadow: none;
    border: 1px solid #ddd;
  }
  
  a {
    color: black;
    text-decoration: none;
  }
}

/* Trestles template improvements */
.quarto-about-trestles .about-entity {
  gap: 2rem;
}

.quarto-about-trestles .about-image {
  margin-bottom: 1.5rem;
}
