* {
  font-family: "Inter", sans-serif;
  user-select: none;
}

.gradient-bg {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gradient-text {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.floating {
  animation: floating 3s ease-in-out infinite;
}

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

.typing-effect::after {
  content: "|";
  animation: blink 1s infinite;
}

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

.skill-card {
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.skill-card:hover {
  transform: translateY(-10px) scale(1.05);
}

.glow-effect {
  box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
}

.morphism {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.dark .morphism {
  background: rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.handwriting {
  font-family: "Brush Script MT", cursive;
  animation: handwrite 2s ease-in-out;
}

@keyframes handwrite {
  0% {
    opacity: 0;
    transform: translateX(-20px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.ai-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #667eea;
  border-radius: 50%;
  animation: particle-float 4s ease-in-out infinite;
}

@keyframes particle-float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  33% {
    transform: translateY(-30px) rotate(120deg);
  }
  66% {
    transform: translateY(-15px) rotate(240deg);
  }
}

.slider-item {
  min-width: 100%;
  transition: transform 0.5s ease;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion-content.open {
  max-height: 1000px;
}

.neural-network {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.1;
}

/* Navigation Styles */
.nav-container {
  position: fixed;
  width: 100%;
  z-index: 50;
  backdrop-filter: blur(12px);
  background-color: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid rgba(229, 231, 235, 0.5);
  transition: all 0.3s ease;
}

.dark .nav-container {
  background-color: rgba(17, 24, 39, 0.8);
  border-bottom-color: rgba(55, 65, 81, 0.5);
}

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 500;
  color: rgb(55, 65, 81);
  transition: color 0.2s ease;
}

.dark .nav-link {
  color: rgb(209, 213, 219);
}

.nav-link i {
  font-size: 0.875rem;
  opacity: 0.7;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, rgb(139, 92, 246), rgb(59, 130, 246));
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: rgb(124, 58, 237);
}

.dark .nav-link:hover {
  color: rgb(167, 139, 250);
}

.nav-link:hover::after {
  width: 100%;
}

/* Mobile Menu Animation */
.mobile-menu-enter {
  max-height: 0;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease-in-out;
}

.mobile-menu-enter-active {
  max-height: 500px;
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu-exit {
  max-height: 500px;
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu-exit-active {
  max-height: 0;
  opacity: 0;
  transform: translateY(-10px);
}

/* Mobile Navigation Links */
.mobile-nav-link {
  display: flex;
  align-items: center;
  padding: 0.75rem;
  color: rgb(55, 65, 81);
  border-radius: 0.75rem;
  transition: background-color 0.2s ease;
}

.dark .mobile-nav-link {
  color: rgb(209, 213, 219);
}

.mobile-nav-link:hover {
  background-color: rgb(243, 244, 246);
}

.dark .mobile-nav-link:hover {
  background-color: rgb(31, 41, 55);
}

.mobile-nav-link i {
  margin-right: 0.75rem;
}

/* Active Navigation Link */
.nav-link.active {
  color: rgb(124, 58, 237);
}

.dark .nav-link.active {
  color: rgb(167, 139, 250);
}

.nav-link.active::after {
  width: 100%;
}

/* Navigation Logo Container */
.logo-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-container .logo {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background: linear-gradient(to right, rgb(139, 92, 246), rgb(59, 130, 246));
  transition: transform 0.2s ease;
}

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

.logo-container .logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(to right, rgb(124, 58, 237), rgb(59, 130, 246));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Theme Toggle Button */
.theme-toggle {
  padding: 0.5rem;
  border-radius: 0.75rem;
  background-color: rgb(243, 244, 246);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.dark .theme-toggle {
  background-color: rgb(31, 41, 55);
}

.theme-toggle:hover {
  transform: scale(1.05);
  background-color: rgb(229, 231, 235);
}

.dark .theme-toggle:hover {
  background-color: rgb(55, 65, 81);
}

/* Chat Interface Styles */
.chat-widget {
  position: fixed;
  right: 2rem;
  bottom: 2rem;
  width: 300px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
  touch-action: none;
  will-change: transform;
  user-select: none;
}



.chat-header {
  padding: 1rem;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: move;
  touch-action: none; /* Prevent default touch behavior */
  user-select: none; /* Prevent text selection during drag */
}

.chat-messages {
  height: 250px;
  overflow-y: auto;
  padding: 1rem;
}

.chat-input-container {
  padding: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
}

/* Enhanced Home Section Decorations */
.floating-shape {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.1),
    rgba(139, 92, 246, 0.1)
  );
  animation: float 6s ease-in-out infinite;
}

#chat-body {
  transition: max-height 0.3s ease, opacity 0.3s ease;

  overflow: hidden;
}

/* Add smooth transition for collapse/expand */
#chat-body.collapsed {
  height: 0;
  opacity: 0;
}
.shape-1 {
  width: 100px;
  height: 100px;
  top: 10%;
  left: 5%;
  animation-delay: 0s;
}
.shape-2 {
  width: 150px;
  height: 150px;
  top: 20%;
  right: 10%;
  animation-delay: 1s;
}
.shape-3 {
  width: 80px;
  height: 80px;
  bottom: 15%;
  left: 15%;
  animation-delay: 2s;
}

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

@keyframes shine {
  to {
    transform: translateX(100%);
  }
}

.animate-shine {
  animation: shine 2s infinite;
}

/* Add hover effect for skill items */
.skill-card:hover .skill-progress {
  transform: scaleX(1);
}

.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 12px;
}

.typing-indicator span {
  width: 4px;
  height: 4px;
  background: #a855f7;
  border-radius: 50%;
  animation: typing 1s infinite ease-in-out;
}

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

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

/* Hero Section Responsive Styles */

/* Testimonial Slider Responsive */
.testimonialSwiper {
  padding: 15px !important;
  margin: 0 -15px;
}

@media (min-width: 640px) {
  .testimonialSwiper {
    padding: 20px 30px !important;
    margin: 0;
  }
}

/* Adjust swiper slide heights */
.swiper-slide {
  height: auto !important;
}

/* Mobile-first padding adjustments */
.testimonialSwiper .swiper-slide > div {
  padding: 12px;
}

@media (min-width: 640px) {
  .testimonialSwiper .swiper-slide > div {
    padding: 16px;
  }
}

/* Hide navigation on mobile */
.testimonialSwiper .swiper-button-next,
.testimonialSwiper .swiper-button-prev {
  display: none;
}

@media (min-width: 640px) {
  .testimonialSwiper .swiper-button-next,
  .testimonialSwiper .swiper-button-prev {
    display: flex;
  }
}
