.bg-navbar-blur {
  background-color: rgba(13, 17, 23, 0.9) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #30363d;
}

.navbar-toggler {
  border-color: #fff !important;
  padding: 4px 8px;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,1)' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Mobile navbar improvements */
@media (max-width: 991.98px) {
  .navbar {
    padding: 0.5rem 1rem !important;
  }
  
  .navbar-brand {
    font-size: 1.1rem !important;
  }
  
  .navbar-nav {
    margin-top: 10px;
    text-align: center;
  }
  
  .navbar-nav .nav-item {
    margin: 5px 0;
  }
  
  .navbar-nav .nav-link,
  .navbar-nav .btn {
    padding: 8px 15px !important;
    font-size: 0.95rem !important;
    width: 100%;
    text-align: center;
    margin: 2px 0;
  }
  
  .navbar-collapse {
    background-color: rgba(13, 17, 23, 0.95);
    border: 1px solid #30363d;
    margin-top: 10px;
    padding: 15px;
    border-radius: 5px;
  }
  
  .d-flex.ms-auto.align-items-center {
    flex-direction: column !important;
    width: 100%;
    gap: 10px !important;
    margin-top: 10px;
  }
  
  .d-flex.ms-auto.align-items-center .btn {
    width: 100%;
    padding: 10px !important;
  }
}

.carousel-inner {
  position: relative;
  height: 100%;
  overflow: hidden;
}

.carousel-container {
  position: relative;
  height: 100%;
}

.carousel-item {
  height: 100vh;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 991.98px) {
  .carousel-item {
    height: 70vh;
    min-height: 500px;
  }
}

@media (max-width: 575.98px) {
  .carousel-item {
    height: 60vh;
    min-height: 400px;
  }
}


.button-OurProducts
{
  display: flex;
  justify-content: center;
  align-items: center;
}

/* From Uiverse.io by Na3ar-17 */ 
.button {
  border: none;
  outline: none;
  background-color: #000000;
  width: 18.6vw;
  height: 7.96vh;
  font-size: 2.275999vh;
  color: #fff;
  font-weight: 600;
  border-radius: 1.26444vh;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  position: relative;
  transition: all 0.3s;
}

.button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
  width: 106%;
  height: 120%;
  z-index: -1;
  border-radius: inherit;
  transition: all 0.3s;
}

.gradient-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 106%;
  height: 115%;
  overflow: hidden;
  border-radius: inherit;
  z-index: -1;
  filter: blur(1.264444vh);
  transition: all 0.3s;
}

.gradient {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 110%;
  aspect-ratio: 1;
  border-radius: 100%;
  transition: all 0.3s;
  background-image: linear-gradient(
    90deg,
    hsl(226, 81%, 64%),
    hsl(271, 81%, 64%),
    hsl(316, 81%, 64%),
    hsl(1, 81%, 64%),
    hsl(46, 81%, 64%),
    hsl(91, 81%, 64%),
    hsl(136, 81%, 64%),
    hsl(181, 81%, 64%)
  );
  animation: rotate 2s linear infinite;
  filter: blur(1.264444vh);
}

.label {
  width: 12.76vw;
  height: 5.96vh;
  text-align: center;
  line-height: 5.96vh;
}

.button:hover .gradient-container {
  transform: translate(-50%, -50%) scale(0.98);
  filter: blur(.63222222vh);
}

.button:hover .gradient {
  filter: blur(.63222222vh);
}

@keyframes rotate {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}







/* Mobile responsive styles */
@media screen and (max-width: 767.98px) {
  .carousel-item {
    height: 70vh;
    min-height: 500px;
  }
  
  .carousel-item img {
    object-fit: cover;
    width: 100%;
    height: 100%;
  }
  
  #container_div {
    padding-top: 10%;
    margin-top: 0;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  #row_div {
    margin-bottom: 0;
  }
  
  #col_div {
    width: 100% !important;
    padding: 20px 15px !important;
  }
  
  #h1 {
    font-size: 1.5rem !important;
    margin-top: 0;
    line-height: 1.3;
  }
  
  #p {
    font-size: 1rem !important;
    margin-top: 0;
  }
  
  .button {
    width: 200px;
    height: 50px;
    font-size: 1rem;
  }
  
  .label {
    width: auto;
    height: auto;
    line-height: normal;
    font-size: 1rem !important;
  }
}

