/* ===== NAVIGATION COMPONENT ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--container-color);
  box-shadow: var(--shadow-light);
  z-index: var(--z-fixed);
  transition: var(--transition-medium);
}

.header.scroll-header {
  box-shadow: var(--shadow-medium);
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

.nav {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo {
  color: var(--title-color);
  font-weight: var(--font-semi-bold);
  font-family: "Roboto", sans-serif;
  font-size: var(--h3-font-size);
  transition: var(--transition-fast);
  /* Optional: Variation settings if needed, but defaults are usually fine */
  /* font-variation-settings: "wdth" 100; */
}

.nav__logo:hover {
  color: var(--primary-color);
}

.nav__menu {
  position: relative;
}

.nav__list {
  display: flex;
  column-gap: var(--spacing-xl);
}

.nav__link {
  color: var(--text-color);
  font-weight: var(--font-medium);
  transition: var(--transition-fast);
  position: relative;
  padding: var(--spacing-sm) 0;
}

.nav__link:hover,
.nav__link.active-link {
  color: var(--primary-color);
}

.nav__link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: var(--primary-color);
  transition: var(--transition-medium);
  transform: translateX(-50%);
}

.nav__link:hover::after,
.nav__link.active-link::after {
  width: 100%;
}

.nav__toggle,
.nav__close {
  display: none;
  font-size: 1.25rem;
  color: var(--title-color);
  cursor: pointer;
  transition: var(--transition-fast);
}

.nav__toggle:hover,
.nav__close:hover {
  color: var(--primary-color);
}

.nav__toggle-icon,
.nav__close-icon {
  width: 24px;
  height: 24px;
  stroke-width: 2;
}

/* Mobile Navigation */
@media screen and (max-width: 767px) {
  .nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: var(--container-color);
    box-shadow: var(--shadow-large);
    padding: var(--spacing-2xl) var(--spacing-lg);
    transition: var(--transition-medium);
  }
  
  .nav__menu.show-menu {
    right: 0;
  }
  
  .nav__list {
    flex-direction: column;
    row-gap: var(--spacing-lg);
  }
  
  .nav__link {
    font-size: var(--h3-font-size);
    padding: var(--spacing-md) 0;
  }
  
  .nav__close {
    display: block;
    position: absolute;
    top: var(--spacing-lg);
    right: var(--spacing-lg);
  }
  
  .nav__toggle {
    display: block;
  }
}

/* ===== HERO SECTION ===== */
.hero {
  padding-top: calc(var(--header-height) + 2rem);
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--bg-color) 0%, var(--bg-color-alt) 100%);
}

.hero__container {
  grid-template-columns: 1fr;
  gap: var(--spacing-2xl);
  align-items: center;
}

.hero__content {
  text-align: center;
}

/* Research Interests Carousel */
.research__interests {
  overflow: hidden;
  padding: var(--spacing-md) 0;
  width: 100%;
}

.research__interests-title {
  text-align: center;
  margin-bottom: var(--spacing-lg);
  color: var(--title-color);
  font-size: var(--h3-font-size);
}

.research__interests-track {
  display: flex;
  gap: var(--spacing-md);
  width: fit-content;
  animation: scroll 30s linear infinite;
}

.research__interest-tag {
  display: inline-block;
  padding: var(--spacing-xs) var(--spacing-md);
  background-color: var(--container-color);
  color: var(--text-color);
  border-radius: 50px;
  font-size: var(--small-font-size);
  white-space: nowrap;
  box-shadow: var(--shadow-light);
  border: 1px solid var(--border-color);
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Pause animation on hover */
.research__interests-track:hover {
  animation-play-state: paused;
}

.hero__social {
  display: flex;
  justify-content: center;
  column-gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.hero__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background-color: var(--container-color);
  color: var(--text-color);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-light);
  transition: var(--transition-medium);
}

.hero__social-link:hover {
  background-color: var(--primary-color);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
}

.hero__social-icon {
  width: 1.5rem;
  height: 1.5rem;
}

.hero__title {
  font-size: var(--biggest-font-size);
  margin-bottom: var(--spacing-sm);
  line-height: 1.1;
  font-weight: 300;
}

.hero__name {
  color: var(--primary-color);
  position: relative;
}

.hero__subtitle {
  font-size: var(--h2-font-size);
  color: var(--text-color-light);
  margin-bottom: var(--spacing-lg);
  min-height: 3rem;
  font-weight: 300;
}

.hero__typing {
  position: relative;
}

.hero__typing::after {
  content: '|';
  color: var(--primary-color);
  animation: blink 1s infinite;
}

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

.hero__data{
  font-weight: 300;
}

.hero__description {
  font-size: var(--normal-font-size);
  margin-bottom: var(--spacing-xl);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.hero__buttons {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

.hero__image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__blob {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: float 3s ease-in-out infinite;
}

.hero__blob::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  opacity: 0.3;
  animation: pulse 2s ease-in-out infinite;
  z-index: 0;
}

.hero__img {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  object-fit: cover;
  position: relative;
  z-index: 2;
}

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

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

/* ===== ABOUT SECTION ===== */
.about {
  background-color: var(--bg-color-alt);
}

.about__container {
  grid-template-columns: 1fr;
  gap: var(--spacing-2xl);
}

.about__content {
  text-align: center;
}

.about__title {
  font-size: var(--h2-font-size);
  margin-bottom: var(--spacing-md);
  color: var(--title-color);
}

.about__description {
  margin-bottom: var(--spacing-xl);
  line-height: 1.7;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  font-size: 0.95rem;
  font-style: normal;
}

.about__startup {
  background-color: var(--container-color);
  padding: var(--spacing-xl);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-light);
  margin-bottom: var(--spacing-2xl);
}

.about__startup-title {
  color: var(--primary-color);
  margin-bottom: var(--spacing-md);
  font-size: var(--h3-font-size);
}

.about__startup-description {
  line-height: 1.7;
}

.about__skills {
  text-align: left;
}

