/* Base improvements merged with original styles.css */

/* @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap'); */

/* body {
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.6;
  color: var(--sl-color-neutral-900);
  background-color: var(--sl-color-neutral-50);
  margin: 0;
  padding: 0;
} */

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif !important;
  line-height: 1.6;
  color: var(--sl-color-neutral-900);
  background-color: var(--sl-color-neutral-50);
  margin: 0;
  padding: 0;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem;
}

.top-header {
  background-color: var(--sl-color-neutral-0);
  border-bottom: 1px solid var(--sl-color-neutral-200);
  padding: 1rem 0;
}
/*
color: var(--sl-color-primary-600);
font-family: 'Inter', system-ui, sans-serif;
*/
.logo {
  font-family: inherit;
  font-weight: 500;
  text-decoration: none;  
  font-size: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #5f6f8c !important;  /* #5f6f8c;  soft slate blue-grey */
}

/* .main-nav {
  margin-top: 0.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.main-nav a {
  text-decoration: none;
  color: var(--sl-color-neutral-700);
}

.main-nav a.active {
  font-weight: 600;
  color: var(--sl-color-primary-600);
} */

.main-nav {
  margin-top: 0.5rem;
  display: flex;
  gap: 1.5rem; /* ← increased from 1rem */
  flex-wrap: wrap;
}

.main-nav a {
  text-decoration: none;
  color: var(--sl-color-neutral-700);
  position: relative;
  padding-bottom: 0.25rem;
  transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a:focus {
  color: var(--sl-color-primary-600);
}

.main-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--sl-color-primary-600);
  transition: width 0.2s ease;
}

.main-nav a:hover::after,
.main-nav a:focus::after {
  width: 100%;
}

.main-nav a.active::after {
  width: 100%;
}



/* .page-header {
  margin-top: 2rem;
  margin-bottom: 1.5rem;
} */

.page-header {
  background: 
    linear-gradient(rgba(255,255,255,0.7), rgba(255,255,255,0.7)),
    url('./images/home_bp_inv.jpg') center center / cover no-repeat;
  padding: 4rem 2rem 3rem;
  border-radius: 1rem;
  margin-bottom: 2rem;
}


.page-title {
  font-size: 2rem;
  display: flex;
  align-items: flex-end; /* aligns children to the bottom */
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.page-title sl-icon {
  font-size: 1.75rem; /* match to text size */
  line-height: 1;
  position: relative;
  top: 0.5rem; /* fine-tune downward shift */
}
/* .page-title {
  font-size: 2rem;
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.page-title sl-icon {
  width: 1.25rem;
  height: 1.25rem;
  display: inline-flex; 
  align-items: flex-end;
} */

.page-subtitle {
  font-size: 1.1rem;
  color: var(--sl-color-neutral-600);
}

/* Highlight Card for Sector Engagement */
.highlight-card {
  background-color: var(--sl-color-neutral-0);
  border: 1px solid var(--sl-color-neutral-200);
  border-radius: 1rem;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.highlight-card .card-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--sl-color-neutral-800);
}

.highlight-card p {
  font-size: 1rem;
  color: var(--sl-color-neutral-700);
  line-height: 1.6;
}


.card-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-bottom: 2rem;
}

