body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  color: #333;
  /* background-image: url('../images/WallpaperDog-20582978.png'); */
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

header {
  background-color: rgba(51, 51, 51, 0.7); /* Adjust transparency as needed */
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  height: 5%;
}

.container {
  width: 88%;
  margin: 0 auto;
}

.acontainer {
  position: relative;
  text-align: center;
  color: white;
  width: 88%;
  margin: 0 auto;
}
.acontainer img {
  width: 100%;
  height: auto;
}
.Aoverlay {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black overlay */
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
.Aoverlay h2, .Aoverlay p {
  margin: 0;
  padding: 10px;
}


.logo-container {
  display: flex;
  align-items: center;
}

.logo {
  margin-right: 20px;
}

nav ul {
  list-style: none;
  margin: 30px;
  padding: 0;
  display: flex;
  align-items: center;
}

nav ul li {
  margin-left: 20px;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  padding: 10px 20px;
  border-radius: 5px;
  transition: background-color 0.3s, color 0.3s;
}

nav ul li a:hover,
nav ul li a.active {
  background-color: #9370DB;
  color: #333;
}

/* .hero {
  background: url("../images/office1.webp") no-repeat center center/cover;
  color: #fff;
  text-align: center;
  padding: 100px 0;
} */
#home {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

.slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.slideshow.active {
  opacity: 1;
}


#home {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  text-align: center;
}

#home:before {
  z-index: 1;
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* overlay color and opacity */
}

.hero {
  position: relative; 
  z-index: 1; 
  text-align: center; 
  color: #ffffff;
  padding: 1vh; 
  overflow: hidden;
}

.welcome {
  font-size: 8.7vw;
  font-family:'times new roman';
  font-weight: bold;
  text-shadow: 8px 15px 4px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
  transition: transform 0.3s ease;
  margin: 0;
  width:100vw;

}
.welcome:hover{
  transform: scale(1.1);
}

.motto {
  font-family: cursive;
  font-size: 2.5vw;
}
.content-section {
  padding: 50px 0;
}

.content-section h2 {
  text-align: center;
  margin-bottom: 20px;
}
.overlay {
  position: relative;
  padding: 80px 0; /* Adjust padding as needed */

  /* Overlay styles */
  &::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background-color: rgba(0, 0, 0, 0.5); Adjust opacity here */
    z-index: 1; /* Ensure it's below the content */
  }

  /* Ensure text is on top of the overlay */
  .container {
    position: relative;
    z-index: 2;
  }
  #about{
    position: relative;
    z-index: 2;
  }
}

/* Adjust text color to make it stand out */
/* .overlay h2,
.overlay .service h3,
.overlay .service p,
.overlay .portfolio-item h3,
.overlay .portfolio-item p,
.overlay #contact h2,
.overlay #contact p,
.overlay #contact form label,
.overlay #contact form input,
.overlay #contact form textarea,
.overlay #contact form button {
  color: white;
} */


#about img,
.service img,
.portfolio-item img {
  width: 100%;
  height: 200px;
  display: block;
  object-fit: cover;
  position: relative; /* Ensure relative positioning for overlay */
  border-top-left-radius: 29px;
  border-top-right-radius: 29px;
}

.services-grid,
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-gap: 20px;
}

.service,
.portfolio-item {
  border: 1px solid black;
  flex: 1 1 calc(33.33% - 20px); /* Ensure each item takes up 1/3 of the container width, accounting for gap */
  /* max-width: calc(33.33% - 20px); Ensure the maximum width does not exceed 1/3 of the container width */
  text-align: center;
  box-sizing: border-box; /* Include padding and border in the element's total width and height */
  position: relative; /* Ensure relative positioning for overlay */
  border-radius: 31px;
}

.middle {
  transition: .5s ease;
  opacity: 0;
  position: absolute;
  top: 27%;
  left: 50%;
  transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  text-align: center;
  z-index: 1; /* Ensure overlay is above the image */
}

.service:hover .middle,
.portfolio-item:hover .middle {
  opacity: 1;
}

.service:hover,
.portfolio-item:hover{
  background-color: #e2d3f0;
}

.service:hover img,
.portfolio-item:hover img {
  -webkit-filter: grayscale(100%) blur(3px);
  filter: grayscale(100%) blur(3px);
}

.text {
  background-color: hsl(252deg 39.43% 70.62%);
  color: white;
  font-size: 16px;
  padding: 16px 32px;
  cursor: pointer;
  border-radius: 2em;
}

#contact-form {
  display: flex;
  flex-direction: column;
}

#contact-form label {
  margin-top: 10px;
}

#contact-form input,
#contact-form textarea {
  padding: 10px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

#contact-form button {
  padding: 10px;
  background: #333;
  color: #fff;
  border: none;
  border-radius: 5px;
  margin-top: 20px;
  cursor: pointer;
}

.footer-container {
  background-color: #333;
  color: #fff;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
}

.footer-content {
  display: flex;
  justify-content: space-around;
  width: 100%;
  flex-wrap: wrap;
}

.footer-logo img {
  height: 50px;
  margin-bottom: 20px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links ul li a:hover {
  color: #800080;
}

.footer-contact {
  max-width: 300px;
}

.footer-contact p {
  margin: 15px 0;
}

.footer-contact a {
  color: #800080;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-contact a:hover {
  color: #9932CC;
}

.footer-social {
  display: flex;
  flex-direction: column;
}

.footer-social a {
  color: #800080;
  text-decoration: none;
  margin: 5px 0;
  transition: color 0.3s ease;
}

.footer-social a:hover {
  color: #9932CC;
}

.title {
  font-size: 40px;
  margin-top: 0;
  /* background-color: rgb(178 0 255 / 30%); */
  background-color: rgb(178 0 255);
}
