/* ---------------------------------- */
/* General Reset */
/* ---------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #fdfdfd;
}

.navbar {
  background-color: #003049;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-left {
  display: flex;
  align-items: center;
}

.logo {
  height: 60px;
  margin-right: 12px;
}

.brand {
  font-weight: 700;
  color: white;
  font-size: 22px;
  text-decoration: none;
}

.navbar-right a {
  color: white;
  margin-left: 25px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: color 0.3s;
}

.navbar-right a:hover {
  color: #ffd700;
}

.menu-icon {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: white;
}
/* ---------------------------------- */
/* Banner Section */
/* ---------------------------------- */
.products-banner {
  background-image: url('./BG/P1.jpeg');
  background-size: cover;
  background-position: center;
  height: 320px;
  position: relative;
  border-bottom: #003049;
}

.products-overlay {
  background: rgba(0, 0, 0, 0.5);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.products-overlay h1 {
  color: white;
  font-size: 52px;
  font-weight: 700;
  text-shadow: 2px 2px 10px red;
  animation: fadeIn 2s ease-in-out;
}

/* ---------------------------------- */
/* Buttons & Select */
/* ---------------------------------- */
.btn-group .btn {
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 30px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
  transition: all 1.2s ease;
}

.btn-group .btn:hover {
  transform: scale(1.05);
}

select.form-select {
  padding: 12px;
  border-radius: 10px;
  border: 2px solid #ccc;
  font-weight: 500;
}

/* ---------------------------------- */
/* Carousel */
/* ---------------------------------- */
.carousel-item {
  position: relative;
  background: url('./BG/e1.jpg') no-repeat center center;
  background-size: cover;
  border-radius: 20px;
  overflow: hidden;
  transition: transform 3.5s ease-in-out !important;
}

.carousel-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.6);
  z-index: 1;
}

.carousel-inner img {
  position: relative;
  z-index: 2;
  max-height: 700px;
  width: 100%;
  object-fit: contain;
  padding: 40px;
  border-radius: 20px;
  transition: transform 0.5s ease-in-out;
}

.carousel-inner img:hover {
  transform: scale(1.03);
}


.carousel-control-prev,
.carousel-control-next {
  display: none;
}

/* Carousel Buttons */
.carousel-buttons {
  text-align: center;
  margin-top: 30px;
}

.carousel-buttons .btn {
  font-size: 16px;
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 600;
  letter-spacing: 1px;
  background-color: #dc3545;
  color: white;
  border: none;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3);
}

.carousel-buttons .btn:hover {
  background-color: #b02a37;
  transform: scale(1.05);
}

/* Carousel Caption */
.carousel-caption {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  background: rgba(0, 0, 0, 0.55);
  padding: 12px 28px;
  border-radius: 15px;
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  text-align: center;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  font-family: 'Poppins', sans-serif;
  letter-spacing: 0.5px;
  animation: fadeInUp 1s ease-in-out;
  transition: all 0.4s ease;
  max-width: 90%;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.carousel-caption:hover {
  background: rgba(220, 53, 69, 0.8);
  transform: translateX(-50%) scale(1.05);
}

.carousel-caption h5 {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.4;
}

/* Carousel Page Number */
.carousel-page-number {
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: inline-block;
  padding: 10px 22px;
  border-radius: 50px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  border: 2px solid transparent;
  background-clip: padding-box;
  position: relative;
  transition: all 0.4s ease;
  text-align: center;
}

.carousel-page-number::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  z-index: -1;
  background: linear-gradient(135deg, #dc3545, #ffc107, #28a745);
  border-radius: 50px;
  background-size: 400% 400%;
  animation: borderAnimation 6s ease infinite;
}

.carousel-page-number span {
  color: #ffc107;
}

.carousel-page-number:hover {
  transform: scale(1.05);
}

/* ---------------------------------- */
/* Product Section */
/* ---------------------------------- */
h2 {
  font-size: 32px;
  font-weight: 600;
  color: #dc3545;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 30px;
  border-bottom: 3px solid #dc3545;
  display: inline-block;
}

.header input {
  margin-top: 10px;
  padding: 10px;
  width: 60%;
  max-width: 400px;
  border-radius: 5px;
  border: none;
  font-size: 16px;
}

/* Product Grid */
.product-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px 40px;
  padding: 40px 20px;
  max-width: 1400px;
  margin: auto;
}


.product {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding: 25px 15px;
  transition: transform 0.3s;
  min-height: 300px;
}


.product:hover {
  transform: translateY(-8px);
}

.product img {
  max-width: 100%;
  height: 160px;
  object-fit: contain;
  margin-bottom: 15px;
}

.product-name {
  font-size: 18px;
  color: #333;
}

/* ---------------------------------- */
/* Image Modal Styles */
/* ---------------------------------- */
.modal-backdrop.show {
  opacity: 0.85;
  background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
  background-color: #ffffff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.modal-body img {
  max-height: 80vh;
  object-fit: contain;
}

#modalImage {
  max-height: 75vh;
  object-fit: contain;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

#modalImage:hover {
  transform: scale(1.03);
}

#modalName {
  text-align: center;
  font-size: 2.2rem;       /* Increased further for desktop */
  color: #222;
  font-weight: 800;
  margin-top: 15px;
  line-height: 1.4;
}

@media (max-width: 576px) {
  #modalName {
    font-size: 1.6rem;     /* Larger on small screens too */
  }
}
.text-shadow {
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
}

/* ---------------------------------- */
/* Footer */
/* ---------------------------------- */
.footer {
  background-color: #003049;
  color: white;
  text-align: center;
  padding: 15px;
  margin-top: 40px;
}

/* ---------------------------------- */
/* Animations */
/* ---------------------------------- */
@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate(-50%, 40px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@keyframes borderAnimation {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* ---------------------------------- */
/* Responsive */
/* ---------------------------------- */
@media (max-width: 768px) {
  .carousel-caption {
    font-size: 16px;
    padding: 10px 20px;
  }

  .carousel-caption h5 {
    font-size: 1.2rem;
  }
}

/* ---------------------------------- */
/* Checkbox Filter Styles */
/* ---------------------------------- */
#equipmentFilter,
#productFilter {
  padding: 20px;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
}

#equipmentFilter label,
#productFilter label {
  font-size: 16px;
  font-weight: 500;
  color: #333;
}

#equipmentFilter .form-check,
#productFilter .form-check {
  margin-bottom: 10px;
}

.form-check-input {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 2px solid #ccc;
  cursor: pointer;
  transition: 0.3s;
}

.form-check-input:checked {
  background-color: #dc3545;
  border-color: #dc3545;
}

.form-check-label {
  margin-left: 8px;
  font-size: 15px;
  color: #222;
  cursor: pointer;
  user-select: none;
}

#equipmentFilter .fw-bold,
#productFilter .fw-bold {
  font-size: 18px;
  color: #003049;
  margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 768px) {
  #equipmentFilter,
  #productFilter {
    padding: 15px;
  }

  .form-check-label {
    font-size: 14px;
  }
}

/* Responsive Mobile Menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  background-color: #003049;
}

.mobile-menu a {
  padding: 10px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  text-decoration: none;
}

.mobile-menu a:hover {
  background-color: #002233;
}

@media (max-width: 768px) {
  .navbar-right {
    display: none;
  }

  .menu-icon {
    display: inline-block;
    font-size: 28px;
    cursor: pointer;
    color: white;
  }

  .mobile-menu.show {
    display: flex;
  }
}

