/* Custom styles on top of Bootstrap */
:root {
  --animation-duration: 0.3s;
  --transition-timing: cubic-bezier(0.4, 0, 0.2, 1);
  --theme-transition-duration: 0.3s;
}

body {
  font-family: "Roboto", sans-serif;
  min-height: 100vh;
  padding-top: 56px; /* Account for fixed navbar */
}

/* Theme Toggle */
.theme-toggle {
  color: inherit;
  font-size: 1.2rem;
  transition: transform var(--animation-duration) var(--transition-timing),
    color var(--animation-duration) var(--transition-timing);
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  position: relative;
}

[data-bs-theme="light"] .theme-toggle {
  color: #1a1d21;
}

[data-bs-theme="dark"] .theme-toggle {
  color: var(--bs-light);
}

.theme-toggle:hover {
  transform: rotate(45deg);
  color: #8a2be2;
}

/* Dark theme (default) */
[data-bs-theme="dark"] {
  --bs-body-bg: #1a1d21;
  --bs-body-color: #f8f9fa;
}

[data-bs-theme="dark"] .navbar {
  background-color: rgba(26, 29, 33, 0.95) !important;
}

[data-bs-theme="dark"] .navbar-brand {
  color: var(--bs-light) !important;
}

/* Light theme */
[data-bs-theme="light"] {
  --bs-body-bg: #ffffff;
  --bs-body-color: #212529;
}

[data-bs-theme="light"] .navbar {
  background-color: rgba(255, 255, 255, 0.95) !important;
}

[data-bs-theme="light"] .navbar-brand {
  color: var(--bs-dark) !important;
}

/* Theme transitions */
[data-bs-theme],
.navbar-brand {
  transition: background-color var(--theme-transition-duration) ease,
    color var(--theme-transition-duration) ease;
}

/* Navbar Brand styling */
.navbar-brand {
  font-weight: 600;
  font-size: 1.4rem;
  padding: 0;
  margin: 0;
}

[data-bs-theme="dark"] .hero-content h1 {
  color: #ffffff !important;
}

/* Light theme */
[data-bs-theme="light"] .hero-content h1 {
  color: #1a1d21 !important;
}

/* Theme transitions */
[data-bs-theme] {
  transition: background-color var(--theme-transition-duration) ease,
    color var(--theme-transition-duration) ease;
}

[data-bs-theme="dark"] .hero-content h2,
[data-bs-theme="dark"] .hero-content .lead {
  color: #ffffff;
}

[data-bs-theme="dark"] .project-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .timeline-content {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Section styling */
.section {
  min-height: calc(100vh - 56px);
  padding: 5rem 0;
  position: relative;
  display: flex;
  align-items: center;
}

/* Light theme section styling */
[data-bs-theme="light"] .section {
  background-color: #ffffff;
}

[data-bs-theme="light"] .section h2 {
  color: #1a1d21;
}

/* Section styling for About */
[data-bs-theme="light"] .section.bg-dark {
  background-color: #ffffff !important;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

[data-bs-theme="light"] .section.bg-dark h2 {
  color: #000000 !important;
  font-weight: 600;
}

[data-bs-theme="light"] .section.bg-dark h3 {
  color: #1a1d21 !important;
  font-weight: 500;
}

[data-bs-theme="light"] .section.bg-dark p,
[data-bs-theme="light"] .section.bg-dark .lead {
  color: #2a2f35 !important;
}

[data-bs-theme="light"] .section.bg-dark .lead {
  font-weight: 400;
}

[data-bs-theme="light"] .timeline-content {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

[data-bs-theme="light"] .timeline-content h4 {
  color: #000000;
  font-weight: 600;
}

[data-bs-theme="light"] .timeline-content ul li {
  color: #2a2f35;
}

[data-bs-theme="light"] .timeline-content .text-muted {
  color: #4a4a4a !important;
}

/* Dark theme section styling */
[data-bs-theme="dark"] .section {
  background-color: var(--bs-body-bg);
}

[data-bs-theme="dark"] .section h2,
[data-bs-theme="dark"] .section h3,
[data-bs-theme="dark"] .section p,
[data-bs-theme="dark"] .section .lead {
  color: #ffffff;
}

[data-bs-theme="light"] .project-card {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

[data-bs-theme="light"] .timeline-content {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

[data-bs-theme="light"] .skill-tag {
  background-color: rgba(0, 0, 0, 0.1);
  color: var(--bs-dark);
}

[data-bs-theme="light"] .social-link {
  color: var(--bs-dark);
}

/* Navigation */
.navbar {
  backdrop-filter: blur(10px);
}

[data-bs-theme="dark"] .nav-link {
  color: var(--bs-light) !important;
  opacity: 0.85;
}

[data-bs-theme="light"] .nav-link {
  color: var(--bs-dark) !important;
  opacity: 0.85;
}

.nav-link {
  position: relative;
  padding: 0.5rem 1rem;
  transition: opacity 0.3s ease;
}

.nav-link:hover {
  opacity: 1;
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: rgb(138, 43, 226);
  transition: all var(--animation-duration) var(--transition-timing);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
  left: 0;
}

.nav-link.active {
  opacity: 1;
}

/* Timeline styles */
.timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline::after {
  content: "";
  position: absolute;
  width: 3px;
  background: linear-gradient(
    to bottom,
    rgba(138, 43, 226, 0.2),
    rgba(138, 43, 226, 0.8),
    rgba(138, 43, 226, 0.2)
  );
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 3px;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  width: 50%;
  animation: fadeIn 0.6s ease-out forwards;
}

.timeline-item::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  background: rgb(138, 43, 226);
  border: 4px solid var(--bs-dark);
  top: 15px;
  border-radius: 50%;
  z-index: 1;
  transition: all 0.3s ease;
}

.timeline-item:hover::after {
  transform: scale(1.2);
  box-shadow: 0 0 15px rgba(138, 43, 226, 0.5);
}

.timeline-item.left {
  left: 0;
}

.timeline-item.right {
  left: 50%;
}

.timeline-item.left::after {
  right: -10px;
}

.timeline-item.right::after {
  left: -10px;
}

.timeline-content {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  transition: all 0.3s ease;
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.timeline-header {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
  gap: 1rem;
}

.role-icon {
  font-size: 1.5rem;
  color: rgb(138, 43, 226);
  background: rgba(138, 43, 226, 0.1);
  padding: 0.75rem;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.timeline-content:hover .role-icon {
  transform: rotate(360deg);
  background: rgba(138, 43, 226, 0.2);
}

.header-text {
  flex: 1;
}

.timeline-content h4 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--bs-body-color);
}

.timeline-content h5 {
  margin: 0.25rem 0;
  font-size: 1rem;
  color: rgb(138, 43, 226);
  font-weight: 500;
}

.timeline-content .text-muted {
  font-size: 0.9rem;
  margin: 0.25rem 0;
  opacity: 0.8;
}

.timeline-content ul {
  list-style: none;
  padding-left: 0;
  margin: 1rem 0 0;
}

.timeline-content ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  color: var(--bs-body-color);
  opacity: 0.9;
  line-height: 1.5;
}

.timeline-content ul li:before {
  content: "→";
  position: absolute;
  left: 0;
  color: rgb(138, 43, 226);
  font-weight: bold;
}

.highlight {
  color: rgb(138, 43, 226);
  font-weight: 600;
}

/* Light theme timeline styles */
[data-bs-theme="light"] .timeline-content {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

[data-bs-theme="light"] .timeline-item::after {
  border-color: #ffffff;
  box-shadow: 0 0 0 4px rgba(138, 43, 226, 0.1);
}

/* Responsive timeline */
@media (max-width: 768px) {
  .timeline::after {
    left: 31px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }

  .timeline-item.left,
  .timeline-item.right {
    left: 0;
  }

  .timeline-item.left::after,
  .timeline-item.right::after {
    left: 21px;
  }

  .timeline-content {
    padding: 1.25rem;
  }

  .role-icon {
    font-size: 1.25rem;
    padding: 0.5rem;
  }

  .timeline-content h4 {
    font-size: 1.1rem;
  }

  .timeline-content h5 {
    font-size: 0.95rem;
  }
}

#home {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}

#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1;
  pointer-events: none; /* This ensures clicks pass through */
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

/* Skills */
.skill-tag {
  background-color: var(--bs-gray-800);
  color: var(--bs-light);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  margin: 0.25rem;
  display: inline-block;
  transition: all var(--animation-duration) var(--transition-timing);
}

.skill-tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.skill-progress {
  height: 0.5rem;
  background-color: var(--bs-gray-700);
  border-radius: 1rem;
  margin-top: 0.5rem;
}

.skill-progress-bar {
  height: 100%;
  background-color: var(--bs-primary);
  border-radius: 1rem;
  transition: width 1s ease-in-out;
}

/* Projects */
.project-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.tech-tag {
  font-size: 0.8rem;
  padding: 0.25rem 0.75rem;
  background-color: var(--bs-gray-700);
  border-radius: 1rem;
  margin: 0.25rem;
  display: inline-block;
  transition: all var(--animation-duration) var(--transition-timing);
}

.tech-tag:hover {
  background-color: var(--bs-primary);
}

/* Publications */
.publication-card {
  transition: all var(--animation-duration) var(--transition-timing);
}

.publication-card:hover {
  transform: scale(1.02);
}

/* Social Links */
.social-link {
  font-size: 1.5rem;
  margin: 0 0.5rem;
  color: var(--bs-light);
  transition: all 0.3s ease;
}

.social-link:hover {
  color: var(--bs-primary);
  transform: translateY(-2px);
}

/* Animations */
.fade-in {
  opacity: 1;
  transform: none;
}

@media (min-width: 768px) {
  .fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  }

  .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .project-card:hover {
    transform: translateY(-5px);
  }
}

/* Skills Tags */
.skill-tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  margin: 0.25rem;
  border-radius: 2rem;
  background-color: rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.skill-tag:hover {
  transform: translateY(-2px);
  background-color: var(--bs-primary);
}

/* Button styles */
.btn-primary,
.btn-outline-secondary {
  position: relative;
  z-index: 3;
  display: inline-block;
  cursor: pointer;
}

.btn-primary {
  background-color: #8a2be2;
  border-color: #8a2be2;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-primary:hover {
  background-color: #9b30ff;
  border-color: #9b30ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(138, 43, 226, 0.2);
}

/* Light theme button styles */
[data-bs-theme="light"] .btn-outline-secondary {
  color: #1a1d21;
  border: 2px solid rgba(26, 29, 33, 0.5);
}

[data-bs-theme="light"] .btn-outline-secondary:hover {
  background-color: rgba(26, 29, 33, 0.1);
  border-color: #1a1d21;
  color: #1a1d21;
}

/* Dark theme button styles */
[data-bs-theme="dark"] .btn-outline-secondary {
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

[data-bs-theme="dark"] .btn-outline-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  color: #fff;
}

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

/* Button group spacing */
.btn-group .btn + .btn,
.btn + .btn {
  margin-left: 1rem;
}

/* Search and Filter Styles */
.input-group {
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.input-group-text {
  background-color: transparent;
  border: none;
  color: var(--bs-primary);
}

#projectSearch {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--bs-body-color);
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
}

#projectSearch:focus {
  box-shadow: none;
  border-color: var(--bs-primary);
  background-color: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="light"] #projectSearch {
  background-color: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.1);
}

