/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Light Theme Colors (Default) */
  --background-color: #f8f9fa;
  --background-gradient: linear-gradient(to bottom right, white, #f0e6ff);
  --text-color: #2f2e2f;
  --heading-color: #333333;
  --primary-color: #6f3a9a;
  --primary-light: #d8b4fe;
  --primary-dark: #5b21b6;
  --card-bg: rgba(255, 255, 255, 0.9);
  --card-shadow: rgba(0, 0, 0, 0.05);
  --border-color: #e5e7eb;
  --nav-bg: rgba(243, 232, 255, 0.8);
  --skill-bar-bg: #e5e7eb;
  --skill-bar-fill: linear-gradient(to right, #6f3a9a, #d8b4fe);
  --footer-bg: rgba(255, 255, 255, 0.8);
  
  /* Typography */
  --font-heading: 'Orbitron', sans-serif;
  --font-body: 'Poppins', sans-serif;
}

[data-theme="dark"] {
  /* Dark Theme Colors */
  --background-color: #121212;
  --background-gradient: linear-gradient(to bottom right, #121212, #2d1b40);
  --text-color: #e4e4e4;
  --heading-color: #ffffff;
  --primary-color: #9164c7;
  --primary-light: #c291ff;
  --primary-dark: #6f3a9a;
  --card-bg: rgba(40, 40, 40, 0.9);
  --card-shadow: rgba(0, 0, 0, 0.2);
  --border-color: #444444;
  --nav-bg: rgba(40, 25, 60, 0.8);
  --skill-bar-bg: #333333;
  --skill-bar-fill: linear-gradient(to right, #9164c7, #c291ff);
  --footer-bg: rgba(40, 40, 40, 0.8);
}

/* Contact form response message */
.form-response {
  margin-top: 1rem;
  font-weight: 600;
  color: #10b981; /* teal‑green success text */
}
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-color);
  overflow-x: hidden;
  background-color: var(--background-color);
  transition: background-color 0.3s ease, color 0.3s ease;
  line-height: 1.6;
  font-weight: 300;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Background canvas */
.background-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background: var(--background-gradient);
  transition: background 0.3s ease;
}

/* Navigation */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 1rem 1.5rem;
  background-color: var(--nav-bg);
  backdrop-filter: blur(5px);
  z-index: 40;
  transition: background-color 0.3s ease;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0.5rem;
  margin-right: auto;
}
.menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--primary-color);
  margin: 3px 0;
  border-radius: 2px;
  transition: transform 0.3s ease, background 0.3s ease;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-heading);
  color: var(--primary-color);
  font-weight: bold;
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  position: relative;
  transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-dark);
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s, background-color 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Search Icon Animation */
.search-icon {
  margin-left: 1.5rem;
  cursor: pointer;
}

.search-icon .loader {
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.8);
}

.search-icon .loaderMiniContainer {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 130px;
}

.search-icon .barContainer {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.search-icon .bar {
  width: 100%;
  height: 8px;
  background: linear-gradient(to right, rgb(111, 58, 154), rgb(217, 190, 255), rgb(111, 58, 154));
  background-size: 200% 100%;
  border-radius: 10px;
  animation: bar 3s ease-in-out infinite alternate-reverse;
}

@keyframes bar {
  0% {
    background-position: left;
  }
  100% {
    background-position: right;
  }
}

.search-icon .bar2 {
  width: 50%;
}

.search-icon .svgIcon {
  position: absolute;
  left: -25px;
  margin-top: 18px;
  z-index: 2;
  width: 40%;
  animation: search 3s ease-in-out infinite alternate-reverse;
}

@keyframes search {
  0% {
    transform: translateX(0%) rotate(70deg);
  }
  100% {
    transform: translateX(100px) rotate(10deg);
  }
}

/* Main content */
main {
  position: relative;
  z-index: 1;
}

.page {
  min-height: 100vh;
  padding: 7rem 2rem 2.5rem;
  display: none;
  position: relative;
}

.page.active {
  display: block;
}

/* Add left padding for all page content */
.page::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  height: 100%;
  background: transparent;
}

/* Section titles */
.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--heading-color);
  position: relative;
  margin-bottom: 2rem;
  display: inline-block;
  transition: color 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 2px;
  overflow: hidden;
}

.section-title::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 60px;
  height: 4px;
  background: linear-gradient(to right, var(--primary-color), var(--primary-light));
  border-radius: 2px;
  transition: width 0.5s ease;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  background-color: rgba(111, 58, 154, 0.2);
  border-radius: 2px;
}

.section-title:hover::before {
  width: 100%;
}

/* Glowing Text Effect */
.glow-text {
  color: var(--text-color);
  text-shadow: 0 0 5px rgba(111, 58, 154, 0.3);
  transition: all 0.5s ease;
}

.glow-text:hover {
  color: var(--primary-light);
  text-shadow: 0 0 10px rgba(111, 58, 154, 0.8);
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
  display: inline-block;
}

/* Animated Character Reveal */
.char-animation {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  transition: transform 0.5s, opacity 0.5s;
}

.visible .char-animation {
  opacity: 1;
  transform: translateY(0);
}

/* Welcome Title Enhanced */
.welcome-title {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 700;
  position: relative;
  margin-bottom: 2rem;
  display: inline-block;
  background: linear-gradient(45deg, var(--primary-color), var(--primary-light), var(--primary-color));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientMove 3s ease-in-out infinite alternate;
  text-shadow: 0 0 30px var(--primary-color), 0 0 60px var(--primary-color);
  letter-spacing: 2px;
  opacity: 1;
  transform: scale(1);
}

@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

/* Welcome title - removed animation */

.welcome-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, transparent, var(--primary-light), transparent);
  box-shadow: 0 0 10px var(--primary-light);
  filter: blur(1px);
  opacity: 1;
}

/* Hero text animation */
.hero-text {
  position: relative;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text-color);
  display: inline-block;
  overflow: hidden;
  margin-top: 0.5rem;
  margin-bottom: 2rem;
  perspective: 1000px;
}

.hero-text .text-wrapper {
  position: relative;
  display: inline-block;
  overflow: hidden;
  padding-right: 0.05em;
  min-height: 2em;
}

.hero-text .animated-phrase {
  display: block;
  position: absolute;
  width: 100%;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.hero-text .letter {
  display: inline-block;
  transform-origin: 0 100%;
  will-change: transform, opacity;
}

.hero-text .letter.space {
  width: 0.4em;
}

[data-theme="dark"] .hero-text {
  color: var(--primary-light);
  text-shadow: 0 0 8px rgba(111, 58, 154, 0.4);
}

/* Floating Label Effect */
.profile-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--heading-color);
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  position: relative;
  transition: all 0.3s ease;
  text-align: center;
}

