/* General Reset */

body,
h1,
h2,
ul,
li,
a,
button {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Arial", sans-serif;
}

body {
  line-height: 1.5;
}

/* Navbar */
.navbar {
  background: #003366; /* Deep navy blue */
  color: #fff;
  padding: 10px 20px;
}

.container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap; /* Ensure wrapping on smaller screens */
}
.logo {
  width: 80px;
  height: auto;
}

.nav-menu {
  display: none;
  flex-direction: column;
  background: #fff;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  gap: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.nav-menu.active {
  display: flex;
  opacity: 1;
}

.nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.nav-links a {
  color: #003366;
  font-size: 18px;
  text-align: center;
  text-decoration: none;
  padding: 10px 20px;
  transition: color 0.3s;
  font-weight: bold;
}

.nav-links a:hover {
  color: #0056b3;
}

.menu-btn {
  display: none; /* Hidden on larger screens */
  background: none;
  border: none;
  font-size: 24px;
  color: #fff;
  cursor: pointer;
}
.close-btn {
  display: none;
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 24px;
  color: #003366;
  cursor: pointer;
}
/* new trying end */
.call-us-btn {
  background: #ffa500;
  color: #fff;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background 0.3s;
}

.call-us-btn:hover {
  background: #ff8c00;
}

/* Hero Section */
.hero {
  height: 100vh;
  background: url("images/Pool\ picture\ main.jpg") no-repeat center
    center/cover;
  position: relative;
}

.overlay {
  background: rgba(0, 0, 0, 0.5);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
}

.hero-content h1 {
  font-size: 50px;
  margin-bottom: 10px;
}

.hero-content h2 {
  font-size: 40px;
  margin-bottom: 20px;
}

.cta-btn {
  padding: 15px 30px;
  text-decoration: none;
  background-color: #00c853;
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 16px;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.cta-btn:hover {
  background-color: #008a3d;
  text-decoration: none;
}
/* contacts */
.contact-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 20px;
  justify-content: center;
  align-items: center;
  background-color: #ffffff;
  padding: 20px 30px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.contact-title,
.portfolio-title {
  text-align: center;
  font-size: 1.2rem;
  color: #007bff;
  margin-top: 15px;
  margin-bottom: 15px;
  font-weight: bold;
}
.contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #333;
  font-size: 0.9rem;
  transition: transform 0.3s ease, color 0.3s ease;
}

.contact-item:hover {
  transform: scale(1.1);
  color: #007bff;
}

.contact-item i {
  font-size: 2rem;
  margin-bottom: 5px;
  color: #007bff;
  transition: color 0.3s ease;
}

.contact-item:hover i {
  color: #0056b3;
}

/*  services */
.services {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
  display: flex;
  flex-wrap: wrap; /* Enables Flexbox layout */
  justify-content: center; /* Spreads out the service cards */
  align-items: stretch; /* Ensures all cards have the same height */
  gap: 2rem; /* Adds spacing between cards */
}