.about__skills-title {
  text-align: center;
  margin-bottom: var(--spacing-xl);
  font-size: 1.5rem;
  border-color: red;
}

.skills__content {
  display: grid;
  gap: var(--spacing-xl);
}

/* ===== SKILLS SECTION - ICON STYLE ===== */
.about__skills {
  text-align: left;
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.about__skills-header {
  flex-shrink: 0;
}

.about__skills-title {
  writing-mode:sideways-lr;
  text-orientation: mixed;
  font-size: 2.5rem;
  font-weight: var(--font-semi-bold);
  color: var(--title-color);
  margin: 0;
  margin-top: 150px;
  margin-left: -100px;
  height: fit-content;
  min-height: 200px;
  display: flex;
  align-items: center;
}

.about__skills-content {
  flex: 1;
  margin-top: 50px;
}

.about__skills-subtitle {
  text-align: center;
  color: var(--text-color-light);
  margin-bottom: var(--spacing-lg);
  font-size: 0.9rem;

  /* font-size: var(--normal-font-size); */
  font-size: 0.95rem;
  margin-bottom: var(--spacing-3xl);
  line-height: 1.6;
}

.skills__container {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-3xl);
}

.skills__category {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.skills__category-title {
  font-size: 1.1rem;
  font-weight: var(--font-semi-bold);
  color: var(--title-color);
  margin: 0;
  text-align: center;
}

.skills__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
  justify-content: center;
}

.skill__item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  transition: all 0.2s ease;
  cursor: default;
}

.skill__item:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.skill__icon {
  width: 20px;
  height: 20px;
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  color: white;
  font-weight: var(--font-semi-bold);
  padding: 3px;
}

.skill__icon svg {
  width: 100%;
  height: 100%;
  fill: white;
}

.skill__name {
  font-size: 0.85rem;
  font-weight: var(--font-medium);
  color: var(--title-color);
  white-space: nowrap;
}

/* Dark theme adjustments */
[data-theme="dark"] .skill__item {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(71, 85, 105, 0.3);
}

[data-theme="dark"] .skill__item:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* Responsive adjustments */
@media screen and (max-width: 767px) {
  .about__skills-subtitle {
    font-size: var(--small-font-size);
  }
  
  .skills__container {
    gap: var(--spacing-2xl);
  }
  
  .skills__category-title {
    font-size: var(--normal-font-size);
  }
  
  .skills__list {
    gap: var(--spacing-sm);
  }
  
  .skill__item {
    padding: var(--spacing-xs) var(--spacing-sm);
  }
  
  .skill__icon {
    width: 24px;
    height: 24px;
    font-size: 14px;
  }
  
  .skill__name {
    font-size: var(--small-font-size);
  }
}

/* Responsive adjustments */
@media screen and (min-width: 768px) {
  .hero__container {
    grid-template-columns: 1fr 1fr;
    text-align: left;
  }
  
  .hero__content {
    text-align: left;
  }
  
  .hero__social {
    justify-content: flex-start;
  }
  
  .hero__buttons {
    justify-content: flex-start;
  }
  
  .hero__description {
    margin-left: 0;
    margin-right: 0;
  }
  
  .about__container {
    grid-template-columns: 1fr;
  }
  
  .skills__content {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

@media screen and (min-width: 992px) {
  .hero__blob {
    width: 400px;
    height: 400px;
  }
  
  .hero__img {
    width: 350px;
    height: 350px;
  }
  
  .about__content {
    text-align: left;
  }
  
  .about__title,
  .about__skills-title {
    text-align: center;
  }
  
  .skills__category-title {
    text-align: center;
  }
}
/* ===== 
ADDITIONAL HERO ANIMATIONS ===== */
.hero__content {
  animation: slideInLeft 1s ease-out;
}

.hero__image {
  animation: slideInRight 1s ease-out 0.3s both;
}

.hero__social-link {
  animation: fadeInUp 0.6s ease-out both;
}

.hero__social-link:nth-child(1) { animation-delay: 0.1s; }
.hero__social-link:nth-child(2) { animation-delay: 0.2s; }

.hero__buttons .button:first-child {
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero__buttons .button:last-child {
  animation: fadeInUp 0.8s ease-out 0.8s both;
}

/* ===== KEYFRAME ANIMATIONS ===== */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* ===== ENHANCED HERO BLOB ANIMATION ===== */
.hero__blob {
  position: relative;
  animation: float 3s ease-in-out infinite, bounceIn 1s ease-out;
}

.hero__blob::before {
  content: '';
  position: absolute;
  width: 120%;
  height: 120%;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  opacity: 0.2;
  animation: pulse 2s ease-in-out infinite, rotate 20s linear infinite;
  z-index: -1;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ===== RESPONSIVE ANIMATION ADJUSTMENTS ===== */
@media screen and (max-width: 767px) {
  .hero__content,
  .hero__image {
    animation: fadeInUp 0.8s ease-out;
  }
  
  .hero__blob {
    width: 250px;
    height: 250px;
  }
  
  .hero__img {
    width: 200px;
    height: 200px;
  }
}

/* ===== REDUCED MOTION SUPPORT ===== */
@media (prefers-reduced-motion: reduce) {
  .hero__content,
  .hero__image,
  .hero__social-link,
  .hero__buttons .button {
    animation: none;
  }
  
  .hero__blob {
    animation: none;
  }
  
  .hero__blob::before {
    animation: none;
  }
  
  .hero__typing::after {
    animation: none;
  }
}

/* ===== PROJECTS SECTION STYLES ===== */
.projects {
  background-color: var(--bg-color);
}

.projects__controls {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-2xl);
}

.projects__search {
  flex: 1;
  max-width: 300px;
}

.projects__filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  margin-bottom: 0;
}

.projects__filter-btn {
  background-color: transparent;
  color: var(--text-color);
  border: 2px solid var(--border-color);
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: var(--border-radius-md);
  font-weight: var(--font-medium);
  transition: var(--transition-medium);
  cursor: pointer;
}

.projects__filter-btn:hover,
.projects__filter-btn.active {
  background-color: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

.projects__container {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-xl);
}

/* ===== ENHANCED RESEARCH SECTION STYLES ===== */
.research {
  background-color: var(--bg-color-alt);
}

.research__intro {
  text-align: center;
  margin-bottom: var(--spacing-3xl);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.research__intro-text {
  font-size: var(--normal-font-size);
  line-height: 1.7;
  color: var(--text-color);
  padding: var(--spacing-xl);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-light);
}

.research__container {
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-3xl);
}

.research__card {
  background-color: var(--container-color);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-light);
  transition: var(--transition-medium);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.research__image {
  position: relative;
  overflow: hidden;
  height: 250px;
  width: 100%;
  min-width: 100%;
  display: block;
  align-self: stretch;
  position: relative; /* Context for absolute positioning of labels */
}

.research__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: var(--transition-medium);
  display: block;
}