/* Animated Bio Text */
.bio {
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease-out forwards 0.6s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Typewriter Effect */
.typewriter {
  position: relative;
  display: inline-block;
  overflow: hidden;
  border-right: 3px solid var(--primary-color);
  white-space: nowrap;
  animation: typing 4s steps(40) 1s forwards, blink 1s step-end infinite;
  max-width: 0;
}

@keyframes typing {
  to { max-width: 100%; }
}

@keyframes blink {
  from, to { border-color: transparent; }
  50% { border-color: var(--primary-color); }
}

/* Timeline Titles Enhanced */
.timeline-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--primary-color);
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
  padding-right: 20px;
}

.timeline-title::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 2px;
  background-color: var(--primary-color);
  opacity: 0;
  transition: all 0.3s ease;
}

.timeline-title:hover::after {
  opacity: 1;
  right: -20px;
  width: 20px;
}

/* Cosmic Skills Category Titles */
.skills-category h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-light);
  margin-bottom: 1.75rem;
  text-align: center;
  position: relative;
  display: inline-block;
  transition: color 0.3s;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.skills-category h3::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--primary-light), transparent);
}

/* Cosmic Skill Titles */
.skill-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-color);
  margin-bottom: 1.5rem;
  text-align: center;
  position: relative;
  letter-spacing: 1px;
}

.skill-value {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: white;
  text-shadow: 0 0 10px var(--primary-color);
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.5s ease-out;
  z-index: 2;
  letter-spacing: 1px;
}

/* Contact Form Enhanced */
.contact-subtitle {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
  letter-spacing: 1px;
}

.contact-subtitle::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.contact-subtitle:hover::after {
  width: 100%;
}

/* Form inputs enhanced */
.form-group label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  display: block;
  transition: all 0.3s ease;
  color: var(--text-color);
}

.form-group input:focus + label,
.form-group textarea:focus + label {
  color: var(--primary-color);
  transform: translateY(-5px);
}

/* Toast notification */
.toast-notification {
  font-family: var(--font-body);
  font-weight: 500;
}

/* Dark mode text adjustments */
[data-theme="dark"] .section-title,
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
  color: #ffffff;
}

[data-theme="dark"] .timeline-title {
  color: var(--primary-light);
}

/* Enhanced nav links */
.nav-links a {
  font-family: var(--font-heading);
  color: var(--primary-color);
  font-weight: bold;
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  position: relative;
  transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-dark);
}

/* Home section */
.profile-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.profile-left {
  min-width: 220px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  flex-shrink: 0;
}

.profile-image {
  position: relative;
  overflow: hidden;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border: 6px solid #f0e6ff;
}

.profile-image img {
  display: block;
  width: 200px;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s;
}

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

.profile-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.25rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
}

/* Interactive Social Media Buttons */
.Btn {
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background-color: transparent;
  position: relative;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.3s;
}

.svgContainer {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  backdrop-filter: blur(0px);
  letter-spacing: 0.8px;
  border-radius: 10px;
  transition: all 0.3s;
  border: 1px solid rgba(156, 156, 156, 0.466);
}

.BG {
  position: absolute;
  content: "";
  width: 100%;
  height: 100%;
  z-index: -1;
  border-radius: 10px;
  pointer-events: none;
  transition: all 0.3s;
}

.Btn:hover .BG {
  transform: rotate(35deg);
  transform-origin: bottom;
}

.Btn:hover .svgContainer {
  border: 1px solid rgba(216, 216, 216, 0.466);
  background-color: rgba(190, 190, 190, 0.466);
  backdrop-filter: blur(4px);
}

.scholar-icon,
.researchgate-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 4px;
}

.scholar-icon {
  background-color: #4285f4;
}

.researchgate-icon {
  background-color: #00ccbb;
}

.scholar-icon span,
.researchgate-icon span {
  color: white;
  font-size: 0.75rem;
  font-weight: bold;
}

.profile-right {
  flex: 1;
  flex-basis: 400px;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background-color: transparent;
  backdrop-filter: blur(5px);
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.profile-summary {
  font-size: 1rem;
  color: var(--text-color);
  margin-bottom: 0.75rem;
  line-height: 1.6;
  transition: color 0.3s;
}

.welcome-section {
  margin-bottom: 2rem;
}

.interests-education {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1rem;
}

.interests {
  flex: 1;
  flex-basis: 450px;
  margin-right: 2rem;
}

.education {
  flex: 1;
  flex-basis: 300px;
}

.interests h2,
.education h2 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.interests-list {
  list-style-type: disc;
  padding-left: 1.25rem;
  font-size: 0.875rem;
}

.interests-list li {
  margin-bottom: 0.25rem;
  transition: color 0.3s;
  opacity: 0;
  transform: translateX(-20px);
  animation: slideInFromLeft 0.5s ease-in-out forwards;
}

.interests-list li:nth-child(1) {
  animation-delay: 0.2s;
}

.interests-list li:nth-child(2) {
  animation-delay: 0.4s;
}

.interests-list li:nth-child(3) {
  animation-delay: 0.6s;
}

.interests-list li:hover {
  color: #6f3a9a;
}

@keyframes slideInFromLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.edu-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  opacity: 0;
  transform: translateY(20px);
  animation: slideInFromBottom 0.5s ease-in-out forwards;
  gap: 0.75rem;
}

.edu-item:nth-child(2) {
  animation-delay: 0.3s;
}

.edu-item:nth-child(3) {
  animation-delay: 0.5s;
}

.edu-item:nth-child(4) {
  animation-delay: 0.7s;
}

@keyframes slideInFromBottom {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.edu-icon {
  flex-shrink: 0;
  font-size: 1.5rem;
  margin-top: 0.125rem;
  color: #333;
  width: 1.5rem;
  display: flex;
  justify-content: center;
}

.edu-icon i {
  font-size: 1.5rem;
  color: var(--primary-color);
}

.edu-details {
  font-size: 0.875rem;
  color: #333;
  line-height: 1.5;
  flex: 1;
}

.edu-details strong {
  font-weight: 600;
}

/* Projects section */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.project-card {
  background-color: transparent;
  backdrop-filter: blur(5px);
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 4px 6px var(--card-shadow);
  transition: transform 0.3s, background-color 0.3s, box-shadow 0.3s;
}

.project-card:hover {
  transform: translateY(-0.5rem);
}

.project-image {
  height: 14rem;
  background-color: var(--skill-bar-bg);
  position: relative;
  overflow: hidden;
  transition: background-color 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0.5rem 0.5rem 0 0;
  transition: transform 0.3s ease;
  display: block;
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-image iframe {
  width: 100%;
  height: 100%;
  border-radius: 0.5rem 0.5rem 0 0;
  display: block;
}

.project-card:hover .project-image iframe {
  transform: scale(1.02);
  transition: transform 0.3s ease;
}

.project-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-light);
  color: var(--primary-color);
  font-size: 1.25rem;
  font-weight: bold;
  transition: background-color 0.3s, color 0.3s;
}

.project-content {
  padding: 1.25rem;
}

.project-content h3 {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  transition: color 0.3s;
}

.project-content p {
  color: var(--text-color);
  margin-bottom: 1rem;
  transition: color 0.3s;
}

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

