.ps {
  position: relative;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.ps::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../pictures/bg.png'); 
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.5; 
  z-index: -1; 
}

.bg-image {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; 
  z-index: -1;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #003366;
  color: white;
  font-family: century gothic;
  text-align: center;
  padding: 20px;
  font-size: 18px;
  z-index: 1000; 
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.9);
  transition: all 0.3s ease-in-out;
}

/* Shrinking effect when scrolling */
header.shrink {
  padding: 10px;
  font-size: 14px;
}

a {
  text-decoration: none;
  display: inline-block;
  padding: 8px 16px;
}

a:hover {
  background-color: #ddd;
  color: black;
}

.round {
  position: absolute;  
  left: 10px;  
  background-color: white;
  border-radius: 5px;
  color: black;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  text-align: center;
  background-color: #f5f5f5;
}

/* Accessibility Button & Container */
.accessibility-container {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
}

#accessibility-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

#accessibility-button img {
  width: 50px;
  height: auto;
  border-radius: 35px;
  transition: transform 0.3s ease;
}

#accessibility-button:hover img {
  transform: scale(1.1);
}

/* Dropdown Menu */
.accessibility-menu {
  display: none;
  position: absolute;
  left: 60px; 
  top: 0;
  background: #ffffff;
  font-family: century gothic;
  border-radius: 8px;
  box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.3);
  padding: 10px;
  width: 200px;
}

.menu-title {
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 8px;
  color: #333;
}

/* Styling buttons */
.accessibility-menu button {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 8px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  border-radius: 5px;
  transition: 0.3s;
}

.accessibility-menu button:hover {
  background: #007bff;
  color: white;
}

/* Dark mode styles */
.dark-mode {
  background-color: black !important;  
  color: white !important;           
}

/* Ensure images are not affected by dark mode */
.dark-mode img {
  filter: none !important;  
}

/* Apply to all elements inside dark mode to make them black */
.dark-mode * {
  background-color: black !important;  
  color: white !important;             
  border-color: white !important;     
}

/* Make buttons visible in dark mode */
.dark-mode button {
  background-color: black !important;
  color: white !important;
  border: 1px solid white;
}

/* Make links visible in dark mode */
.dark-mode a {
  color: #00bfff !important; 
}

/* Make input fields visible in dark mode */
.dark-mode input, .dark-mode textarea, .dark-mode select {
  background-color: black !important;
  color: white !important;
  border: 1px solid white;
}

/* Accessibility dropdown remains black but text is visible */
.dark-mode .accessibility-dropdown {
  background-color: black !important;
  color: white !important;
  border: 1px solid white;
}

h2 {
  color: #103280;
  font-family: century gothic;
  margin-top: 150px;
}

/* Container section to arrange image and text side by side */
.d-container-section {
  display: flex;
  align-items: center;
  justify-content: center;  
  margin-top: 150px;
  background-color: white ;
  gap: 20px; 
  font-family: century gothic;
}

.p-container-section {
  display: flex;
  align-items: center;
  justify-content: center;  
  margin-top: 50px;
  background-color: white ;
  gap: 20px; 
  font-family: century gothic;
}

/* Image section */
.image-section {
  position: relative; 
  display: flex;
  justify-content: center; 
  max-width: 100%;  
}

/* Image overlay (ensures the overlay covers the image) */
.danpla-image-overlay {
  position: relative;
  width: 100%;
  max-width: 350px;  
  height: auto; 
  display: flex;
  justify-content: center;
  overflow: hidden; 
}

/* The image itself */
.danpla-image-overlay img {
  width: 100%; 
  height: auto;  
  object-fit: cover;  
  transition: opacity 0.3s ease;  
}

/* Image overlay (ensures the overlay covers the image) */
.pipe-image-overlay {
  position: relative;
  width: 100%;
  max-width: 350px;  
  height: auto; 
  display: flex;
  justify-content: center;
  overflow: hidden;  
}

/* The image itself */
.pipe-image-overlay img {
  width: 100%; 
  height: auto;  
  object-fit: cover;  
  transition: opacity 0.3s ease;  
}

/* Overlay text */
.overlay-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  color: white;
  font-weight: bold;
  background-color: rgba(0, 0, 0, 0.6); 
  display: flex;
  justify-content: center; 
  align-items: center;  
  font-size: 18px; 
  text-align: center;  
  padding: 10px; 
  border-radius: 5px;
  opacity: 0;  
  transition: opacity 0.3s ease;  
}

.danpla-image-overlay:hover .overlay-text,
.pipe-image-overlay:hover .overlay-text {
  opacity: 1;
}

.danpla-image-overlay:hover img,
.pipe-image-overlay:hover img {
  opacity: 0.8;
}


