@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");

:root {
  /* Modern Professional Color Scheme */
  --primary-color: #660033; /* Burgundy */
  --primary-color-dark: #4d0026; /* Darker Burgundy */
  --secondary-color: #7c3aed; /* Purple Accent */
  --text-dark: #1f2937; /* Dark Gray */
  --text-light: #4b5563; /* Medium Gray */
  --extra-light: #f8fafc; /* Light Background */
  --max-width: 1200px;
  
  /* Dark mode colors */
  --dark-bg: #0f172a;
  --dark-text: #f1f5f9;
  --dark-card: #1e293b;
}

/* Dark mode styles */
[data-theme="dark"] {
  --primary-color: #800020;
  --primary-color-dark: #660033;
  --text-dark: #f1f5f9;
  --text-light: #cbd5e1;
  --extra-light: #0f172a;
}

html {
  scroll-behavior: smooth;
}

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

a {
  text-decoration: none;
}

body {
  font-family: "Poppins", sans-serif;
  background: var(--extra-light);
  color: var(--text-dark);
  margin: 0;
  transition: background-color 0.3s, color 0.3s;
}

/* Loader */
.loader-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--extra-light);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s;
}

.loader {
  width: 48px;
  height: 48px;
  border: 5px solid var(--primary-color);
  border-bottom-color: transparent;
  border-radius: 50%;
  animation: rotation 1s linear infinite;
}

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

/* Navigation */
nav {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  background-color: var(--extra-light);
  z-index: 99;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s;
}

