body {
    background-color: #0A0A0A;
    color: #fff;
    font-family: 'Inter', sans-serif;
}

.heading {
    font-family: 'Fira Code', monospace;
}

.neon-border {
    box-shadow: 0 0 5px #00F3FF, 0 0 10px #00F3FF, 0 0 15px #00F3FF;
}

.neon-text {
    text-shadow: 0 0 5px #00F3FF, 0 0 10px #00F3FF;
}

.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    width: 100%;
    overflow: hidden;
}

.glitch::before {
    top: -2px;
    color: #00F3FF;
    z-index: -1;
    animation: glitch-anim 1s infinite;
}

.glitch::after {
    top: 2px;
    color: #00FF9D;
    z-index: -1;
    animation: glitch-anim2 1.2s infinite;
}

@keyframes glitch-anim {
    0% {
        clip: rect(0, 9999px, 0, 0);
    }

    50% {
        clip: rect(10px, 9999px, 50px, 0);
    }

    100% {
        clip: rect(0, 9999px, 0, 0);
    }
}

@keyframes glitch-anim2 {
    0% {
        clip: rect(0, 9999px, 0, 0);
    }

    50% {
        clip: rect(40px, 9999px, 70px, 0);
    }

    100% {
        clip: rect(0, 9999px, 0, 0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.7s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

#menu {
    position: fixed;
    top: 0;
    right: 0;
    transform: translateX(100%);
    width: 50%;
    height: 100%;
    background-color: rgba(17, 17, 17, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 45;
    display: flex;
    transition: transform 0.5s ease-in-out;
}

#menu.show {
    transform: translateX(0);
}

#menu>div {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    width: 100%;
    padding-top: 6rem;
    /* Tailwind pt-24 */
    padding-bottom: 4rem;
    /* Tailwind pb-16 */
    padding-left: 1.5rem;
    /* Tailwind px-6 */
    padding-right: 1.5rem;
}

#menu-toggle {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 50;
    display: none;
}

#menu-close {
    z-index: 60;
    color: #00F3FF;
    /* text-primary */
    background-color: #0A0A0A;
    /* bg-dark */
    padding: 0.5rem;
    /* Tailwind p-2 */
    border-radius: 9999px;
    /* Tailwind rounded-full */
    position: absolute;
    top: 4.5rem;
    /* Below navbar */
    left: 1rem;
    /* Left side */
    box-shadow: 0 0 5px #00F3FF, 0 0 10px #00F3FF;
    /* neon-border */
    transition: background-color 0.3s ease-in-out, transform 0.2s ease-in-out, box-shadow 0.3s ease-in-out;
}

#menu-close:hover {
    background-color: rgba(0, 243, 255, 0.3);
    /* hover:bg-primary/30 */
    transform: scale(1.1);
    /* Slight scale on hover */
    box-shadow: 0 0 8px #00F3FF, 0 0 15px #00F3FF;
}

/* back to top css */

#back-to-top {
    z-index: 50;
    color: #00F3FF;
    /* text-primary */
    background-color: #0A0A0A;
    /* bg-dark */
    padding: 0.5rem;
    /* Tailwind p-2 */
    border-radius: 9999px;
    /* Tailwind rounded-full */
    position: fixed;
    bottom: 1rem;
    /* Tailwind bottom-4 */
    right: 1rem;
    /* Tailwind right-4 */
    box-shadow: 0 0 5px #00F3FF, 0 0 10px #00F3FF;
    /* neon-border */
    transition: background-color 0.3s ease-in-out, transform 0.2s ease-in-out, box-shadow 0.3s ease-in-out, opacity 0.3s ease-in-out, scale 0.3s ease-in-out;
    touch-action: manipulation;
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

#back-to-top.visible {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

#back-to-top:hover {
    background-color: rgba(0, 243, 255, 0.3);
    /* hover:bg-primary/30 */
    transform: scale(1.1);
    /* Slight scale on hover */
    box-shadow: 0 0 8px #00F3FF, 0 0 15px #00F3FF;
    /* Enhanced neon glow */
}