.filter-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn-outline-primary {
  border-color: var(--bs-primary);
  color: var(--bs-primary);
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  transition: all 0.3s ease;
}

.btn-outline-primary:hover,
.btn-outline-primary.active {
  background-color: var(--bs-primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(138, 43, 226, 0.2);
}

/* Project card animation for filtering */
.project-item {
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
  display: block;
}

.project-item.hidden {
  display: none;
}

.tech-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  margin: 0.25rem;
  border-radius: 1rem;
  background-color: rgba(138, 43, 226, 0.1);
  color: var(--bs-primary);
  font-size: 0.8rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.tech-tag:hover {
  background-color: var(--bs-primary);
  color: #fff;
  transform: translateY(-2px);
}

.tech-tag.active {
  background-color: var(--bs-primary);
  color: #fff;
}

/* No results message */
.no-results {
  display: none;
  text-align: center;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  color: var(--bs-body-color);
  font-size: 1.1rem;
}

.no-results.visible {
  display: block;
  opacity: 1;
}

/* Search Bar Styles */
.search-container {
  position: relative;
  margin-bottom: 2rem;
}

.search-container input {
  background-color: rgba(138, 43, 226, 0.1);
  border: 2px solid rgba(138, 43, 226, 0.2);
  color: var(--bs-body-color);
  padding: 1rem;
  border-radius: 0.5rem;
  font-size: 1.1rem;
  width: 100%;
  transition: all 0.3s ease;
}

.search-container input:focus {
  background-color: rgba(138, 43, 226, 0.15);
  border-color: rgba(138, 43, 226, 0.5);
  box-shadow: 0 0 0 0.25rem rgba(138, 43, 226, 0.25);
  outline: none;
}

/* Light theme search styles */
[data-bs-theme="light"] .search-container input {
  background-color: rgba(138, 43, 226, 0.05);
  border-color: rgba(138, 43, 226, 0.2);
}

[data-bs-theme="light"] .search-container input::placeholder {
  color: rgba(0, 0, 0, 0.6);
  opacity: 1;
}

/* Dark theme search styles */
[data-bs-theme="dark"] .search-container input::placeholder {
  color: rgba(255, 255, 255, 0.6);
  opacity: 1;
}

[data-bs-theme="light"] .search-container input:focus {
  background-color: rgba(138, 43, 226, 0.1);
  border-color: rgba(138, 43, 226, 0.4);
}

/* Project Card Styles */
.project-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 1.5rem;
  height: 100%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 20px rgba(138, 43, 226, 0.15);
}

[data-bs-theme="light"] .project-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

