/* General Styles */
html {
    scroll-behavior: smooth;
  }

  .swiper {
    width: 100%;
    height: 100%;
  }
  
  .content-layer {
    position: relative;
    z-index: 1;
  }

  #home {
    background-blend-mode: multiply;
    isolation: isolate; /* Creates new stacking context */
  }
  
  #interactive-canvas {
    background: #000;
    max-width: 100%;
    transition: opacity 0.5s ease;
    mix-blend-mode: screen; /* Optional: creates nice blending with background */
    opacity: 0.9; /* Adjust based on your needs */
  }

  .swiper-slide {
    text-align: center;
    font-size: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .swiper-button-next,
  .swiper-button-prev {
    color: #459BD5;
  }

  .swiper-pagination-bullet {
    background-color: #1788ae;
  }

  .light-mode {
    background: url(./assets/images/decor-1.webp) 0 0 no-repeat, 
    url(./assets/images/decor-2.webp) right 1.5% no-repeat,
    url(./assets/images/decor-3.webp) left 14% no-repeat,
    url(./assets/images/decor-4.webp) right 30% no-repeat,
    url(./assets/images/decor-5.webp) left 40% no-repeat,
    url(./assets/images/decor-6.webp) right 50% no-repeat,
    url(./assets/images/decor-7.webp) left 60% no-repeat,
    url(./assets/images/decor-8.webp) right 70% no-repeat,
    url(./assets/images/decor-9.webp) left 98% no-repeat,
    url(./assets/images/decor-10.webp) 100% 100% no-repeat,
    url(./assets/images/decor-11.webp) left 80% no-repeat;
   
    .gradient-transition {
      background-image: linear-gradient(to left, #9180ff, #e889ff);
      transition: background-image 0.5s ease;
  }
  .gradient-transition:hover {
      background-image: linear-gradient(to left, #e889ff, #9180ff);
  }  
 
    .swiper-button-next,
  .swiper-button-prev {
    color: #E889FF;
  }
  .swiper-pagination-bullet {
    background-color: #E889FF;
  }
  }
 
.dark-mode {
  background: #111;
} 

  /* Navigation Links */
  .nav-link {
    transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
  }
  
  /* Active Navigation Link */
  .active {
    background: linear-gradient(to left, #1595b6, #1f2667e6);
    color: white !important;
  }
  
  /* About Me Section */
  #aboutMeContent {
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none; 
  }
  
  #aboutMeContent.visible {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto; 
  }
  
  /* Vibrate Animation */
  @keyframes vibrate {
    0% { transform: translateX(0); }
    25% { transform: translateX(-2px); }
    50% { transform: translateX(2px); }
    75% { transform: translateX(-2px); }
    100% { transform: translateX(0); }
  }
  
  .animate-vibrate:hover {
    animation: vibrate 0.2s linear infinite;
  }
  
  /* Footer Section */
  .footer-section [class*="-icon"],
  .copyright-text,
  #scrollTop {
    opacity: 0;
    transform: translateY(20px);
  }
  
  .footer-in-view [class*="-icon"] {
    animation: pop-in 0.6s ease-out forwards;
  }
  
  .footer-in-view .copyright-text {
    animation: fade-in 1s ease-in forwards;
  }
  
  .footer-in-view #scrollTop {
    animation: float 3s ease-in-out infinite, fade-in 0.6s ease-out forwards;
  }
  
  @keyframes pop-in {
    to { opacity: 1; transform: translateY(0); }
  }
  
  @keyframes fade-in {
    to { opacity: 1; }
  }
  
  @keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
  }
  
  /* Tooltips */
  .tooltip {
    position: absolute;
    top: -2rem;
    left: 50%;
    transform: translateX(-50%);
    background-color: #1f2937; 
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem; 
    border-radius: 0.375rem; 
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
  }
  
  a:hover .tooltip {
    opacity: 1;
  }
  
  /* Scroll Top Button */
  #scrollTop {
    animation: float 3s ease-in-out infinite;
  }
  
  /* Gradient Transition */
  .gradient-transition-dark {
    background-image: linear-gradient(to left, #1595b6, #1f2667e6);
    transition: background-image 0.5s ease;
  }
  
  .gradient-transition-dark:hover {
    background-image: linear-gradient(to left, #1f2667e6, #1595b6);
  }
  
  .hologram-text {
    background: linear-gradient(
      45deg,
      #6366f1 25%,
      #8b5cf6 50%,
      #ec4899 75%,
      #f59e0b 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    animation: hologram 8s infinite;
  }
  
  @keyframes hologram {
    0%, 100% {
      opacity: 1;
      filter: hue-rotate(0deg);
      transform: translateY(0);
    }
    25% {
      opacity: 0.8;
      filter: hue-rotate(90deg) blur(1px);
      transform: translateY(-2px);
    }
    50% {
      opacity: 0.9;
      filter: hue-rotate(180deg) blur(2px);
      transform: translateY(2px);
    }
    75% {
      opacity: 0.85;
      filter: hue-rotate(270deg) blur(1px);
    }
  }
  @keyframes text-morph {
    0% {
      content: "Full Stack Developer";
    }
    33% {
      content: "MERN Stack Developer";
    }
    66% {
      content: "Software Engineer";
    }
  }
  
  .hologram-text::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: inherit;
    filter: blur(10px);
    z-index: -1;
    opacity: 0.3;
  }
  
  .hologram-text::after {
    content: "Full Stack Developer";
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(
      90deg,
      transparent 25%,
      rgba(255,255,255,0.1) 50%,
      transparent 75%
    );
    -webkit-background-clip: text;
    background-clip: text;
    background-size: 200% auto;
    animation: shimmer 3s infinite linear;
  }
  
  @keyframes shimmer {
    to {
      background-position: 200% center;
    }
  }

  .role-container {
    perspective: 1000px;
    display: inline-block;
  white-space: nowrap;
  }
  
  .role-item {
    position: absolute;
  opacity: 0;
  transform: translateY(20px) rotateX(-40deg);
  animation: roleSwitch 12s infinite cubic-bezier(0.4, 0, 0.2, 1);
  left: 0;
  right: 0;
  white-space: nowrap;
  }
  
  .role-item:nth-child(1) { animation-delay: 0s; }
  .role-item:nth-child(2) { animation-delay: 4s; }
  .role-item:nth-child(3) { animation-delay: 8s; }
  
  @keyframes roleSwitch {
    0% {
      opacity: 0;
      transform: translateY(20px) rotateX(-40deg);
    }
    10%, 30% {
      opacity: 1;
      transform: translateY(0) rotateX(0);
    }
    40%, 100% {
      opacity: 0;
      transform: translateY(-20px) rotateX(40deg);
    }
  }
  
  /* Gradient underline animation */
  .role-container::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899);
    animation: underlineFlow 12s infinite;
  }
  
  @keyframes underlineFlow {
    0%, 33.3% { transform: scaleX(0); }
    10%, 23.3% { transform: scaleX(1); }
    33.4% { transform: scaleX(0); transform-origin: right; }
    66.6% { transform: scaleX(0); }
  }
  
  .chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.chatbot-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
   
}

.chatbot-button i {
    color: white;
    font-size: 24px;
}

.chatbot-window {
    width: 300px;
    height: 400px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.chatbot-header {
    color: white;
    padding: 10px 15px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-messages {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    color: black;
}

.chatbot-input {
    display: flex;
    padding: 10px;
    border-top: 1px solid #ddd;
    color: black;
}

.chatbot-input input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
}

.chatbot-input button {
    color: white;
    border: none;
    border-radius: 20px;
    padding: 8px 15px;
    margin-left: 5px;
    cursor: pointer;
}

.message {
    margin: 5px 0;
    padding: 8px 12px;
    border-radius: 15px;
    max-width: 80%;
}

.bot-message {
    background: #f1f1f1;
    align-self: flex-start;
}

.user-message {
  background-image: linear-gradient(to left, #9180ff, #e889ff);
  transition: background-image 0.5s ease;
    color: white;
    align-self: flex-end;
    margin-left: auto;
}

.dark-mode .user-message {
  background-image: linear-gradient(to left, #1595b6, #1f2667e6);
  transition: background-image 0.5s ease;
}

 