.card, .team-card {
  padding: 1.25rem;
  background: var(--sl-color-neutral-0);
  border-radius: 1rem;
  box-shadow: var(--sl-shadow-medium);
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.card-footer, .blog-post-card .meta {
  margin-top: 1rem;
  font-size: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.blog-post-card {
  border-left: 4px solid var(--sl-color-primary-500);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  background: var(--sl-color-neutral-0);
  border-radius: 0.5rem;
}

.blog-post-card h2 {
  margin: 0;
  font-size: 1.3rem;
}

.blog-post-card h2 a {
  color: #4a5568;
}

.blog-post-card .summary {
  color: var(--sl-color-neutral-600);
  font-size: 0.95rem;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--sl-color-neutral-600);
  margin-bottom: 1rem;
}

/* footer.site-footer {
  padding: 2rem 1rem;
  background: var(--sl-color-neutral-0);
  border-top: 1px solid var(--sl-color-neutral-200);
  text-align: center;
  font-size: 0.9rem;
  color: var(--sl-color-neutral-600);
}

footer.site-footer a {
  color: var(--sl-color-primary-600);
  text-decoration: none;
} */

.site-footer {
  padding: 2rem 1rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  background-color: var(--sl-color-neutral-100);
}

.site-footer p {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem; /* spacing between items */
  flex-wrap: wrap; /* optional, for smaller screens */
}

.site-footer sl-icon,
.site-footer img {
  vertical-align: middle;
  display: inline-block;
}


/* --- Footnote (optional) --- */
.site-footnote {
  /* margin-top: 4rem; */
  font-size: 0.9rem;
  color: var(--text-muted, #6b7280);
  text-align: center;
}
.site-footnote p {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem; /* spacing between items */
  flex-wrap: wrap; /* optional, for smaller screens */
}

.site-footnote sl-icon,
.site-footnote img {
  vertical-align: middle;
  display: inline-block;
}


.animate-fade-in {
  animation: fadeIn 0.4s ease-out both;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(0.5rem); }
  to { opacity: 1; transform: none; }
}

.contact-links {
  list-style: none;
  padding-left: 0;
}

.contact-links li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.note {
  font-size: 0.95rem;
  color: var(--sl-color-neutral-600);
  font-style: italic;
}

/* --- Original rules below this line preserved from existing stylesheet --- */


/* FULL ORIGINAL CSS BEGIN */

/* Import Google Fonts for professional typography */
/* @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;600&display=swap'); */

/* CSS Variables for consistent theming */
:root {
  --version-number: "0.6.1";
  --primary-color: #2563eb; /*  A vibrant blue for primary actions and highlights */
  --secondary-color: #64748b; /* Muted grey for secondary text and borders */

  /* Harmonized Accent Colors - now shades of blue/purple for consistency */
  --accent-main: darkslategrey; /* Primary accent for overall theme */
  --accent-research: darkslategrey; /* Slightly darker primary for research highlights */
  --accent-projects: darkslategrey; /* Deeper blue for projects */
  --accent-about: darkslategrey; /* Purple-blue for about section */
  --accent-contact: darkslategrey; /* Teal for contact section */
  --accent-consulting: darkslategrey; /* Teal for contact section */
  --accent-about: darkslategrey; /* Teal for contact section */
  --accent-blog: darkslategrey; /* Teal for contact section */

  --text-primary: #1e293b; /* Dark text for readability */
  --text-secondary: #475569; /* Muted text for secondary information */
  --text-muted: #94a3b8; /* Lightest text for tertiary info */
  --bg-primary: #ffffff; /* White background */
  --bg-secondary: #f8fafc; /* Light grey background for sections */
  --border-color: #e2e8f0; /* Light border color */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;

  /* Typography adjustments */
  --font-size-base: 1rem;
  --line-height-base: 1.7;
  --font-size-h1: 3rem;
  --font-size-h2: 2rem;
  --font-size-h3: 1.5rem;
}

.site-version::before {
  content: var(--version-number);
}

[data-theme="dark"] {
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --border-color: #334155;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.2);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.3), 0 2px 4px -2px rgb(0 0 0 / 0.3);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.3), 0 4px 6px -4px rgb(0 0 0 / 0.3);

  /* Dark mode accent adjustments */
  --accent-main: #60a5fa;
  --accent-research: #34d399;
  --accent-projects: #f87171;
  --accent-about: #a78bfa;
  --accent-contact: #22d3ee;
}

/* Global Styles */
* {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  box-sizing: border-box; /* Ensure consistent box model */
}

body {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  line-height: var(--line-height-base);
  font-size: var(--font-size-base);
  margin: 0;
  padding: 0;
  transition: background-color 0.3s ease, color 0.3s ease; /* Smooth theme transition */
}
/* Blog page */
body.page-about .page-title sl-icon {
  color: BurlyWood;
}

/* Blog page */
body.page-blog .page-title sl-icon {
  color: #f97316;
}
/* Blog Post page */
body.page-blog-post .page-title sl-icon {
  color: pink;
}

/* Consulting page */
body.page-consulting .page-title sl-icon {
  color: #009688;
}

/* Contact page */
body.page-contact .page-title sl-icon {
  color: #00bcd4;
}

/* Research page */
body.page-research .page-title sl-icon {
  color: #8e44ad;
}

/* Projects page */
body.page-projects .page-title sl-icon {
  color: #2c7be5;
}


/* Layout Grid */
.layout-grid {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 100vh;
}

@media (min-width: 1024px) {
  .layout-grid {
    grid-template-columns: 280px 1fr;
  }
}

/* Sidebar Navigation */
.sidebar {
  background: var(--bg-primary);
  border-right: 1px solid var(--border-color);
  padding: 1.5rem 0;
  position: fixed;
  top: 0;
  left: -280px;
  width: 280px;
  height: 100vh;
  overflow-y: auto;
  z-index: 1000;
  transition: left 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
  box-shadow: var(--shadow-lg);
}

.sidebar.open {
  left: 0;
}

@media (min-width: 1024px) {
  .sidebar {
    position: sticky;
    left: 0;
    box-shadow: none;
    transform: none;
  }
}

@media (max-width: 1023px) {
  .sidebar {
    position: fixed;
    left: -280px;
  }
  
  .sidebar.open {
    left: 0;
  }
}

.sidebar-header {
  padding: 0 1.5rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sidebar-nav {
  padding: 0 1rem;
}

.sidebar-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-nav li {
  margin-bottom: 0.25rem;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  font-weight: 500;
}

.sidebar-nav a:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.sidebar-nav a.active {
  background: var(--primary-color);
  color: white;
}

/* Page-specific accent colors for active navigation */
/* These now use the harmonized colors */
.page-research .sidebar-nav a[href="research.html"].active {
  background: var(--accent-research);
}

.page-projects .sidebar-nav a[href="projects.html"].active {
  background: var(--accent-projects);
}

.page-about .sidebar-nav a[href="about.html"].active {
  background: var(--accent-about);
}

.page-contact .sidebar-nav a[href="contact.html"].active {
  background: var(--accent-contact);
}

/* Mobile Header */
.mobile-header {
  display: none;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 999;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* Show mobile header on smaller screens */
@media (max-width: 1023px) {
  .mobile-header {
    display: flex !important;
  }
}

.mobile-menu-btn {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-primary);
  padding: 0.5rem;
  border-radius: var(--radius-sm);
}

.mobile-menu-btn:hover {
  background: var(--bg-secondary);
}

/* Theme toggle button */
#theme-toggle {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  width: 44px;
  height: 44px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

#theme-toggle:hover {
  background: var(--bg-primary);
  transform: scale(1.05);
}

/* Main Content Area */
.main-content {
  background: var(--bg-primary);
  min-height: 100vh;
  padding: 0;
  transition: background-color 0.3s ease;
}

@media (min-width: 1024px) {
  .main-content {
    margin-left: 0;
  }
}

.content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

@media (min-width: 768px) {
  .content-wrapper {
    padding: 3rem 2rem;
  }
}

/* Page Headers */
.page-header {
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.page-title {
  font-size: var(--font-size-h1);
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.page-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin: 0;
  font-weight: 400;
}

/* Page-specific header accents - now using harmonized colors */
.page-research .page-title {
  color: var(--accent-main);
}

.page-projects .page-title {
  color: var(--accent-main);
}

.page-contact .page-title {
  color: var(--accent-main);
}
.page-consulting .page-title {
  color: var(--accent-main);
}

.page-about .page-title {
  color: var(--accent-main);
}
.page-blog .page-title {
  color: var(--accent-main);
}

.page-blog-post .page-title {
  color: var(--accent-main);
}

/* Card Components */

/* .card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
} */

/* .card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
} */

.card:hover,
.team-card:hover,
.blog-post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sl-shadow-large);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-header {
  margin-bottom: 1rem;
}

/* .card-title {
  font-size: var(--font-size-h3);
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 0.25rem 0;
} */

.card-subtitle {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0;
}

.card-content {
  color: var(--text-primary);
  line-height: var(--line-height-base);
  font-size: var(--font-size-base);
}

/* .card-footer {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
} */
*/
/* Grid Layouts for Different Pages */

/* Research Page - Two Column Grid */
.research-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .research-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.research-card {
  background: var(--bg-secondary);
  border-left: 4px solid var(--accent-research);
}

.research-card .card-title {
  color: var(--accent-research);
}

.research-tag {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 999px;
  background-color: var(--sl-color-neutral-200);
  color: var(--sl-color-neutral-800);
  margin-right: 0.5rem;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
}

.research-tag.ml     { background-color: #D1E8FF; color: #004C99; }
.research-tag.evo    { background-color: #E5FFD1; color: #356000; }
.research-tag.nlp    { background-color: #FFECD1; color: #994D00; }
.research-tag.safety { background-color: #F9D1D1; color: #660000; }

/* Projects Page - Three Column Grid */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.project-card {
  background: var(--bg-secondary);
  border-top: 4px solid var(--accent-projects);
}

.project-card .card-title {
  color: var(--accent-projects);
}

/* Timeline Layout for Research */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0.75rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-color);
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.25rem;
  top: 0.5rem;
  width: 12px;
  height: 12px;
  background: var(--accent-research);
  border: 3px solid var(--bg-primary);
  border-radius: 50%;
}

/* Badges and Tags (Shoelace specific variants for colors) */
sl-badge[variant="primary"] { --sl-color-primary-600: var(--primary-color); --sl-color-primary-50: var(--primary-color); }
sl-badge[variant="success"] { --sl-color-success-600: var(--accent-research); --sl-color-success-50: var(--accent-research); }
sl-badge[variant="warning"] { --sl-color-warning-600: var(--accent-projects); --sl-color-warning-50: var(--accent-projects); }
sl-badge[variant="info"] { --sl-color-info-600: var(--accent-about); --sl-color-info-50: var(--accent-about); }


/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--accent-main); /*--primary-color*/
  color: white;
}

.btn-primary:hover {
  background: DarkGreen ; /* DarkBlue, DarkSlateBlue*/
  /* transform: translateY(-1px); */
}

.btn-secondary {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-secondary);
  /* color: var(--text-primary); */
  color: DarkGreen;
}