.tag {
  padding: 0.25rem 0.5rem;
  background-color: #f3e8ff;
  color: #6f3a9a;
  font-size: 0.75rem;
  border-radius: 9999px;
}
/* =========================================
   Publications section
   ========================================= */
.publications-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 3rem;
}

.publication-card {
  display: flex;
  gap: 2rem;
  padding: 2rem;
  background-color: transparent;
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid var(--border-color);
}

.publication-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* Enhanced Mobile Styles for Publications */
@media (max-width: 768px) {
  .publication-card {
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem;
    margin-bottom: 1rem;
  }
  
  .publications-list {
    gap: 1.5rem;
    margin-top: 2rem;
  }
}

@media (max-width: 480px) {
  .publication-card {
    padding: 1rem;
    gap: 0.75rem;
    border-radius: 0.75rem;
  }
  
  .publications-list {
    gap: 1rem;
    margin-top: 1.5rem;
  }
}

.publication-image-container {
  flex-shrink: 0;
  width: 300px;
  max-width: 100%;
}

@media (max-width: 768px) {
  .publication-image-container {
    width: 100%;
    max-width: 250px;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .publication-image-container {
    max-width: 200px;
  }
}

.publication-image {
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

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

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

.publication-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--primary-color);
  line-height: 1.4;
  margin: 0;
}

@media (max-width: 768px) {
  .publication-title {
    font-size: 1.2rem;
    line-height: 1.3;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .publication-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
  }
}

.publication-authors {
  font-size: 0.95rem;
  color: var(--text-color);
  line-height: 1.5;
}

@media (max-width: 768px) {
  .publication-authors {
    font-size: 0.9rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .publication-authors {
    font-size: 0.85rem;
  }
}

.publication-meta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .publication-meta {
    justify-content: center;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .publication-meta {
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
  }
}

.publication-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.publication-meta i {
  color: var(--primary-color);
  font-size: 0.85rem;
}

.publication-journal {
  color: var(--primary-color);
}

.publication-year {
  color: var(--text-secondary);
}

.publication-status {
  color: #f59e0b;
}

.publication-details {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .publication-details {
    text-align: center;
    font-size: 0.85rem;
  }
}

.publication-abstract {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-color);
}

@media (max-width: 768px) {
  .publication-abstract {
    font-size: 0.9rem;
    text-align: center;
    line-height: 1.5;
  }
}

@media (max-width: 480px) {
  .publication-abstract {
    font-size: 0.85rem;
  }
}

.publication-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: auto;
}

@media (max-width: 768px) {
  .publication-actions {
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
  }
}

@media (max-width: 480px) {
  .publication-actions {
    flex-direction: column;
    gap: 0.5rem;
    align-items: stretch;
  }
}

.publication-link {
  padding: 0.5rem 1rem;
  background-color: var(--primary-light);
  color: white;
  border-radius: 0.5rem;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .publication-link {
    padding: 0.6rem 0.8rem;
    font-size: 0.85rem;
    min-width: auto;
  }
}

@media (max-width: 480px) {
  .publication-link {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    width: 100%;
    justify-content: center;
    white-space: normal;
    word-wrap: break-word;
  }
}

.publication-link:hover {
  background-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(111, 58, 154, 0.2);
}

@media (max-width: 480px) {
  .publication-link:hover {
    transform: none;
  }
}

