/* styles.css */

/* Global Styles */
html, body {
  overflow-x: hidden;
  height: 100%;
}

body {
	  position: relative;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #333;
}

.container {
    margin: auto; /* Center the container horizontally */
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* CSS for the fixed contact bar */
#contact-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%; /* Ensure it spans the full width */
    background-color: #DCDCDC;
    color: #000000;
    text-align: center; /* Ensure text is centered */
    padding: 0 15px; /* Add equal padding on both sides */
    z-index: 1000; /* Ensure it stays above other elements */
}

/* CSS for sticking the header to the top */
#header {
    position: relative; /* Ensure it doesn't overlap with the fixed contact bar */
    width: 100%;
    margin-top: 60px; /* Adjust top margin to prevent overlap */
    z-index: 999; /* Ensure it stays below the contact bar */
}

/* Header Styles */
header {
    background-color: #FFFFFF;
    color: #000000;
    padding: 5px 0; /* Adjusted padding for smaller screens */
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: auto;
    padding: 0 10px;
}

.logo {
    flex: 1;
}

.logo img {
    max-width: 200px;
}

.navigation {
    flex: 1;
    text-align: right;
}

.navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex; /* Ensure the list items stay inline */
    width: auto;
}

.navigation li {
    margin-right: 20px; /* Reduced margin for smaller screens */
    margin-bottom: 10px; /* Add bottom margin to separate items */
}

.navigation a {
    color: #000000;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 5px 0px;
    border-radius: 5px;
    transition: color 0.3s ease, background-color 0.3s ease, transform 0.3s ease; /* Smooth transitions */
    white-space: nowrap; /* Prevent text from wrapping onto multiple lines */
}

.navigation a:hover {
    background-color: rgba(255, 255, 255, 0.1); /* Rollover effect */
    color: #55E2FF;
    transform: translateY(-3px); /* Move the element up on hover */
}

/* Hero Banner Styles */
.hero-banner {
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('images/Heroimage.png'); /* Replace 'hero-banner.jpg' with your actual image */
    background-size: cover;
    background-position: center;
    text-align: center;
    color: #fff;
    padding: 200px 0;
    margin-top: 0; /* Ensure no gap above the hero banner */
  }

.hero-banner h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5); /* Add text shadow */
}

.hero-banner p {
    font-size: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5); /* Add text shadow */
    max-width: 800px; /* Add max-width to prevent spreading across the whole banner */
    margin: 0 auto; /* Center the paragraph text horizontally */
}

.contact-button {
    background-color: #FFED00;
    border: none;
    color: black;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 20px 0px;
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.3s;
}
.contact-button:hover {
    background-color: #BDAB00;
	color: white;
}

/* Back to Top Button Styles */
#back-to-top-btn {
  display: none; /* Initially hide the button */
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 99;
  font-size: 20px;
  background-color: #FFED00;
  color: #000;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  padding: 10px 20px;
}

#back-to-top-btn:hover {
  background-color: #BDAB00;
  color: white;
}

/* Social Link Styles */
.social-links {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.social-links a {
  margin: 0 10px;
  position: relative; /* Required for tooltips */
}

.social-links img {
  width: 40px;
  height: 40px;
}

.social-links a:hover img {
  transform: scale(1.2); /* Example hover effect: scale the image */
}

.tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.social-links a:hover .tooltip {
  opacity: 1;
}

/* Section Styles */
.section {
    text-align: center;
    margin-bottom: 60px;
    box-shadow: 0px 10px 10px rgba(0, 0, 0, 0.1); /* Box shadow only at the bottom */
}

.banner {
    background-color: #007bff;
    background-size: cover;
    background-position: center;
    height: 400px;
    color: #fff;
    padding: 10px;
    border-radius: 5px 5px 0 0;
    margin-bottom: 0; /* Ensure no gap below the biohazard banner */
}

.banner h2 {
    margin: 0;
    font-size: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%; /* Add this line to ensure vertical centering */
}

.section-content {
    background-color: #fff;
    border-radius: 0 0 5px 5px;
    max-width: 1200px;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    margin: auto;
	  margin-top: 20px;
    padding: 0 10px;
}

section img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    transition: transform 0.3s ease, opacity 0.3s ease; /* Smooth transition for images */
}

section img:hover {
    transform: scale(1.05); /* Scale up image on hover */
    opacity: 0.8; /* Reduce opacity on hover */
}