/* Hero Section */
.hero-unused {
  text-align: center;
  padding: 4rem 0;
  background: var(--bg-secondary); /* Changed to use variable */
  border-radius: var(--radius-lg);
  margin-bottom: 3rem;
  position: relative; /* For image overlay */
  overflow: hidden; /* Ensure image doesn't overflow */
} 

/* background: url('./images/home_blueprint.jpg') center center / cover no-repeat; */

.hero {
 
  background: 
    linear-gradient(rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.6)),
    url('./images/home_blueprint.jpg') center center / cover no-repeat;
  padding: 6rem 2rem;
  color: white;
  text-align: center;
  border-radius: 1rem;
  position: relative;
}
.hero p {
  position: relative;
  z-index: 1; /* Ensure text is above the overlay */
  display: inline-block; /* Make sure the overlay fits the text width */
  padding: 0 1rem; /* Add some padding to ensure readability */
}

.hero p::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.22); /* Very light white overlay */
  z-index: -1;
  border-radius: 0.5rem;
}


.hero-background-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(var(--bg-secondary-rgb), 0.8), rgba(var(--bg-primary-rgb), 0.9)), url('https://via.placeholder.com/1600x600/2563eb/ffffff?text=Abstract+AI+Background') no-repeat center center; /* Placeholder image */
  background-size: cover;
  z-index: 0;
  opacity: 0.1; /* Subtle overlay */
}