.nav__content {
  max-width: var(--max-width);
  margin: auto;
  padding: 1.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

nav .logo a {
  font-size: 30px;
  font-weight: 700;
  color: var(--primary-color);
  transition: 0.3s;
}

nav .logo a:hover {
  color: var(--primary-color-dark);
}

nav ul {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

nav ul li a {
  color: var(--text-dark);
  font-weight: 500;
  transition: 0.3s;
}

nav ul li a:hover {
  color: var(--primary-color);
}

.theme-toggle {
  background: none;
  border: none;
  color: var(--text-dark);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  transition: 0.3s;
}

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

/* Main Section */
.section {
  padding: 6rem 0;
  background-color: var(--extra-light);
  transition: background-color 0.3s;
}

.section__container {
  min-height: 100vh;
  max-width: var(--max-width);
  margin: auto;
  padding: 1rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: rem;
  align-items: center;
}

.content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.subtitle {
  letter-spacing: 2px;
  color: var(--text-light);
  font-weight: 600;
  margin-bottom: 0.5rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.5s forwards;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.title {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.5s 0.2s forwards;
}

.title span {
  color: var(--primary-color);
}

.title__role {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text-light);
  display: block;
  margin-top: 0.5rem;
}

.description {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.5s 0.4s forwards;
  max-width: 500px;
}

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

.main-btn {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
}

.btn {
  font-size: 1rem;
  font-weight: 600;
  padding: 1rem 2rem;
  color: #fff;
  background-color: var(--primary-color);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn:hover {
  background-color: var(--primary-color-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(102, 0, 51, 0.3);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(102, 0, 51, 0.3);
}

.sci {
  display: flex;
  gap: 1.5rem;
}

.sci a {
  font-size: 1.5rem;
  color: var(--text-dark);
  transition: all 0.3s ease;
  padding: 0.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sci a:hover {
  color: var(--primary-color);
  transform: translateY(-3px);
  background: rgba(102, 0, 51, 0.1);
}

.image {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.image img {
  width: min(25rem, 90%);
  height: 25rem;
  object-fit: cover;
  object-position: center;
  border-radius: 100%;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 4px solid var(--primary-color);
}

.image img:hover {
  transform: scale(1.05);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

/* Enhanced Section Titles */
.section-title {
  text-align: center;
  font-size: 2.5rem;
  color: var(--text-dark);
  margin-bottom: 3rem;
  margin-top: 0;
  font-weight: 700;
  position: relative;
  padding-top: 2rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--primary-color);
  border-radius: 2px;
}

/* Enhanced Project Cards */
.project__card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.project__card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.project__image {
  position: relative;
  overflow: hidden;
}

.project__img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s;
}

.project__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s;
}

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

.project__links {
  display: flex;
  gap: 1rem;
}

.project__link {
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  transition: transform 0.3s, background-color 0.3s;
}

.project__link:hover {
  transform: translateY(-5px);
  background: var(--primary-color-dark);
}

.project__content {
  padding: 1.5rem;
}

.project__title {
  font-size: 1.5rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
  font-weight: 600;
}

.project__description {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.7;
  font-size: 1rem;
}

.project__features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.feature__item {
  background: rgba(102, 0, 51, 0.1);
  color: var(--primary-color);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
}

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

.project__tags span {
  background: var(--primary-color);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
}

@media screen and (max-width: 768px) {
  .projects__container {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .project__card {
    max-width: 500px;
    margin: 0 auto;
  }
}

/* Enhanced Contact Section */
.contact__container {
  max-width: var(--max-width);
  margin: auto;
  padding: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 4rem;
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

.contact__subtitle {
  font-size: 1.5rem;
  color: var(--primary-color);
}

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

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

.contact__detail {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact__detail i {
  font-size: 1.25rem;
  color: var(--primary-color);
}

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

.form__group {
  position: relative;
}

.contact__input {
  width: 100%;
  padding: 1rem;
  border-radius: 8px;
  border: 2px solid var(--border-color);
  outline: none;
  background: transparent;
  color: var(--text-dark);
  transition: all 0.3s ease;
  font-size: 1rem;
}

.contact__input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(102, 0, 51, 0.1);
}

.contact__button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--primary-color);
  color: #fff;
  padding: 1rem 2rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.contact__button:hover {
  background-color: var(--primary-color-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(102, 0, 51, 0.3);
}

/* Footer */
.footer {
  text-align: center;
  padding: 2rem 0;
  background-color: var(--extra-light);
  color: var(--text-dark);
  transition: background-color 0.3s;
}

.footer__title {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.footer__social {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.footer__social a {
  font-size: 1.5rem;
  color: var(--primary-color);
  transition: 0.3s;
}

.footer__social a:hover {
  color: var(--primary-color-dark);
  transform: translateY(-3px);
}

/* Enhanced Footer */
.footer {
  background: #660033;
  color: white;
  padding: 3rem 0 1rem;
}

.footer__content {
  max-width: var(--max-width);
  margin: auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

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

.footer__title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.footer__description {
  color: #f1f5f9;
  line-height: 1.6;
}

.footer__subtitle {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer__links a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.footer__social {
  display: flex;
  gap: 1rem;
}

.footer__social a {
  color: #cbd5e1;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  padding: 0.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer__social a:hover {
  color: var(--primary-color);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.footer__bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #374151;
  color: #9ca3af;
}

@media screen and (max-width: 768px) {
  .footer__content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  .section__container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .image {
    order: -1;
  }

  .main-btn {
    justify-content: center;
  }

  .sci {
    justify-content: center;
  }

  nav ul {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--extra-light);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: 0.3s;
  }

  nav ul.active {
    right: 0;
  }

  .nav__content {
    padding: 1rem;
  }
}

/* About Section */
.about__container {
  max-width: var(--max-width);
  margin: auto;
  padding: 2rem;
}

.about__content {
  background: var(--extra-light);
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
}

.about__header {
  text-align: center;
  margin-bottom: 2rem;
}

.about__subtitle {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.wave {
  animation: wave 2s infinite;
  display: inline-block;
  transform-origin: 70% 70%;
}

@keyframes wave {
  0% { transform: rotate(0deg); }
  10% { transform: rotate(14deg); }
  20% { transform: rotate(-8deg); }
  30% { transform: rotate(14deg); }
  40% { transform: rotate(-4deg); }
  50% { transform: rotate(10deg); }
  60% { transform: rotate(0deg); }
  100% { transform: rotate(0deg); }
}

.about__tagline {
  font-size: 1.2rem;
  color: var(--text-light);
  font-weight: 500;
}

.about__text-container {
  margin-bottom: 2rem;
}

.about__text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 2rem 0;
  padding: 2rem;
  background: white;
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}

.stat__item {
  text-align: center;
  padding: 1rem;
  transition: transform 0.3s;
}

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

.stat__number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.stat__label {
  font-size: 1rem;
  color: var(--text-light);
  font-weight: 500;
}

.about__cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

@media screen and (max-width: 768px) {
  .about__content {
    padding: 2rem;
  }

  .about__subtitle {
    font-size: 2rem;
  }

  .about__stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .about__cta {
    flex-direction: column;
  }

  .about__cta .btn {
    width: 100%;
  }
}

/* Enhanced Skills Section */
.skills__wrapper {
  max-width: var(--max-width);
  margin: auto;
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.skills__category {
  width: 100%;
}

.skills__category-title {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-weight: 600;
  text-align: left;
  position: relative;
  padding-bottom: 0.75rem;
}

.skills__category-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--primary-color);
  border-radius: 2px;
}

.skills__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}

.skill__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.5rem 1rem;
  background: #ffffff !important;
  border-radius: 12px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 2px solid transparent;
  cursor: default;
}

.skill__card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
  box-shadow: 0 8px 25px rgba(102, 0, 51, 0.15);
}

.skill__card i {
  font-size: 2.5rem;
  color: var(--primary-color);
  transition: transform 0.3s ease;
}

.skill__card:hover i {
  transform: scale(1.15);
}

.skill__name {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.95rem;
  text-align: center;
}

@media screen and (max-width: 768px) {
  .skills__wrapper {
    gap: 2rem;
  }
  
  .skills__category-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }
  
  .skills__grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
  }
  
  .skill__card {
    padding: 1.25rem 0.75rem;
  }
  
  .skill__card i {
    font-size: 2rem;
  }
  
  .skill__name {
    font-size: 0.85rem;
  }
}

@media screen and (max-width: 500px) {
  .skills__wrapper {
    gap: 1.5rem;
  }
  
  .skills__category-title {
    font-size: 1.1rem;
  }
  
  .skills__grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 0.5rem;
  }
  
  .skill__card {
    padding: 1rem 0.5rem;
  }
  
  .skill__card i {
    font-size: 1.75rem;
  }
  
  .skill__name {
    font-size: 0.8rem;
  }
}

/* Slide-in Animation Styles */
.slide-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Staggered animation for skill cards */
.skills__grid .skill__card.slide-in {
  transition-delay: 0s;
}

.skills__grid .skill__card.slide-in:nth-child(1) { transition-delay: 0.1s; }
.skills__grid .skill__card.slide-in:nth-child(2) { transition-delay: 0.2s; }
.skills__grid .skill__card.slide-in:nth-child(3) { transition-delay: 0.3s; }
.skills__grid .skill__card.slide-in:nth-child(4) { transition-delay: 0.4s; }
.skills__grid .skill__card.slide-in:nth-child(5) { transition-delay: 0.5s; }
.skills__grid .skill__card.slide-in:nth-child(6) { transition-delay: 0.6s; }
.skills__grid .skill__card.slide-in:nth-child(7) { transition-delay: 0.7s; }
.skills__grid .skill__card.slide-in:nth-child(8) { transition-delay: 0.8s; }

/* Scroll Progress Indicator */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), #800020);
  z-index: 9999;
  transition: width 0.1s ease-out;
  box-shadow: 0 2px 10px rgba(102, 0, 51, 0.5);
}