section p {
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Services List Styles */
.services-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 30px;
    padding: 0;
    list-style-type: none;
}

.services-list li {
    width: calc(33.33% - 20px);
    margin-bottom: 20px;
    text-align: center;
    transition: transform 0.3s ease, opacity 0.3s ease; /* Smooth transition for services */
}

.services-list img {
    max-width: 55px;
    margin-bottom: 0px;
}

/* Choose Up Services List Styles */
#choose-us .services-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 30px;
    padding: 0;
    list-style-type: none;
}

#choose-us .services-list li {
    width: calc(33.33% - 20px); /* Adjust width calculation */
    margin-bottom: 10px;
    text-align: center;
}

#choose-us .services-list img {
    max-width: 55px;
    margin-bottom: 10px;
}

/* Reviews Section Styles */

/* Carousel Wrapper */
.carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  box-sizing: border-box;
}

/* Carousel Container */
.carousel-container {
  overflow: hidden;
  flex: 1;
  max-width: 1000px;
}

/* Carousel */
.carousel {
  display: flex;
  transition: transform 0.4s ease-in-out;
  will-change: transform;
}

/* Carousel Item */
.carousel-item {
  flex: 0 0 50%;
  box-sizing: border-box;
  padding: 10px 20px 20px;
  margin: auto;
}

@media only screen and (max-width: 768px) {
  .carousel-item {
    flex: 0 0 100%;
    padding: 10px;
  }
}

/* Review Card */
.review {
  background-color: #fff;
  padding: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  text-align: center;
  margin: auto;
  max-width: 500px;
}

/* Stars */
.stars {
  font-size: 30px;
  color: #ffcc00;
  margin-bottom: 10px;
}

.star {
  margin-right: 5px;
}

/* Arrows */
.carousel-btn {
  background-color: black;
  color: #fff;
  border: none;
  font-size: 1.5rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 1;
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Positioning Arrows Outside */
.carousel-btn.prev {
  left: 10px;
}

.carousel-btn.next {
  right: 10px;
}

/* Pagination Dots */
.carousel-dots {
  text-align: center;
  margin-top: 10px;
  padding: 0 0 20px;
}

.dot {
  height: 12px;
  width: 12px;
  margin: 0 5px;
  background-color: #ccc;
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.dot.active {
  background-color: #333;
}

.google-review-logo-wrapper {
  display: flex;
  justify-content: center; /* horizontal center */
  align-items: center;     /* vertical center */
  height: 100px;           /* adjust height as needed */
  margin: 20px 0;
}

.google-review-badge {
  max-height: 100%;
  max-width: 200px;
  height: auto;
}

/* Mobile Responsiveness */
@media only screen and (max-width: 768px) {
  .carousel-item {
    flex: 0 0 100%;
	padding: 10px;
  }

  .carousel-btn {
    display: none;
  }
  
  .google-review-logo-wrapper {
  margin: 0px 0;
}	

}

/* Our Work Section Styles */
#our-work {
  background-color: #f8f8f8;
}

#our-work .section-content {
  text-align: center;
  margin-top: 40px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);  /* Keep 3 columns */
  gap: 20px;  /* Reduce the gap between items */
  max-width: 1200px;
  margin: 0 auto;
 padding-bottom: 20px;
}

.gallery-item {
  position: relative;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;  /* Ensure it takes full available space */
  height: 0;
  padding-bottom: 100%;  /* Maintain square aspect ratio */
  margin: 0 auto;  /* Center the items */
}

.gallery-item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;  /* Ensure the image covers the square container */
  cursor: pointer;
}

.gallery-item h3 {
  font-size: 1.2em;  /* Reduce font size */
  margin-top: 10px;
}

.gallery-item p {
  font-size: 0.9em;  /* Adjust description font size */
  color: #FFFFFF;
  padding: 0 15px 20px;
  text-align: center;
}

.gallery-item .description {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 10px;
  text-align: center;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 2; /* Ensure it appears above the image */
  cursor: pointer; /* Indicate interactivity */
  pointer-events: auto; /* Ensure the element can receive click events */
}

.gallery-item:hover .description {
  opacity: 1;
  transform: translateY(0);
}

/* Ensure the description is clickable on mobile */
@media screen and (max-width: 768px) {
  .gallery-item .description {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto; /* Ensure click events work on mobile */
  }
}