[data-bs-theme="light"] .project-card:hover {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.project-card h3 {
  color: var(--bs-body-color);
  font-size: 1.4rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.project-card p {
  color: var(--bs-body-color);
  opacity: 0.9;
  margin-bottom: 1.5rem;
}

.tech-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  margin: 0.25rem;
  border-radius: 1rem;
  background-color: rgba(138, 43, 226, 0.1);
  color: #8a2be2;
  font-size: 0.8rem;
  transition: all 0.3s ease;
}

.tech-tag:hover {
  background-color: rgba(138, 43, 226, 0.2);
  transform: translateY(-2px);
}

/* No Results Message */
.no-results {
  text-align: center;
  padding: 3rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 1rem;
  margin-top: 2rem;
  color: var(--bs-body-color);
  font-size: 1.1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.no-results.visible {
  opacity: 1;
}

[data-bs-theme="light"] .no-results {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.profile-image-container {
  width: 300px;
  height: 300px;
  margin: 0 auto;
  position: relative;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(138, 43, 226, 0.1);
  border: 4px solid rgba(138, 43, 226, 0.3);
  transition: all 0.3s ease;
}

.profile-image-container:hover {
  transform: scale(1.02);
  border-color: rgba(138, 43, 226, 0.5);
}

.profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.profile-image:hover {
  transform: scale(1.05);
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  transition: color var(--theme-transition-duration) ease;
}

.hero-content h2 {
  font-size: 1.75rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  transition: color var(--theme-transition-duration) ease;
}

.hero-content .introduction {
  max-width: 800px;
}

.hero-content .introduction p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  color: var(--bs-body-color);
  opacity: 0.9;
}

.hero-content .introduction p strong {
  color: var(--bs-primary);
  font-weight: 600;
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content h2 {
    font-size: 1.5rem;
  }

  .hero-content .introduction p {
    font-size: 1rem;
  }
}

.hero-content .lead {
  fontsize: 1.25rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* Skill Visualization Styles */
.skill-chart-container {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 1rem;
  padding: 2.5rem;
  margin-bottom: 2rem;
  height: 400px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.skill-chart-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* Light theme skill chart */
[data-bs-theme="light"] .skill-chartcontainer {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

[data-bs-theme="light"] .skill-chart-container:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.skill-category {
  background: rgba(255, 255, 0.05);
  border-radius: 1rem;
  padding: 2rem;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.skill-category:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* Light theme skill category */
[data-bs-theme="light"] .skill-category {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

[data-bs-theme="light"] .skill-category:hover {
  boxshadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.skill-bars {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.skill-item {
  width: 100%;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.skill-name {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--bs-body-color);
}

.skill-percentage {
  color: #8a2be2;
  font-weight: 600;
  font-size: 0.9rem;
}

.skill-progress {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.skill-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #8a2be2 0%, #9b30ff 100%);
  border-radius: 4px;
  transition: width 1s ease-in-out;
  animation: fillSkill 1.5s ease-out forwards;
}

/* Light theme progress bar */
[data-bs-theme="light"] .skill-progress {
  background: rgba(138, 43, 226, 0.1);
}

/* Skill animation */
@keyframes fillSkill {
  from {
    width: 0;
  }
  to {
    width: var(--skill-percent);
  }
}

.skill-network-container {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 1rem;
  padding: 1.5rem;
  height: 400px;
  margin: 2rem 0;
}

.skill-category {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 1rem;
  padding: 1.5rem;
  height: 100%;
}

/* Professional Story Styles */
.professional-story {
  padding: 2rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

[data-bs-theme="light"] .professional-story {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.professional-story .lead {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--bs-body-color);
  opacity: 0.95;
}

.professional-story p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--bs-body-color);
  opacity: 0.9;
  margin-bottom: 1.5rem;
}

.profile-image-container {
  width: 300px;
  height: 300px;
  margin: 0 auto;
  position: relative;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(138, 43, 226, 0.1);
  border: 4px solid rgba(138, 43, 226, 0.3);
  transition: all 0.3s ease;
}

.profile-image-container:hover {
  transform: scale(1.02);
  border-color: rgba(138, 43, 226, 0.5);
}

.profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.profile-image:hover {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .professional-story {
    padding: 1.5rem;
  }

  .professional-story .lead {
    font-size: 1.1rem;
  }

  .professional-story p {
    font-size: 1rem;
  }

  .profile-image-container {
    width: 250px;
    height: 250px;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Timeline Expansion Styles */
.timeline-expandable {
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.timeline-expandable.show {
  opacity: 1;
  transform: translateY(0);
}

.timeline-expand-button {
  text-align: center;
  margin-top: 2rem;
  padding: 1rem;
}

#timelineExpandBtn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 2rem;
  background: rgba(138, 43, 226, 0.1);
  color: rgb(138, 43, 226);
  border: 2px solid rgba(138, 43, 226, 0.2);
  transition: all 0.3s ease;
}

#timelineExpandBtn:hover {
  background: rgba(138, 43, 226, 0.2);
  transform: translateY(-2px);
}

#timelineExpandBtn i {
  transition: transform 0.3s ease;
}

#timelineExpandBtn.expanded i {
  transform: rotate(180deg);
}

/* Light theme button styles */
[data-bs-theme="light"] #timelineExpandBtn {
  background: rgba(138, 43, 226, 0.05);
}

[data-bs-theme="light"] #timelineExpandBtn:hover {
  background: rgba(138, 43, 226, 0.1);
}

/* Innovation section styling */
.innovation-areas ul {
  list-style: none;
  padding-left: 0;
}

.innovation-areas li {
  margin-bottom: 1.5rem;
  padding: 1rem;
  border-radius: 0.5rem;
  background: rgba(138, 43, 226, 0.05);
  transition: all 0.3s ease;
}

.innovation-areas li:hover {
  transform: translateY(-2px);
  background: rgba(138, 43, 226, 0.1);
}

.innovation-areas strong {
  color: var(--bs-primary);
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

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

.feature-list li {
  margin-bottom: 1.5rem;
  padding: 1rem;
  border-radius: 0.5rem;
  background: rgba(138, 43, 226, 0.05);
  transition: all 0.3s ease;
}

.feature-list li:hover {
  transform: translateY(-2px);
  background: rgba(138, 43, 226, 0.1);
}

.feature-list .highlight {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.feature-list p {
  margin-bottom: 0;
  opacity: 0.9;
}

/* Light theme adjustments */
[data-bs-theme="light"] .innovation-areas li,
[data-bs-theme="light"] .feature-list li {
  background: rgba(138, 43, 226, 0.03);
  border: 1px solid rgba(138, 43, 226, 0.05);
}

[data-bs-theme="light"] .innovation-areas li:hover,
[data-bs-theme="light"] .feature-list li:hover {
  background: rgba(138, 43, 226, 0.07);
  border-color: rgba(138, 43, 226, 0.1);
}

/* Add these styles to your custom.css file */

/* Ensure project items are always visible by default */
.project-item {
  display: block !important;
}

/* Only hide when explicitly marked with d-none AND has inline style */
.project-item.d-none[style*="display: none"] {
  display: none !important;
}

/* Better transition for visibility changes */
.project-item {
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 1;
  transform: scale(1);
}

/* Styling for when items are filtered out */
.project-item.filtered-out {
  opacity: 0;
  transform: scale(0.9);
  pointer-events: none;
}

/* Ensure projects are visible by default */
.project-item {
  display: block !important;
}

/* Only hide when explicitly marked as hidden */
.project-item.force-hide {
  display: none !important;
}

/* Fix for any animation issues */
.project-item {
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 1;
}

/* Custom styling for the Show All Projects button - add to your custom.css */
#showProjectsButton .btn {
  padding: 0.75rem 1.25rem;
  transition: all 0.3s ease;
}

#showProjectsButton .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Light theme */
[data-bs-theme="light"] #showProjectsButton .btn {
  background-color: #8a2be2;
  border-color: #8a2be2;
}

/* Dark theme */
[data-bs-theme="dark"] #showProjectsButton .btn {
  background-color: #8a2be2;
  border-color: #8a2be2;
}

/* Additional CSS for project visibility */
.project-item {
  transition: opacity 0.3s ease, transform 0.3s ease !important;
  opacity: 1;
  transform: scale(1);
}

/* Override any display:none that might be set by other mechanisms */
.project-item[style*="display: none"],
.project-item.d-none {
  display: block !important;
}

/* Only apply this when we specifically want to hide items */
.project-item.force-hide {
  display: none !important;
}

/* Ensure navigation is working well */
.back-to-projects-link {
  cursor: pointer;
  position: relative;
  z-index: 100;
}

/* Make the "Show All Projects" button more prominent */
#showProjectsButton .btn {
  padding: 0.75rem 1.5rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

#showProjectsButton .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/**
 * project-fixes.css
 *
 * This file contains specific CSS fixes for the project visibility issues
 * to ensure projects are displayed correctly in all situations.
 */

/* Ensure project items have proper default visibility */
.project-item {
  display: block;
  visibility: visible;
  opacity: 1;
  height: auto;
  overflow: visible;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Only hide project items when both d-none class AND display:none style are applied */
.project-item.d-none[style*="display: none"] {
  display: none !important;
}

/* Proper styling for filtered project items */
.project-item {
  transform: scale(1);
}

/* Transitions for filtering */
.project-item.filtered-out {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
}

/* Enhanced project card hover effects */
.project-card {
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(138, 43, 226, 0.15);
}

/* Light theme card styling */
[data-bs-theme="light"] .project-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

[data-bs-theme="light"] .project-card:hover {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

/* Ensure projectsGrid has proper styling */
#projectsGrid {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -0.75rem; /* Compensate for Bootstrap grid gutters */
  visibility: visible;
  opacity: 1;
}

/* Improve no results message visibility */
#noResults {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  text-align: center;
  padding: 3rem;
  margin-top: 2rem;
}

#noResults.d-none {
  display: none;
}

#noResults:not(.d-none) {
  display: block;
  opacity: 1;
}

/* Improve active filter badge styling */
#activeFilters .badge {
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

#activeFilters .badge:hover {
  opacity: 0.8;
  transform: translateY(-2px);
}

/* Add smooth scrolling to improve navigation */
html {
  scroll-behavior: smooth;
}

/* Improve search box styling */
#projectSearch {
  background-color: rgba(138, 43, 226, 0.05);
  border: 1px solid rgba(138, 43, 226, 0.1);
  transition: all 0.3s ease;
}

