body {
  font-family: "Inter", sans-serif;
  background-color: #08090a;
  color: #e6e6e6;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

.color {
  color: #00dc82;
}

/* Scroll Bar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-thumb {
  background: #00dc82;
  border-radius: 20px;
  margin: 2px;
}

section #projects {
  overflow: visible !important;
}

/* Scroll Slider Bar Styling Starts Here */

.scroll-bar {
  position: fixed;
  height: 3px;
  top: 0;
  left: 0;
  width: 100%;
  background: #00dc82;
  animation: scroll linear;
  animation-timeline: scroll();
  z-index: 1000;
}

@keyframes scroll {
  from {
    width: 0px;
  }

  to {
    width: 100%;
  }
}

/* Scroll Slider Bar Styling Ends Here */

.section-animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.section-animate.animate-fade-in {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

.hero-text {
  animation: fadeInUp 1s ease forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }

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

#load-more-btn {
  box-shadow: 0 0 15px rgba(0, 220, 130, 0.5);
}

#email-box {
  box-shadow: 0 0 15px rgba(0, 220, 130, 0.5);
}

#about-box {
  box-shadow: 0 0 15px rgba(0, 220, 130, 0.5);
  margin: 20px;
}

.project-card,
.skill-card,
.certificate-card,
.blog-card {
  will-change: transform, box-shadow;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover,
.certificate-card:hover,
.blog-card:hover {
  transform: scale(1.02);
  box-shadow: 0 0 15px rgba(0, 220, 130, 0.5);
}

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

.btn {
  transition: all 0.3s ease;
}

.btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0, 220, 130, 0.3);
}

.nav-link.active {
  color: #00dc82;
  border-bottom: 2px solid #00dc82;
}

.nav-link:hover {
  color: #00dc82;
  border-bottom: 2px solid #00dc82;
}

header {
  background-color: #08090a !important;
  opacity: 1 !important;
}

#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #08090a;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
  transition: opacity 0.5s ease;
}

#loader.hidden {
  opacity: 0;
  pointer-events: none;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #00dc82;
  border-top: 5px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

  100% {
    transform: rotate(360deg);
  }
}

/* Waving Animation Styling Starts Here */
.wave {
  animation-name: wave-animation;
  animation-duration: 2s;
  animation-iteration-count: infinite;
  transform-origin: 70% 70%;
  display: inline-block;
}

.link-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.link {
  font-size: 2rem;
}

.card-hover:hover {
  box-shadow: 0 0 15px rgba(0, 220, 130, 0.3);
}

@keyframes wave-animation {
  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);
  }
}

/* Waving Animation Styling Ends Here */

/* Back to Top Button Styling */
#back-to-top {
  transition: all 0.3s ease;
}

#back-to-top.show {
  opacity: 1;
  visibility: visible;
}

#back-to-top:hover {
  background-color: #00b36b;
  box-shadow: 0 0 20px rgba(0, 220, 130, 0.6);
}

/* Responsive Menu Styling */
@media (max-width: 767px) {
  #nav-menu:not(.hidden) {
    background-color: #08090a !important;
    text-align: center;
    align-items: center;
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .project-card:hover,
  .skill-card:hover,
  .certificate-card:hover,
  .blog-card:hover {
    transform: none;
    box-shadow: none;
  }

  .nav-link {
    display: block;
    /* Ensure full width for centering */
    margin-left: auto;
    margin-right: auto;
    padding: 0.5rem 0;
    /* Consistent vertical padding */
  }
}
