@media (max-width: 700px) {
  .gallery-grid img,
  .gallery-grid .project-thumb {
    width: 100% !important;
    max-width: 100vw !important;
    height: auto !important;
    object-fit: contain !important;
    background: #fff !important;
    border-radius: 12px !important;
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
  }
}
@media (max-width: 700px) {
  .gallery-grid {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }
  .gallery-grid figure,
  .gallery-grid .detail-figure {
    width: 100vw !important;
    max-width: 100vw !important;
    margin: 0 auto !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }
  .gallery-grid img,
  .gallery-grid .project-thumb {
    width: 100% !important;
    max-width: 100vw !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
  }
}
@media (max-width: 700px) {
  .detail-gallery-grid {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0 !important;
  }
  .detail-gallery-grid img,
  .project-thumb {
    width: 100% !important;
    max-width: 100vw !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
  }
}
@media (max-width: 700px) {
  .detail-gallery-grid img,
  .project-thumb {
    width: 98vw !important;
    max-width: 98vw !important;
    height: auto !important;
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}
/* Testimonial Component Styles */
  .testimonial {
    background: #2c3e50;
    margin: 1.5rem auto 0 auto;
    padding: 1rem 1.2rem;
    font-style: italic;
    font-size: 1rem;
    max-width: 480px;
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.06);
    border-radius: 12px 12px 0 0;
    color: #fff;
    overflow: visible;
    word-break: break-word;
    border-bottom: none;
  }