[data-theme="dark"] .hero-background-overlay {
  background: linear-gradient(rgba(var(--bg-secondary-rgb), 0.8), rgba(var(--bg-primary-rgb), 0.9)), url('https://via.placeholder.com/1600x600/0f172a/ffffff?text=Abstract+AI+Background') no-repeat center center;
  background-size: cover;
}

.hero > * {
  position: relative; /* Bring content above overlay */
  z-index: 1;
}


.hero h1 {
  font-size: var(--font-size-h1);
  font-weight: 700;
  color: var(--accent-main); /* --primary-color */
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2rem;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
}

/* Breadcrumbs */
.breadcrumbs {
  padding: 1rem 1.5rem; /* Matches content wrapper padding */
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 2rem;
  font-size: 0.9rem;
  color: var(--accent-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumbs a {
  color: var(--accent-main);
  text-decoration: none;
  font-weight: 500;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.breadcrumbs sl-icon {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: inline-block;
  width: 1em;
  min-width: 1.25rem;
  text-align: center;
}


/* Contact Form Styling */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr 400px;
  }
}

.contact-info {
  background: var(--bg-secondary);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--accent-contact);
}

/* Google Form embed adjustments */
iframe {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
  width: 100%;
  min-height: 600px;
}

/* Footer */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-content {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-section h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-section a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Responsive utilities */
.hidden-mobile {
  display: none;
}

@media (min-width: 768px) {
  .hidden-mobile {
    display: block;
  }
}

.visible-mobile {
  display: block;
}

@media (min-width: 768px) {
  .visible-mobile {
    display: none;
  }
}

/* Animation utilities */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeInUp 0.6s ease-out;
}