.publication-link.cite-button {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.publication-link.cite-button:hover {
  background-color: var(--primary-color);
  color: white;
}

.publication-link.disabled {
  background-color: var(--text-secondary);
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.publication-link i {
  font-size: 0.85rem;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .publication-link i {
    margin-right: 0.25rem;
  }
}

/* Footer */
footer {
  text-align: center;
  padding: 1rem;
  background-color: var(--nav-bg);
  backdrop-filter: blur(5px);
  position: relative;
  z-index: 10;
  transition: background-color 0.3s ease;
  color: var(--primary-color);
  font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .main-nav {
    justify-content: center;
    padding: 0.75rem;
  }
  
  /* Fix text cut-off on mobile with proper container approach */
  body, html {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  
  /* Remove the forced left margin - this was causing issues */
  body::before {
    display: none;
  }
  
  /* Use proper container centering like the post pages */
  .page {
    padding: 6rem 1rem 2rem;
    max-width: 100%;
    margin: 0 auto;
  }
  
  .profile-container,
  .profile-right,
  .profile-summary,
  .bio,
  .interests,
  .education,
  .interests-columns,
  .container,
  .projects-grid,
  .publications-list,
  .timeline,
  .skills-container,
  .contact-container {
    max-width: 100%;
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
    box-sizing: border-box;
  }
  
  .interests-list li {
    margin-left: 0;
    padding-left: 30px;
  }
  
  .interests-list li::before {
    left: 10px;
  }

  .menu-toggle {
    display: flex;
  }
  
  .nav-links {
    display: none !important;
  }
  
  .search-icon {
    order: 1;
    margin: 1rem;
  }

  .profile-container {
    justify-content: center;
  }

  .profile-left {
    align-items: center;
  }

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

@media (max-width: 480px) {
  .nav-links {
    gap: 0.75rem;
    font-size: 0.75rem;
  }
  
  /* Clean mobile container approach for smaller screens */
  .page {
    padding: 6rem 0.75rem 2rem;
  }
  
  .interests-education,
  .interests,
  .education,
  .interests-columns,
  .interests-list,
  .profile-container,
  .profile-right,
  .profile-summary,
  .projects-grid,
  .publications-list,
  .timeline,
  .skills-container,
  .contact-container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    margin: 0 auto;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .education {
    padding-left: 0.75rem;
  }
  
  /* Keep text content properly spaced */
  .section-title,
  .gradient-text,
  .interests h2, 
  .education h2,
  .profile-name {
    margin-left: 0;
    padding-left: 0;
  }

  .search-icon {
    margin-left: 0.75rem;
  }

  .profile-image img {
    width: 150px;
    height: 150px;
  }

  /* Mobile adjustments for search loader */
  .search-icon .loaderMiniContainer {
    width: 100px;
  }
  .search-icon .bar {
    height: 6px;
  }
  .search-icon .bar2 {
    width: 40%;
  }
  .search-icon .svgIcon {
    width: 50%;
    left: -20px;
    margin-top: 12px;
  }
}


/* From Uiverse.io by vinodjangid07 */
.loader {
  display: flex;
  align-items: center;
  justify-content: center;
}
.loaderMiniContainer {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 130px;
  height: fit-content;
}
.barContainer {
  width: 100%;
  height: fit-content;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  background-position: left;
}
.bar {
  width: 100%;
  height: 8px;
  background: linear-gradient(
    to right,
    rgb(161, 94, 255),
    rgb(217, 190, 255),
    rgb(161, 94, 255)
  );
  background-size: 200% 100%;
  border-radius: 10px;
  animation: bar ease-in-out 3s infinite alternate-reverse;
}
@keyframes bar {
  0% {
    background-position: left;
  }
  100% {
    background-position: right;
  }
}
.bar2 {
  width: 50%;
}
.svgIcon {
  position: absolute;
  left: -25px;
  margin-top: 18px;
  z-index: 2;
  width: 70%;
  animation: search ease-in-out 3s infinite alternate-reverse;
}
@keyframes search {
  0% {
    transform: translateX(0%) rotate(70deg);
  }
  100% {
    transform: translateX(100px) rotate(10deg);
  }
}
.svgIcon circle,
.svgIcon line {
  stroke: rgb(111, 58, 154);
}
.svgIcon circle {
  fill: rgba(111, 58, 154, 0.238);
}

/* ===== Mobile Side Drawer Navigation ===== */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 55;
  display: none;
}
.drawer-overlay.show {
  display: block;
}

.side-drawer {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 80%;
  max-width: 280px;
  background-color: #ffffff;
  z-index: 60;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  padding: 1.75rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  overflow-y: auto;
}
.side-drawer.open {
  transform: translateX(0);
}

.drawer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.drawer-links a {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  text-decoration: none;
}
.drawer-links a i {
  font-size: 1.125rem;
  color: #6f3a9a;
}
.drawer-links a:hover {
  color: #6f3a9a;
}

.drawer-social {
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
  flex-wrap: wrap;
}
.drawer-social a i {
  font-size: 1.25rem;
  color: #6f3a9a;
}

.drawer-legal {
  margin-top: auto;
  display: flex;
  gap: 1rem;
  font-size: 0.875rem;
}
.drawer-legal a {
  color: #6b7280;
  text-decoration: none;
}
.drawer-legal a:hover {
  color: #4b5563;
}

/* Dark mode styles for mobile drawer */
[data-theme="dark"] .side-drawer {
  background-color: #1a1a1a;
  border-right: 1px solid #333;
}

[data-theme="dark"] .drawer-links a {
  color: #ffffff;
}

[data-theme="dark"] .drawer-links a:hover {
  color: #a855f7;
}

[data-theme="dark"] .drawer-links a i {
  color: #a855f7;
}

[data-theme="dark"] .drawer-social a i {
  color: #a855f7;
}

[data-theme="dark"] .drawer-legal a {
  color: #9ca3af;
}

[data-theme="dark"] .drawer-legal a:hover {
  color: #d1d5db;
}

/* Theme Toggle Button */
.theme-toggle {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 100;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  visibility: visible;
  opacity: 1;
}

/* Adjust position on mobile */
@media (max-width: 768px) {
  .theme-toggle {
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 110; /* Higher than other elements to avoid overlap */
  }
}

.theme-toggle:hover {
  transform: scale(1.1);
}

/* Adjust hover effect on mobile to include the translateX */
@media (max-width: 768px) {
  .theme-toggle:hover {
    transform: translateX(-50%) scale(1.1);
  }
}

.theme-toggle .icon {
  color: white;
  font-size: 1.2rem;
  transition: transform 0.5s ease;
}

.theme-toggle .sun-icon,
.theme-toggle .moon-icon {
  position: absolute;
  transition: opacity 0.3s ease, transform 0.5s ease;
  color: white;
}

/* Default state (light mode) */
.sun-icon {
  opacity: 0;
  transform: rotate(90deg);
  color: white;
}

.moon-icon {
  opacity: 1;
  transform: rotate(0);
  color: white;
}

/* Dark mode state */
[data-theme="dark"] .sun-icon {
  opacity: 1;
  transform: rotate(0);
  color: white;
}

[data-theme="dark"] .moon-icon {
  opacity: 0;
  transform: rotate(-90deg);
  color: white;
}

/* Dark mode additional fixes */
[data-theme="dark"] .edu-details,
[data-theme="dark"] .edu-details strong,
[data-theme="dark"] .edu-details span {
  color: white;
}

[data-theme="dark"] .edu-icon i {
  color: var(--primary-light);
}

[data-theme="dark"] .interests-list li {
  color: white;
}

/* Make particles lighter in dark mode */
[data-theme="dark"] .background-canvas {
  opacity: 0.7;
}

/* Additional dark mode text color fixes */
[data-theme="dark"] .welcome-title,
[data-theme="dark"] .profile-summary p,
[data-theme="dark"] .bio,
[data-theme="dark"] .profile-name,
[data-theme="dark"] h2,
[data-theme="dark"] .interests h2,
[data-theme="dark"] .education h2 {
  color: #ffffff;
}

[data-theme="dark"] .section-title {
  color: #ffffff;
}

[data-theme="dark"] .timeline-title,
[data-theme="dark"] .timeline-company,
[data-theme="dark"] .timeline-date,
[data-theme="dark"] .timeline-details li,
[data-theme="dark"] .timeline-subtitle {
  color: #ffffff;
}

[data-theme="dark"] .skill-name,
[data-theme="dark"] .skill-percentage,
[data-theme="dark"] .skills-category h3 {
  color: #ffffff;
}

[data-theme="dark"] .contact-subtitle,
[data-theme="dark"] .form-group label {
  color: #ffffff;
}

/* Dark mode specific welcome title styling */
[data-theme="dark"] .welcome-title {
  background: linear-gradient(45deg, #ffffff, var(--primary-light), #ffffff);
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px var(--primary-color), 0 0 60px var(--primary-light);
}

/* Dark mode hero text */
[data-theme="dark"] .hero-text {
  color: var(--primary-light);
  text-shadow: 0 0 8px rgba(111, 58, 154, 0.4);
}

@keyframes pulseDot {
  0% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  100% {
    transform: scale(1.2);
    opacity: 0.9;
  }
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Pulse effect for skill click */
.skill-cosmic.pulse-effect {
  animation: skill-pulse 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes skill-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(111, 58, 154, 0.7);
    transform: translateY(-10px) scale(1);
  }
  50% {
    box-shadow: 0 0 0 15px rgba(111, 58, 154, 0);
    transform: translateY(-10px) scale(1.05);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(111, 58, 154, 0);
    transform: translateY(-10px) scale(1);
  }
}

/* Animation for skills entering viewport */
.skill-cosmic {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
              transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.skill-cosmic.animated-in {
  opacity: 1;
  transform: translateY(0);
}

/* Form particle animation */
@keyframes formParticleFloat {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0.8;
  }
  100% {
    transform: translateY(-100px) scale(0);
    opacity: 0;
  }
}

/* Form input animation */
.form-group input.reset-animation,
.form-group textarea.reset-animation {
  animation: formInputReset 0.5s ease;
}

@keyframes formInputReset {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.97);
  }
  100% {
    transform: scale(1);
  }
}

/* Form group focus animation */
.form-group.focused label {
  color: var(--primary-light);
  text-shadow: 0 0 5px rgba(111, 58, 154, 0.3);
}

/* New modern social icons */
.social-login-icons {
  display: flex;
  align-items: center;
  gap: 10px;
  -webkit-box-reflect: below 1px linear-gradient(transparent, #00000030);
  margin-top: 0.5rem;
}

.social-login-icons svg {
  width: 28px; 
  height: 28px;
}

.social-icon-1,
.social-icon-1-1,
.social-icon-2,
.social-icon-2-2,
.social-icon-3,
.social-icon-3-3,
.social-icon-4,
.social-icon-4-4,
.social-icon-5,
.social-icon-5-5 {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50px;
  margin: 10px 0 0px 0;
}

.icon svg {
  fill: var(--text-color);
}

[data-theme="dark"] .icon svg {
  fill: #fff;
}

.socialcontainer {
  height: 60px;
  overflow: hidden;
}

.social-icon-1 {
  transition-duration: 0.4s;
  background-color: #EA4335;
  transition-timing-function: cubic-bezier(0.46, -0.78, 0.5, 1.56);
}

.social-icon-2 {
  transition-duration: 0.4s;
  transition-timing-function: cubic-bezier(0.46, -0.78, 0.5, 1.56);
  background: #0077b5;
}

.social-icon-3 {
  transition-duration: 0.4s;
  transition-timing-function: cubic-bezier(0.46, -0.78, 0.5, 1.56);
  background: #333;
}

.social-icon-4 {
  transition-duration: 0.4s;
  transition-timing-function: cubic-bezier(0.46, -0.78, 0.5, 1.56);
  background: #4285F4;
}

.social-icon-5 {
  transition-duration: 0.4s;
  transition-timing-function: cubic-bezier(0.46, -0.78, 0.5, 1.56);
  background: #00CCBB;
}

.social-icon-1 svg,
.social-icon-2 svg,
.social-icon-3 svg,
.social-icon-4 svg,
.social-icon-5 svg {
  opacity: 0;
  transition-duration: 0.5s;
  transition-delay: 0.2s;
  fill: white;
}

.social-icon-1-1,
.social-icon-2-2,
.social-icon-3-3,
.social-icon-4-4,
.social-icon-5-5 {
  transition-duration: 0.4s;
  background-color: rgba(0, 0, 0, 0);
  border: 1px solid var(--primary-color);
}

[data-theme="dark"] .social-icon-1-1,
[data-theme="dark"] .social-icon-2-2,
[data-theme="dark"] .social-icon-3-3,
[data-theme="dark"] .social-icon-4-4,
[data-theme="dark"] .social-icon-5-5 {
  border: 1px solid var(--primary-light);
}

.socialcontainer:hover .social-icon-1,
.socialcontainer:hover .social-icon-2,
.socialcontainer:hover .social-icon-3,
.socialcontainer:hover .social-icon-4,
.socialcontainer:hover .social-icon-5 {
  transform: translateY(-50px);
}

.socialcontainer:hover .social-icon-1 svg,
.socialcontainer:hover .social-icon-2 svg,
.socialcontainer:hover .social-icon-3 svg,
.socialcontainer:hover .social-icon-4 svg,
.socialcontainer:hover .social-icon-5 svg {
  opacity: 1;
}

/* Replace old profile links with new ones */
.profile-links {
  margin-top: 0.5rem;
}

/* Typewriter effect styling */
.typewriter-container {
  position: relative;
  padding: 2rem;
  background-color: transparent;
  border-radius: 10px;
  border-left: 4px solid var(--primary-color);
  max-width: 800px;
  margin: 0 auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  font-family: "Courier New", monospace;
  backdrop-filter: blur(5px);
}

.typewriter-title {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 1.2rem;
}

.typewriter-subtitle {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.8;
}

.no-posts {
  font-size: 1.1rem;
  color: var(--text-color);
  line-height: 1.6;
  font-style: italic;
}

.blinking-cursor {
  display: inline-block;
  width: 10px;
  height: 20px;
  background-color: var(--primary-color);
  margin-left: 5px;
  animation: blink-cursor 1s step-end infinite;
  vertical-align: bottom;
}

@keyframes blink-cursor {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

/* Dark mode adjustments for typewriter */
[data-theme="dark"] .typewriter-container {
  background-color: rgba(0, 0, 0, 0.3);
  border-left: 4px solid var(--primary-light);
}

[data-theme="dark"] .typewriter-title {
  color: var(--primary-light);
}

/* Screen reader only class */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.footer-seo {
  font-size: 0.8rem;
  margin-top: 0.5rem;
  opacity: 0.7;
  max-width: 80%;
  margin: 0.5rem auto 0;
}

.footer-seo p {
  margin: 0.25rem 0;
}

.footer-seo a {
  color: var(--primary-color);
  text-decoration: none;
}

.footer-seo a:hover {
  text-decoration: underline;
}

[data-theme="dark"] .footer-seo a {
  color: var(--primary-light);
}

/* Interests section styling */
.interests-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, auto));
  gap: 1rem;
  margin: 1rem 0;
  max-width: 900px;
}

.interests-list {
  list-style: none;
  padding: 0;
  margin: 0;
  white-space: nowrap;
}

.interests-list li {
  margin-bottom: 0.75rem;
  padding: 0.5rem 0;
  transition: all 0.3s ease;
  position: relative;
  padding-left: 2rem;
  font-size: 0.9rem;
  line-height: 1.2;
}

.interests-list li::before {
  content: "•";
  position: absolute;
  left: 0.5rem;
  color: var(--primary-color);
  font-size: 1.5rem;
  line-height: 1;
  top: 0;
}

.interests-list li:hover {
  transform: translateX(5px);
  color: var(--primary-color);
}

[data-theme="dark"] .interests-list li::before {
  color: var(--primary-light);
}

[data-theme="dark"] .interests-list li:hover {
  color: var(--primary-light);
}



/* Make interests section responsive */
@media (max-width: 768px) {
  .interests-columns {
    grid-template-columns: 1fr;
    gap: 1rem;
    width: 100%;
    padding: 0;
    margin: 0 auto;
    max-width: 100%;
  }
  
  .interests-list li:hover {
    transform: translateX(0);
  }
  
  .interests {
    width: 100%;
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  /* Clean text alignment for mobile */
  .welcome-title, .section-title, .gradient-text, 
  h1, h2, h3, h4, h5, h6,
  .interests h2, .education h2,
  .timeline-title, .timeline-company, .timeline-date,
  .edu-item, .edu-details,
  .profile-name {
    padding-left: 0;
    margin-left: 0;
  }
  
  /* Education section mobile adjustments */
  .education {
    padding-left: 1rem;
    padding-right: 1rem;
    margin: 0 auto;
  }
  
  .edu-icon {
    width: 1.25rem;
  }
}

/* Publication Details Styling */
.publication-abstract {
  position: relative;
}

.read-more-toggle {
  color: var(--primary-color);
  cursor: pointer;
  font-weight: 600;
  margin-left: 5px;
  text-decoration: underline;
  display: inline-block;
}

.read-more-toggle:hover {
  color: var(--primary-dark);
}

.publication-details {
  display: none;
  margin-top: 1.5rem;
  border-top: 1px solid rgba(111, 58, 154, 0.2);
  padding-top: 1.5rem;
}

.publication-details.active {
  display: block;
  animation: fadeIn 0.5s ease-in-out;
}

.publication-image {
  margin-bottom: 1.5rem;
  text-align: center;
}

.publication-methodology {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.publication-sections {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.publication-section h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.75rem;
}

.publication-section p {
  font-size: 0.9rem;
  line-height: 1.6;
  text-align: justify;
}

@media (max-width: 768px) {
  .publication-methodology {
    width: 100%;
  }
  
  .publication-section p {
    text-align: left;
  }
}

[data-theme="dark"] .publication-details {
  border-top: 1px solid rgba(111, 58, 154, 0.4);
}

[data-theme="dark"] .publication-section h4 {
  color: var(--primary-light);
}

/* Publication Year Image */
.publication-year img {
  width: 100%;
  height: auto;
  max-width: 120px;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.publication-year-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
}

.publication-card:hover .publication-year img {
  transform: scale(1.05);
}

/* Citation Modal Styles */
.citation-modal {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 50;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  overflow-y: auto;
}

.citation-modal.show {
  display: flex;
  animation: fadeIn 0.3s ease-out;
}

.citation-modal-content {
  background-color: transparent;
  color: var(--text-color);
  padding: 2rem;
  border-radius: 0.5rem;
  width: 90%;
  max-width: 700px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  animation: slideDown 0.3s ease-out;
  position: relative;
}

.citation-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
}

.citation-modal-header h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--heading-color);
  margin: 0;
}