.gallery-item .tap-to-view {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8em;
    display: block; /* Ensure it's visible */
    text-align: center;
    z-index: 2; /* Ensure it appears above other elements */
}

.gallery-item:hover .tap-to-view {
    display: block; /* Keep it visible on hover */
}

@media screen and (max-width: 768px) {
    .gallery-item .tap-to-view {
        font-size: 0.9em;
    }
}

/* Mobile-specific styles */
@media screen and (max-width: 768px) {
  .gallery-item .description {
    opacity: 1;
    transform: translateY(0);
  }

  .gallery-item .tap-to-view {
    display: block;
    font-size: 0.9em;
  }

  .modal-content {
    padding: 15px;
    width: 90%;
    max-width: 600px;
    flex-direction: column;
  }

  .modal-images {
    grid-template-columns: 1fr; /* Stack images vertically on mobile */
  }

  .close {
    top: 8px;
    right: 10px;
    font-size: 24px;
  }

  .modal-content h3 {
    font-size: 1.5em;
  }

  .modal-content p {
    font-size: 1em;
  }
}

/* Mobile Responsiveness */
@media screen and (max-width: 1024px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);  /* Switch to 2 columns on tablets */
  }
}

@media screen and (max-width: 768px) {
  .gallery {
    grid-template-columns: 1fr;  /* 1 column on small screens */
  }
  
  .gallery-item {
    max-width: 100%;  /* Full width on mobile */
    padding-bottom: 100%;  /* Keep square ratio */
  }

  .gallery-item h3 {
    font-size: 1.1em;
  }

  .gallery-item p {
    font-size: 0.9em;
  }
}

@media screen and (max-width: 1024px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-item h3 {
    font-size: 1.3em;
  }
}

@media screen and (max-width: 768px) {
  .gallery {
    grid-template-columns: 1fr;
  }

  .gallery-item h3 {
    font-size: 1.2em;
  }
}

/* Modal base styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1050; /* Higher z-index to ensure it stays on top of other elements */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease-in-out;
}

/* Modal content box */
.modal-content {
  position: relative;
  background-color: #fff;
  padding: 30px;
  border-radius: 15px;
  max-width: 90%;
  max-height: 90%;
  width: 800px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  overflow: auto;
  animation: slideIn 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Modal images container */
.modal-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 images per row */
  gap: 20px; /* Space between images */
  width: 100%;
  margin-bottom: 20px;
}

.modal-images img {
  width: 100%; /* Ensures images fill their grid space */
  border-radius: 10px;
  height: auto;
}

body.no-scroll {
  overflow: hidden !important; /* Prevent scrolling */
  position: fixed; /* Fix the body in place */
  width: 100%; /* Ensure the body takes up the full width */
  height: 100%; /* Ensure the body takes up the full height */
}

/* Modal text */
.modal-content h3 {
  font-size: 1.8em;
  margin-bottom: 10px;
}

.modal-content p {
  font-size: 1.1em;
  color: #333;
  text-align: center;
}

/* Close button */
.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  font-weight: bold;
  color: #555;
  cursor: pointer;
  transition: color 0.3s ease;
  z-index: 1100; /* Ensure close button is above everything, including banner */
}

.close:hover {
  color: #000;
}

/* Animations */
@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}

@keyframes slideIn {
  from {transform: translateY(-30px); opacity: 0;}
  to {transform: translateY(0); opacity: 1;}
}

/* Mobile Responsiveness: Stack images and text vertically */
@media screen and (max-width: 768px) {
  .modal-content {
    padding: 15px;
    width: 90%;
    max-width: 600px;
    flex-direction: column;
  }

  .modal-images {
    grid-template-columns: 1fr; /* Stack images vertically on mobile */
  }

  .modal-images img {
    max-width: 100%;
  }

  /* Adjust close button position */
  .close {
    top: 8px;
    right: 10px;
    font-size: 24px;
  }

  .modal-content h3 {
    font-size: 1.5em;
  }

  .modal-content p {
    font-size: 1em;
  }
}

/* For very small screens like mobile phones in portrait mode */
@media screen and (max-width: 480px) {
  .modal-content {
    padding: 10px;
    width: 85%;
  }

  .modal-content h3 {
    font-size: 1.3em;
  }

  .modal-content p {
    font-size: 0.9em;
  }

  .close {
    font-size: 22px;
    top: 5px;
    right: 5px;
  }
}

