section {
  /* border-radius: 25px;  Applies a 10px radius to all four corners */
  /* Or for individual corners: */
  /* border-top-left-radius: 15px; */
  /* border-top-right-radius: 5px; */
  /* border-bottom-right-radius: 20px; */
  /* border-bottom-left-radius: 10px; */
  border: 1px solid #ccc;
  /* Optional: Add a border to make the rounded corners more visible */
  background-color: #f0f0f0;
  /* Optional: Add a background color */
  padding: 20px;
  /* Optional: Add padding for content */
}

/* Optional: Smooth fade-in for sticky navbar */
.sticky-navbar {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

/* Prevent flashing before JS kicks in */
.scroll-hidden {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s ease-out;
}

.scroll-show {
  opacity: 1;
  transform: translateY(0);
}

.transition-all {
  transition: all 0.4s ease-in-out;
}

.expanded {
  max-height: 500px;
  /* Adjust based on menu height */
}

@media (max-width: 768px) {
  #topNavbar {
    display: none !important;
  }

  #childNavbar {
    display: flex !important;
  }

}

@media (min-width: 769px) {
  #topNavbar {
    display: flex !important;
  }

  #childNavbar {
    display: flex !important;
  }
}

/* Typing and Erasing Effect */
.typing-effect {
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  border-right: 3px solid transparent;
  /* Cursor-like effect */
  width: 0;
  animation: typing 5s steps(20) 1s infinite, erase 5s steps(20) 6s infinite, blink 0.75s step-end infinite;
}

/* Typing effect */
@keyframes typing {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

/* Blinking cursor */
@keyframes blink {
  50% {
    border-color: transparent;
  }

  100% {
    border-color: black;
  }
}

/* Erase back effect */
@keyframes erase {
  from {
    width: 100%;
  }

  to {
    width: 0;
  }
}

/* Carousel Animation Styles */
@keyframes carousel {
  0% {
    transform: translateX(0%);
  }

  100% {
    transform: translateX(-50%);
  }
}

.animate-carousel {
  animation: carousel 10s linear infinite;
}