.research__card--featured {
  /* border-left: 4px solid var(--primary-color); */
}

.research__card--ongoing {
  /* border-left: 4px solid var(--accent-color); */
}


.research__header {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-color-alt));
  color: #ffffff;
  padding: var(--spacing-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.research__card--ongoing .research__header {
  background: linear-gradient(135deg, #eab308, #b45309); /* Yellowish-Amber */
}

.research__type {
  font-size: var(--small-font-size);
  font-weight: var(--font-semi-bold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.research__date {
  font-size: var(--small-font-size);
  opacity: 0.9;
}

.research__content {
  padding: var(--spacing-xl);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.research__links {
  margin-top: auto;
}

.research__title {
  color: var(--title-color);
  font-size: var(--h3-font-size);
  margin-bottom: var(--spacing-md);
  line-height: 1.3;
  font-weight: 300;
}

.research__authors {
  margin-bottom: var(--spacing-md);
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

.research__author {
  font-size: var(--small-font-size);
  color: var(--text-color-light);
  font-style: italic;
}

.research__author--primary {
  color: var(--primary-color);
  font-weight: var(--font-semi-bold);
  font-style: normal;
}

.research__description {
  line-height: 1.7;
  margin-bottom: var(--spacing-lg);
  color: var(--text-color);
  font-size: var(--small-font-size);
}

.research__highlights {
  background-color: var(--bg-color-alt);
  padding: var(--spacing-lg);
  border-radius: var(--border-radius-md);
  margin-bottom: var(--spacing-lg);
}

.research__highlights-title {
  color: var(--title-color);
  font-size: var(--normal-font-size);
  font-weight: var(--font-semi-bold);
  margin-bottom: var(--spacing-sm);
}

.research__highlights-list {
  list-style: none;
  padding: 0;
}

.research__highlights-list li {
  position: relative;
  padding-left: var(--spacing-lg);
  margin-bottom: var(--spacing-xs);
  color: var(--text-color);
  font-size: var(--small-font-size);
  line-height: 1.5;
}

.research__highlights-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: var(--font-bold);
}

.research__progress {
  background-color: var(--bg-color-alt);
  padding: var(--spacing-lg);
  border-radius: var(--border-radius-md);
  margin-bottom: var(--spacing-lg);
}

.research__progress-title {
  color: var(--title-color);
  font-size: var(--normal-font-size);
  font-weight: var(--font-semi-bold);
  margin-bottom: var(--spacing-sm);
}

.research__progress-bar {
  width: 100%;
  height: 8px;
  background-color: var(--border-color);
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  margin-bottom: var(--spacing-xs);
}

.research__progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-color), #f97316);
  border-radius: var(--border-radius-sm);
  transition: width 1s ease-in-out;
}

.research__progress-text {
  font-size: var(--small-font-size);
  color: var(--text-color-light);
  font-weight: var(--font-medium);
}

/* .research__details removed as it is now integrated into links */

.research__venue {
  background-color: var(--primary-color);
  color: #ffffff;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--border-radius-md);
  font-size: var(--smaller-font-size);
  font-weight: var(--font-medium);
  letter-spacing: 0.5px;
  /* margin-left: auto; -- Add this only for card view if possible, or global is fine */
}

.research__status {
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--border-radius-md);
  font-size: var(--small-font-size);
  font-weight: var(--font-semi-bold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.research__status--completed {
  background-color: #10b981;
  color: #ffffff;
}

.research__status--ongoing {
  background-color: var(--accent-color);
  color: #ffffff;
}

.research__links {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
  align-items: center;
}

/* Specific adjustment for card view venue tile */
.research__links {
  display: flex;
  align-items: center;
  width: 100%; /* Ensure full width layout */
}

/* Container for labels to positions them in bottom right corner absolutely */
.research__tags,
.research__links > .research__venue {
  position: absolute;
  bottom: var(--spacing-xl);
  right: var(--spacing-xl);
  display: flex; /* For tags container */
  gap: 0.5rem;   /* For tags container */
}

/* Ensure single items don't have flex gap issues if treated as flex container */
.research__links > .research__venue {
  display: inline-block; /* Reset display for single spans */
}

.research__link {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  color: var(--primary-color);
  font-weight: var(--font-medium);
  text-decoration: none;
  transition: var(--transition-fast);
  border: 2px solid var(--primary-color);
  border-radius: var(--border-radius-md);
  font-size: var(--smaller-font-size);
  padding: var(--spacing-xs) var(--spacing-sm);
}

.research__link:hover {
  background-color: var(--primary-color);
  color: #ffffff;
  transform: translateY(-2px);
}

.research__link--primary {
  background-color: var(--primary-color);
  color: #ffffff;
}

.research__link--primary:hover {
  background-color: var(--primary-color-alt);
}

.research__link-icon {
  width: 16px;
  height: 16px;
}

/* ===== RESEARCH FOOTER ===== */
.research__footer {
  background-color: var(--container-color);
  padding: var(--spacing-2xl);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-light);
  text-align: center;
}

.research__interests-title {
  color: var(--title-color);
  font-size: var(--h3-font-size);
  margin-bottom: var(--spacing-lg);
}

.research__interests-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  justify-content: center;
}

.research__interest-tag {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-color-alt));
  color: #ffffff;
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: var(--border-radius-lg);
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
  transition: var(--transition-medium);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.research__interest-tag::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: var(--transition-medium);
}

