header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #003366;
  color: white;
  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;
  font-family: century gothic;
}

header a {
  text-decoration: none;;
}

/* Shrinking effect when scrolling */
header.shrink {
  padding: 10px;
  font-size: 14px;
}

/* Hide subtext when scrolling */
header.shrink #subtext {
  display: none;
}

.abt {
  position: relative;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.abt::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;
}

body {
  margin: 0;
  padding-top: 80px;
}

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;
}
  
.btn {
  display: inline-block;
  padding: 10px 20px;
  color: white;
  background-color: #007bff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
}
      
.btn:hover {
  background-color: #0056b3;
}

/* Accessibility Button & Container */
.accessibility-container {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  font-family: century gothic;
}

#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;
  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;
} 

.history-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  margin-top: 150px; 
  font-family: century gothic;
}

/* ISO Logos (Left and Right) */
.iso-logo {
  flex: 0 0 auto;
}

.iso-logo img {
  width: 200px; 
  height: 200px;
}

.iso-left {
  margin-left: 50px;
}

.iso-right {
  margin-right: 50px;
}

/* History Section */
.history-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  padding: 20px;
}

/* Container for History Items */
.history-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 50px;
}

/* Individual History Item */
.history-item {
  width: 300px;
  text-align: center;
  border: 2px solid #103280;
  padding: 20px;
  background: #f8f8f8;
  border-radius: 8px;
  position: relative;
  transition: all 0.3s ease;
  overflow: hidden;
}

.history-item p {
  color: #444;
}

/* Hide translation initially */
.translation {
  display: none;
}

/* Style the button */
.translate-btn {
  margin-top: 0px;
  background: none;
  border: none;
  color: #103280;
  cursor: pointer;
  font-weight: bold;
  font-size: 1em; 
  padding: 5px 10px; 
  text-decoration: underline; 
}

/* Hover effect on translation button */
.translate-btn:hover {
  color: #3e6fff;
}

/* Hover Effect for History Item */
.history-item:hover {
  transform: scale(1.05);
  box-shadow: 0px 5px 15px rgba(0, 0, 255, 0.2);
}

/* Responsive Design */
@media (max-width: 900px) {
  .history-item {
    width: 90%;
  }
}

.logo-container {
display: flex;
align-items: center; 
justify-content: center;  
flex-wrap: wrap; 
margin: 0 auto; 
text-align: center; 
width: 100%; 
height: auto; 
}

/* Ensure the images fit well */
.logo-container img {
  width: 100px; 
  height: auto;
}

.logo-container img {
  width: 150px; 
  height: auto; 
  max-height: 100%; 
  object-fit: contain;
}

.logo-section {
  background-color: #f8f9fa; 
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.9);
  padding: 0px; 
  align-items: center;
}

.distributor-title {
  font-size: 35px;
  font-weight: bold;
  color: #103280;
  text-align: center;
  font-family: century gothic;
}

/*cert&awards*/
.cert-awards {
  font-size: 28px;
  background-color: #103280;
  color: white;
  font-weight: bold;
  text-align: center;
  height: 50px;
  margin: 10px 0;
}

.container-section {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1200px;
  margin: auto;
  padding: 50px 20px;
  gap: 40px;
}

.image-overlay {
  position: relative;
  display: inline-block;
  width: 450px;
  overflow: hidden;
  border-radius: 8px;
}

.image-overlay img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.image-overlay:hover img {
  transform: scale(1.1);
}

.image-overlay::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); 
  border-radius: 8px;
  transition: background 0.3s ease;
}

.image-overlay:hover::after {
  background: rgba(0, 0, 0, 0.7);
}

.overlay-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 30px;
  font-weight: bold;
  font-family: Poppins, sans-serif;
  text-align: center;
  z-index: 2;
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 1;
  font-family: century gothic;
}

.image-overlay:hover .overlay-text {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
  color: rgb(56, 92, 251);
}

.text {
  background-color: rgba(255, 255, 255, 0.8);
  padding: 20px;
  border-radius: 8px;
  max-width: 600px;
  font-family: century gothic;
}

.text p {
  font-size: 18px;
  line-height: 1.6;
  color: #444;
  font-family: inherit;
  text-align: justify;
}

/*why-choose-us*/
.why-choose-us {
  color: #103280;
  text-align: center;
  padding: 50px 20px;
  background-color: white;
  margin-top: 70px;
}

.feature h2 {
  font-size: 2.5em;
  color: #004a99;
  margin-bottom: 20px;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: auto;
  padding: 20px;
}

.feature {
  padding: 20px;
  text-align: center;
}

.feature i {
  font-size: 40px;
  color: #004a99;
  margin-bottom: 10px;
}

.feature h3 {
  font-size: 1.5em;
  color: #333;
}

.feature p {
  font-size: 1em;
  color: #666;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .features {
      grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .features {
      grid-template-columns: repeat(1, 1fr);
  }
}

.footer-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
  background-color: #111;
  color: #fff;
  font-family: Arial;
  margin-top: 50px;
}

.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;
}

.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; 
  display: inline-block; 
  margin: 0; 
  padding: 0;
}

.footer-container a:hover {
  text-decoration: underline;
  color: #0056b3 !important; 
}

.footer-container h3 {
  font-family: Arial, Helvetica, sans-serif;
}

.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) {

  header {
    padding: 10px;
    font-size: 16px;
  }

  header.shrink {
    padding: 6px;
    font-size: 13px;
  }

  .history-wrapper,
  .history-section,
  .container-section,
  .features {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px;
  }

  .history-item,
  .text,
  .image-overlay,
  .logo-container img,
  .overlay-text {
    width: 100% !important;
    max-width: 90vw;
  }

  .overlay-text {
    font-size: 20px;
    padding: 10px;
  }

  .distributor-title,
  .cert-awards {
    font-size: 22px;
    padding: 10px;
  }

  .image-overlay {
    width: 90%;
  }

  .iso-logo img {
    width: 120px;
    height: auto;
  }

  .accessibility-container {
    top: unset;
    bottom: 20px;
    left: 10px;
    transform: none;
  }

  .accessibility-menu {
    left: 60px;
    top: -10px;
    width: 180px;
  }

  .why-choose-us {
    margin-top: 30px;
    padding: 30px 15px;
  }

  .feature h2 {
    font-size: 1.8em;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .btn {
    padding: 8px 16px;
    font-size: 14px;
  }

  .logo-container {
    flex-direction: column;
    gap: 10px;
  }

  .text p {
    font-size: 16px;
  }

  .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;
  }

}