/* Global Theme */
body {
  background-color: #000;
  color: #007bff; /* Blue theme */
}

/* logo */
.navbar-brand {
  height: 60px;
  width: 60px;
  background-image: url(images/logo.jpg);
  background-position: center;
  background-size: cover;
  /* border: 1px solid red; */
}

/* Navbar */
.navbar {
  padding-left: 40px;
  padding-right: 40px;
}

.navbar .nav-link,
.navbar-brand {
  color: #007bff;
}

.navbar .nav-link:hover,
.navbar .dropdown-item:hover {
  color: #dfebf8 !important; /* Lighter blue on hover */
}

.social-icons a {
  font-size: 1.5rem;
  padding-left: 10px;
}

/* Dropdown Menu Styling */
.dropdown-menu {
  background-color: #000;
  border: none;
}
/* Ensure dropdown opens on hover */
.nav-item.dropdown:hover .dropdown-menu {
  display: block;
  margin-top: 0; /* Remove default offset */
}

.dropdown-item {
  color: #007bff;
}

.dropdown-item:hover {
  color: #fff;
  background-color: #0056b3;
}

/* Hero Section */
.hero-section {
  position: relative;
  overflow: hidden;
}

.hero-section .carousel-item {
  height: 70vh; /* Responsive height based on viewport */
  min-height: 400px; /* Minimum height for very small screens */
  max-height: 600px; /* Maximum height for very large screens */
}

.hero-section .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease-in-out;
}

/* Add smooth fade transition */
.carousel-item {
  transition: transform 0.6s ease-in-out;
}

/* Optional: Add subtle zoom effect on hover */
.hero-section .carousel-item:hover img {
  transform: scale(1.02);
}

/* Ensure carousel controls are visible */
.carousel-control-prev,
.carousel-control-next {
  width: 5%;
  opacity: 0.8;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1;
}

/* K&B Hover Theme */
body.theme-kb {
  background-color: rgb(0, 0, 12);
  color: grey;
}

body.theme-kb .navbar .nav-link,
body.theme-kb .navbar-brand,
body.theme-kb .social-icons a {
  color: grey;
}
.whatsapp-icon {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25d366;
  border-radius: 50%;
  padding: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  z-index: 1000;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.whatsapp-icon:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.whatsapp-icon img {
  width: 60%;
  height: 60%;
}

@media (max-width: 576px) {
  .whatsapp-icon {
    bottom: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
  }
}

/* Products Page Styling */
.hero-banner {
  position: relative;
  overflow: hidden;
  max-height: 300px;
}

.hero-banner img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  filter: brightness(0.7);
}

.product-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: #0c0c0c;
  border: 1px solid #1a1a1a;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 123, 255, 0.2);
}

.product-card .card-body {
  background-color: #0c0c0c;
  color: #007bff;
}

.product-card .card-title {
  color: #007bff;
  font-weight: 600;
}

.page-link {
  background-color: #0c0c0c;
  color: #007bff;
  border-color: #1a1a1a;
}

.page-item.active .page-link {
  background-color: #007bff;
  border-color: #007bff;
  color: #fff;
}

.page-link:hover {
  background-color: #1a1a1a;
  color: #007bff;
}