/* Chatbot Styles */
.chatbot-toggle {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary-color);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 20px rgba(102, 0, 51, 0.4);
  transition: all 0.3s ease;
  z-index: 1000;
}

.chatbot-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(102, 0, 51, 0.6);
}

.chatbot-notification {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 12px;
  height: 12px;
  background: #ff4444;
  border-radius: 50%;
  border: 2px solid white;
  animation: pulse 2s infinite;
}

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

.chatbot-container {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 350px;
  height: 500px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  z-index: 1001;
  transform: translateY(100px) scale(0.8);
  opacity: 0;
  transition: all 0.3s ease;
  overflow: hidden;
}

.chatbot-container.active {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.chatbot-header {
  background: var(--primary-color);
  color: white;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chatbot-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

.chatbot-close {
  background: transparent;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  transition: transform 0.2s;
}

.chatbot-close:hover {
  transform: rotate(90deg);
}

.chatbot-messages {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  background: #f8f9fa;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.message {
  display: flex;
  animation: messageSlide 0.3s ease;
}

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

.bot-message {
  justify-content: flex-start;
}

.user-message {
  justify-content: flex-end;
}

.message-content {
  max-width: 80%;
  padding: 0.75rem 1rem;
  border-radius: 18px;
  word-wrap: break-word;
}

.bot-message .message-content {
  background: white;
  color: var(--text-dark);
  border-bottom-left-radius: 4px;
}

.user-message .message-content {
  background: var(--primary-color);
  color: white;
  border-bottom-right-radius: 4px;
}

.chatbot-input-container {
  padding: 1rem;
  background: white;
  border-top: 1px solid #e5e7eb;
  display: flex;
  gap: 0.5rem;
}

.chatbot-input {
  flex: 1;
  padding: 0.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  outline: none;
  font-family: inherit;
  transition: border-color 0.3s;
}

.chatbot-input:focus {
  border-color: var(--primary-color);
}

.chatbot-send {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-color);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.chatbot-send:hover {
  background: var(--primary-color-dark);
  transform: scale(1.1);
}

/* Particles Background */
.particles-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--primary-color);
  border-radius: 50%;
  opacity: 0.3;
  animation: float 20s infinite;
}