#projectSearch:focus {
  background-color: rgba(138, 43, 226, 0.1);
  border-color: rgba(138, 43, 226, 0.3);
  box-shadow: 0 0 0 0.25rem rgba(138, 43, 226, 0.1);
}

/* Enhanced filter button styling */
.filter-buttons .btn {
  padding: 0.5rem 1rem;
  margin: 0.25rem;
  transition: all 0.3s ease;
}

.filter-buttons .btn:hover {
  transform: translateY(-2px);
}

.filter-buttons .btn.active {
  background-color: #8a2be2;
  border-color: #8a2be2;
  color: #fff;
}

[data-bs-theme="light"] .filter-buttons .btn {
  border-color: rgba(138, 43, 226, 0.3);
  color: rgba(138, 43, 226, 0.8);
}

/* Ensure technology tags are visible */
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: rgba(138, 43, 226, 0.1);
  color: #8a2be2;
  border-radius: 1rem;
  font-size: 0.8rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.tech-tag:hover {
  background-color: rgba(138, 43, 226, 0.2);
  transform: translateY(-2px);
}

/* Back to Top Button - Add to custom.css */
.btn-back-to-top {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #8a2be2;
  color: #fff;
  border: none;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.btn-back-to-top:hover {
  background-color: #9b30ff;
  transform: translateY(-5px);
}

/* Light theme adjustments */
[data-bs-theme="light"] .btn-back-to-top {
  background-color: #8a2be2;
  color: #fff;
}

/* Enhanced hover effects for project cards and buttons
 * Add these styles to your custom.css file
 */

/* Project Card Enhanced Hover Effects */
.project-card {
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    box-shadow 0.4s ease, border-color 0.4s ease;
}

.project-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 15px 30px rgba(138, 43, 226, 0.15);
  border-color: rgba(138, 43, 226, 0.3);
}

/* Add a subtle glow effect on hover */
.project-card:hover::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  box-shadow: 0 0 20px rgba(138, 43, 226, 0.2);
  opacity: 0;
  z-index: -1;
  animation: cardGlow 1.5s ease-in-out infinite alternate;
}

@keyframes cardGlow {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Project card content hover effects */
.project-card h3 {
  transition: color 0.3s ease, transform 0.3s ease;
}

.project-card:hover h3 {
  color: #8a2be2;
  transform: translateX(3px);
}

/* Tech Tags Enhanced Hover */
.tech-tag {
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.tech-tag:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 5px 10px rgba(138, 43, 226, 0.2);
  background-color: rgba(138, 43, 226, 0.3);
  color: #fff;
}

/* Button Hover Enhancements */
.btn-primary {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: all 0.6s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 7px 14px rgba(138, 43, 226, 0.25);
}

/* Outline Button Enhancements */
.btn-outline-secondary {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Filter Buttons Enhanced Hover */
.filter-buttons .btn {
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.filter-buttons .btn:hover {
  transform: translateY(-3px) scale(1.05);
}

/* Dark theme specific adjustments */
[data-bs-theme="dark"] .project-card:hover {
  background: rgba(255, 255, 255, 0.08);
}

[data-bs-theme="dark"] .project-card:hover h3 {
  color: #b975ff;
}

/* Light theme specific adjustments */
[data-bs-theme="light"] .project-card:hover {
  background: #ffffff;
  box-shadow: 0 15px 30px rgba(138, 43, 226, 0.1);
}

/* Enhanced Timeline Styling */

/* Refined timeline central line */
.timeline::after {
  background: linear-gradient(
    to bottom,
    rgba(138, 43, 226, 0),
    rgba(138, 43, 226, 0.8),
    rgba(138, 43, 226, 0)
  );
  box-shadow: 0 0 15px rgba(138, 43, 226, 0.3);
}

/* Improved timeline item animations */
.timeline-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Cascade animation effect - different delays per item */
.timeline-item:nth-child(1) {
  transition-delay: 0.1s;
}
.timeline-item:nth-child(2) {
  transition-delay: 0.2s;
}
.timeline-item:nth-child(3) {
  transition-delay: 0.3s;
}
.timeline-item:nth-child(4) {
  transition-delay: 0.4s;
}

/* Enhanced timeline nodes */
.timeline-item::after {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 4px solid rgba(138, 43, 226, 0.3);
  box-shadow: 0 0 0 4px rgba(138, 43, 226, 0.1);
}

.timeline-item:hover::after {
  transform: scale(1.4);
  background: rgba(138, 43, 226, 0.9);
  box-shadow: 0 0 15px rgba(138, 43, 226, 0.5),
    0 0 0 8px rgba(138, 43, 226, 0.1);
}

/* Enhanced content cards */
.timeline-content {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  backface-visibility: hidden;
}

.timeline-content:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Improved role icons */
.role-icon {
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.timeline-content:hover .role-icon {
  transform: rotate(360deg) scale(1.2);
  box-shadow: 0 0 15px rgba(138, 43, 226, 0.3);
}

/* Enhanced expandable section */
.timeline-expandable {
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  display: none;
}

.timeline-expandable.show {
  opacity: 1;
  transform: translateY(0);
  display: block;
}

/* Improved expand button */
.timeline-expand-button {
  margin-top: 2.5rem;
  padding: 1rem;
  text-align: center;
}

#timelineExpandBtn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 2rem;
  background: rgba(138, 43, 226, 0.1);
  color: rgb(138, 43, 226);
  border: 2px solid rgba(138, 43, 226, 0.2);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  font-weight: 500;
}

#timelineExpandBtn:hover {
  background: rgba(138, 43, 226, 0.2);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(138, 43, 226, 0.2);
}

#timelineExpandBtn i {
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#timelineExpandBtn.expanded i {
  transform: rotate(180deg);
}

/* Enhanced text style in timeline */
.timeline-content h4 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  transition: color 0.3s ease;
}

.timeline-content:hover h4 {
  color: rgb(138, 43, 226);
}

.timeline-content h5 {
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
}

/* Improved bullet points */
.timeline-content ul li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: rgb(138, 43, 226);
  font-weight: bold;
  transition: transform 0.3s ease;
}

.timeline-content:hover ul li::before {
  transform: translateX(3px);
}

/* Responsive improvements */
@media (max-width: 768px) {
  .timeline-content {
    padding: 1.5rem;
  }

  .timeline-content h4 {
    font-size: 1.2rem;
  }

  .timeline-content h5 {
    font-size: 1rem;
  }
}
/* Timeline Node Popup Styling */

/* Make timeline nodes clickable */
.timeline-item::after {
  cursor: pointer;
  z-index: 10;
}

/* Improved Timeline Popup Styling */

/* Popup container - more compact and responsive */
.timeline-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: rgba(30, 32, 40, 0.95);
  border-radius: 12px;
  padding: 20px;
  max-width: 450px; /* Reduced from 500px */
  width: 85%; /* Reduced from 90% */
  max-height: 85vh; /* Added max height */
  overflow-y: auto; /* Added scrolling */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border-left: 4px solid #8a2be2;
}