.research__interest-tag:hover::before {
  left: 100%;
}

.research__interest-tag:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
}

/* ===== RESPONSIVE RESEARCH STYLES ===== */
@media screen and (max-width: 767px) {
  .research__container {
    grid-template-columns: 1fr;
  }
  
  .research__header {
    flex-direction: column;
    gap: var(--spacing-xs);
    text-align: center;
  }
  
  .research__content {
    padding: var(--spacing-lg);
  }
  
  .research__highlights,
  .research__progress {
    padding: var(--spacing-md);
  }
  
  .research__links {
    flex-direction: column;
  }
  
  .research__link {
    justify-content: center;
  }
  
  .research__interests-tags {
    gap: var(--spacing-xs);
  }
  
  .research__interest-tag {
    padding: var(--spacing-xs) var(--spacing-md);
    font-size: var(--smaller-font-size);
  }
}

@media screen and (min-width: 1024px) {
  .research__container {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .research__card:first-child {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }
  
  .research__card:first-child .research__header {
    grid-column: 1 / -1;
  }

  .research__card:first-child .research__image {
    grid-column: 1 / -1;
  }
  
  .research__card:first-child .research__content {
    grid-column: 1 / -1;
  }
}

/* ===== CONTACT SECTION STYLES ===== */
.contact {
  background-color: var(--bg-color);
}

.contact__container {
  grid-template-columns: 1fr;
  gap: var(--spacing-2xl);
}

.contact__info {
  display: grid;
  gap: var(--spacing-lg);
}

.contact__card {
  background-color: var(--container-color);
  padding: var(--spacing-xl);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-light);
  text-align: center;
  transition: var(--transition-medium);
}

.contact__card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
}

.contact__icon {
  width: 2rem;
  height: 2rem;
  color: var(--primary-color);
  margin: 0 auto var(--spacing-md);
}

.contact__card-title {
  color: var(--title-color);
  font-size: var(--h3-font-size);
  margin-bottom: var(--spacing-sm);
}

.contact__card-data {
  color: var(--text-color);
  font-weight: var(--font-medium);
}

.contact__form {
  background-color: var(--container-color);
  padding: var(--spacing-2xl);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-light);
}

.contact__form-group {
  margin-bottom: var(--spacing-lg);
}

.contact__form-label {
  display: block;
  color: var(--title-color);
  font-weight: var(--font-medium);
  margin-bottom: var(--spacing-sm);
}

.contact__form-input {
  width: 100%;
  padding: var(--spacing-sm);
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius-md);
  font-size: var(--normal-font-size);
  transition: var(--transition-fast);
  background-color: var(--bg-color);
}

.contact__form-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.contact__form-textarea {
  resize: vertical;
  min-height: 100px;
}

.contact__form-button {
  width: 100%;
  justify-content: center;
}

.contact__form-status {
  margin-top: var(--spacing-md);
  padding: var(--spacing-md);
  border-radius: var(--border-radius-md);
  text-align: center;
  font-weight: var(--font-medium);
  display: none;
}

.contact__form-status.success {
  background-color: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.contact__form-status.error {
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

/* ===== FOOTER STYLES ===== */
.footer {
  background-color: var(--title-color);
  color: var(--text-color-light);
  padding: var(--spacing-xl) 0;
}

.footer__content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-md);
}

.footer__copy {
  font-size: var(--small-font-size);
}

.footer__social {
  display: flex;
  gap: var(--spacing-md);
}

.footer__social-link {
  color: var(--text-color-light);
  font-weight: var(--font-medium);
  transition: var(--transition-fast);
}

.footer__social-link:hover {
  color: var(--primary-color);
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media screen and (min-width: 768px) {
  .contact__container {
    grid-template-columns: 1fr 1.5fr;
  }
  
  .contact__info {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 767px) {
  .footer__content {
    text-align: center;
    flex-direction: column;
  }
}/* ===
== ENHANCED ABOUT SECTION STYLES ===== */
.about__experience {
  background-color: var(--container-color);
  padding: var(--spacing-xl);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-light);
  margin-bottom: var(--spacing-xl);
}

.about__experience-title {
  color: var(--primary-color);
  margin-bottom: var(--spacing-lg);
  font-size: var(--h3-font-size);
  text-align: center;
}

.about__timeline {
  position: relative;
  padding-left: var(--spacing-xl);
}

.about__timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
}

.timeline__item {
  position: relative;
  margin-bottom: var(--spacing-xl);
  padding-left: var(--spacing-xl);
}

.timeline__item:last-child {
  margin-bottom: 0;
}

.timeline__marker {
  position: absolute;
  left: -27px;
  top: 5px;
  width: 12px;
  height: 12px;
  background-color: var(--primary-color);
  border-radius: 50%;
  border: 3px solid var(--container-color);
  box-shadow: 0 0 0 3px var(--primary-color);
}

.timeline__content {
  background-color: var(--bg-color-alt);
  padding: var(--spacing-lg);
  border-radius: var(--border-radius-md);
  border-left: 4px solid var(--primary-color);
}

.timeline__title {
  color: var(--title-color);
  font-size: var(--h3-font-size);
  margin-bottom: var(--spacing-xs);
}

.timeline__date {
  color: var(--primary-color);
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
  display: block;
  margin-bottom: var(--spacing-sm);
}

.timeline__description {
  color: var(--text-color);
  line-height: 1.6;
}

/* ===== STARTUP FEATURES ===== */
.startup__features {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.feature__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--spacing-md);
  background-color: var(--bg-color-alt);
  border-radius: var(--border-radius-md);
  transition: var(--transition-medium);
  min-width: 120px;
}

.feature__item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
}

.feature__icon {
  font-size: 2rem;
  margin-bottom: var(--spacing-sm);
}