@media screen and (max-width: 575.98px) {
  .carousel-item {
    height: 60vh;
    min-height: 400px;
  }
  
  #container_div {
    padding-top: 5%;
  }
  
  #col_div {
    padding: 15px 10px !important;
  }
  
  #h1 {
    font-size: 1.25rem !important;
    margin-bottom: 10px !important;
  }
  
  #p {
    font-size: 0.9rem !important;
    margin-bottom: 15px !important;
  }
  
  .button {
    width: 180px;
    height: 45px;
    font-size: 0.9rem;
  }
  
  .label {
    font-size: 0.9rem !important;
  }
}

@media screen and (max-width: 400px) {
  #h1 {
    font-size: 1.1rem !important;
  }
  
  #p {
    font-size: 0.85rem !important;
  }
  
  .button {
    width: 160px;
    height: 40px;
    font-size: 0.85rem;
  }
}









.scrolling-wrapper {
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
}
.scrolling-wrapper .card {
  flex: 0 0 auto;
  scroll-snap-align: start;
  /* width is controlled by your .custom-card CSS */
}

.scrolling-wrapper::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}


/* Make card image height responsive */
.card-img-custom {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
}
@media (max-width: 991.98px) {
  .card-img-custom {
    max-height: 120px;
  }
}
/* Product cards mobile responsive */
@media (max-width: 991.98px) {
  .scrolling-wrapper {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .custom-card {
    min-width: 280px;
    max-width: 280px;
    margin-right: 15px !important;
  }
}

@media (max-width: 575.98px) {
  .container-fluid_second {
    padding-left: 0 !important;
    margin-left: 0 !important;
    background-color: #0d1117;
  }
  
  .container-fluid_second h3 {
    font-size: 1.5rem;
    padding: 0 15px;
    color: #c9d1d9 !important;
  }
  
  .scrolling-wrapper {
    padding-left: 10px;
    padding-right: 10px;
    margin-left: 0;
    background-color: #0d1117;
  }
  
  .custom-card {
    min-width: 260px;
    max-width: 260px;
    height: auto;
    min-height: 350px;
    margin-right: 12px !important;
    padding: 15px !important;
    background-color: #161b22;
    border: 1px solid #30363d;
    color: #c9d1d9;
  }
  
  .card-img-custom {
    height: 140px;
    max-height: 140px;
    margin-bottom: 10px !important;
  }
  
  .card-title {
    font-size: 1.1rem !important;
    margin-bottom: 8px !important;
    color: #58a6ff !important;
  }
  
  .card-text {
    font-size: 0.85rem !important;
    line-height: 1.4;
    color: #8b949e !important;
  }
}





/* Responsive card size for all screens - Dark Mode */
.custom-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Remove fixed height! */
  /* height: 380px; */
  width: 100%;
  max-width: 300px;
  background-color: #161b22;
  border: 1px solid #30363d;
  border-radius: 10px;
  box-shadow: -1rem 0 3rem rgba(0, 0, 0, 0.5);
  transition: 0.4s ease-out;
  position: relative;
  left: 0px;
  margin-left: 0 !important;
  overflow: hidden;
  color: #c9d1d9;
}

.custom-card:hover {
  background-color: #21262d;
  border-color: #58a6ff;
  transform: translateY(-5px);
}

.custom-card .card-title {
  color: #58a6ff !important;
}

.custom-card .card-text {
  color: #8b949e !important;
}
/* Remove negative margin for proper alignment */
.custom-card:not(:first-child) {
  margin-left: 0;
}