/* Light theme popup */
[data-bs-theme="light"] .timeline-popup {
  background: rgba(250, 250, 255, 0.98);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  color: #333;
}

/* Active popup state */
.timeline-popup.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

/* More compact popup header */
.timeline-popup-header {
  display: flex;
  align-items: flex-start;
  margin-bottom: 12px; /* Reduced from 15px */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 12px; /* Reduced from 15px */
}

[data-bs-theme="light"] .timeline-popup-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* Smaller popup icon */
.timeline-popup-icon {
  font-size: 1.75rem; /* Reduced from 2rem */
  color: #8a2be2;
  background: rgba(138, 43, 226, 0.1);
  padding: 10px; /* Reduced from 12px */
  border-radius: 50%;
  margin-right: 12px; /* Reduced from 15px */
  flex-shrink: 0;
}

/* Smaller title text */
.timeline-popup-title h3 {
  margin: 0 0 4px 0; /* Reduced from 5px */
  color: white;
  font-size: 1.3rem; /* Reduced from 1.4rem */
}

[data-bs-theme="light"] .timeline-popup-title h3 {
  color: #333;
}

.timeline-popup-title h4 {
  margin: 0 0 4px 0; /* Reduced from 5px */
  color: #8a2be2;
  font-size: 1.05rem; /* Reduced from 1.1rem */
}

.timeline-popup-title p {
  margin: 0;
  opacity: 0.7;
  font-size: 0.85rem; /* Reduced from 0.9rem */
}

/* More compact popup content */
.timeline-popup-content {
  margin-bottom: 15px; /* Reduced from 20px */
}

.timeline-popup-content p {
  margin: 0 0 8px 0; /* Reduced from 10px */
  line-height: 1.5; /* Reduced from 1.6 */
  font-size: 0.9rem; /* Added smaller font size */
}

/* Compact achievements section */
.timeline-popup-achievements h5 {
  font-size: 0.95rem; /* Added smaller font size */
  margin-bottom: 6px;
}

.timeline-popup-achievements ul {
  padding-left: 20px; /* Reduced padding */
  margin-bottom: 10px;
}

.timeline-popup-achievements ul li {
  margin-bottom: 4px;
  font-size: 0.9rem; /* Added smaller font size */
}

/* More compact skills tags */
.timeline-popup-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px; /* Reduced from 8px */
  margin-top: 12px; /* Reduced from 15px */
}

.timeline-popup-skill {
  background: rgba(138, 43, 226, 0.15);
  color: #b975ff;
  padding: 4px 8px; /* Reduced from 5px 10px */
  border-radius: 20px;
  font-size: 0.75rem; /* Reduced from 0.8rem */
}

[data-bs-theme="light"] .timeline-popup-skill {
  background: rgba(138, 43, 226, 0.1);
  color: #8a2be2;
}

/* Scrollbar styling for popup */
.timeline-popup::-webkit-scrollbar {
  width: 6px;
}

.timeline-popup::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

.timeline-popup::-webkit-scrollbar-thumb {
  background: rgba(138, 43, 226, 0.5);
  border-radius: 10px;
}

.timeline-popup::-webkit-scrollbar-thumb:hover {
  background: rgba(138, 43, 226, 0.7);
}

/* Mobile responsiveness improvements */
@media (max-width: 768px) {
  .timeline-popup {
    width: 90%;
    max-width: 90%;
    padding: 16px;
    max-height: 80vh;
  }

  .timeline-popup-header {
    align-items: center;
  }

  .timeline-popup-icon {
    font-size: 1.5rem;
    padding: 8px;
    margin-right: 10px;
  }

  .timeline-popup-title h3 {
    font-size: 1.2rem;
  }

  .timeline-popup-title h4 {
    font-size: 1rem;
  }

  .timeline-popup-content p,
  .timeline-popup-achievements ul li {
    font-size: 0.85rem;
  }
}

/* Small screen optimizations */
@media (max-width: 480px) {
  .timeline-popup {
    width: 95%;
    padding: 15px;
    max-height: 85vh;
  }

  .timeline-popup-header {
    flex-direction: row; /* Keep as row even on small screens */
    padding-bottom: 10px;
    margin-bottom: 10px;
  }

  .timeline-popup-icon {
    font-size: 1.4rem;
    padding: 7px;
  }
}

/* Filter Button Contrast Fixes
 * Add these styles to your custom.css file
 */

/* Default filter button styles (both themes) */
.filter-buttons .btn {
  padding: 0.5rem 1rem;
  margin: 0.25rem;
  transition: all 0.3s ease;
  font-weight: 500;
}

/* Enhanced hover effect */
.filter-buttons .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(138, 43, 226, 0.2);
}

/* Active state for both themes */
.filter-buttons .btn.active {
  background-color: #8a2be2 !important;
  border-color: #8a2be2 !important;
  color: white !important;
  box-shadow: 0 4px 8px rgba(138, 43, 226, 0.3);
}

/* Inactive buttons - Dark theme */
[data-bs-theme="dark"] .filter-buttons .btn:not(.active) {
  background-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Inactive buttons - Light theme */
[data-bs-theme="light"] .filter-buttons .btn:not(.active) {
  background-color: rgba(138, 43, 226, 0.05);
  color: rgba(90, 30, 150, 0.8);
  border-color: rgba(138, 43, 226, 0.2);
}

/* All button in dark theme */
[data-bs-theme="dark"] .filter-buttons .btn[data-filter="all"] {
  background-color: rgba(255, 255, 255, 0.15);
  color: white;
  border-color: rgba(255, 255, 255, 0.3);
}

/* All button in light theme */
[data-bs-theme="light"] .filter-buttons .btn[data-filter="all"] {
  background-color: rgba(138, 43, 226, 0.1);
  color: rgba(90, 30, 150, 0.9);
  border-color: rgba(138, 43, 226, 0.3);
}

/* Active all button - both themes */
.filter-buttons .btn[data-filter="all"].active {
  background-color: #8a2be2 !important;
  color: white !important;
  border-color: #8a2be2 !important;
}

/* Icons in filter buttons */
.filter-buttons .btn i {
  margin-right: 0.35rem;
  opacity: 0.9;
}

/* Featured Projects Section Styles */

/* Project Cards */
.project-card {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(138, 43, 226, 0.1);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  position: relative;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(138, 43, 226, 0.15);
  border-color: rgba(138, 43, 226, 0.2);
}

.project-card:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(138, 43, 226, 0);
  opacity: 0;
  transition: all 0.3s ease;
}

.project-card:hover:after {
  box-shadow: 0 0 30px 3px rgba(138, 43, 226, 0.2);
  opacity: 1;
}

/* Technology Tags */
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tech-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  margin: 0;
  border-radius: 1rem;
  background-color: rgba(138, 43, 226, 0.1);
  color: #8a2be2;
  font-size: 0.8rem;
  transition: all 0.3s ease;
}

.tech-tag:hover {
  background-color: rgba(138, 43, 226, 0.2);
  transform: translateY(-2px);
}

/* Project Meta Info */
.project-meta {
  margin-top: 1rem;
}

.project-year {
  display: inline-flex;
  align-items: center;
  background: rgba(138, 43, 226, 0.1);
  color: #8a2be2;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.85rem;
}

/* Filter Buttons */
.filter-buttons {
  margin-bottom: 1.5rem;
}

.filter-buttons .btn {
  margin: 0.25rem;
  transition: all 0.3s ease;
  border-color: rgba(138, 43, 226, 0.3);
  color: #8a2be2;
}

.filter-buttons .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(138, 43, 226, 0.15);
}

.filter-buttons .btn.active {
  background-color: #8a2be2;
  color: white;
  border-color: #8a2be2;
}

/* Filter Badges */
.filter-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(138, 43, 226, 0.1);
  color: #8a2be2;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.9rem;
  margin: 0.25rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-badge:hover {
  background: rgba(138, 43, 226, 0.2);
  transform: translateY(-2px);
}