/* Overlay for mobile sidebar */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

@media (min-width: 1024px) {
  .sidebar-overlay {
    display: none !important;
  }
}

/* Specific styling for person icons to resemble images for now */
.team-member-avatar {
  width: 120px;
  height: 120px;
  background: var(--bg-secondary); /* Use secondary background for image placeholder */
  border: 1px solid var(--border-color); /* Add a border */
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color); /* Icon color */
  font-size: 3rem;
  overflow: hidden; /* Hide overflowing image */
}

.team-member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the area, cropping if necessary */
    display: block; /* Remove extra space below image */
}

.project-thumbnail {
    width: 60px; /* Small icon size */
    height: 60px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-color);
    margin-right: 1rem;
    flex-shrink: 0; /* Prevent shrinking in flex container */
}

.project-card .card-header {
    display: flex;
    align-items: center;
}

.project-card .card-header div {
    flex-grow: 1;
}

/* For displaying code snippets */
pre {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
  overflow-x: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-primary);
}

code {
  font-family: 'JetBrains Mono', monospace;
  background-color: var(--bg-secondary);
  padding: 0.2em 0.4em;
  border-radius: var(--radius-sm);
  font-size: 0.9em;
}

/* Utility to get RGB values for dynamic gradients */
:root {
  --bg-primary-rgb: 255, 255, 255; /* RGB for #ffffff */
  --bg-secondary-rgb: 248, 250, 252; /* RGB for #f8fafc */
}

[data-theme="dark"] {
  --bg-primary-rgb: 15, 23, 42; /* RGB for #0f172a */
  --bg-secondary-rgb: 30, 41, 59; /* RGB for #1e293b */
}

/* FULL ORIGINAL CSS END */