.testimonial footer {
  background: #fff;
  color: var(--primary-color, #2c3e50);
  border-radius: 0 0 12px 12px;
  margin: 0 -1.2rem -1.2rem -1.2rem;
  padding: 0.7em 1.2em 0.7em 1.2em;
  font-style: normal;
  box-shadow: 0 2px 8px rgba(44, 62, 80, 0.03);
  border-top: none;
  text-align: left;
  border: 1.5px solid #2c3e50;
  border-top: none;
}
.testimonial-author {
  display: inline;
  font-weight: bold;
  color: var(--primary-color, #2c3e50);
  font-style: normal;
  background: none;
  padding: 0;
  border-radius: 0;
  font-size: 1em;
  letter-spacing: 0.01em;
}
/* Ensure uniform image sizes in the main gallery grid */
.gallery-grid .project-thumb {
  width: 220px !important;
  height: 150px !important;
  object-fit: cover !important;
  display: block;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

@media (max-width: 700px) {
  .gallery-grid .project-thumb {
    width: 100vw !important;
    max-width: 98vw !important;
    height: auto !important;
    object-fit: contain !important;
    margin-left: -1vw;
    margin-right: -1vw;
  }
}
.detail-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
}
.detail-gallery-grid img {
  width: 180px;
  height: 110px;
  object-fit: cover;
  display: block;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

@media (max-width: 700px) {
  .detail-gallery-grid {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 20px;
    justify-items: center;
  }
  .detail-gallery-grid img {
    width: 98vw;
    max-width: 98vw;
    height: auto;
    margin-left: 0;
    margin-right: 0;
  }
  .detail-figure {
    width: 100%;
  }
}
/* style.css */

:root {
    --primary-color: #2c3e50;
    --accent-color: #3498db;
    --light-gray: #f7f9fa;
    --dark-gray: #7f8c8d;
    --text-color: #2c3e50;
    --white: #ffffff;
    --secondary-color: #0f0d3d; /* Added secondary color */
  }
  
  body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--light-gray);
    color: var(--text-color);
    line-height: 1.6;
  }
  
  header.hero {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 4rem 1rem;
  }
  
  header.hero h1 {
    font-size: 2.5rem;
    margin: 0;
  }
  
  header.hero p {
    font-size: 1.25rem;
    margin-top: 0.5rem;
  }
  
  section {
    padding: .25rem .15rem; /* Reduce vertical padding */
    max-width: 960px;
    margin: .25rem auto; /* Reduce vertical margin */
  }
  
  h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 2rem;
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
  }
  
  ul {
    list-style-type: none; /* Remove default bullets */
    padding-left: 0; /* Remove default padding */
  }

  ul li {
    position: relative;
    padding-left: 1.5rem; /* Add space for custom icon */
    margin-bottom: 1rem; /* Add spacing between list items */
    line-height: 1.25; /* Maintain line height */
    font-size: 1.1rem; /* Adjust font size */
  }

  ul li::before {
    content: "✔"; /* Add a checkmark as a custom bullet */
    position: absolute;
    left: 0;
    color: var(--accent-color); /* Use accent color for the checkmark */
    font-size: 1.2rem; /* Adjust checkmark size */
  }

  .services ul,
  .project-types ul {
    column-count: 2; /* Split the list into two columns */
    column-gap: 2rem; /* Add spacing between columns */
  }
  
  .portfolio p {
    font-style: italic;
    color: var(--dark-gray);
  }
  
  .contact form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem; /* Increase spacing between form elements */
    max-width: 500px; /* Adjust form width */
    margin: 0; /* Remove horizontal centering */
    padding: 1rem; /* Add padding around the form */
    background-color: var(--white); /* Add background color */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Add subtle shadow */
    border-radius: 8px; /* Round the corners */
  }
  
  .contact h2 {
    text-align: center; /* Center the heading */
    font-size: 1.75rem; /* Adjust font size */
    margin-bottom: 1rem; /* Add spacing below the heading */
  }
  
  .contact input,
  .contact textarea {
    padding: 1rem; /* Increase padding for inputs */
    border: 1px solid var(--dark-gray);
    border-radius: 5px;
    font-size: 1rem;
    background-color: var(--white);
  }
  
  .contact textarea {
    min-height: 150px;
    resize: vertical;
  }
  
  .contact button {
    padding: 1rem; /* Maintain padding */
    background-color: var(--accent-color); /* Match site's accent color */
    color: var(--white); /* Use white text */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1rem; /* Maintain font size */
    transition: background-color 0.3s ease;
  }
  
  .contact button:hover {
    background-color: #2573a6; /* Slightly darker shade for hover effect */
  }
  
  label {
    display: flex;
    flex-direction: column;
    font-weight: bold; /* Make the label text bold */
  }
  
  button {
    background-color: #007bff; /* Button color */
    color: white;
    border: none;
    padding: 0.75rem;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 5px;
  }
  
  button:hover {
    background-color: #0056b3; /* Darker shade on hover */
  }
  
  footer {
    text-align: center;
    padding: 1rem;
    background-color: var(--primary-color);
    color: var(--white);
    font-size: 0.9rem;
  }

  .phone {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: var(--primary-color);
  }

  .phone-link {
    text-decoration: none;
    color: var(--secondary-color);
  }

  .phone-link:hover {
    text-decoration: underline;
  }

  .about p {
    font-size: 1.1rem; /* Match font size with lists */
    line-height: 1.25; /* Maintain consistent line height */
  }

  .banner {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 10px;
    display: flex; /* Use flexbox for layout */
    align-items: center;
    justify-content: space-between; /* Space between logo and phone number */
    background-color: transparent;
    color: #fff;
    font-size: 1.2em;
    z-index: 1000;
    transition: background-color 0.3s ease, height 0.3s ease; /* Add height transition */
  }

  .banner.scrolled {
    background-color: rgba(0, 0, 0, 0.8);
    height: 80px; /* Increase height when scrolled */
  }

  .banner-logo {
    height: 40px; /* Adjust logo size */
    margin-right: 10px; /* Add spacing between logo and text */
    opacity: 0; /* Hide the logo initially */
    transition: opacity 0.3s ease; /* Smooth transition for visibility */
  }

  .banner.scrolled .banner-logo {
    opacity: 1; /* Show the logo when scrolled past hero */
  }

  .banner-phone {
    position: absolute;
    right: 50px; /* Position 50px from the right edge */
    top: 5px; /* Move closer to the top */
    padding: 10px 20px; /* Add padding for the button-like appearance */
    background-color: var(--accent-color); /* Background color for the phone area */
    color: var(--white); /* Text color */
    border-radius: 8px; /* Rounded corners */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Add a subtle shadow */
    font-weight: bold; /* Make the text bold */
    text-align: center; /* Center the text */
    transition: background-color 0.3s ease, opacity 0.3s ease; /* Add opacity transition */
    opacity: 0; /* Initially hidden */
    pointer-events: none; /* Prevent interaction when hidden */
  }

  .banner.scrolled .banner-phone {
    top: 5px; /* Ensure it stays at the same distance from the top */
    opacity: 1; /* Show when scrolled past hero */
    pointer-events: auto; /* Enable interaction */
  }

  .banner .phone-link {
    color: var(--white); /* Ensure the phone link matches the text color */
    text-decoration: none; /* Remove underline */
  }

  .banner .phone-link:hover {
    text-decoration: underline; /* Add underline on hover */
  }

  .contact-instructions {
    background: #eaf6fb;
    border-left: 4px solid var(--accent-color);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    border-radius: 6px;
    font-size: 1rem;
    color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(52, 152, 219, 0.05);
  }

  /* Splide.js Styles */
.splide {
  max-width: 900px;
  margin: 2rem auto;
}

.splide__slide img {
  width: 350px;
  height: 240px;
  object-fit: cover;
  display: block;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  margin: 0 auto;
}