.feature__text {
  color: var(--title-color);
  font-weight: var(--font-medium);
  font-size: var(--small-font-size);
}

/* ===== RESPONSIVE ADJUSTMENTS FOR ABOUT SECTION ===== */
@media screen and (max-width: 767px) {
  .about__timeline {
    padding-left: var(--spacing-lg);
  }
  
  .timeline__item {
    padding-left: var(--spacing-lg);
  }
  
  .timeline__marker {
    left: -21px;
  }
  
  .startup__features {
    justify-content: center;
  }
  
  .feature__item {
    min-width: 100px;
  }
}

@media screen and (min-width: 768px) {
  .about__container {
    grid-template-columns: 1fr;
    max-width: 900px;
    margin: 0 auto;
  }
}

@media screen and (min-width: 1024px) {
  .about__timeline::before {
    left: 20px;
  }
  
  .timeline__marker {
    left: -32px;
    width: 16px;
    height: 16px;
  }
}

/* ===== PROJECT CARDS STYLES ===== */
.project__card {
  background-color: var(--container-color);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-light);
  overflow: hidden;
  transition: var(--transition-medium);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

/* Research Modal Specifics */
.research__modal .project__modal-content {
    max-width: 800px;
}

.project__card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-large);
}

.project__card.fade-out {
  animation: fadeOut 0.3s ease forwards;
}

.project__image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.project__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-medium);
}

.project__card:hover .project__img {
  transform: scale(1.05);
}

.project__status {
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  color: #ffffff;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--border-radius-sm);
  font-size: var(--smaller-font-size);
  font-weight: var(--font-semi-bold);
  z-index: 2;
  text-transform: capitalize;
}

.project__status--completed {
  background-color: #10b981; /* Green */
}

.project__status--ongoing {
  background: linear-gradient(135deg, var(--accent-color), #f97316); /* Orange/Accent */
}

.project__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--overlay-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-medium);
}

.project__card:hover .project__overlay {
  opacity: 1;
}

.project__view-btn {
  background-color: var(--primary-color);
  color: #ffffff;
  border: none;
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: var(--border-radius-md);
  font-weight: var(--font-medium);
  cursor: pointer;
  transition: var(--transition-fast);
  transform: translateY(10px);
}

.project__card:hover .project__view-btn {
  transform: translateY(0);
}

.project__view-btn:hover {
  background-color: var(--primary-color-alt);
  transform: translateY(-2px);
}

.project__content {
  padding: var(--spacing-xl);
}

.project__category-badge {
  display: inline-block;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--border-radius-sm);
  font-size: var(--smaller-font-size);
  font-weight: var(--font-semi-bold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--spacing-sm);
}

.project__category-badge--fullstack {
  background-color: #dbeafe;
  color: #1e40af;
}

.project__category-badge--ml {
  background-color: #dcfce7;
  color: #166534;
}

.project__category-badge--data-analysis {
  background-color: #fef3c7;
  color: #92400e;
}

.project__category-badge--research {
  background-color: #fce7f3;
  color: #be185d;
}

.project__title {
  color: var(--title-color);
  font-size: var(--h3-font-size);
  margin-bottom: var(--spacing-sm);
  line-height: 1.3;
  font-weight: 300;
}

.project__description {
  color: var(--text-color);
  line-height: 1.6;
  font-size: var(--small-font-size);
  margin-bottom: var(--spacing-lg);
}

.project__technologies {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
  margin-bottom: var(--spacing-lg);
}

.project__tech-tag {
  background-color: var(--bg-color-alt);
  color: var(--text-color);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--border-radius-sm);
  font-size: var(--smaller-font-size);
  font-weight: var(--font-medium);
}

.project__tech-tag--large {
  padding: var(--spacing-sm) var(--spacing-md);
  font-size: var(--small-font-size);
}

.project__tech-more {
  background-color: var(--primary-color);
  color: #ffffff;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--border-radius-sm);
  font-size: var(--smaller-font-size);
  font-weight: var(--font-medium);
}

.project__actions {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

.project__link {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  color: var(--primary-color);
  font-weight: var(--font-medium);
  text-decoration: none;
  transition: var(--transition-fast);
}

.project__link:hover {
  color: var(--primary-color-alt);
  transform: translateY(-1px);
}

.project__link-icon {
  width: 16px;
  height: 16px;
}

/* ===== PROJECT MODAL STYLES ===== */
.project__modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--overlay-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-modal);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-medium);
  padding: var(--spacing-lg);
}

.project__modal.active {
  opacity: 1;
  visibility: visible;
}

.project__modal-content {
  background-color: var(--container-color);
  border-radius: var(--border-radius-lg);
  max-width: 1000px;
  width: 95%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.9) translateY(20px);
  transition: var(--transition-medium);
  display: flex;
  flex-direction: column;
  
  /* Hide scrollbar for Chrome, Safari and Opera */
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

.project__modal-content::-webkit-scrollbar {
  display: none;
}

.project__modal.active .project__modal-content {
  transform: scale(1) translateY(0);
}

.project__modal-close {
  position: absolute;
  top: var(--spacing-lg);
  right: var(--spacing-lg);
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  z-index: 10;
  background-color: rgba(0, 0, 0, 0.1);
}

.project__modal-close:hover {
  background-color: rgba(0, 0, 0, 0.2);
  transform: scale(1.1);
}

.project__modal-close svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

.project__modal-header {
  margin-bottom: var(--spacing-lg);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: var(--spacing-md);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: var(--spacing-md);
}

.project__modal-title {
  color: var(--title-color);
  font-size: var(--h2-font-size);
  font-weight: var(--font-bold);
  line-height: 1.2;
  margin: 0;
  flex: 1;
}

.project__modal-category {
  display: inline-block;
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--border-radius-md);
  font-size: var(--small-font-size);
  font-weight: var(--font-semi-bold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.project__modal-gallery {
  position: relative;
  height: 400px; /* Increased height */
  overflow: hidden;
  flex-shrink: 0; 
  background-color: #000;
}

.project__modal-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: var(--transition-medium);
}

