:root {
  --primary-color: #E31E24;
  /* Power Red */
  --secondary-color: #1A1A1A;
  /* Deep Charcoal */
  --accent-color: #4A4A4A;
  /* Slate Gray */
  --text-color: #1A1A1A;
  /* Deep Charcoal */
  --dark-color: #1A1A1A;
  /* Deep Charcoal */
  --light-color: #F8F9FA;
  /* Off-White */
  --success-color: #27AE60;
  /* Emerald */
}

/* Navbar */
.navbar {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 12px 0;
}

.navbar-brand img {
  height: 40px;
}

.navbar-nav .nav-link {
  font-weight: 500;
}

.btn-primary {
  background-color: var(--primary-color);
  border: none;
  border-radius: 5px;
  padding: 10px 25px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: #3a5ccc;
  transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg,
      rgba(227, 30, 36, 0.95) 0%,
      rgba(139, 0, 0, 0.95) 100%),
    url("../../images/hero-bg.jpg") center/cover no-repeat;
  color: white;
  padding: 120px 0;
  text-align: center;
}

.hero-title {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 15px;
}

.hero-subtitle {
  font-size: 1.4rem;
  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.card-body {
  display: flex;
  flex-direction: column;
}

/* Features */
.features-section {
  padding: 80px 0;
  background-color: white;
}

.feature-box {
  text-align: center;
  padding: 30px 20px;
  margin-bottom: 30px;
  border-radius: 10px;
  transition: all 0.3s ease;
  background-color: var(--light-color);
}

.feature-box:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-5px);
}

.feature-icon {
  width: 70px;
  height: 70px;
  background-color: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin: 0 auto 15px;
  font-size: 28px;
  transition: all 0.3s ease;
}

.feature-box:hover .feature-icon {
  background-color: white;
  color: var(--primary-color);
}

/* CTA */
.cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg,
      rgba(139, 0, 0, 0.95) 0%,
      rgba(227, 30, 36, 0.95) 100%),
    url("../../images/hero-bg.jpg") center/cover no-repeat;
  color: white;
  text-align: center;
}

.cta-sectionsecond {
  padding: 80px 0;
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.9) 0%,
      rgba(255, 255, 255, 0.9) 100%),
    url("../../images/hero-bg.jpg") center/cover no-repeat;
  color: black;
  text-align: center;
}

.cta-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 20px;
}

/* Footer */
.footer {
  background-color: var(--dark-color);
  color: white;
  padding: 50px 0 30px;
}

.footer-title {
  font-size: 1.2rem;
  margin-bottom: 20px;
  position: relative;
}

.footer-title::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  background: var(--accent-color);
  margin: 10px 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: #ddd;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  background-color: #212529;
  padding-left: 5px;
}

.social-links a {
  color: white;
  margin-right: 12px;
  transition: all 0.3s ease;
}

.social-links a:hover {
  color: var(--accent-color);
  transform: translateY(-3px);
}

#loadMoreBtn {
  display: block;
  /* default block */
  margin: 20px auto 0 auto;
  /* top margin 20px, auto horizontal to center */
}

body {
  font-family: "Segoe UI", sans-serif;
  color: var(--text-color);
  scroll-behavior: smooth;
}

.navbar {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 12px 0;
}

.navbar-brand img {
  height: 40px;
}

.btn-primary {
  background-color: var(--primary-color);
  border: none;
  border-radius: 5px;
  transition: 0.3s;
}

.btn-primary:hover {
  background-color: #c0191e;
  transform: translateY(-2px);
}

.btn-outline-primary {
  color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:active,
.btn-outline-primary:focus {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: #fff !important;
}

/* Search Input Focus */
.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(227, 30, 36, 0.25);
}

.hero-section {
  background: linear-gradient(135deg,
      rgba(227, 30, 36, 0.95),
      rgba(139, 0, 0, 0.95)),
    url("../../images/hero-bg.jpg") center/cover no-repeat;
  color: white;
  padding: 120px 0;
  text-align: center;
}

.hero-title {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 15px;
}

.hero-subtitle {
  font-size: 1.4rem;
  margin-bottom: 30px;
}

/* Services Section */
.services-section {
  padding: 20px 0;
  background-color: var(--light-color);
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
  font-weight: 700;
  color: var(--dark-color);
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: var(--primary-color);
  margin: 15px auto 0;
  border-radius: 2px;
}

.service-card {
  border: none;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    box-shadow 0.3s ease;
  background: #fff;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.service-img-container {
  width: 100%;
  height: 250px;
  overflow: hidden;
  position: relative;
}

.service-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-img {
  transform: scale(1.1);
}

/* =========================
   Categories Section
========================= */

.categories-section .row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

/* Category card */
.category-card {
  width: 100%;
  aspect-ratio: 1 / 1.1;
  border-radius: 12px;
  background-color: #fff;
  border: 1px solid #eee;
  padding: 15px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;

  cursor: pointer;
  transition: all 0.3s ease;
}

/* Image */
.category-card img {
  width: 50%;
  height: 50%;
  object-fit: contain;
  margin-bottom: 12px;
  transition: transform 0.3s ease;
}

/* Title */
.category-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0;
  color: #333;
  line-height: 1.2;
}

/* Hover effect */
.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-color);
}

.category-card:hover img {
  transform: scale(1.1);
}

/* Categories carousel buttons */
#categoriesCarousel .carousel-control-prev,
#categoriesCarousel .carousel-control-next {
  width: 40px;
  height: 40px;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  z-index: 10;
}

#categoriesCarousel .carousel-control-prev-icon,
#categoriesCarousel .carousel-control-next-icon {
  background-size: 100%, 100%;
  background-image: none;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  color: white;
}

#categoriesCarousel .carousel-control-prev-icon::after {
  content: "<";
  color: black;
}

#categoriesCarousel .carousel-control-next-icon::after {
  content: ">";
  color: black;
}

.service-card-wrapper {
  transition: all 0.3s ease;
}

/* Hide scrollbar for categories */
.categories-container::-webkit-scrollbar {
  display: none;
}

.categories-container {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .feature-icon {
    width: 60px;
    height: 60px;
    font-size: 24px;
  }
}

@media (max-width: 576px) {
  .hero-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .service-card {
    margin-bottom: 20px;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 40px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.animate-on-scroll {
  opacity: 0;
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  transform: translateY(30px);
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}