.filter-badge-clear {
  background: rgba(231, 76, 60, 0.1);
  color: #e74c3c;
}

.filter-badge-clear:hover {
  background: rgba(231, 76, 60, 0.2);
}

.filter-badge i {
  margin-left: 0.5rem;
}

/* No Results Message */
.no-results {
  padding: 3rem;
  border-radius: 1rem;
  background-color: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(138, 43, 226, 0.1);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.project-item {
  opacity: 0;
  animation: fadeInUp 0.5s ease forwards;
}

/* Extra padding for the search container */
.search-container {
  padding: 0.5rem;
  border-radius: 1rem;
  background: rgba(138, 43, 226, 0.05);
}

/* Light/Dark Mode Adjustments */
[data-bs-theme="light"] .project-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

[data-bs-theme="dark"] .project-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .tech-tag {
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
  }

  .project-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}

/* Publications Section Styling */
#publications {
  padding: 5rem 0;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #f8fafc;
}

.section-title {
  position: relative;
  display: inline-block;
  font-weight: 700;
  margin-bottom: 3rem;
}

.section-title:after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background-color: #8a2be2;
}

/* Publication Stats Cards */
.publication-stats {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(5px);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-card {
  padding: 1.5rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  transition: transform 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.07);
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: #8a2be2;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Research Focus Areas */
.research-focus {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 3rem;
}

.focus-area {
  padding: 1.5rem;
  transition: transform 0.3s ease;
}

.focus-area:hover {
  transform: translateY(-5px);
}

.area-icon {
  font-size: 2rem;
  color: #8a2be2;
  margin-bottom: 1rem;
}

/* Featured Publications */
.publication-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-left: 4px solid #8a2be2;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.publication-card:hover {
  transform: translateX(5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.citation-count {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem;
}

.citation-count .count {
  font-size: 1.5rem;
  font-weight: 700;
  color: #8a2be2;
}

.citation-count .label {
  font-size: 0.8rem;
  opacity: 0.7;
}

.publication-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.publication-authors {
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
  opacity: 0.9;
}

.publication-journal {
  font-size: 0.85rem;
  font-style: italic;
  opacity: 0.7;
  margin-bottom: 0.25rem;
}

.publication-year {
  font-size: 0.85rem;
  opacity: 0.6;
}

/* Recent Publications */
.recent-publication-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.recent-publication-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.07);
}

.pub-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.pub-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  opacity: 0.8;
}

.pub-excerpt {
  font-size: 0.9rem;
  line-height: 1.6;
  opacity: 0.8;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.pub-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  font-size: 0.85rem;
}

.pub-citations {
  opacity: 0.7;
}

.read-more {
  color: #8a2be2;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.3s ease;
}

.read-more:hover {
  opacity: 0.8;
}

/* Google Scholar Button */
.scholar-button {
  display: inline-block;
  background: #8a2be2;
  color: white;
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 2px solid #8a2be2;
}

.scholar-button:hover {
  background: transparent;
  color: white;
  border-color: white;
}
/* Publications Section - Theme Responsive Styling */

/* Base Publications Section (shared styles) */
#publications {
  padding: 5rem 0;
  position: relative;
}

/* Light Theme Publications Section */
[data-bs-theme="light"] #publications {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  color: #212529;
}

[data-bs-theme="light"] #publications .section-title {
  color: #1a1a2e;
}

[data-bs-theme="light"] #publications .section-title:after {
  background-color: #8a2be2;
}

/* Publication Stats Cards - Light Theme */
[data-bs-theme="light"] .publication-stats {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

[data-bs-theme="light"] .stat-card {
  background: rgba(138, 43, 226, 0.03);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

[data-bs-theme="light"] .stat-card:hover {
  background: rgba(138, 43, 226, 0.06);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

[data-bs-theme="light"] .stat-value {
  color: #8a2be2;
}

[data-bs-theme="light"] .stat-label {
  color: #555;
}

/* Research Focus Areas - Light Theme */
[data-bs-theme="light"] .research-focus {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}

[data-bs-theme="light"] .focus-area {
  background: rgba(138, 43, 226, 0.02);
  border-radius: 10px;
  margin: 0.5rem;
}

[data-bs-theme="light"] .focus-area:hover {
  background: rgba(138, 43, 226, 0.05);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.05);
}

[data-bs-theme="light"] .area-icon {
  color: #8a2be2;
}

[data-bs-theme="light"] .focus-area h4 {
  color: #333;
}

[data-bs-theme="light"] .focus-area p {
  color: #555;
}

/* Featured Publications - Light Theme */
[data-bs-theme="light"] .publication-card {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-left: 4px solid #8a2be2;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

[data-bs-theme="light"] .publication-card:hover {
  background: white;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.07);
}

[data-bs-theme="light"] .citation-count .count {
  color: #8a2be2;
}

[data-bs-theme="light"] .citation-count .label {
  color: #666;
}

[data-bs-theme="light"] .publication-title {
  color: #222;
}

[data-bs-theme="light"] .publication-authors {
  color: #444;
}

[data-bs-theme="light"] .publication-authors strong {
  color: #8a2be2;
  font-weight: 600;
}

[data-bs-theme="light"] .publication-journal {
  color: #555;
}

[data-bs-theme="light"] .publication-year {
  color: #777;
}

/* Recent Publications - Light Theme */
[data-bs-theme="light"] .recent-publication-card {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

[data-bs-theme="light"] .recent-publication-card:hover {
  background: white;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.07);
}

[data-bs-theme="light"] .pub-title {
  color: #222;
}

[data-bs-theme="light"] .pub-meta {
  color: #555;
}

[data-bs-theme="light"] .pub-excerpt {
  color: #666;
}

[data-bs-theme="light"] .pub-citations {
  color: #777;
}

[data-bs-theme="light"] .pub-citations i {
  color: #8a2be2;
}

[data-bs-theme="light"] .read-more {
  color: #8a2be2;
}

[data-bs-theme="light"] .read-more:hover {
  color: #9b30ff;
}

/* Google Scholar Button - Light Theme */
[data-bs-theme="light"] .scholar-button {
  background: #8a2be2;
  color: white;
  border: 2px solid #8a2be2;
  box-shadow: 0 5px 15px rgba(138, 43, 226, 0.15);
}

[data-bs-theme="light"] .scholar-button:hover {
  background: transparent;
  color: #8a2be2;
  border-color: #8a2be2;
}

/* Shadows and highlighting for light mode */
[data-bs-theme="light"] .publication-card:hover,
[data-bs-theme="light"] .recent-publication-card:hover {
  border-color: rgba(138, 43, 226, 0.3);
}

/* Visual cues for interactive elements in light mode */
[data-bs-theme="light"] .read-more i {
  transition: transform 0.3s ease;
}

[data-bs-theme="light"] .read-more:hover i {
  transform: translateX(3px);
}

/* Refined visual contrast for card elements in light mode */
[data-bs-theme="light"] .publication-card {
  position: relative;
}

[data-bs-theme="light"] .publication-card::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
  background: linear-gradient(to bottom, #8a2be2, #9b59b6);
  border-radius: 4px 0 0 4px;
  opacity: 0.8;
}

/* Subtle animation for stat cards in light mode */
[data-bs-theme="light"] .stat-value {
  position: relative;
  display: inline-block;
}

[data-bs-theme="light"] .stat-value::after {
  content: "+";
  position: absolute;
  top: 0;
  right: -15px;
  color: #8a2be2;
  font-size: 1.5rem;
  opacity: 0.7;
}

/* Enhance accessibility in light mode */
[data-bs-theme="light"] .pub-meta span {
  font-weight: 500;
}

/* Add visual interest to section in light mode */
[data-bs-theme="light"] #publications::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(
    circle at 80% 10%,
    rgba(138, 43, 226, 0.07) 0%,
    transparent 60%
  );
  pointer-events: none;
}