.project__modal-image.active {
  opacity: 1;
}

.project__gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 var(--spacing-lg);
  pointer-events: none;
}

.gallery__nav-btn {
  background: rgba(0, 0, 0, 0.5);
  color: #ffffff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.5rem;
  transition: var(--transition-fast);
  pointer-events: all;
}

.gallery__nav-btn:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: scale(1.1);
}

.project__modal-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--spacing-2xl);
  padding: var(--spacing-2xl);
}

.project__modal-main {
  /* Main content area */
}

.project__modal-sidebar {
  /* Sidebar area */
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
}

/* Typography Enhancements */
.project__modal-main h3,
.project__modal-sidebar h3 {
  color: var(--title-color);
  font-size: var(--normal-font-size); /* Slightly smaller but uppercase */
  font-weight: var(--font-bold);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--spacing-md);
  border-left: 3px solid var(--primary-color);
  padding-left: var(--spacing-sm);
}

.project__modal-description {
  margin-bottom: var(--spacing-xl);
}

.project__modal-info h3 {
  color: var(--title-color);
  font-size: var(--h3-font-size);
  margin-bottom: var(--spacing-md);
  margin-top: var(--spacing-xl);
}

.project__modal-info h3:first-child {
  margin-top: 0;
}

.project__modal-description {
  margin-bottom: var(--spacing-xl);
  font-size: var(--small-font-size); /* Reduced font size for blog/description */
}

.project__modal-description p {
  color: var(--text-color);
  line-height: 1.8; /* Increased line height for better readability */
  margin-bottom: var(--spacing-md);
}

/* Specific styling for Blog Content inside Description */
.project__modal-description h3 {
  color: var(--title-color);
  font-size: var(--h3-font-size);
  margin-top: var(--spacing-xl);
  margin-bottom: var(--spacing-md);
  text-transform: none; /* Reset uppercase from main design for blog readability */
  border-left: none; /* Remove border from main design */
  padding-left: 0;
  letter-spacing: normal;
}

.project__modal-description h4 {
  color: var(--title-color);
  font-size: var(--normal-font-size);
  font-weight: var(--font-bold);
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-sm);
}

.project__modal-description ul, 
.project__modal-description ol {
  margin-bottom: var(--spacing-md);
  padding-left: var(--spacing-xl);
}

.project__modal-description li {
  margin-bottom: var(--spacing-xs);
  color: var(--text-color);
}

.project__modal-description strong {
  color: var(--title-color);
}

.project__modal-description em {
  font-style: italic;
  color: var(--text-color-light);
}

.project-blog {
  /* Container for the blog content */
}

.project__tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

.project__outcomes-list {
  list-style: none;
  padding: 0;
}

.project__outcome-item {
  color: var(--text-color);
  padding: var(--spacing-sm) 0;
  border-bottom: 1px solid var(--border-color);
  position: relative;
  padding-left: var(--spacing-lg);
}

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

.project__outcome-item::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: var(--font-bold);
}

.project__modal-actions {
  display: flex;
  gap: var(--spacing-md);
  margin-top: var(--spacing-xl);
  flex-wrap: wrap;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeOut {
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}

/* ===== RESPONSIVE MODAL ===== */
@media screen and (max-width: 767px) {
  .project__modal {
    padding: var(--spacing-md);
  }
  
/* Mobile Responsiveness for Modal Grid */
@media screen and (max-width: 850px) {
  .project__modal-grid {
    grid-template-columns: 1fr; /* Stack vertically */
    gap: var(--spacing-xl);
    padding: var(--spacing-lg);
  }
  
  .project__modal-gallery {
    height: 250px;
  }

  .project__modal-sidebar {
    order: -1; /* Move sidebar (actions) to top on mobile? Or keep bottom? Let's keep normal flow for now, maybe actions at top is better */
    /* order: initial; */ 
    gap: var(--spacing-lg);
  }

  /* Make actions sticky or prominent on mobile? */
  .project__modal-actions {
    flex-direction: row;
  }
}

/* ===== RESEARCH TYPE BADGES ===== */
.research__links .research__venue:first-of-type {
  margin-left: auto; /* Push this and subsequent siblings to the right */
}

.research__links .research__venue + .research__venue {
  margin-left: 0.5rem; /* Small gap between multiple labels */
}

.research__venue {
  background-color: var(--container-color);
  color: var(--text-color);
  border: 1px solid var(--border-color);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
}

/* Category Specific Label Colors */
/* Original: Gold/Amber - Requested */
[data-category~="original"] .research__venue {
  background-color: #fffbeb; /* Amber-50 */
  color: #d97706; /* Amber-600 */
  border-color: #fcd34d; /* Amber-300 */
}

/* Implemented: Indigo/Blue - Technical/Code */
[data-category~="implemented"] .research__venue {
  background-color: #eef2ff; /* Indigo-50 */
  color: #4f46e5; /* Indigo-600 */
  border-color: #a5b4fc; /* Indigo-300 */
}

/* Studies: Purple - Academic/Deep */
[data-category~="studies"] .research__venue {
  background-color: #faf5ff; /* Purple-50 */
  color: #7e22ce; /* Purple-700 */
  border-color: #d8b4fe; /* Purple-300 */
}

/* Dataset Audits: Rose - Alert/Critical */
[data-category~="dataset-audits"] .research__venue {
  background-color: #fff1f2; /* Rose-50 */
  color: #e11d48; /* Rose-600 */
  border-color: #fda4af; /* Rose-300 */
}

/* Research Tooling: Slate/Cyan - Utility/Tech */
[data-category~="research-tooling"] .research__venue {
  background-color: #ecfeff; /* Cyan-50 */
  color: #0891b2; /* Cyan-600 */
  border-color: #67e8f9; /* Cyan-300 */
}
.research__type {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background-color: var(--primary-color); /* Fallback */
  color: white;
}

.research__type--presented {
  background-color: #dcfce7; /* Green-100 */
  color: #166534; /* Green-800 */
}


.research__type--completed {
  background-color: #cffafe; /* Cyan-100 */
  color: #0e7490; /* Cyan-800 */
}

/* ===== RESEARCH AUTHOR ALIGNMENT ===== */
.research__authors {
  display: block;
  margin-bottom: 0.5rem;
}

.research__author,
.research__author--primary {
  display: inline;
  font-size: 0.9rem;
}

.research__author--primary {
  font-weight: 600;
  color: var(--title-color);
}

.research__author {
  color: var(--text-color-light);
}

  .project__modal-content {
    max-height: 95vh;
  }
  
  .project__modal-header,
  .project__modal-info {
    padding: 0; /* padding handled by grid now */
  }
  
  .project__modal-gallery {
    height: 200px;
  }
  
  .project__modal-actions {
    flex-direction: column;
  }
  
  .project__modal-actions .button {
    text-align: center;
  }
}/* ====
= ENHANCED PROJECTS CONTROLS ===== */
.projects__controls {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-2xl);
  align-items: center;
}