@keyframes float {
  0% {
    transform: translateY(100vh) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 0.3;
  }
  90% {
    opacity: 0.3;
  }
  100% {
    transform: translateY(-100vh) translateX(100px);
    opacity: 0;
  }
}

/* Typing Animation */
.typing-indicator {
  display: inline-block;
}

.typing-indicator span {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-color);
  margin: 0 2px;
  animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.7;
  }
  30% {
    transform: translateY(-10px);
    opacity: 1;
  }
}

/* Dark mode chatbot */
[data-theme="dark"] .chatbot-container {
  background: var(--dark-card);
  color: var(--dark-text);
}

[data-theme="dark"] .chatbot-messages {
  background: #1a1a2e;
}

[data-theme="dark"] .bot-message .message-content {
  background: var(--dark-card);
  color: var(--dark-text);
}

[data-theme="dark"] .chatbot-input-container {
  background: var(--dark-card);
  border-top-color: #374151;
}

[data-theme="dark"] .chatbot-input {
  background: #1e293b;
  border-color: #374151;
  color: var(--dark-text);
}


/* Enhanced Skill Card 3D Effect */
.skill__card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  transform-style: preserve-3d;
}

.skill__card:hover {
  box-shadow: 0 15px 35px rgba(102, 0, 51, 0.2);
}

/* Certificates Section */
.certificates {
  background: var(--extra-light);
  padding: 4rem 0;
  overflow: hidden;
  position: relative;
}

.certificates-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 2rem 0;
}

.certificates-wrapper::before,
.certificates-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.certificates-wrapper::before {
  left: 0;
  background: linear-gradient(to right, var(--extra-light), transparent);
}

.certificates-wrapper::after {
  right: 0;
  background: linear-gradient(to left, var(--extra-light), transparent);
}

.certificates-track {
  display: flex;
  gap: 2rem;
  animation: scrollCertificates 30s linear infinite;
  width: fit-content;
}

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

.certificate-card {
  min-width: 350px;
  max-width: 350px;
  height: 250px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.certificate-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(102, 0, 51, 0.1), transparent);
  transition: left 0.5s;
  z-index: 2;
}

.certificate-card:hover::before {
  left: 100%;
}

.certificate-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 15px 40px rgba(102, 0, 51, 0.3);
  border-color: var(--primary-color);
}

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

.certificate-card:hover .certificate-image {
  transform: scale(1.1);
}

.certificate-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  padding: 1.5rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  z-index: 3;
}

.certificate-card:hover .certificate-overlay {
  transform: translateY(0);
}

.certificate-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: white;
  margin: 0;
  text-align: center;
}

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

/* Dark mode certificates */
[data-theme="dark"] .certificates {
  background: var(--dark-bg);
}

[data-theme="dark"] .certificate-card {
  background: var(--dark-card);
  color: var(--dark-text);
}

[data-theme="dark"] .certificate-title {
  color: var(--dark-text);
}

[data-theme="dark"] .certificates-wrapper::before {
  background: linear-gradient(to right, var(--dark-bg), transparent);
}

[data-theme="dark"] .certificates-wrapper::after {
  background: linear-gradient(to left, var(--dark-bg), transparent);
}

/* Responsive Certificates */
@media screen and (max-width: 768px) {
  .certificate-card {
    min-width: 280px;
    max-width: 280px;
    height: 200px;
  }
  
  .certificate-title {
    font-size: 1rem;
  }
  
  .certificates-track {
    gap: 1.5rem;
  }
}

/* Responsive Chatbot */
@media screen and (max-width: 768px) {
  .chatbot-container {
    width: calc(100% - 20px);
    right: 10px;
    left: 10px;
    height: 450px;
  }
  
  .chatbot-toggle {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }
  
}