/* Text section */
.text {
  width: 45%;
  font-size: 16px;
  color: #333;
  text-align: justify;
}

/* Slideshow Modal */
.danpla-slideshow-modal,
.pipe-slideshow-modal {
  display: none; /* keep this */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 55%;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  margin-top: 200px;
}

.danpla-slideshow-modal .slideshow-content,
.pipe-slideshow-modal .slideshow-content{
  display: flex;
  justify-content: center;
}

.slideshow-content {
  display: flex;
  justify-content: center;
  align-items: center;
}

.danpla-slideshow-modal img,
.pipe-slideshow-modal img {
  max-width: 150%;
  max-height: auto;
  object-fit: contain;
  justify-content: center;
  align-items: center;
}

.slideshow-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
}

.prev, .next {
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

.close {
  color: white;
  font-size: 36px;
  font-weight: bold;
  position: absolute;
  top: 10px;
  right: 25px;
  cursor: pointer;
}



.p_products {
  text-align: center;
  padding: 20px;
  margin-top: 20px;
}

.p_products-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr); 
  gap: 15px;
  max-width: 80%;
  margin: auto;
  justify-content: center;
}

.product-item {
  background-color: #f0f8ff !important; 
  padding: 10px;
  border-radius: 8px; 
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.product-item:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.product-item img {
  width: 100%; 
  max-width: 200px; 
  height: auto;
  border-radius: 5px;
}

/* SERVICES SECTION */
.services h2 {
  margin-top: 60px;
}

.services-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr); 
  gap: 20px;
  max-width: 80%;
  margin: auto;
  font-family: century gothic;
}

.service-box {
  background: #004080;
  color: white;
  padding: 20px;
  border-radius: 10px;
  font-size: 18px;
  transition: background 0.3s, transform 0.3s;
  text-align: center;
}

.service-box h3 {
  font-size: 22px;
  font-weight: bold;
  color: #ffffff; 
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.service-box p {
  font-size: 16px;
  color: white;
  line-height: 1.5;
}

/* Hover Effect for Services */
.service-box:hover {
  background-color: #0066cc;
  transform: translateY(-5px);
  cursor: pointer;
}

/* Responsive Design */
@media (max-width: 900px) {
  .product-grid {
      grid-template-columns: repeat(3, 1fr); 
  }
}

@media (max-width: 600px) {
  .product-grid {
      grid-template-columns: repeat(2, 1fr);
  }
}

.footer-container {
  display: flex;
  flex-direction: column;
  padding: 20px;
  background-color: #111;
  color: #fff;
  text-align: left;
  margin-top: 50px;
  font-family: Arial;
}

.footer-top {
  display: flex;
  justify-content: left;
  align-items: center;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 0px;
}

.footer-section {
  flex: 1;
  min-width: 200px;
}

ul {
  list-style: none;
  padding: 0;
}

ul li {
  margin-bottom: 5px;
}

.footer-logo {
  width: 150px;
}

.footer-container a {
  color: #007bff !important; 
  background-color: transparent !important;
  text-decoration: none; 
  padding: 0;
  margin-top: 0px;
}

.footer-container a:hover {
  text-decoration: underline;
  color: #0056b3 !important; 
}

.footer-container h3 {
  font-family: Arial;
  text-align: left;
  font-weight: normal;
  font-size: 25px;
}

.footer-copyright {
  text-align: center;
  padding: 10px;
  border-top: 1px solid #444;
  color: black;
  background-color: white;
  font-size: 14px;
}


/* MOBILE RESPONSIVENESS */
@media (max-width: 768px) {
  /* General layout adjustments */
  .p_products-container,
  .services-container {
    grid-template-columns: repeat(1, 1fr);
  }

  .d-container-section,
  .p-container-section {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
  }

  .text {
    width: 90%;
  }

  .box {
    margin: 10px 0;
  }

  /* Modal adjustments for smaller screens */
  .slideshow-container {
    width: 100%;
  }

  .modal-content {
    width: 90%;
    height: auto;
    max-height: 90vh;
  }

  /* Accessibility menu repositioning */
  .accessibility-container {
    left: auto;
    right: 10px;
    top: auto;
    bottom: 20px;
    transform: none;
  }

  .accessibility-menu {
    left: auto;
    right: 60px;
    top: auto;
    bottom: 0;
  }

  /* Header and nav adjustments */
  header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  nav {
    margin-top: 10px;
  }

  .accessibility-button {
    bottom: 30px;
    right: 10px;
  }

  .footer-container {
    gap: 15px;
  }

  .footer-container a {
    font-size: 14px;
  }

  .footer-copyright {
    font-size: 12px;
  }

  .footer-top,
  .footer-bottom {
    flex-direction: column;
    align-items: center;
  }

  .footer-section {
    width: 100%;
    text-align: center;
  }
}