.projects__search {
  position: relative;
  max-width: 400px;
  width: 100%;
}

.projects__search-input {
  width: 100%;
  padding: var(--spacing-sm) var(--spacing-lg) var(--spacing-sm) 3rem;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  font-size: var(--normal-font-size);
  background-color: var(--container-color);
  transition: var(--transition-fast);
}

.projects__search-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.projects__search-input::placeholder {
  color: var(--text-color-light);
}

.projects__search-icon {
  position: absolute;
  left: var(--spacing-md);
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--text-color-light);
  pointer-events: none;
}

.projects__filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

.projects__filter-btn {
  background-color: transparent;
  color: var(--text-color);
  border: 2px solid var(--border-color);
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: var(--border-radius-lg);
  font-weight: var(--font-medium);
  transition: var(--transition-medium);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.projects__filter-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.1), transparent);
  transition: var(--transition-medium);
}

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

.projects__filter-btn:hover,
.projects__filter-btn.active {
  background-color: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.projects__results-count {
  color: var(--text-color-light);
  font-size: var(--small-font-size);
  text-align: center;
  margin-top: var(--spacing-sm);
  font-style: italic;
}

/* ===== NO RESULTS STYLES ===== */
.projects__no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--spacing-3xl) var(--spacing-lg);
  color: var(--text-color-light);
}

.projects__no-results-icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto var(--spacing-lg);
  opacity: 0.5;
}

.projects__no-results h3 {
  color: var(--title-color);
  font-size: var(--h3-font-size);
  margin-bottom: var(--spacing-sm);
}

.projects__no-results p {
  margin-bottom: var(--spacing-lg);
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== ENHANCED PROJECT GRID ===== */
.projects__container {
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--spacing-xl);
  min-height: 400px;
}

/* ===== LOADING STATES ===== */
.projects__loading {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: var(--spacing-3xl);
}

.projects__loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-color);
  border-top: 3px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media screen and (min-width: 768px) {
  .projects__controls {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  
  .projects__search {
    max-width: 300px;
  }
  
  .projects__filters {
    justify-content: flex-end;
  }
}

@media screen and (max-width: 767px) {
  .projects__container {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
  
  .projects__filter-btn {
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: var(--small-font-size);
  }
  
  .projects__search-input {
    padding: var(--spacing-sm) var(--spacing-md) var(--spacing-sm) 2.5rem;
  }
  
  .projects__search-icon {
    left: var(--spacing-sm);
    width: 15px;
    height: 15px;
  }
}

/* ===== CUSTOM JS TOOLTIP ===== */
.custom-tooltip {
  position: fixed;
  padding: 0.75rem 1rem;
  background-color: var(--title-color);
  color: var(--container-color);
  font-size: 0.85rem;
  border-radius: 0.5rem;
  width: max-content;
  max-width: 280px;
  text-align: center;
  z-index: 10000;
  pointer-events: none;
  font-weight: normal;
  line-height: 1.5;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease;
  transform: translateY(10px);
}

.custom-tooltip.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.custom-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--title-color);
}

/* ===== ADVANCED HOVER EFFECTS ===== */
.project__card {
  position: relative;
}

.project__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  opacity: 0;
  border-radius: var(--border-radius-lg);
  transition: var(--transition-medium);
  z-index: -1;
}

.project__card:hover::before {
  opacity: 0.05;
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */
.projects__filter-btn:focus,
.projects__search-input:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.project__view-btn:focus {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

/* ===== PRINT STYLES FOR PROJECTS ===== */
@media print {
  .projects__controls,
  .project__overlay,
  .project__actions {
    display: none !important;
  }
  
  .project__card {
    break-inside: avoid;
    box-shadow: none !important;
    border: 1px solid #ccc;
  }
  
  .projects__container {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}/*
 ===== ENHANCED CONTACT FORM STYLES ===== */
.contact__form-input--valid {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.contact__form-input--invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.contact__form-error {
  display: block;
  color: #ef4444;
  font-size: var(--small-font-size);
  margin-top: var(--spacing-xs);
  font-weight: var(--font-medium);
  animation: slideInError 0.3s ease;
}

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

.contact__form-counter {
  text-align: right;
  font-size: var(--small-font-size);
  color: var(--text-color-light);
  margin-top: var(--spacing-xs);
  transition: var(--transition-fast);
}

.contact__form-counter--warning {
  color: var(--accent-color);
}

.contact__form-counter--error {
  color: #ef4444;
  font-weight: var(--font-medium);
}

.contact__form-button--loading {
  position: relative;
  color: transparent;
}

.contact__form-button--loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  border-top: 2px solid #ffffff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.contact__form-status {
  margin-top: var(--spacing-md);
  padding: var(--spacing-md);
  border-radius: var(--border-radius-md);
  text-align: center;
  font-weight: var(--font-medium);
  display: none;
  animation: slideInStatus 0.3s ease;
}

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

.contact__form-status.success {
  background-color: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.contact__form-status.error {
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

/* ===== ENHANCED CONTACT CARDS ===== */
.contact__card {
  position: relative;
  overflow: hidden;
}

.contact__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.1), transparent);
  transition: var(--transition-medium);
}

.contact__card:hover::before {
  left: 100%;
}

.contact__card:hover .contact__icon {
  transform: scale(1.1) rotate(5deg);
  color: var(--primary-color-alt);
}

.contact__icon {
  transition: var(--transition-medium);
}

/* ===== CONTACT SECTION ENHANCEMENTS ===== */
.contact__info {
  position: relative;
}

.contact__info::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  border-radius: var(--border-radius-sm);
}

.contact__form {
  position: relative;
}

.contact__form::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
  border-radius: var(--border-radius-sm);
}