/* Desktop - Images in 2 by 2 grid */
@media screen and (min-width: 769px) {
  .modal-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Two images per row */
    gap: 20px;
  }

  .modal-images img {
    max-width: 100%;
  }
}

@media screen and (min-width: 769px) {
    .gallery-item .tap-to-view {
        display: none !important; /* Hide tap-to-view on desktop */
    }

    .gallery-item:hover .tap-to-view {
        display: none !important; /* Ensure it's hidden on hover as well */
    }
}

/* Stack list items on smaller screens */
@media only screen and (max-width: 768px) {
    #choose-us .services-list li {
        width: 100%; /* Change width to 100% on smaller screens */
    }

    body {
        padding-top: 20px; /* Adjust padding to account for the height of the fixed contact bar */
    }

    header {
        padding: 5px 0; /* Adjusted padding for smaller screens */
    }

    .navigation li {
        margin-right: 20px; /* Reduced margin for smaller screens */
        margin-bottom: 10px; /* Add bottom margin to separate items */
    }

    .hero-banner h1 {
        font-size: 2.5rem;
    }

    .hero-banner p {
        font-size: 1.2rem;
    }

    .services-list li {
        width: 100%; /* Change width to 100% on mobile */
    }
}

@media only screen and (max-width: 768px) {
    #header {
        margin-top: 50px; /* Increase top margin to prevent overlap with the contact bar */
    }
}

/* Center the bottom two list items */
@media only screen and (min-width: 769px) {
    #choose-us .services-list {
        justify-content: space-between;
    }

    #choose-us .services-list li:nth-last-child(-n+2) {
        width: calc(50% - 10px); /* Adjust width for two items */
        margin-bottom: 20px; /* Add margin-bottom for spacing */
    }
}

/* Adjusted contact section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

/* Adjust max-width of images in bottom two list items */
#choose-us .services-list .custom-width img {
    max-width: 70px; /* Adjust the max-width as desired */
}

.contact-form,
.contact-details {
    padding: 20px 0px;
    background-color: #FFFFFF;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth transition */
}

.contact-form h2,
.contact-details h2 {
    margin-bottom: 20px;
    color: #333;
}

.contact-form label {
    display: block;
    margin-bottom: 10px;
    color: #666;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

.contact-form input[type="submit"] {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 5px;
    width: 100%;
    transition: background-color 0.3s ease; /* Smooth transition for button background */
}

.contact-form input[type="submit"]:hover {
    background-color: #0056b3; /* Change button background color on hover */
}

.contact-details p {
    margin-bottom: 10px;
    color: #666;
}

/* Desktop layout */
@media only screen and (min-width: 769px) {
    .contact-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .contact-form,
    .contact-details {
        flex: 1;
    }
}

/* Footer Styles */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    width: 100%;
}

.footer-content {
    max-width: 800px;
    margin: auto;
}

.footer-content a {
	color: white;
	text-decoration: none;
}

.footer-content a:hover {
	color: #00C3FF;
}

/* Responsive Styles */
@media only screen and (max-width: 768px) {
  
  #header {
    margin-top: 35px; /* Adjust top margin to account for the contact bar height */
    } 

  .header-content {
        flex-direction: column;
        align-items: center;
		padding: 2px;
    }

    .navigation ul {
        flex-direction: column; /* Stack list items vertically on mobile */
        align-items: center; /* Align items to the right on mobile */
        padding-top: 20px;
    }

    .navigation li {
        margin-right: 0; /* Remove right margin on mobile */
        margin-bottom: 10px; /* Add bottom margin to separate items on mobile */
    }

    .services-list li {
        width: 100%; /* Change width to 100% on mobile */
    }

    #header {
      margin-top: 35px; /* Adjust top margin to account for the contact bar height */
  }
}

@media screen and (max-width: 768px) and (-webkit-min-device-pixel-ratio: 2) {
    #header {
        margin-top: 65px; /* Increase margin-top specifically for iPhones */
    }
}

/* Rollover effect on services */
.services-list li:hover {
    transform: translateY(-5px); /* Move the element up on hover */
    opacity: 0.8; /* Reduce opacity on hover */
}

@media only screen and (max-width: 768px) {
    #contact-bar {
        box-sizing: border-box; /* Include padding in width calculation */
        padding: 0 15px; /* Ensure consistent padding on both sides */
        text-align: center; /* Reaffirm text centering */
    }
}

/* Disable scrolling when modal is open */
.no-scroll {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
    height: 100%;
}
