@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Source+Serif+4:ital,opsz,wght@0,8..60,200..900;1,8..60,200..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
  user-select: none;
}

html {
  overflow-x: hidden;
  font-family: Poppins, 'Segoe UI', sans-serif;
  color: var(--text-color);
  scroll-behavior: smooth;
}

body {
  background-color: #f9f9f9;
}

/* Section 1 */
.section1 {
  height: 100vh;
  width: 100vw; /* Use vw instead of dvw */
  max-width: 100%; /* Prevents overflow */
  background: url('images/back1.jpg') no-repeat center center/cover;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.intro{
  text-align: center;
  color: white;
  text-shadow: 2px 2px grey;
  width: min(600px, 90%);
  font-family: 'Libre Baskerville';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}


.intro h1{
  font-size: 50px;
}

@media screen and (max-width: 700px) {

  .intro img {

    width: 65%;

  }
  .intro h1{
    font-size: 32.5px;
  }
  .intro h2{
    font-size: 20px;
  }


}

@media (max-width: 600px) {

  .intro-2 h2 {
    font-size: 20px;
  }
  .intro-2 p {
    font-size: 13px;
  }

}

@media (max-width: 1312px) {
  .section2 {
      flex-direction: column; /* Stack items vertically */
  }

}

.section2 {
  display: flex;
  justify-content: center; /* Center horizontally */
  align-items: center; /* Center vertically */
  gap: 20px;
  padding: 20px;
  box-sizing: border-box;
}

.sec2-items {
  padding: 10px;
}

.intro-2 {
  box-shadow: 12px 12px 12px rgba(0, 0, 0, 0.1), -10px -10px 10px white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
  height: 400px;
  max-width: 600px;
  max-height: 400px;
  padding: 20px;
  border-radius: 5px;
}

.slider {
  display: flex;
  gap: 20px;
  object-fit: contain;
  width: 100%;
  max-width: 600px; /* Matches .intro-2 */
  overflow-x: scroll;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  justify-content: flex-start; /* Aligns the items to the start of the container */
}

.slider::-webkit-scrollbar {
  display: none; /* Hide scrollbar (Chrome, Safari, Edge) */
}

.slides {
  position: relative;
  scroll-snap-align: start;
  flex: 0 0 auto; /* Prevents shrinking, keeps width at 100% */
  width: 100%; /* Ensures each slide takes full width of container */
  text-align: center;
}

.slides img {
  width: 100%;
  height: auto;
  border-radius: 14px;
}


.text-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
  padding: 20px;
  text-align: center;
}

.text-overlay h1 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.text-overlay h2 {
  font-size: 1.2rem;
}

@media (max-width: 500px) {
  .text-overlay h1 {
    font-size: calc(2rem * 0.65); 
  }

  .text-overlay h2 {
    font-size: calc(1.2rem * 0.65); 
  }
}

@media (max-width: 350px) {
  .text-overlay h1 {
    font-size: calc(2rem * 0.5); 
  }

  .text-overlay h2 {
    font-size: calc(1.2rem * 0.5); 
  }
}

.section3 {
  background-image: url(images/section3bg.jpg);
  height: 900px;
  z-index: 1;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
  width: 100%;
  gap: 20px;
}

.bulb {
  width: 80px;
  height: auto;
  padding: 0;
  margin: 0;
}

.section3 h1 {
  font-size: 2.5rem;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 30px;
  text-align: center;
  text-shadow: 5px 5px 5px rgb(0, 0, 0);
}

.item-row {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 50px;
  width: 100%;
  max-width: 1300px;
  margin-bottom: 20px;
  flex-wrap: wrap; /* Allow items to wrap when necessary */
}

.item {
  flex: 1;
  max-width: 500px;
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  transition: transform 0.3s ease, filter 0.3s ease, max-width 0.3s ease;
}

.item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(0.5px);
  transition: transform 0.3s ease;
  transition: filter 0.8s ease-in-out;
}

.text-overlay2 {
  position: absolute;
  color: rgb(255, 255, 255);
  font-size: 1.2rem;
  font-weight: bold;
  text-shadow: 8px 8px 8px rgb(0, 0, 0);
  text-align: center;
  padding: 50px;
  opacity: 0; /* Initially hidden */
  transform: translateY(20px); /* Initially below the item */
  transition: opacity 0.5s ease, transform 0.5s ease; /* Smooth transition for fade and move */
}

.item:hover {
  max-width: 550px;
  transform: scale(1.1);
}

.item:hover img {
  filter: blur(4px);
}

.item:hover .text-overlay2 {
  opacity: 1; /* Fade in when hovered */
  transform: translateY(0); /* Move into place */
}