.citation-modal-close-button {
  font-size: 1.875rem;
  background-color: var(--border-color);
  color: var(--text-color);
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}

.citation-modal-close-button:hover {
  background-color: var(--primary-color);
  color: white;
}

/* Dark mode styles for search modal close button */
[data-theme="dark"] .search-modal-close-button {
  background-color: #444444;
  color: #ffffff;
}

[data-theme="dark"] .search-modal-close-button:hover {
  background-color: var(--primary-light);
  color: #000000;
}

.citation-content {
  margin-bottom: 2rem;
  max-height: 50vh;
  overflow-y: auto;
  padding: 1rem;
  background-color: transparent;
  border-radius: 0.5rem;
  border: 1px solid var(--border-color);
}

.citation-text {
  font-family: monospace;
  font-size: 0.9rem;
  white-space: pre-wrap;
  line-height: 1.5;
  margin: 0;
  padding: 0;
  color: var(--text-color);
}

.citation-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

.citation-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.citation-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  background-color: var(--primary-dark);
}

/* Dark mode adjustments */
[data-theme="dark"] .citation-content {
  background-color: transparent;
}

[data-theme="dark"] .citation-modal-close-button {
  background-color: #333;
  color: #fff;
}

[data-theme="dark"] .citation-modal-close-button:hover {
  background-color: #444;
}