.service {
  background-color: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  flex: 1 1 calc(33.333% - 30px);
  max-width: calc(33.333% - 30px);
  display: flex;
  flex-direction: column; /* Stacks content vertically inside the card */
  justify-content: flex-start;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.service-image {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: cover;
}

.service-content {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: flex-start;
}

.service-content h2 {
  color: #0077b6;
  margin-top: 0;
}

.service-content p {
  margin-bottom: 0;
}

li::marker {
  color: #0077b6;
}

/* footer */
footer {
  background-color: #003366; /* Dark blue */
  padding: 20px 0;
  text-align: center;
  color: white; /* White text */
  font-size: 14px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 10px; /* Space between links and copyright */
}

.footer-links a {
  text-decoration: none;
  font-size: 16px;
  color: white; /* White text */
  font-weight: bold;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #33cc99; /* Light green on hover */
}

.footer-copyright {
  font-size: 14px; /* Smaller text for copyright */
  margin-top: 10px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  padding: 20px;
}
.gallery-item video {
  width: 100%; /* Ensures the video fills the container */
  aspect-ratio: 16/9; /* Keeps a consistent aspect ratio */
  object-fit: cover; /* Ensures videos fill the space without distortion */
  border-radius: 5px; /* Matches the image styling */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Adds shadow for consistency */
}

.gallery-item {
  background-color: white;
  border: 2px solid #004d40;
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden; /* Ensures no overflow of content */
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 16/9; /* Sets a consistent aspect ratio for all images */
  object-fit: cover; /* Ensures images fill the space without distortion */
  border-radius: 5px;
}
@media (max-width: 1024px) {
  .service {
    flex: 1 1 calc(50% - 20px);
    max-width: calc(50% - 20px);
  }
}
@media screen and (min-width: 992px) {
  .nav-menu {
    display: flex;
    flex-direction: row;
    position: static;
    background: none;
    height: auto;
    opacity: 1;
    box-shadow: none;
  }

  .menu-btn {
    display: none;
  }

  .close-btn {
    display: none;
  }

  .call-us-btn {
    display: inline-block;
  }

  .nav-links {
    flex-direction: row;
    gap: 20px;
  }

  .nav-links a {
    color: #fff;
  }
}
/* Responsive Styles */
/* For tablets and smaller devices */
/* hero section */
@media (max-width: 992px) {
  /* hero main */
  .nav-menu {
    display: none;
  }

  .nav-menu.active {
    display: flex;
  }

  .menu-btn {
    display: block;
  }

  .close-btn {
    display: block;
  }

  .call-us-btn {
    display: inline-block;
  }

  .hero-content h1 {
    font-size: 40px;
  }
  .hero-content h2 {
    font-size: 30px;
  }
  .cta-btn {
    text-decoration: none;
    font-size: 14px;
    padding: 10px 20px;
  }
}

.call-us-btn {
  text-decoration: none;
  margin-top: 10px;
}

.hero-content h1 {
  font-size: 30px;
}

.hero-content h2 {
  font-size: 20px;
}

/* For phones */

@keyframes zoomAndFade {
  0% {
    opacity: 0;
    transform: scale(0.5);
    color: #ffffff; /* Start with white */
  }
  50% {
    opacity: 0.7;
    transform: scale(1.1);
    color: #76c7c0; /* Light blue for mid-transition */
  }
  100% {
    opacity: 1;
    transform: scale(1);
    color: #00ff00; /* End with green */
  }
}
/* hero page */
.hero-content h1,
.hero-content h2 {
  opacity: 0;
  animation: zoomAndFade 2s ease-out forwards;
}

.hero-content h2 {
  animation-delay: 0.5s; /* Start slightly after the h1 */
}

.about-container {
  margin-top: 40px;
  display: flex;
  justify-content: center; /* Center the content horizontally */
  align-items: center; /* Center the content vertically */
  width: 100%;
  /* height: 100vh; Full height of the viewport */
  padding: 20px;
  box-sizing: border-box; /* Include padding in width/height */
}

.about-section {
  display: flex;
  flex-direction: row; /* Arrange text and images in a row */
  width: 100%;
  max-width: 1400px; /* Increase the container width for a more spacious layout */
  gap: 30px; /* Add more space between text and image sections */
}

.text-section {
  flex: 1; /* Take up half the container */
  padding: 20px;
}

.text-section h1 {
  font-size: 2.5rem; /* Increase the size of the main title */
  margin-bottom: 20px;
}

.text-section p {
  font-size: 1.2rem; /* Increase paragraph text size */
  line-height: 1.8; /* Improve readability with proper line spacing */
  margin-bottom: 20px;
}

.text-section h2 {
  font-size: 2rem; /* Slightly larger for section titles */
  margin-top: 20px;
}

.image-section {
  flex: 1; /* Take up the other half */
  display: flex;
  flex-direction: column; /* Stack images vertically */
  align-items: center; /* Center images horizontally within the section */
  justify-content: space-between; /* Distribute images evenly */
  height: 100%; /* Stretch to match container height */
}

.image-section img {
  width: 100%; /* Responsive width */
  max-width: 400px; /* Limit max width */
  height: auto; /* Maintain aspect ratio */
  object-fit: cover; /* Ensure images fit proportionally */
  border-radius: 8px; /* Optional: Add rounded corners */
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2); /* Slightly stronger shadow for emphasis */
  margin-bottom: 15px; /* Add spacing between images */
}