.splide__arrow {
  background-color: var(--accent-color);
  color: var(--white);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.splide__arrow--prev {
  left: -50px;
}

.splide__arrow--next {
  right: -50px;
}

.splide__arrow:hover {
  background-color: #2573a6;
}

.splide__pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.splide__pagination__page {
  width: 12px;
  height: 12px;
  background-color: var(--dark-gray);
  border-radius: 50%;
  cursor: pointer;
}

.splide__pagination__page.is-active {
  background-color: var(--accent-color);
}

.splide__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.splide__slide::before {
  content: none;
}

/* Thumbnail Gallery Styles */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 32px; /* row-gap column-gap */
  justify-content: start;
  align-items: start;
  margin-top: 24px;
}
.project-thumb-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  padding: 0 0 12px 0;
}
.project-thumb {
  width: 220px;
  height: 150px;
  object-fit: cover;
  display: block;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.project-thumb-title {
  font-weight: 500;
  text-align: center;
  padding: 12px 8px 0 8px;
  font-size: 1.1rem;
  color: #222;
  display: block;
  width: 100%;
  margin: 0 auto;
}

.project-thumb-title a {
  color: #222;
  text-decoration: none;
  transition: color 0.2s;
  font-weight: 500;
  /* Inherit font size and style from .project-thumb-title */
}

.project-thumb-title a:hover,
.project-thumb-title a:focus {
  color: var(--accent-color);
  text-decoration: underline;
}

/* Ensure all gallery images are responsive on mobile */
.gallery-grid img,
.project-thumb-card img {
  max-width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Project Detail Gallery Styles */
.project-detail-gallery {
  max-width: 900px;
  margin: 2rem auto;
  padding: 1rem;
}

.detail-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  justify-content: center;
  align-items: center;
}

.detail-image {
  width: 100%;
  max-width: 400px;
  height: 240px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
  background: #fff;
  display: block;
  margin: 0 auto;
}

/* Responsive: stack to one column on small screens */
@media (max-width: 700px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .project-thumb {
    width: 100vw;
    max-width: 98vw;
    height: 220px;
    margin-left: -1vw;
    margin-right: -1vw;
  }
}

@media (max-width: 768px) {
  header.hero {
    padding: 2rem 1rem; /* Reduce padding for smaller screens */
  }

  header.hero h1 {
    font-size: 2rem; /* Adjust font size */
  }

  header.hero p {
    font-size: 1rem; /* Adjust font size */
  }

  header.hero img.logo {
    max-width: 150px; /* Reduce logo size */
    height: auto;
  }
}

@media (max-width: 480px) {
  header.hero h1 {
    font-size: 1.75rem; /* Further reduce font size */
  }

  header.hero p {
    font-size: 0.9rem; /* Further reduce font size */
  }

  header.hero img.logo {
    max-width: 120px; /* Further reduce logo size */
    height: auto;
  }

  .contact form {
    padding: 0.5rem; /* Reduce padding */
  }

  .contact input,
  .contact textarea {
    font-size: 0.8rem; /* Further adjust input font size */
    padding: 0.5rem; /* Further adjust padding */
  }

  .contact button {
    font-size: 0.9rem; /* Further adjust button font size */
    padding: 0.5rem; /* Further adjust padding */
  }
}

#addReferralLink {
  display: inline-block;
  margin: 10px 0;
  color: #2196f3;
  background: #fff;
  border: 2px solid #2196f3;
  border-radius: 4px;
  padding: 10px 20px;
  font-size: 1.1em;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  text-align: center;
}
#addReferralLink:hover,
#addReferralLink:focus {
  background: #2196f3;
  color: #fff;
  border-color: #1976d2;
  text-decoration: none;
}

.back-to-gallery-btn {
  display: block;
  margin-left: auto;
  margin-right: auto;
  padding: 0.7em 1.5em;
  background-color: var(--accent-color, #3498db);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 1.08rem;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(52,152,219,0.08);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.back-to-gallery-btn:hover,
.back-to-gallery-btn:focus {
  background-color: #2573a6;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(52,152,219,0.15);
}

/* Testimonial Style 1: Modern Card */
.testimonial-style1 {
  background: #fffbe6;
  color: #2c3e50;
  border-radius: 16px;
  border: 1.5px solid #e1c97a;
  box-shadow: 0 4px 16px rgba(44,62,80,0.10);
  font-style: normal;
}
.testimonial-style1 footer {
  background: #e1c97a;
  color: #2c3e50;
  border-radius: 0 0 16px 16px;
  border: none;
}

/* Testimonial Style 2: Classic Border Left */
.testimonial-style2 {
  background: #f7f7f7;
  color: #2c3e50;
  border-left: 6px solid #2c3e50;
  border-radius: 0 12px 12px 0;
  box-shadow: 0 2px 8px rgba(44,62,80,0.08);
  font-style: italic;
}
.testimonial-style2 footer {
  background: #fff;
  color: #2c3e50;
  border-radius: 0 0 12px 0;
  border: none;
}

/* Testimonial Style 3: Elegant Shadow */
.testimonial-style3 {
  background: #eaf0f6;
  color: #1a2633;
  border-radius: 12px;
  border: 1.5px solid #b7c9e2;
  box-shadow: 0 8px 32px rgba(44,62,80,0.18);
  font-style: italic;
  position: relative;
}
.testimonial-style3:before {
  content: '\201C';
  font-size: 3rem;
  color: #b7c9e2;
  position: absolute;
  left: 18px;
  top: 8px;
  opacity: 0.4;
}
.testimonial-style3 footer {
  background: #b7c9e2;
  color: #1a2633;
  border-radius: 0 0 12px 12px;
  border: none;

/* Gallery Loading Spinner */
.gallery-spinner {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 120px;
  width: 100%;
}
.gallery-spinner .spinner {
  border: 6px solid #e0e0e0;
  border-top: 6px solid #2c3e50;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }

}
