:root {
  --accent: #0d6efd;
}
html { 
  scroll-behavior: smooth; 
  transition: background-color 0.3s ease, color 0.3s ease;
}
/* body, h2, h3, h4, h5, h6 { 
  font-family: 'Merriweather', Georgia, 'Times New Roman', Times, serif;
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 400;
  transition: background-color 0.3s ease, color 0.3s ease;
} */
body, h2, h3, h4, h5, h6 { 
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 400;
  transition: background-color 0.3s ease, color 0.3s ease;
}
h1, .navbar-brand { 
  font-family: 'EB Garamond', Georgia, 'Times New Roman', Times, serif;
  font-weight: 500;
  letter-spacing: 0.2px;
  transition: color 0.3s ease;
}
img { object-fit: cover; }

/* Social media icons styling */
.social-icons {
  max-width: 280px;
  margin: 0 auto;
}
.social-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  text-decoration: none !important;
}
.social-icon-btn:hover {
  background-color: rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}
.social-icon-btn img {
  transition: opacity 0.3s ease;
}

/* Dark theme social icons */
html[data-theme="dark"] .social-icon-btn {
  background-color: rgba(255, 255, 255, 0.1);
}
html[data-theme="dark"] .social-icon-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* System preference dark theme social icons */
@media (prefers-color-scheme: dark) {
  html:not([data-theme]) .social-icon-btn {
    background-color: rgba(255, 255, 255, 0.1);
  }
  html:not([data-theme]) .social-icon-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
  }
}

/* PDF embed styling */
.pdf-container iframe {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}

/* Download PDF button styling */
.btn-outline-primary {
  border-color: #b719bd !important;
  color: #b719bd !important;
}
.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
  background-color: #b719bd !important;
  border-color: #b719bd !important;
  color: #ffffff !important;
}

/* Light theme (default) */
body { background: #ffffff; color: #212529; }
.navbar, footer, .border-bottom, .border-top { 
  border-color: rgba(0,0,0,0.125) !important; 
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.navbar-light .navbar-brand, .navbar-light .navbar-nav .nav-link { 
  color: rgba(0,0,0,0.55); 
  transition: color 0.3s ease;
}
.navbar-light .navbar-nav .nav-link.active { 
  color: #b719bd; 
  font-weight: bold; 
  transition: color 0.3s ease;
}
a { 
  color: #99169d; 
  text-decoration: none; 
  transition: color 0.3s ease;
}
a:hover { text-decoration: underline; }

/* Navigation alignment */
.navbar-nav {
  align-items: center;
}
.navbar-nav .nav-item {
  display: flex;
  align-items: center;
}
.navbar-nav .nav-link {
  font-family: 'EB Garamond', Georgia, 'Times New Roman', Times, serif;
  font-weight: 400;
}

/* Theme toggle button - remove outline */
#theme-toggle { 
  border: none !important; 
  background: transparent !important; 
  box-shadow: none !important; 
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: background-color 0.3s ease, color 0.3s ease !important;
}
#theme-toggle:focus { 
  outline: none !important; 
  box-shadow: none !important; 
}
#theme-toggle:hover { 
  background: rgba(0,0,0,0.05) !important; 
}

/* Dark theme - manual toggle */
html[data-theme="dark"] body { background: #0b0c10; color: #e6e6e6; }
html[data-theme="dark"] .navbar { 
  background-color: #0b0c10 !important; 
  border-color: rgba(255,255,255,0.12) !important; 
}
html[data-theme="dark"] footer, 
html[data-theme="dark"] .border-bottom, 
html[data-theme="dark"] .border-top { border-color: rgba(255,255,255,0.12) !important; }
html[data-theme="dark"] .navbar-light .navbar-brand, 
html[data-theme="dark"] .navbar-light .navbar-nav .nav-link { color: #e6e6e6; }
html[data-theme="dark"] .navbar-light .navbar-nav .nav-link.active { color: #b719bd; font-weight: bold; }
html[data-theme="dark"] a { color: #b719bd; text-decoration: none; }
html[data-theme="dark"] a:hover { text-decoration: underline; }
html[data-theme="dark"] #theme-toggle { 
  border: none !important; 
  background: transparent !important; 
  color: #e6e6e6 !important; 
}
html[data-theme="dark"] #theme-toggle:hover { 
  background: rgba(255,255,255,0.1) !important; 
}

/* System preference fallback */
@media (prefers-color-scheme: dark) {
  html:not([data-theme]) body { background: #0b0c10; color: #e6e6e6; }
  html:not([data-theme]) .navbar { 
    background-color: #0b0c10 !important; 
    border-color: rgba(255,255,255,0.12) !important; 
  }
  html:not([data-theme]) footer, 
  html:not([data-theme]) .border-bottom, 
  html:not([data-theme]) .border-top { border-color: rgba(255,255,255,0.12) !important; }
  html:not([data-theme]) .navbar-light .navbar-brand, 
  html:not([data-theme]) .navbar-light .navbar-nav .nav-link { color: #e6e6e6; }
  html:not([data-theme]) .navbar-light .navbar-nav .nav-link.active { color: #b719bd; font-weight: bold; }
  html:not([data-theme]) a { color: #b719bd; text-decoration: none; }
  html:not([data-theme]) a:hover { text-decoration: underline; }
  html:not([data-theme]) #theme-toggle { 
    border: none !important; 
    background: transparent !important; 
    color: #e6e6e6 !important; 
  }
  html:not([data-theme]) #theme-toggle:hover { 
    background: rgba(255,255,255,0.1) !important;
  }
}