[data-theme="dark"] .citation-text {
  color: #e5e5e5;
}

/* Mobile adjustments */
@media (max-width: 600px) {
  .citation-modal-content {
    padding: 1.5rem;
    width: 95%;
  }
  
  .citation-actions {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .citation-button {
    width: 100%;
    justify-content: center;
  }
}

[data-theme="dark"] .publication-card {
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .publication-title {
  color: var(--primary-light);
}

[data-theme="dark"] .publication-meta i,
[data-theme="dark"] .publication-journal {
  color: var(--primary-light);
}

[data-theme="dark"] .publication-link {
  background-color: var(--primary-dark);
}

[data-theme="dark"] .publication-link:hover {
  background-color: var(--primary-light);
}

[data-theme="dark"] .publication-link.cite-button {
  color: var(--primary-light);
  border-color: var(--primary-light);
}

[data-theme="dark"] .publication-link.cite-button:hover {
  background-color: var(--primary-light);
  color: var(--bg-color);
}

.publication-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  background-color: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
  border-radius: 1rem;
  font-size: 0.85rem;
  font-weight: 500;
}

/* Posts section */
.posts-container {
  background-color: transparent;
  backdrop-filter: blur(5px);
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-top: 3rem;
}

.no-posts {
  height: 10rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  font-size: 1.125rem;
}

/* Experience section */
.timeline {
  position: relative;
  border-left: 2px solid var(--primary-light);
  padding-left: 2rem;
  margin-top: 3rem;
  transition: border-color 0.3s;
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
}

.timeline-marker {
  position: absolute;
  width: 1rem;
  height: 1rem;
  background-color: var(--primary-color);
  border-radius: 50%;
  left: -2.625rem;
  top: 0.25rem;
  border: 4px solid var(--background-color);
  transition: background-color 0.3s, border-color 0.3s;
}

.timeline-date {
  font-size: 0.875rem;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
  transition: color 0.3s;
}

.timeline-title {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
  transition: color 0.3s;
}

.timeline-company {
  font-weight: bold;
  color: var(--heading-color);
  margin-bottom: 0.5rem;
  transition: color 0.3s;
}

.timeline-subtitle {
  font-weight: bold;
  color: var(--heading-color);
  margin-top: 0.5rem;
  margin-bottom: 0.25rem;
  transition: color 0.3s;
}

.timeline-details {
  list-style-type: disc;
  padding-left: 1.25rem;
  color: var(--text-color);
  transition: color 0.3s;
}

.timeline-details li {
  margin-bottom: 0.25rem;
}

/* Skills section */
.skills-section {
  margin-top: 4rem;
}

.skills-container {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.skills-category h3 {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--primary-light);
  margin-bottom: 1.5rem;
  text-align: center;
  position: relative;
  display: inline-block;
  transition: color 0.3s;
}

.skills-category h3::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--primary-light), transparent);
}

/* Cosmic Skills Grid */
.cosmic-skills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  position: relative;
  perspective: 1000px;
}

.skill-cosmic {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  border-radius: 10px;
  background: transparent;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(111, 58, 154, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2), 
              inset 0 0 15px rgba(111, 58, 154, 0.1);
  transition: all 0.5s cubic-bezier(0.215, 0.610, 0.355, 1);
  transform-style: preserve-3d;
  overflow: visible;
}

/* Light mode version of skill-cosmic */
:root:not([data-theme="dark"]) .skill-cosmic {
  background: transparent;
  border: 1px solid rgba(111, 58, 154, 0.3);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1), 
              inset 0 0 20px rgba(111, 58, 154, 0.1);
}

.skill-cosmic:hover {
  transform: translateY(-10px) rotateX(5deg);
  border-color: rgba(111, 58, 154, 0.5);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4),
              inset 0 0 25px rgba(111, 58, 154, 0.3),
              0 0 20px rgba(111, 58, 154, 0.4);
}

.skill-title {
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--text-color);
  margin-bottom: 1.5rem;
  text-align: center;
  position: relative;
  text-shadow: 0 0 5px rgba(111, 58, 154, 0.3);
  transition: text-shadow 0.3s ease, color 0.3s ease;
}