/* ===== FORM ACCESSIBILITY ENHANCEMENTS ===== */
.contact__form-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.contact__form-label {
  position: relative;
}

.contact__form-label::after {
  content: '*';
  color: #ef4444;
  margin-left: 2px;
  font-weight: var(--font-bold);
}

.contact__form-input:valid {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2310b981' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M13.854 3.646a.5.5 0 0 1 0 .708l-7 7a.5.5 0 0 1-.708 0l-3.5-3.5a.5.5 0 1 1 .708-.708L6.5 10.293l6.646-6.647a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
}

.contact__form-input:invalid:not(:placeholder-shown) {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ef4444' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
}

/* ===== RESPONSIVE CONTACT ENHANCEMENTS ===== */
@media screen and (max-width: 767px) {
  .contact__info::before,
  .contact__form::before {
    display: none;
  }
  
  .contact__form-input:valid,
  .contact__form-input:invalid:not(:placeholder-shown) {
    background-image: none;
    padding-right: var(--spacing-md);
  }
}

/* ===== PRINT STYLES FOR CONTACT ===== */
@media print {
  .contact__form {
    display: none !important;
  }
  
  .contact__card {
    break-inside: avoid;
    box-shadow: none !important;
    border: 1px solid #ccc;
  }
}/* =
==== INTERACTIVE COMPONENTS STYLES ===== */

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: var(--spacing-lg);
  right: var(--spacing-lg);
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-color-alt));
  color: #ffffff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-large);
  transition: var(--transition-medium);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  z-index: var(--z-fixed);
}

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

.back-to-top:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 15px 30px rgba(37, 99, 235, 0.4);
}

.back-to-top svg {
  width: 24px;
  height: 24px;
  stroke-width: 2;
}

/* Theme Toggle */
.theme-toggle {
  background: none;
  border: none;
  color: var(--text-color);
  cursor: pointer;
  padding: var(--spacing-sm);
  border-radius: 50%;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

.theme-toggle:hover {
  background-color: var(--bg-color-alt);
  color: var(--primary-color);
  transform: rotate(180deg);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

/* Tooltip */
.tooltip {
  position: absolute;
  background-color: var(--title-color);
  color: #ffffff;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--border-radius-sm);
  font-size: var(--small-font-size);
  white-space: nowrap;
  z-index: var(--z-tooltip);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-100%);
  transition: var(--transition-fast);
  pointer-events: none;
}

.tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--title-color);
}

.tooltip.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-100%) translateY(-5px);
}

/* Page Loader */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-color-alt));
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.page-loader.fade-out {
  opacity: 0;
}

.loader-content {
  text-align: center;
  color: #ffffff;
}

.loader-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid #ffffff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto var(--spacing-lg);
}

.loader-text {
  font-size: var(--h3-font-size);
  font-weight: var(--font-medium);
  opacity: 0.9;
}

/* Lazy Loading Images */
.lazy {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lazy.loaded {
  opacity: 1;
}

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

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
}

/* Interactive Element Enhancements */
.interactive-element {
  transition: var(--transition-medium);
  cursor: pointer;
}

.interactive-element:hover {
  transform: translateY(-2px);
}

.interactive-element:active {
  transform: translateY(0);
}

/* Focus Styles for Accessibility */
.back-to-top:focus,
.theme-toggle:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Keyboard Navigation Indicators */
.keyboard-user *:focus {
  outline: 2px solid var(--primary-color) !important;
  outline-offset: 2px !important;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .back-to-top,
  .theme-toggle,
  .tooltip,
  .lazy {
    transition: none;
  }
  
  .loader-spinner {
    animation: none;
  }
  
  .page-loader {
    display: none;
  }
}

/* Dark Theme Adjustments */
[data-theme="dark"] .tooltip {
  background-color: var(--container-color);
  color: var(--text-color);
  border: 1px solid var(--border-color);
}

[data-theme="dark"] .tooltip::after {
  border-top-color: var(--container-color);
}

[data-theme="dark"] .back-to-top {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
}

/* Mobile Optimizations */
@media screen and (max-width: 767px) {
  .back-to-top {
    width: 45px;
    height: 45px;
    bottom: var(--spacing-md);
    right: var(--spacing-md);
  }
  
  .back-to-top svg {
    width: 20px;
    height: 20px;
  }
  
  .theme-toggle {
    width: 36px;
    height: 36px;
  }
  
  .theme-toggle svg {
    width: 18px;
    height: 18px;
  }
  
  .tooltip {
    font-size: var(--smaller-font-size);
    padding: var(--spacing-xs);
  }
}

/* Print Styles */
@media print {
  .back-to-top,
  .theme-toggle,
  .tooltip,
  .page-loader {
    display: none !important;
  }
}


/* Mobile responsive for vertical skills title */
@media screen and (max-width: 768px) {
  .about__skills {
    flex-direction: column;
    gap: 1rem;
  }
  
  .about__skills-title {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    padding-right: 0;
    min-height: auto;
    text-align: center;
  }
}

/* Force removal of research card hover effects */
.research__card:hover,
.research__card:focus,
.research__card:active {
  transform: none !important;
  box-shadow: var(--shadow-light) !important;
  transition: none !important;
}