.values-title {
  margin-left: 32px;
}
.values-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around; /* Space out items evenly */
  align-items: center; /* Align icons and text vertically */
  gap: 20px; /* Add space between items */
  padding: 30px;
  text-align: center;
}

.value-item {
  display: flex;
  flex-direction: column; /* Stack icon and text vertically */
  align-items: center; /* Center-align items */
  gap: 10px; /* Add spacing between icon and text */
  font-size: 1.2rem; /* Adjust text size */
  color: #333; /* Neutral text color */
}

.value-item i {
  font-size: 3rem; /* Size of the icon */
  color: #007bff; /* Icon color (primary blue) */
}

@media (max-width: 600px) {
  @media (max-width: 600px) {
    .contact-container {
      grid-template-columns: repeat(
        auto-fit,
        minmax(80px, 1fr)
      ); /* More compact on smaller screens */
      gap: 10px; /* Reduce spacing */
    }
  }
  .footer-links {
    flex-direction: column; /* Stack links vertically */
    gap: 10px;
  }

  .footer-links a {
    font-size: 13px; /* Smaller text for very small screens */
  }

  footer {
    padding: 15px 0; /* Reduce padding on smaller screens */
  }

  .footer-copyright {
    font-size: 12px; /* Further reduce copyright text size */
    margin-top: 5px;
  }
}
@media screen and (max-width: 768px) {
  .about-section {
    flex-direction: column; /* Stack sections vertically */
    gap: 20px; /* Reduce gap between sections */
  }

  .text-section {
    text-align: center; /* Center-align text for better appearance */
  }

  .text-section h1 {
    font-size: 2rem; /* Adjust heading size */
  }

  .text-section p {
    font-size: 1rem; /* Adjust paragraph text size */
  }

  .image-section {
    align-items: center; /* Center-align images */
  }

  .values-section {
    gap: 15px; /* Reduce gap for smaller screens */
  }

  .value-item {
    font-size: 1rem; /* Reduce text size */
  }

  .value-item i {
    font-size: 2.5rem; /* Reduce icon size */
  }
  /* services */
  .service {
    flex: 1 1 100%;
    max-width: 100%;
  }
  .services {
    gap: 15px;
  }
  .service-content {
    padding: 0.75rem;
  }
  .service-content h2 {
    font-size: 1.4rem;
  }
  .service-content p,
  .service-content ul li {
    font-size: 1rem;
  }
}

@media screen and (max-width: 480px) {
  .text-section h1 {
    font-size: 1.8rem; /* Further adjust heading size */
  }

  .text-section p {
    font-size: 0.9rem; /* Adjust paragraph text size */
  }

  .values-section {
    flex-direction: column; /* Stack value items vertically */
  }

  .value-item {
    font-size: 0.9rem; /* Further reduce text size */
  }

  .value-item i {
    font-size: 2rem; /* Further reduce icon size */
  }

  .image-section img {
    max-width: 100%; /* Make images fully responsive */
  }
  /* services */
  .services {
    padding: 10px;
  }
  .service-content {
    padding: 0.5rem;
  }
  .service-content h2 {
    font-size: 1.2rem;
  }
  .service-content p,
  .service-content ul li {
    font-size: 0.9rem;
  }
}