/* Additional mobile responsive improvements - Dark Mode */
@media (max-width: 767.98px) {
  body {
    overflow-x: hidden;
    background-color: #0d1117;
    color: #c9d1d9;
  }
  
  .container-fluid_second {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    background-color: #0d1117;
  }
  
  /* Ensure images are responsive */
  img {
    max-width: 100%;
    height: auto;
    display: block;
  }
  
  /* Fix section spacing - Dark Mode */
  section {
    padding: 15px 0;
    background-color: #0d1117;
    color: #c9d1d9;
  }
  
  section hr {
    margin: 20px 0;
    border-color: #30363d;
    opacity: 0.3;
  }
  
  section h1,
  section h2 {
    color: #58a6ff !important;
  }
  
  section p {
    color: #c9d1d9 !important;
  }
}

@media (max-width: 575.98px) {
  /* Additional small screen fixes - Dark Mode */
  .container-fluid_second h3 {
    font-size: 1.4rem !important;
    margin-bottom: 20px !important;
    color: #c9d1d9 !important;
  }
  
  .scrolling-wrapper {
    margin-bottom: 20px;
  }
  
  /* Fix text overflow */
  .card-text {
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
  }
  
  /* Improve section spacing */
  section {
    padding: 10px 0;
  }
  
  section h1,
  section h2 {
    word-wrap: break-word;
    overflow-wrap: break-word;
    color: #58a6ff !important;
  }
  
  section p {
    word-wrap: break-word;
    overflow-wrap: break-word;
    text-align: justify;
    color: #c9d1d9 !important;
  }
  
  section hr {
    border-color: #30363d;
    opacity: 0.3;
  }
}

/* Very small screens - Dark Mode */
@media (max-width: 400px) {
  .container-fluid_second h3 {
    font-size: 1.25rem !important;
    color: #c9d1d9 !important;
  }
  
  .custom-card {
    min-width: 240px !important;
    max-width: 240px !important;
    padding: 12px !important;
    background-color: #161b22;
    border: 1px solid #30363d;
    color: #c9d1d9;
  }
  
  .card-title {
    font-size: 1rem !important;
    color: #58a6ff !important;
  }
  
  .card-text {
    font-size: 0.8rem !important;
    color: #8b949e !important;
  }
  
  section h1 {
    font-size: 1.3rem !important;
    color: #58a6ff !important;
  }
  
  section h2 {
    font-size: 1.2rem !important;
    color: #58a6ff !important;
  }
  
  section p {
    font-size: 0.9rem !important;
    color: #c9d1d9 !important;
  }
}

/* Prevent horizontal scroll - Dark Mode */
html, body {
  max-width: 100%;
  overflow-x: hidden;
  background-color: #0d1117;
  color: #c9d1d9;
}

* {
  box-sizing: border-box;
}

/* Dark Mode Button Styles */
.btn-primary {
  background-color: #1f6feb !important;
  border-color: #1f6feb !important;
  color: #ffffff !important;
}

.btn-primary:hover {
  background-color: #388bfd !important;
  border-color: #388bfd !important;
  color: #ffffff !important;
}

.btn-success {
  background-color: #238636 !important;
  border-color: #238636 !important;
  color: #ffffff !important;
}

.btn-success:hover {
  background-color: #2ea043 !important;
  border-color: #2ea043 !important;
  color: #ffffff !important;
}

.btn-link {
  color: #58a6ff !important;
}

.btn-link:hover {
  color: #79c0ff !important;
}

.nav-link {
  color: #c9d1d9 !important;
}

.nav-link:hover {
  color: #58a6ff !important;
}

.nav-link.active {
  color: #58a6ff !important;
}

/* Dark Mode Global HR Styles */
hr {
  border-color: #30363d;
  opacity: 0.5;
  background-color: #30363d;
}

/* Dark Mode Card Body */
.card-body {
  background-color: transparent;
  color: #c9d1d9;
}

/* Ensure all sections have dark background */
section {
  background-color: #0d1117;
  color: #c9d1d9;
}

section hr {
  border-color: #30363d;
  opacity: 0.3;
}
