/* Slide-in animation for desktop sidebar */

#sidebarMenu {
    transform: translateX(-100%);
    animation: slideIn 0.5s ease-out forwards;
  }

  @keyframes slideIn {
    to {
      transform: translateX(0);
    }
  }

  /* Hover effect for sidebar links */
  #sidebarMenu .nav-link {
    position: relative;
    transition: color 0.3s ease;
  }

  #sidebarMenu .nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background-color: #0d6efd;
    transition: width 0.3s ease;
  }

  #sidebarMenu .nav-link:hover::before {
    width: 100%;
  }

  #sidebarMenu .nav-link:hover {
    color: #0d6efd !important;
  }

  /* === Offcanvas Mobile Sidebar Enhancements === */
  .offcanvas {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateX(-100%);
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.4s ease;
  }

  .offcanvas.show {
    transform: translateX(0);
    opacity: 1;
    animation: bounceIn 0.6s ease;
  }

  @keyframes bounceIn {
    0% {
      transform: translateX(-100%);
    }

    60% {
      transform: translateX(10px);
    }

    80% {
      transform: translateX(-5px);
    }

    100% {
      transform: translateX(0);
    }
  }

  .offcanvas-body .profile-box {
    text-align: center;
    margin-bottom: 1.5rem;
  }

  .offcanvas-body .profile-box img {
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    border: 2px solid #ffffff33;
  }

  .offcanvas-body .nav-link {
    opacity: 0;
    transform: translateX(-10px);
    animation: fadeSlideIn 0.4s ease forwards;
    animation-delay: calc(var(--i) * 0.1s);
    margin-bottom: 10px;
    position: relative;
    transition: all 0.3s ease;
  }

  @keyframes fadeSlideIn {
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

  .offcanvas-body .nav-link:hover {
    color: #0d6efd !important;
    text-shadow: 0 0 5px #0d6efd;
  }

  .offcanvas-body::-webkit-scrollbar {
    width: 6px;
  }

  .offcanvas-body::-webkit-scrollbar-thumb {
    background-color: #ffffff33;
    border-radius: 3px;
  }

  .typing-container {
    position: relative;
    display: inline-block;
    padding-bottom: 6px;
  }

  #typed-text {
    font-size: 2rem;
    font-weight: bold;
    white-space: nowrap;
    letter-spacing: 1.5px;
  }

  #typed-text::after {
    content: "|";
    animation: blink 0.8s infinite;
    margin-left: 5px;
    color: #0d6efd;
    /* Dark Green Cursor */
  }

  @keyframes blink {

    0%,
    100% {
      opacity: 1;
    }

    50% {
      opacity: 0;
    }
  }

  .lightflow-line {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: #111;
    overflow: hidden;
  }

  .lightflow-line::before {
    content: "";
    position: absolute;
    height: 100%;
    width: 60px;
    background: linear-gradient(90deg, transparent, #fff, transparent);
    animation: lightFlow 2.5s linear infinite;
  }

  @keyframes lightFlow {
    0% {
      left: -60px;
    }

    100% {
      left: 100%;
    }
  }
  .btn-resume {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    background: transparent;
    border: 2px solid transparent;
   
    font-size: 14px;
    font-weight: bold;
    overflow: hidden;
    text-decoration: none;
}

/* Creating the flowing border */
.btn-resume::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    border-radius: 5px;
    border: 2px solid transparent;
    background: linear-gradient(90deg, transparent, #ffffff, transparent) border-box;
    mask: linear-gradient(90deg, transparent, #ffffff, transparent) border-box;
    -webkit-mask: linear-gradient(90deg, transparent, #ffffff, transparent) border-box;
    animation: border-flow 2s linear infinite;
}

/* Animation for the flowing light effect */
@keyframes border-flow {
    0% { transform: translateX(-100%) translateY(0%); }
    25% { transform: translateX(0%) translateY(100%); }
    50% { transform: translateX(100%) translateY(0%); }
    75% { transform: translateX(0%) translateY(-100%); }
    100% { transform: translateX(-100%) translateY(0%); }
}

/* Hover effect */
.btn-resume:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

  .fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out, transform 1s ease-out;
  }

  /* Hover Effect for Links */
  .hover-underline {
    position: relative;
  }

  .hover-underline::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background: #ffc107;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease-in-out;
  }

  .hover-underline:hover::after {
    transform: scaleX(1);
    transform-origin: left;
  }

 /* Social Icons with White Background and Original Color on Hover */
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: 1.5rem;
  border-radius: 50%;
  background: white;
  color: black;
  transition: background 0.3s ease-in-out, transform 0.3s ease-in-out, color 0.3s ease-in-out;
}

.social-icon:hover {
  transform: translateY(-3px);
}

.linkedin:hover {
  background: #0a66c2;
  color: white;
}

/* LinkedIn */
.github:hover {
  background: #171515;
  color: white;
}

/* GitHub */
.instagram:hover {
  background: #e4405f; /* Instagram's official color */
  color: white;
}

/* Instagram */
.email:hover {
  background: #db4437;
  color: white;
}


/* Educations */