@media (max-width: 1000px) {


  .item-row {
    gap: 32px;
    width: 100%;
    max-width: 600px;
    margin-bottom: 5px;
  }

  .section3 h1 {
    font-size: 30px;
  }

  .bulb {
    width: 50px;
  }

  .text-overlay2 {
    font-size: 1rem;
    padding: 20px;
  }
}

@media (max-width: 500px) {

  .text-overlay2 {
    font-size: 0.8rem;
    padding: 5px;
  }

  .section3 {
    height: auto;

  }

}

@media (max-width: 350px) {

  .text-overlay2 {
    font-size: 0.6rem;
  }

  .section3 h1 {
    font-size: 18px;
  }

  .bulb {
    width: 30px;
  }

}

.section4 {
  padding: 2rem;
  gap: 2rem;
}

.section4 h2 {
  font-size: 2rem;
  font-weight: bold;
  text-align: center;
  padding: 8px;
}

.section4 p {
  color: #4b5563;
}

.testimonial-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.testimonial-item {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  align-items: center;
}

.testimonial-item.reverse {
  flex-direction: row-reverse;
}

.testimonial-text {
  background-color: white;
  padding: 1rem;
  border-radius: 1rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 500px;
}

.sec4img {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 1rem;
  object-fit: cover;
}

.quote {
  font-size: 1.25rem;
  font-weight: 600;
}

.client {
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 0.5rem;
}

.see-more {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background-color: #22c55e;
  color: white;
  font-weight: 500;
  border-radius: 1rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  transition: background-color 0.3s;
}

.see-more:hover {
  background-color: #16a34a;
}


@media (max-width: 900px) {

  .section4 h2 {
    padding: 0;
  }

  .testimonial-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }

  .testimonial-item {
    display: block; /* Change to block-level so they stack vertically */
    width: 100%;
    align-items: flex-start;
  }

  .sec4img {
    max-width: 100%; /* Ensure image stretches within the width */
  }

  .testimonial-text {
    width: 100%;
    max-width: none; /* Remove the max-width constraint for the text box */
  }
}

@media (max-width: 500px) {
  .section4 h2 {
    font-size: 1.5rem;
  }
}


footer {
  background-color: #333; /* Dark background for the footer */
  color: white; /* White text color */
  padding: 40px 20px;
  font-family: Arial, sans-serif;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  flex-direction: column; /* Makes the columns stack on top of each other */
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr; /* 3 columns with middle column wider */
  grid-gap: 20px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-logo img {
  max-width: 200px; /* Adjust logo size */

}

.footer-middle h3 {
  font-size: 24px;
  margin-bottom: 15px;
}

.footer-middle p {
  font-size: 16px;
  margin-bottom: 20px;
}

footer ul {
  list-style: none;
  padding: 0;
}

footer ul li {
  margin-bottom: 10px;
}

footer a {
  color: #FF9D3D; /* Accent color for links */
  text-decoration: none;
}

.footer-right {
  display: flex;
  flex-direction: column; /* Default: Stack the icons vertically */
  font-size: 2rem; /* Size of the icons */
  margin-right: 0;
  color: #fff; /* Icon color */
  text-decoration: none; /* Remove underline */
}

.footer-right a{
  width: 10px;
  padding: 3px;
}


.footer-bottom {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #999;
  }


.footer-right .social-media a {
  display: block;
  margin-bottom: 10px;
  color: #FF9D3D;
}

.footer-right a:hover {
  color: #ff5733; /* Change color on hover */
  transition: color 0.3s ease;
}

footer p {
  margin-top: 20px;
  font-size: 14px;
  color: #999;
}

@media screen and (max-width: 580px) {
  .footer-content {
    grid-template-columns: 1fr; /* Stack everything on mobile */
  }

  .footer-logo img {
    margin-bottom: 20px;
  }

  .footer-middle,
  .footer-right {
    margin-top: 20px;
  }
}

.request {
  border-radius: 5px;
  padding: 5px;
  background-color: #FF9D3D;
  color: white;
  display: inline-block; /* Ensure it's inline for hover effect */
  transition: transform 0.1s ease, color 0.3s ease, background-color 0.3s ease-in-out; /* Combined all transitions */
}

.request:hover {
  animation: shake 0.5s ease-in-out infinite;
  background-color: white;
  color: #FF9D3D; /* If you want the text color to change as well */
}

@keyframes shake {
  0% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  50% {
    transform: translateX(5px);
  }
  75% {
    transform: translateX(-5px);
  }
  100% {
    transform: translateX(0);
  }
}