#back-to-top:active {
    background-color: rgba(0, 243, 255, 0.3);
    /* hover:bg-primary/30 */
    transform: scale(1.1);
    /* Slight scale on tap */
    box-shadow: 0 0 8px #00F3FF, 0 0 15px #00F3FF;
    /* Enhanced neon glow */
}

/* active navlink  */

#nav-links a.active,
#menu a.active {
    color: #00F3FF;
    /* text-primary */
    text-shadow: 0 0 5px #00F3FF, 0 0 10px #00F3FF;
    /* neon-text */
    font-weight: 600;
}

@media (max-width: 640px) {
    #menu-close {
        padding: 0.375rem;
        /* Tailwind p-1.5 */
    }

    #back-to-top {
        padding: 0.375rem;
        /* Tailwind p-1.5 */
    }
}

@media (max-width: 768px) {
    #nav-links {
        display: none;
    }

    #menu-toggle {
        display: block;
    }

    #menu {
        width: 50%;
    }
}

@media (max-width: 640px) {
    #menu-close {
        padding: 0.375rem;
        /* Tailwind p-1.5 */
    }

    #back-to-top {
        padding: 0.375rem;
        /* Tailwind p-1.5 */
    }
}

/* Add custom spacing for reCAPTCHA badge */
.grecaptcha-badge {
  position: static !important;   /* Ensure it's fixed in position */
  bottom: 80px !important;      /* Move it further from the bottom */
  right: 20px !important;       /* Move it slightly away from the edge */
  z-index: 100;                /* Ensure it's above other content but below the "Back to Top" button */
}


/* Preloader animation */
/* Preloader animation */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #0A0A0A;  /* Black Background */
  z-index: 9999;
  opacity: 1;
  transition: opacity 1s ease-out, visibility 1s ease-out;
  flex-direction: column;  /* Stack text and loading bar vertically */
}

/* Fadeout for Preloader */
#preloader.fadeout {
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease-out, visibility 1s ease-out;
}

/* Loading bar */
#loading-bar {
  height: 4px;
  width: 0%;
  background-color: #00F3FF;  /* Neon Blue for loading bar */
  transition: width 1s ease-in-out;
  margin-top: 20px;  /* Position it below the loading text */
}

/* Loading Text */
#loading-text {
  font-size: 50px;
  font-weight: bold;
  color: #00F3FF;  /* Neon Blue text */
  text-transform: uppercase;
  position: relative;
  z-index: 10;
  display: block;
  letter-spacing: 2px;
  animation: glitch-animation 1s infinite;
}

/* Loading Percentage */
#loading-percentage {
  font-size: 25px;
  color: white;
  position: absolute;
  z-index: 10;
  bottom: 20px;
  letter-spacing: 2px;
  transition: opacity 1s ease-out;
}

/* Glitch effect for the word "Loading" */
.glitch {
  position: relative;
  display: inline-block;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  width: 100%;
  overflow: hidden;
}

.glitch::before {
  top: -2px;
  color: #00F3FF;
  z-index: -1;
  animation: glitch-anim 1s infinite;
}

.glitch::after {
  top: 2px;
  color: #00FF9D;
  z-index: -1;
  animation: glitch-anim2 1.2s infinite;
}

/* Glitch Animations */
@keyframes glitch-anim {
  0% {
    clip: rect(0, 9999px, 0, 0);
  }

  50% {
    clip: rect(10px, 9999px, 50px, 0);
  }

  100% {
    clip: rect(0, 9999px, 0, 0);
  }
}

@keyframes glitch-anim2 {
  0% {
    clip: rect(0, 9999px, 0, 0);
  }

  50% {
    clip: rect(40px, 9999px, 70px, 0);
  }

  100% {
    clip: rect(0, 9999px, 0, 0);
  }
}

/* Main content visibility after loading */
#main-content {
  display: none;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

#main-content.visible {
  display: block;
  opacity: 1;
}
