/* Professional Styles for Avid Afzal's Website */

/* Import professional typography */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&family=Merriweather:wght@400;700&display=swap');

/* Professional color palette */
:root {
  --primary-color: #1e3a8a;
  --primary-dark: #1e40af;
  --secondary-color: #475569;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --bg-white: #ffffff;
  --bg-light: #f8fafc;
  --bg-subtle: #f1f5f9;
  --border-color: #e2e8f0;
  --border-subtle: #f1f5f9;
  --shadow-subtle: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-soft: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --transition-subtle: all 0.2s ease;
}

/* Professional typography */
body {
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-primary);
  line-height: 1.75;
  font-weight: 400;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', Georgia, serif;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
  margin-top: 0;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
}

h2 {
  font-size: 2rem;
}

/* Professional navbar */
.navbar {
  background: var(--bg-white) !important;
  border-bottom: 1px solid var(--border-color);
  padding: 1.25rem 0;
  box-shadow: none;
}

.navbar-brand {
  font-family: 'Merriweather', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary) !important;
  letter-spacing: -0.02em;
}

.navbar-brand:hover {
  color: var(--primary-color) !important;
}

.navbar-nav .nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-secondary) !important;
  margin: 0 0.25rem;
  padding: 0.5rem 1rem !important;
  border-radius: 4px;
  transition: var(--transition-subtle);
  text-transform: none;
  letter-spacing: 0;
}

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

.navbar-nav .nav-link.active {
  color: var(--primary-color) !important;
  background-color: var(--bg-subtle);
  font-weight: 600;
}

/* Main content area - professional spacing */
.quarto-title-block {
  padding: 4rem 0 3rem;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
}

/* Professional about section */
.about {
  padding: 5rem 0;
  background: var(--bg-white);
}

.about-content {
  display: flex;
  align-items: flex-start;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.about-image {
  flex-shrink: 0;
}

.about-image img {
  border-radius: 50%;
  box-shadow: var(--shadow-soft);
  border: 3px solid var(--bg-white);
  transition: var(--transition-subtle);
  width: 20em;
  height: 20em;
  object-fit: cover;
}

.about-image img:hover {
  box-shadow: var(--shadow-soft);
  opacity: 0.95;
}

.about-text {
  flex: 1;
  padding-top: 1rem;
}

.about-text p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.85;
  max-width: 65ch;
}

.about-text p:first-of-type {
  font-size: 1.25rem;
  color: var(--text-primary);
  font-weight: 400;
  margin-bottom: 1.75rem;
}

/* Professional links styling */
.about-links {
  display: flex;
  gap: 1rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.about-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: var(--bg-white);
  color: var(--text-primary);
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition-subtle);
  border: 1.5px solid var(--border-color);
  box-shadow: var(--shadow-subtle);
}

.about-links a:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
}

.about-links a:active {
  transform: translateY(0);
  box-shadow: var(--shadow-subtle);
}

/* Professional container */
.container-xxl {
  max-width: 1320px;
  padding-left: 2rem;
  padding-right: 2rem;
}

/* Responsive design */
@media (max-width: 992px) {
  .about-content {
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .about-content {
    flex-direction: column;
    text-align: left;
    gap: 2.5rem;
    padding: 0 1.5rem;
  }
  
  .about-image {
    align-self: center;
  }
  
  .about-links {
    justify-content: flex-start;
  }
  
  .about-text p {
    font-size: 1.0625rem;
  }
  
  .about-text p:first-of-type {
    font-size: 1.125rem;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  .container-xxl {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

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

/* Professional footer */
footer {
  margin-top: 5rem;
  padding: 2.5rem 0;
  border-top: 1px solid var(--border-color);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
  background: var(--bg-subtle);
}

/* Subtle fade-in (professional, not flashy) */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.about-content {
  animation: fadeIn 0.4s ease-out;
}

/* Professional selection */
::selection {
  background-color: var(--primary-color);
  color: white;
}

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

/* Remove any flashy effects */
* {
  -webkit-tap-highlight-color: transparent;
}

/* Professional link colors */
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition-subtle);
}

a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Code blocks (if any) */
code {
  background-color: var(--bg-subtle);
  padding: 0.125rem 0.375rem;
  border-radius: 3px;
  font-size: 0.9em;
  color: var(--text-primary);
}

/* Professional spacing utilities */
.section-spacing {
  padding: 4rem 0;
}

/* Ensure consistent spacing */
p {
  margin-bottom: 1.25rem;
}

/* Professional button-like elements */
.btn-professional {
  display: inline-block;
  padding: 0.625rem 1.5rem;
  background: var(--primary-color);
  color: white;
  border-radius: 4px;
  font-weight: 500;
  transition: var(--transition-subtle);
  border: none;
  cursor: pointer;
}

.btn-professional:hover {
  background: var(--primary-dark);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

/* Professional breadcrumb styling for blog posts */
.breadcrumb-nav {
  margin-bottom: 2.5rem;
  padding: 1rem 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumb-nav a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition-subtle);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
}

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

.breadcrumb-nav .separator {
  color: var(--text-muted);
  font-weight: 300;
  margin: 0;
  user-select: none;
}

.breadcrumb-nav .current-page {
  color: var(--text-primary);
  font-weight: 500;
}

/* In-document key point highlight (e.g. Multinomial ≈ Poisson) */
.highlight-key-point {
  background-color: #fef3c7;
  color: #92400e;
  font-weight: 600;
  padding: 0.25em 0.5em;
  border-radius: 6px;
  border-left: 4px solid #f59e0b;
  display: inline-block;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Visual "check this box" reference label used in qmd content */
.box-ref-highlight {
  display: inline-block;
  padding: 0.2em 0.55em;
  margin: 0 0.1em;
  border-radius: 999px;
  font-weight: 700;
  line-height: 1.3;
  color: #7f1d1d;
  background: linear-gradient(90deg, #ffe4e6 0%, #ffe8cc 100%);
  border: 1px solid #fb7185;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.15);
}

.box-ref-highlight::before {
  content: "-> ";
  font-weight: 800;
}