/* Form Controls */
.form-control,
.form-select,
.form-check-input,
textarea,
input,
select,
button {
  background-color: #0c0c0c;
  color: #007bff;
  border: 1px solid #1a1a1a;
  outline: none !important;
  box-shadow: none !important;
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus,
textarea:focus,
input:focus,
select:focus,
button:focus {
  background-color: #0c0c0c;
  color: #007bff;
  border-color: #007bff !important;
  box-shadow: none !important;
  outline: none !important;
}

/* Completely remove Bootstrap focus styles */
*:focus {
  box-shadow: none !important;
  outline: none !important;
}

/* Add border styles for better visibility without outline */
.form-control:focus,
.form-select:focus,
input:focus,
textarea:focus,
select:focus {
  border: 1px solid #007bff !important;
}

/* Modal styling */
.modal-content {
  background-color: #0c0c0c;
  color: #007bff;
  border: 1px solid #1a1a1a;
}

.modal-header,
.modal-footer {
  border-color: #1a1a1a;
}

.btn-outline-primary {
  color: #007bff;
  border-color: #007bff;
}

.btn-outline-primary:hover {
  background-color: #007bff;
  color: #fff;
}

@media (max-width: 991px) {
  /* Apply styles for mobile & tablet screens */
  .navbar-collapse {
    display: none; /* Hide menu initially */
    text-align: center; /* Center menu items */
  }

  .navbar-collapse.show {
    display: block; /* Show menu when toggled */
  }

  #menu {
    width: 100%; /* Make menu take full width */
    padding: 10px 0; /* Add spacing */
  }

  .social-icons {
    display: flex;
    justify-content: center; /* Center social icons */
    margin-top: 10px;
  }

  .social-icons a {
    margin: 0 10px; /* Add spacing between icons */
  }

  /* Products page mobile adjustments */
  .hero-banner {
    max-height: 200px;
  }

  .hero-banner img {
    height: 200px;
  }

  .hero-banner h1 {
    font-size: 1.75rem;
  }

  .hero-banner p {
    font-size: 1rem;
  }

  /* Mobile dropdown menu styling */
  .dropdown-menu {
    position: static !important;
    transform: none !important;
    border: none;
    box-shadow: none;
    background-color: transparent;
    margin: 0;
    padding: 0;
    text-align: center;
    width: 100%;
    display: none; /* Initially hidden */
  }

  .dropdown-menu.show {
    display: block !important; /* Show when toggled */
  }

  .dropdown-item {
    color: #007bff !important;
    background-color: transparent;
    padding: 8px 15px;
    text-align: center;
    border: none;
    display: block;
    width: 100%;
  }

  .dropdown-item:hover {
    color: #dfebf8 !important;
    background-color: transparent;
  }

  .dropdown-item.active {
    color: #dfebf8 !important;
    background-color: transparent;
  }

  /* Make sure dropdown opens in mobile */
  .nav-item.dropdown.show .dropdown-menu {
    display: block;
  }

  /* Style nav items consistently in mobile */
  .nav-item .nav-link {
    padding: 8px 15px;
    text-align: center;
    width: 100%;
  }

  .social-icons {
    display: flex;
    justify-content: center; /* Center social icons */
    margin-top: 10px;
  }

  .social-icons a {
    margin: 0 10px; /* Add spacing between icons */
  }
}

/* Small device adjustments */
@media (max-width: 767px) {
  .product-card {
    margin-bottom: 20px;
  }

  .hero-banner {
    max-height: 150px;
  }

  .hero-banner img {
    height: 150px;
  }

  /* Small device hero section adjustments */
  .hero-section .carousel-item {
    height: 45vh;
    min-height: 250px;
    max-height: 350px;
  }

  /* Make carousel controls more prominent on small screens */
  .carousel-control-prev,
  .carousel-control-next {
    width: 10%;
  }
}

/* Extra small devices */
@media (max-width: 575px) {
  .hero-banner h1 {
    font-size: 1.5rem;
  }

  .hero-banner p {
    font-size: 0.875rem;
  }

  /* Extra small device hero section adjustments */
  .hero-section .carousel-item {
    height: 40vh;
    min-height: 200px;
    max-height: 300px;
  }

  /* Carousel controls for very small screens */
  .carousel-control-prev,
  .carousel-control-next {
    width: 12%;
  }

  .carousel-control-prev-icon,
  .carousel-control-next-icon {
    width: 15px;
    height: 15px;
  }
}

/* Hero section mobile adjustments */
.hero-section .carousel-item {
  height: 50vh;
  min-height: 300px;
  max-height: 400px;
}

/* Adjust carousel controls for mobile */
.carousel-control-prev,
.carousel-control-next {
  width: 8%;
}

/* Large screen adjustments */
@media (min-width: 1200px) {
  .hero-section .carousel-item {
    height: 75vh;
    min-height: 500px;
    max-height: 700px;
  }
}

/* Extra large screen adjustments */
@media (min-width: 1400px) {
  .hero-section .carousel-item {
    height: 80vh;
    min-height: 600px;
    max-height: 800px;
  }
}
