/* General Reset */
body, h1, h2, p {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  /* Promo Banner */
.promo-banner {
    position: absolute;
    top: 10%;
    width: 100%;
    height: 7%;
    background-color: #4a6473;
    color: #fff;
    padding: 10px;
    font-size: 16px;
    text-align: center;
    overflow: hidden; /* Ensures no scrollbar */
}

.promo-banner h2 {
    display: inline-block;
    white-space: nowrap;
    animation: scroll-left 15s linear infinite;
    margin: 0; /* Remove any default margin to avoid shifting */
}

/* Scroll Left Animation */
@keyframes scroll-left {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

  
  
  /* about Section */
  .about-section {
    background: url('../images/colse-up-solar-panels-sunset.jpg') no-repeat center center/cover;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-direction: column;
  }
  
  .about-section h1 {
    font-size: 3rem;
    color: white;
    font-weight: bold;
    margin-top: 15%;
    margin-bottom: 5%;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  }


  .gallery-headings{
    text-align: center;
    margin-top: 50px;
  }

  .gallery-headings h2{
    color: #4a6473;
    font-size: 50px;
  }

  .gallery-headings h4{
    margin-top: 10px;
    color: #5a5757;
    font-size: 30px;
  }
  
  
  .stats-container {
            display: flex;
            justify-content: space-around;
            align-items: center;
            background-color: #e02222; /* Green background */
            color: white;
            padding: 20px;
            text-align: center;
        }
        .stat-box {
            flex: 1;
        }
        .stat-box h2 {
            font-size: 3rem;
            margin: 0;
        }
        .stat-box p {
            font-size: 2rem;
            margin: 5px 0 0;
        }
        .divider {
            width: 2px;
            height: 100px;
            background-color: white;
        }
        @media (max-width: 768px) {
            .stats-container {
                flex-direction: column;
            }
            .divider {
                width: 50%;
                height: 2px;
                margin: 10px 0;
            }
        }


  .gallery-subheadings1, .gallery-subheadings2,.gallery-subheadings3,.gallery-subheadings4,.gallery-subheadings5,.gallery-subheadings6,.gallery-subheadings7,.gallery-subheadings8,.gallery-subheadings9,.gallery-subheadings10,.gallery-subheadings11{
    display: none;
    text-align: center;
    margin-top: 50px;
    color: #4a6473;
    font-size: 15px;
    /* margin-bottom: -5%; */
    margin-top: 1%;
  }


  .gallery {
    display: flex;
    align-items: center;
    position: relative;
    width: 95%;
    height: auto;
    margin: 4% auto;
    overflow: hidden;
}

.folders {
    display: flex;
    transition: transform 0.5s ease;
    gap: 10px; /* Space between images */
    /* margin-top: -5%;
    margin-bottom: -5%; */
}

.folder {
    flex: 0 0 calc(25% - 10px); /* For 4 items on large screens */
    max-width: calc(25% - 10px);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.folder img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
}

.arrow.left {
    left: 0;
}

.arrow.right {
    right: 0;
}

/* Media Queries */
@media (max-width: 768px) {
    .folder {
        flex: 0 0 calc(50% - 10px); /* For 2 items on medium screens */
        max-width: calc(50% - 10px);
    }
}

@media (max-width: 480px) {
    .folder {
        flex: 0 0 100%; /* For 1 item on small screens */
        max-width: 100%;
    }
}


/* Styling for each site */
.p1, .p2, .p3, .p4, .p5, .p6, .p7, .p8, .p9, .p10, .p11 {
  display: none; /* Hidden by default */
  flex-direction: row; /* Change to row */
  align-items: center;
  justify-content: space-around;
  background: #fff;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  gap: 2%; /* Add some spacing between images */
}

/* Ensure images are sized properly */
.p1 img, .p2 img, .p3 img, .p4 img, .p5 img, .p6 img , .p7 img, .p8 img , .p9 img, .p10 img , .p11 img{
  margin-top: 5%;
  flex-basis: 30%;
  width: 200px;
  height: 200px;
  cursor: pointer;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

#backButton{
  display: none;
  margin: 20px auto;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .p1, .p2, .p3, .p4, .p5, .p6, .p7, .p8, .p9, .p10, .p11 {
      flex: 0 0 calc(50% - 20px);
      max-width: calc(50% - 20px);
  }
}

@media (max-width: 600px) {
  .p1, .p2, .p3, .p4, .p5, .p6, .p7, .p8, .p9, .p10, .p11 {
      flex: 0 0 100%;
      max-width: 100%;
      flex-direction: column; /* Stack images vertically on small screens */
  }

  .p1 img, .p2 img, .p3 img, .p4 img, .p5 img, .p6 img, .p7 img, .p8 img , .p9 img, .p10 img , .p11 img {
      width: 100%; /* Full width for small screens */
  }
}


  
/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 20;
  padding: 20px;
  box-sizing: border-box;
}

.modal-content {
  background: white;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  position: relative;
  width: 90%; /* Ensure modal is responsive */
  max-width: 700px; /* Set a max width */
  max-height: 90%;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  overflow: auto; /* Prevent content overflow */
}

.modal-content img {
  max-width: 80%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 20px;
  margin-top: 20px;
}

.modal-content h2 {
  margin: 15px 0;
  font-size: 28px;
  color: #333;
}

.modal-content p {
  margin-top: 10px;
  font-size: 20px;
  color: #555;
  line-height: 1.6;
  word-wrap: break-word; /* Ensure long text wraps */
  overflow-wrap: break-word; /* Support for wrapping long words */
  overflow-y: auto; /* Enable scrolling if content is too long */
}

.close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 42px;
  font-weight: bold;
  cursor: pointer;
  color: #555;
}

.close:hover {
  color: #ff0000;
}