/* Insights & Innovation Section Styling */
#insights {
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

/* Background Elements */
#insights::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -30%;
  width: 80%;
  height: 150%;
  background: radial-gradient(
    circle,
    rgba(138, 43, 226, 0.07) 0%,
    transparent 60%
  );
  z-index: 0;
  pointer-events: none;
}

/* Section Title */
.section-title {
  position: relative;
  display: inline-block;
  margin-bottom: 2.5rem;
  font-weight: 700;
  z-index: 1;
}

.section-title:after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background-color: #8a2be2;
}

/* Cards Styling */
.insights-card {
  position: relative;
  border-radius: 16px;
  padding: 2.5rem;
  height: 100%;
  transition: all 0.3s ease;
  z-index: 1;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.insights-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Card Icon */
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 15px;
  background: linear-gradient(135deg, #8a2be2 0%, #9b30ff 100%);
  color: white;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 20px rgba(138, 43, 226, 0.25);
}

.insights-card h3 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #8a2be2, #9b30ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.insights-lead {
  font-size: 1.15rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  color: var(--bs-body-color);
  opacity: 0.9;
}

/* Focus Areas */
.focus-areas {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.focus-item {
  padding: 1.5rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.focus-item:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(5px);
}

.focus-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.focus-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(138, 43, 226, 0.1);
  color: #8a2be2;
  border-radius: 10px;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.focus-item h4 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0;
  color: var(--bs-body-color);
}

.focus-item p {
  margin-bottom: 1rem;
  line-height: 1.6;
  opacity: 0.9;
}

.focus-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.focus-tag {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 50px;
  background: rgba(138, 43, 226, 0.1);
  color: #8a2be2;
  font-size: 0.75rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.focus-tag:hover {
  background: rgba(138, 43, 226, 0.2);
  transform: translateY(-2px);
}

/* Direction Items */
.direction-items {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.direction-item {
  position: relative;
  padding-bottom: 1.5rem;
}

.direction-content {
  display: flex;
  gap: 1rem;
}

.direction-indicator {
  position: relative;
  width: 20px;
  flex-shrink: 0;
}

.indicator-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #8a2be2;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 0 4px rgba(138, 43, 226, 0.1);
  transition: all 0.3s ease;
}

.indicator-line {
  position: absolute;
  top: 16px;
  bottom: -16px;
  left: 7px;
  width: 2px;
  background: rgba(138, 43, 226, 0.3);
  z-index: 1;
}

.direction-item:last-child .indicator-line {
  display: none;
}

.direction-info {
  padding: 1.25rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
  flex-grow: 1;
}

.direction-item:hover .direction-info {
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(5px);
}

.direction-item:hover .indicator-dot {
  transform: scale(1.2);
  box-shadow: 0 0 0 6px rgba(138, 43, 226, 0.15);
}

.direction-info h4 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--bs-body-color);
}

.direction-info p {
  margin-bottom: 0.75rem;
  line-height: 1.6;
  opacity: 0.9;
}

.direction-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #8a2be2;
  font-weight: 500;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.direction-link:hover {
  color: #9b30ff;
}

.direction-link i {
  transition: transform 0.3s ease;
}

.direction-link:hover i {
  transform: translateX(3px);
}

/* CTA Section */
.innovation-cta {
  margin-top: 2rem;
  padding: 2rem;
  border-radius: 16px;
  background: linear-gradient(
    135deg,
    rgba(138, 43, 226, 0.1) 0%,
    rgba(155, 48, 255, 0.1) 100%
  );
  border: 1px solid rgba(138, 43, 226, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.cta-content {
  flex: 1;
  min-width: 200px;
}

.cta-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--bs-body-color);
}

.cta-content p {
  margin-bottom: 0;
  opacity: 0.9;
}

/* Light Theme Adjustments */
[data-bs-theme="light"] .insights-card {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

[data-bs-theme="light"] .focus-item,
[data-bs-theme="light"] .direction-info {
  background: rgba(249, 250, 251, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

[data-bs-theme="light"] .focus-item:hover,
[data-bs-theme="light"] .direction-info:hover {
  background: rgba(249, 250, 251, 1);
  border: 1px solid rgba(138, 43, 226, 0.1);
}

[data-bs-theme="light"] .innovation-cta {
  background: linear-gradient(
    135deg,
    rgba(138, 43, 226, 0.05) 0%,
    rgba(155, 48, 255, 0.05) 100%
  );
  border: 1px solid rgba(138, 43, 226, 0.1);
}

/* Custom Button Styling */
.btn-outline-primary {
  color: #8a2be2;
  border-color: rgba(138, 43, 226, 0.3);
  font-weight: 500;
  padding: 0.6rem 1.5rem;
  transition: all 0.3s ease;
}

.btn-outline-primary:hover {
  background-color: #8a2be2;
  border-color: #8a2be2;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(138, 43, 226, 0.2);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .insights-card {
    padding: 2rem;
  }

  .innovation-cta {
    flex-direction: column;
    text-align: center;
  }

  .cta-content {
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 576px) {
  .focus-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .direction-content {
    gap: 0.75rem;
  }

  .insights-card h3 {
    font-size: 1.5rem;
  }
}

/* Contact Section Styling */
#contact {
  position: relative;
  padding: 6rem 0;
  overflow: hidden;
}

/* Section Header */
.section-header {
  position: relative;
  z-index: 1;
}

.section-tagline {
  display: inline-block;
  background: linear-gradient(135deg, #8a2be2, #9b30ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-title:after {
  content: "";
  position: absolute;
  width: 60px;
  height: 3px;
  background: linear-gradient(to right, #8a2be2, #9b30ff);
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 3px;
}

.section-subtitle {
  max-width: 600px;
  margin: 1.5rem auto 0;
  font-size: 1.1rem;
  opacity: 0.8;
}

/* Contact Form */
.contact-form-wrapper {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2.5rem;
  transition: all 0.3s ease;
}

.contact-form-wrapper:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  border-color: rgba(138, 43, 226, 0.2);
}

/* Form Elements */
.form-floating {
  margin-bottom: 0;
}

.form-control {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--bs-body-color);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.form-control:focus {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(138, 43, 226, 0.5);
  box-shadow: 0 0 0 0.25rem rgba(138, 43, 226, 0.1);
}

textarea.form-control {
  min-height: 120px;
  resize: none;
}

.form-floating > label {
  padding: 1rem 1.2rem;
  color: rgba(255, 255, 255, 0.7);
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
  color: rgba(138, 43, 226, 0.9);
  font-weight: 500;
}

/* Submit Button */
.submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, #8a2be2, #9b30ff);
  border: none;
  border-radius: 12px;
  padding: 0.75rem 2rem;
  font-size: 1.1rem;
  font-weight: 500;
  color: white;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  width: 100%;
}

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(138, 43, 226, 0.25);
}

.submit-btn:after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: 0.5s ease;
}

.submit-btn:hover:after {
  left: 100%;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.submit-btn:hover .btn-icon {
  transform: translateX(5px);
}

/* Social Links */
.social-wrapper {
  margin-top: 3rem;
}

.social-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  color: var(--bs-body-color);
}

.social-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--bs-body-color);
  font-size: 1.25rem;
  transition: all 0.3s ease;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
  background: linear-gradient(135deg, #8a2be2, #9b30ff);
  color: white;
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(138, 43, 226, 0.2);
}

/* Decorative Shapes */
.shape-1 {
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(138, 43, 226, 0.1) 0%,
    transparent 70%
  );
  border-radius: 50%;
  top: 0;
  right: 0;
  z-index: 0;
  transform: translate(30%, -30%);
}

.shape-2 {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(138, 43, 226, 0.05) 0%,
    transparent 70%
  );
  border-radius: 50%;
  bottom: 0;
  left: 0;
  z-index: 0;
  transform: translate(-30%, 30%);
}