/* Light mode skill title - darker for better contrast */
:root:not([data-theme="dark"]) .skill-title {
  color: var(--primary-dark);
  text-shadow: 0 0 3px rgba(111, 58, 154, 0.15);
}

.skill-cosmic:hover .skill-title {
  text-shadow: 0 0 10px var(--primary-light);
}

/* Skill Circle */
.skill-circle-wrapper {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transform-style: preserve-3d;
  perspective: 800px;
}

.skill-circle {
  width: 100%;
  height: 100%;
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(30, 30, 40, 0.7), transparent);
  transition: transform 0.5s ease;
}

.skill-cosmic:hover .skill-circle {
  transform: rotate(10deg);
}

.skill-circle-bg {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background-color: transparent;
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.4);
  z-index: 1;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  overflow: hidden;
}

/* Light mode skill circle background */
:root:not([data-theme="dark"]) .skill-circle-bg {
  background-color: transparent;
  box-shadow: inset 0 0 15px rgba(111, 58, 154, 0.2);
}

.skill-cosmic:hover .skill-circle-bg {
  box-shadow: inset 0 0 30px rgba(111, 58, 154, 0.4);
  transform: scale(1.05);
}

.skill-circle-bg::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(transparent, rgba(111, 58, 154, 0.1), transparent);
  animation: rotate 10s linear infinite;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.skill-cosmic:hover .skill-circle-bg::before {
  opacity: 1;
}

.skill-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  text-shadow: 0 0 10px var(--primary-color);
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.5s ease-out;
  z-index: 2;
}

.skill-cosmic:hover .skill-value {
  opacity: 1;
  transform: scale(1);
  animation: pulse-text 2s ease-in-out infinite alternate;
}

@keyframes pulse-text {
  0% {
    text-shadow: 0 0 10px var(--primary-color);
  }
  100% {
    text-shadow: 0 0 20px var(--primary-light), 0 0 30px var(--primary-light);
  }
}

/* SVG Ring Animation */
.skill-ring {
  position: absolute;
  width: 120px;
  height: 120px;
  z-index: 3;
  transition: transform 0.5s ease;
}

.skill-cosmic:hover .skill-ring {
  transform: rotate(5deg);
}

.ring-circle {
  fill: none;
  stroke-width: 6;
  stroke-linecap: round;
  transform-origin: center;
  transform: rotate(-90deg);
}

.ring-bg {
  stroke: rgba(111, 58, 154, 0.2);
}

.ring-progress {
  stroke: var(--primary-light);
  stroke-dasharray: 502; /* 2 * PI * r (r=80) */
  stroke-dashoffset: 502;
  transition: stroke-dashoffset 1.5s cubic-bezier(0.215, 0.610, 0.355, 1);
  filter: drop-shadow(0 0 6px var(--primary-light));
  animation: glowing-stroke 4s linear infinite alternate;
}

/* Light mode ring progress - darker purple */
:root:not([data-theme="dark"]) .ring-progress {
  stroke: var(--primary-dark);
  filter: drop-shadow(0 0 6px var(--primary-dark));
}

@keyframes glowing-stroke {
  0% {
    filter: drop-shadow(0 0 6px var(--primary-light));
  }
  100% {
    filter: drop-shadow(0 0 12px var(--primary-light));
  }
}

/* Particles */
.skill-particle {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--primary-light);
  opacity: 0;
  z-index: 3;
  filter: blur(1px);
  box-shadow: 0 0 8px 2px var(--primary-light);
}

.skill-cosmic:hover .skill-particle {
  animation: floatParticle 3s infinite ease-in-out;
}

@keyframes floatParticle {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.8);
  }
  20% {
    opacity: 0.8;
    transform: scale(1);
  }
  80% {
    opacity: 0.8;
    transform: scale(1.1);
  }
  100% {
    opacity: 0;
    transform: translate(var(--x, 20px), var(--y, -20px)) scale(0.8);
  }
}

/* Glowing Dots */
.skill-dots {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  z-index: 2;
  transform-style: preserve-3d;
  transition: transform 0.5s ease;
}

.skill-cosmic:hover .skill-dots {
  animation: slow-spin 15s linear infinite;
}

@keyframes slow-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.skill-dot {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: var(--primary-light);
  opacity: 0.7;
  box-shadow: 0 0 5px var(--primary-light);
  animation: pulseDot 2s infinite alternate ease-in-out;
}

/* Orbiting Element */
.skill-orbit {
  position: absolute;
  width: 130px;
  height: 130px;
  border: 1px dashed rgba(111, 58, 154, 0.3);
  border-radius: 50%;
  animation: rotate 15s linear infinite;
  pointer-events: none;
  transition: opacity 0.5s ease, border-color 0.5s ease;
  opacity: 0.4;
}

.skill-cosmic:hover .skill-orbit {
  opacity: 1;
  border-color: rgba(111, 58, 154, 0.6);
  box-shadow: 0 0 15px rgba(111, 58, 154, 0.1);
}

.orbit-dot {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  background-color: var(--primary-light);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--primary-light);
  animation: pulse-orbit 3s infinite alternate ease-in-out;
}

@keyframes pulse-orbit {
  0% {
    transform: translate(-50%, -50%) scale(0.8);
    box-shadow: 0 0 5px var(--primary-light);
  }
  100% {
    transform: translate(-50%, -50%) scale(1.2);
    box-shadow: 0 0 15px var(--primary-light);
  }
}

/* Light Trails */
.light-trail {
  position: absolute;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--primary-light), transparent);
  opacity: 0;
  transform-origin: left center;
  filter: blur(1px);
}

.skill-cosmic:hover .light-trail {
  animation: trailEffect 2s infinite alternate ease-in-out;
}

@keyframes trailEffect {
  0% {
    opacity: 0;
    width: 0;
    transform: rotate(var(--rotate, 0deg));
  }
  50% {
    opacity: 0.7;
    transform: rotate(var(--rotate, 0deg));
  }
  100% {
    opacity: 0;
    width: var(--width, 40px);
    transform: rotate(var(--rotate, 0deg));
  }
}

/* Responsive adjustments for skills */
@media (max-width: 768px) {
  .cosmic-skills {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
  
  .skill-circle-wrapper {
    width: 140px;
    height: 140px;
  }
  
  .skill-circle-bg {
    width: 120px;
    height: 120px;
  }
  
  .skill-ring {
    width: 140px;
    height: 140px;
  }
}

@media (max-width: 480px) {
  .cosmic-skills {
    grid-template-columns: 1fr;
  }
}

/* Contact section */
.contact-container {
  margin-top: 3rem;
}

.contact-subtitle {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--primary-color);
  margin-bottom: 1rem;
  transition: color 0.3s;
}

.contact-form {
  background-color: transparent;
  backdrop-filter: blur(5px);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 20px var(--card-shadow);
  transition: all 0.3s ease;
  border: 1px solid rgba(111, 58, 154, 0.1);
  position: relative;
  overflow: hidden;
}

