

    section {
      min-height: 70vh;
      /*padding: 0px 40px 60px;*/
      position: relative;
      padding-top: 20px;
    }

    .section-header {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      margin-bottom: 20px;
      max-width: 600px;
    }

    .section-header1 h3 {
      font-size: 1.5rem;
      margin-bottom: 8px;
      color: #fff;
    }

    .section-header p {
      font-size: 1.1rem;
      color: #ccc;
    }

    .gallery-wrapper {
      position: relative;
      margin-bottom: 30px;
    }

    .gallery {
      display: flex;
      flex-wrap: nowrap;
      gap: 18px;
      overflow-x: auto;
      scroll-snap-type: x mandatory;
      -webkit-overflow-scrolling: touch;
      padding-bottom: 10px;
    }

    .gallery::-webkit-scrollbar {
      display: none;
    }

    .gallery-item {
      flex: 0 0 auto;
      width: 320px;
      height: 450px;
      scroll-snap-align: start;
    }

    .product-card {
      position: relative;
      width: 100%;
      height: 100%;
      border-radius: 16px;
      overflow: hidden;
      box-shadow: 0 10px 25px rgba(0,0,0,0.1);
      cursor: pointer;
      background: #f1f1f1;
      color: black;
    }

    .product-card img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.4s ease;
    }

    .product-card:hover img {
      transform: scale(1.05);
    }

    .overlay-slide {
      position: absolute;
      bottom: -100%;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: white;
      transition: bottom 0.4s ease;
      z-index: 2;
      display: flex;
      justify-content: center;
      align-items: center;
      flex-direction: column;
    }

    .product-card:hover .overlay-slide {
      bottom: 0;
    }

    .product-content {
      text-align: center;
      opacity: 0;
      transform: translateY(20px);
      transition: opacity 0.4s ease, transform 0.4s ease;
    }

    .product-card:hover .product-content {
      opacity: 1;
      transform: translateY(0);
    }

    .product-content h4 {
      font-size: 1.2rem;
      color: #000;
      margin-bottom: 10px;
    }

    .arrow-btn {
      font-size: 2rem;
      color: #000;
      text-decoration: none;
    }

    /* Horizontal arrow nav buttons below gallery */
    .arrow-nav {
      display: flex;
      justify-content: center;
      gap: 15px;
      margin-top: 10px;
    }

    .arrow-button {
      font-size: 1.2rem;
      color: white;
      background: transparent;
      border: 2px solid white;
      border-radius: 50%;
      width: 38px;
      height: 38px;
      line-height: 38px;
      text-align: center;
      cursor: pointer;
      user-select: none;
      transition: 
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
    }

    .arrow-button:hover {
      transform: scale(1.1);
      border-color: #fff;
      box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.6);
    }

    /* Scroll arrow up/down at bottom of each section */
    .scroll-arrow {
      position: absolute;
      bottom: 20px;
      left: 50%;
      transform: translateX(-50%);
      font-size: 2.5rem;
      color: white;
      text-decoration: none;
      animation: bounce 2s infinite;
      cursor: pointer;
      user-select: none;
    }

    .scroll-arrow.up {
      top: 20px;
      bottom: auto;
    }

    @keyframes bounce {
      0%, 100% { transform: translate(-50%, 0); }
      50% { transform: translate(-50%, 10px); }
    }

    /* Background color for sections */
  body.basic-bg { background-color: #000000; }
    body.emergency-bg { background-color:black ; }
    body.fire-bg { background-color: #000000; }
    body.automation-bg { background-color: #000000; }
    body.energy-bg { background-color: #000000; }
    body.smartcity-bg { background-color: #000000; } 

    @media (max-width: 768px) {
      .gallery-item { width: 75vw; }
      .section-header { max-width: 100%; }
    }



    @media (max-width: 768px) {
  section {
    padding: 0px 20px 80px;
  }

  .gallery-item {
    width: 75vw;
    height: 400px;
  }

  .section-header {
    max-width: 100%;
    margin-bottom: 16px;
  }

  .section-header1 h3 {
    font-size: 1.3rem;
  }

  .section-header p {
    font-size: 1rem;
  }

  .product-card {
    border-radius: 12px;
  }

  .product-content h4 {
    font-size: 1rem;
  }

  .arrow-button {
    font-size: 1rem;
    width: 34px;
    height: 34px;
    line-height: 34px;
  }

  .scroll-arrow {
    font-size: 2rem;
  }
}



    /* Section position relative for overlays */
.enhanced-section {
  position: relative;
  overflow: hidden;
  background-color: #000; /* fallback */
}

/* Particle canvas fills section behind content */
#particle-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Background image with blur and transparency */
.enhanced-section .bg-image {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 100%;
  background: url('img/carousel-1.webp') no-repeat center center;
  background-size: cover;
  filter: blur(2px) brightness(0.6);
  opacity: 0.3;
  z-index: 2;
  pointer-events: none;
}

/* Content sits above bg-image and particles */
.enhanced-section > .section-header1,
.enhanced-section > .gallery-wrapper,
.enhanced-section > .scroll-arrow {
  position: relative;
  z-index: 3;
}
