.error {
  color: #dc3545;
  font-size: 0.875em;
  margin-top: 0.25rem;
}

.success {
  color: #28a745;
  font-weight: 600;
  margin-bottom: 1rem;
}

body {
  background: #f9fafb;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1rem;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* Start Header Section */

#header.sticky-top {
  top: 0;
  z-index: 1030;
  /* Bootstrap navbar default */
}

/* Navbar Section */
.navbar-nav .separator {
  opacity: 0.5;
  pointer-events: none;
  /* Optional: prevent hover/click */
  user-select: none;
  /* Optional: prevent text selection */
}

/* Base styling for nav links */
.navbar-nav .nav-link {
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.5px;
  text-transform: capitalize;
  color: #333 !important;
  transition: color 0.3s ease, background-color 0.3s ease;
  padding: 0.5rem 0.75rem;
}

/* Hover effect */
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  color: #0d6efd !important;
  background-color: rgba(13, 110, 253, 0.05);
  border-radius: 4px;
}

/* Active state */
.navbar-nav .nav-link.active {
  color: #0d6efd !important;
  font-weight: 700;
  border-bottom: 2px solid #0d6efd;
}

/* Pipe separator style */
.navbar-nav .separator {
  opacity: 0.3;
  user-select: none;
  pointer-events: none;
}

button.btn-primary {
  font-weight: 600;
  padding: 0.75rem;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgb(13 110 253 / 0.3);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

button.btn-primary:hover {
  background-color: #0b5ed7;
  box-shadow: 0 6px 20px rgb(11 94 215 / 0.5);
}

/* End Header Section */
.carousel-item {
  height: 480px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  transition: transform 0.5s ease-in-out, filter 0.4s ease-in-out;
}

.carousel-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.3),
    rgba(0, 0, 0, 0.85)
  );
  z-index: 1;
}

.carousel-caption {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  text-align: center;
  padding: 1rem;
  color: #fff;
  animation: fadeInUp 1.2s ease forwards;
  opacity: 0;
}

.caption-overlay {
  background-color: rgba(0, 0, 0, 0.55); /* semi-black overlay */
  backdrop-filter: blur(4px); /* optional: subtle blur effect behind text */
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
}

.carousel-item.active .carousel-caption {
  opacity: 1;
}

.carousel-caption h1 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.carousel-caption p {
  font-size: 1.25rem;
  font-weight: 400;
  margin-top: 1rem;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

.banner-caption-bg {
  background-color: rgba(0, 0, 0, 0.65);
  padding: 1.5rem;
  border-radius: 1rem;
  max-width: 85%;
  width: 750px;
  margin: 0 auto;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 50%;
  padding: 1rem;
  transition: background-color 0.3s;
}

.carousel-control-prev-icon:hover,
.carousel-control-next-icon:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

.carousel-indicators [data-bs-target] {
  background-color: #ffffff;
  width: 12px;
  height: 12px;
  border-radius: 100%;
  margin: 0 5px;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.carousel-indicators .active {
  opacity: 1;
  background-color: #0d6efd;
}

/* Animation */
@keyframes fadeInUp {
  0% {
    transform: translate(-50%, -40%);
    opacity: 0;
  }
  100% {
    transform: translate(-50%, -50%);
    opacity: 1;
  }
}

/* Responsive Styles */
@media (max-width: 768px) {
  .carousel-item {
    height: 60vh;
  }

  .carousel-caption h1 {
    font-size: 1.75rem;
  }

  .carousel-caption p {
    font-size: 1rem;
  }

  .banner-caption-bg {
    padding: 1rem;
    width: 90%;
  }

  .carousel-control-prev-icon,
  .carousel-control-next-icon {
    width: 40px;
    height: 40px;
  }
}

/* ABOUT SECTION */
section#about {
  background: #fff;
  width: 100%;
  padding: 2.5rem 2rem 3rem;
  border-radius: 1rem;
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.1);
}
#about a:hover {
  color: #ff9900 !important;
  text-decoration: underline;
}

/* Feature SECTION */
section#feature {
  background: #fff;
  width: 100%;
  padding: 2.5rem 2rem 3rem;
  border-radius: 1rem;
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.1);
}

.feature-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  box-shadow: 0 0 15px rgba(0, 123, 255, 0.5);
  transform: translateY(-5px) scale(1.05);
  cursor: pointer;
}

/* CONTACT SECTION */
section#contact {
  background: #fff;
  width: 100%;
  padding: 2.5rem 4rem 3rem;
  border-radius: 1rem;
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.1);
}

section#contact h2 {
  font-weight: 700;
  color: #0d6efd;
  margin-bottom: 2rem;
  text-align: center;
}

/* Input focus style */
.form-control:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.25rem rgb(13 110 253 / 0.25);
}

/* Alerts margin */
.alert {
  margin-bottom: 1.5rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 1rem;
}