/* Light Theme Adjustments */
[data-bs-theme="light"] .contact-form-wrapper {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

[data-bs-theme="light"] .form-control {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

[data-bs-theme="light"] .form-control:focus {
  background: white;
  border-color: rgba(138, 43, 226, 0.5);
}

[data-bs-theme="light"] .form-floating > label {
  color: rgba(0, 0, 0, 0.6);
}

[data-bs-theme="light"] .social-link {
  background: rgba(138, 43, 226, 0.05);
  color: #333;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  #contact {
    padding: 4rem 0;
  }

  .section-title {
    font-size: 2rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  .contact-form-wrapper {
    padding: 1.75rem;
  }
}
/* Easter Egg Styling */
.easter-egg {
  position: relative;
  transition: transform 0.3s ease;
}

.easter-egg::before {
  content: "🎁";
  position: absolute;
  font-size: 1.5rem;
  top: -10px;
  left: -10px;
  z-index: 10;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.baby-photo-container {
  text-align: center;
  margin: 15px 0;
  transition: transform 0.3s ease;
  position: relative;
  overflow: hidden;
}

.baby-photo-container:hover {
  transform: scale(1.05);
}

.baby-photo {
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.baby-photo:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.easter-egg-caption {
  font-size: 0.9rem;
  font-style: italic;
  text-align: center;
  margin-top: 10px;
  color: #666;
}

.easter-egg-content {
  padding: 10px;
  background-color: rgba(255, 245, 230, 0.3);
  border-radius: 8px;
  border-left: 3px solid #f8c291;
}

/* Add a special glow effect when hovering over the easter egg */
.easter-egg:hover {
  transform: translateY(-5px);
}

.easter-egg:hover .timeline-content {
  box-shadow: 0 8px 20px rgba(248, 194, 145, 0.3);
}

/* Popup modifications for baby photo */
#timeline-popup .baby-photo {
  max-width: 100%;
  border-radius: 10px;
  margin: 15px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

#baby-photo-container {
  text-align: center;
  margin-top: 20px;
  transition: all 0.3s ease;
}

/* Add a little animation to the popup when showing the baby photo */
@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

#timeline-popup.baby-active #baby-photo-container {
  animation: fadeInScale 0.5s ease forwards;
}

/* Global Typography Consistency
 * This stylesheet ensures consistent typography across the entire website
 * To be added to your global CSS or included in the head of base.html
 */

:root {
  /* Primary font family - ensure it's applied site-wide */
  --font-primary: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;

  /* Font weights */
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Font sizes for different elements */
  --font-size-base: 1rem; /* 16px - base body text */
  --font-size-sm: 0.875rem; /* 14px - small text */
  --font-size-xs: 0.75rem; /* 12px - extra small text */
  --font-size-lg: 1.125rem; /* 18px - large text */
  --font-size-xl: 1.25rem; /* 20px - extra large text */
  --font-size-2xl: 1.5rem; /* 24px - h3, section subtitles */
  --font-size-3xl: 1.875rem; /* 30px - h2, section titles */
  --font-size-4xl: 2.25rem; /* 36px - h1 */
  --font-size-5xl: 3rem; /* 48px - hero titles */

  /* Line heights */
  --line-height-tight: 1.2; /* Headings */
  --line-height-normal: 1.5; /* Body text */
  --line-height-loose: 1.8; /* Larger text blocks */

  /* Letter spacing */
  --letter-spacing-tight: -0.025em;
  --letter-spacing-normal: 0;
  --letter-spacing-wide: 0.025em;
  --letter-spacing-wider: 0.05em;
}

/* Base typography */
body {
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
  font-family: var(--font-primary);
  line-height: var(--line-height-tight);
  font-weight: var(--font-weight-bold);
  margin-bottom: 0.5em;
}

h1,
.h1 {
  font-size: var(--font-size-4xl);
}

h2,
.h2 {
  font-size: var(--font-size-3xl);
}

h3,
.h3 {
  font-size: var(--font-size-2xl);
}

h4,
.h4 {
  font-size: var(--font-size-xl);
}

h5,
.h5 {
  font-size: var(--font-size-lg);
}

h6,
.h6 {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
}

/* Hero section overrides */
.hero-content h1 {
  font-size: var(--font-size-5xl);
}

.hero-content h2 {
  font-size: var(--font-size-2xl);
}

/* Timeline specific styles */
.timeline-item h4 {
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-lg);
}

.timeline-item h5 {
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-base);
}

.timeline-item p {
  font-size: var(--font-size-sm);
}

.timeline-item .highlight {
  font-weight: var(--font-weight-semibold);
}

/* Skills section */
.skill-name {
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-base);
}

.skill-percentage {
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-sm);
}

/* Publications section */
.publication-title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
}

.publication-authors {
  font-size: var(--font-size-sm);
}

.publication-journal {
  font-size: var(--font-size-sm);
  font-style: italic;
}

/* Stats cards */
.stat-value {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
}

.stat-label {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
}

/* Buttons and interactive elements */
.btn {
  font-weight: var(--font-weight-medium);
}

.btn-primary,
.btn-outline-primary {
  font-weight: var(--font-weight-semibold);
}

/* Project cards */
.project-card h3 {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
}

.tech-tag {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
}

/* Popup styles */
.timeline-popup-title h3 {
  font-size: var(--font-size-xl);
}

.timeline-popup-title h4 {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-medium);
}

/* Responsive typography */
@media (max-width: 768px) {
  :root {
    --font-size-5xl: 2.5rem; /* 40px - smaller hero titles on mobile */
    --font-size-4xl: 2rem; /* 32px - smaller h1 on mobile */
    --font-size-3xl: 1.75rem; /* 28px - smaller h2 on mobile */
  }

  .timeline-item h4 {
    font-size: var(--font-size-base);
  }

  .timeline-item h5 {
    font-size: var(--font-size-sm);
  }
}

/* Fix for the typing text container */
.typing-container {
  font-family: var(--font-primary);
  font-size: var(--font-size-xl);
}

.static-text {
  font-weight: var(--font-weight-medium);
}

.typing-text {
  font-weight: var(--font-weight-bold);
}

/* Timeline instruction badge styling */
.timeline-instruction {
  margin: 2rem 0;
  opacity: 0;
  animation: fadeIn 1s ease forwards 1s;
}

.timeline-instruction-badge {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: rgba(138, 43, 226, 0.1);
  color: #8a2be2;
  border-radius: 50px;
  font-size: 0.9rem;
  box-shadow: 0 3px 10px rgba(138, 43, 226, 0.1);
  border: 1px dashed rgba(138, 43, 226, 0.3);
  transition: all 0.3s ease;
}

.timeline-instruction-badge i {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
  100% {
    opacity: 0.7;
    transform: scale(1);
  }
}

/* View details icon styling */
.timeline-view-details {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: #8a2be2;
  font-size: 1.1rem;
  opacity: 0.7;
  transition: all 0.3s ease;
}

.timeline-item:hover .timeline-view-details {
  opacity: 1;
  transform: scale(1.2) rotate(90deg);
}

/* Enhanced cursor and hover effects */
.timeline-content {
  cursor: pointer;
  position: relative;
}

.timeline-content:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(138, 43, 226, 0.2);
  border-color: rgba(138, 43, 226, 0.3);
}

.timeline-content:hover::after {
  content: "Click for details";
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  background: rgba(138, 43, 226, 0.8);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.8rem;
  opacity: 0.9;
  pointer-events: none;
}

/* Light theme adjustments */
[data-bs-theme="light"] .timeline-instruction-badge {
  background: rgba(138, 43, 226, 0.05);
  color: #8a2be2;
  border: 1px dashed rgba(138, 43, 226, 0.2);
}

[data-bs-theme="light"] .timeline-content:hover::after {
  background: rgba(138, 43, 226, 0.9);
}

/* Animation for the plus icon */
.timeline-content:hover .timeline-view-details i {
  animation: bounce 1s infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}