.contact-form::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(111, 58, 154, 0.05), transparent 50%);
  opacity: 0;
  transition: opacity 1s ease;
  pointer-events: none;
}

.contact-form:hover::before {
  opacity: 1;
  animation: pulse-bg 10s infinite alternate;
}

@keyframes pulse-bg {
  0% {
    transform: translate(-10%, -10%) scale(1);
  }
  100% {
    transform: translate(0%, 0%) scale(1.1);
  }
}

.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-group label {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--primary-color);
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  opacity: 0.8;
  transition: all 0.3s ease;
  pointer-events: none;
  padding: 0 0.5rem;
  background-color: transparent;
  z-index: 10;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid rgba(111, 58, 154, 0.3);
  border-radius: 0.5rem;
  background-color: transparent;
  color: var(--text-color);
  outline: none;
  transition: all 0.3s ease;
  font-family: var(--font-body);
  font-size: 1rem;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Form focus effects */
.form-group input:focus,
.form-group textarea:focus,
.form-group input:not(:placeholder-shown),
.form-group textarea:not(:placeholder-shown) {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(111, 58, 154, 0.2);
  background-color: transparent;
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:not(:placeholder-shown) + label {
  transform: translateY(-2.2rem);
  font-size: 0.85rem;
  color: var(--primary-light);
  opacity: 1;
  background-color: transparent;
}

/* Contact form placeholder text */
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: transparent;
}

/* Submit button styling */
.submit-button {
  background: linear-gradient(45deg, var(--primary-color), var(--primary-light));
  color: white;
  padding: 0.85rem 2rem;
  border: none;
  border-radius: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(111, 58, 154, 0.3);
}

.submit-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(111, 58, 154, 0.4);
}

.submit-button:active {
  transform: translateY(1px);
}

.submit-button::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(255,255,255,0.2), transparent);
  top: 0;
  left: -100%;
  transition: all 0.3s ease;
}

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

/* Form submit animation */
.contact-form.submitting {
  transform: scale(0.98);
  opacity: 0.9;
}

.contact-form.submitting input,
.contact-form.submitting textarea {
  filter: blur(1px);
}

/* Form response message */
.form-response {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-align: center;
  transform: translateY(10px);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.form-response.success {
  background-color: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.form-response.error {
  background-color: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Dark mode form adjustments */
[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea {
  background-color: transparent;
  border-color: rgba(111, 58, 154, 0.5);
}

[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group textarea:focus,
[data-theme="dark"] .form-group input:not(:placeholder-shown),
[data-theme="dark"] .form-group textarea:not(:placeholder-shown) {
  background-color: transparent;
  border-color: var(--primary-light);
}

/* Search Modal */
.search-modal {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 50;
  justify-content: center;
  align-items: flex-start;
  padding-top: 10vh;
}

.search-modal.show {
  display: flex;
  animation: fadeIn 0.3s ease-out;
}

.search-modal-content {
  background-color: var(--card-bg);
  color: var(--text-color);
  padding: 2rem;
  border-radius: 0.5rem;
  width: 90%;
  max-width: 700px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  animation: slideDown 0.3s ease-out;
  transition: background-color 0.3s, color 0.3s;
}

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

.search-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.search-modal-header h2 {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--heading-color);
  transition: color 0.3s;
}

.search-modal-close-button {
  font-size: 1.875rem;
  background-color: var(--border-color);
  color: var(--text-color);
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}

.search-modal-close-button:hover {
  background-color: var(--primary-color);
  color: white;
}

.search-input-container {
  border: 2px solid var(--primary-color);
  border-radius: 9999px;
  padding-left: 1rem;
  margin-bottom: 1.25rem;
  background-color: transparent;
  transition: background-color 0.3s, border-color 0.3s;
}

.search-input-container input {
  width: 100%;
  padding: 1rem 0.5rem;
  font-size: 1.125rem;
  border: none;
  outline: none;
  background-color: transparent;
  color: var(--text-color);
  transition: color 0.3s;
}

.search-results {
  max-height: 50vh;
  overflow-y: auto;
}

.result-item {
  padding: 0.75rem 0.25rem;
  border-bottom: 1px solid #e5e7eb;
}

.result-item:last-child {
  border-bottom: none;
}

.result-item h4 {
  font-weight: 500;
}

.result-item h4 a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s;
}

.result-item h4 a:hover {
  color: var(--primary-dark);
}

.result-item p {
  color: var(--text-color);
  opacity: 0.7;
  margin-top: 0.25rem;
  transition: color 0.3s;
}

.result-item mark {
  background-color: var(--primary-light);
  color: var(--text-color);
  opacity: 0.8;
  padding: 0 0.25rem;
  border-radius: 0.25rem;
  transition: background-color 0.3s, color 0.3s;
}

/* Project description toggle styling */
.project-description {
  margin-bottom: 1rem;
}

.description-short,
.description-full {
  color: var(--text-color);
  line-height: 1.6;
  margin: 0;
  transition: all 0.3s ease;
}

.read-more-btn {
  background: none;
  border: none;
  color: var(--primary-color);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.25rem 0;
  margin-top: 0.5rem;
  text-decoration: underline;
  transition: color 0.3s ease;
  font-family: var(--font-body);
}

.read-more-btn:hover {
  color: var(--primary-dark);
}

.read-more-btn:focus {
  outline: none;
  color: var(--primary-dark);
}

[data-theme="dark"] .read-more-btn {
  color: var(--primary-light);
}

[data-theme="dark"] .read-more-btn:hover {
  color: var(--primary-color);
}

/* Special styling for first publication with title beside image */
.publication-card.first-publication {
  flex-direction: column;
}

.publication-card.first-publication .publication-header {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.publication-card.first-publication .publication-image-container {
  flex-shrink: 0;
  width: 400px;
  max-width: 50%;
}

.publication-card.first-publication .publication-title-container {
  flex: 1;
  display: flex;
  align-items: center;
  min-height: 200px;
}

.publication-card.first-publication .publication-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1.3;
  margin: 0 0 0.5rem 0;
}

.publication-card.first-publication .publication-authors {
  font-size: 0.95rem;
  color: var(--text-color);
  line-height: 1.5;
  margin: 0;
}

.publication-card.first-publication .publication-content {
  padding-top: 0;
}

.publication-card.first-publication .publication-meta {
  margin-bottom: 0.375rem;
}

.publication-card.first-publication .publication-details {
  margin-bottom: 0.75rem;
}

.publication-card.first-publication .publication-abstract {
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .publication-card.first-publication .publication-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 0.5rem;
  }
  
  .publication-card.first-publication .publication-image-container {
    width: 100%;
    max-width: 350px;
    margin-bottom: 1rem;
  }
  
  .publication-card.first-publication .publication-title-container {
    min-height: auto;
  }
  
  .publication-card.first-publication .publication-title {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
  }
  
  .publication-card.first-publication .publication-authors {
    font-size: 0.9rem;
  }
}