/* 
* Airtightness Services | Eleman Engineering
* A minimal yet aspirational design with clean lines and subtle animations
*/
@import url('../components/service-page-header.css');
@import url('../sections/energy-modeling/em-cta.css');

main {
  /* Header height + buffer */
  background-color: #ffffff;
  display: block;
}

/* === MAIN CONTENT LAYOUT - Added to match sustainability page === */


/* === PROCESS SECTION === */
.process {
  background-color: white;
  margin-top: 1rem; /* Add negative top margin to reduce space */
}

.process-timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-lg) 0;
}

.timeline-track {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background-color: var(--gray-300);
  transform: translateX(-50%);
 
}

.process-steps {
  position: relative;
  
}

.process-step {
  display: flex;
  margin-bottom: var(--space-xl);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* For odd numbered steps (1, 3), place elements on the right */
.process-step:nth-child(odd) {
  flex-direction: row-reverse;
}

/* For even numbered steps (2, 4), place elements on the left */
.process-step:nth-child(even) {
  flex-direction: row;
}

.step-number {
  flex: 0 0 80px;
  width: 80px;
  height: 80px;
  background-color: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 600;
  z-index: 1;
  box-shadow: 0 0 0 10px white;
}

.step-content {
  flex: 1;
  background-color: var(--gray-100);
  padding: var(--space-lg);
  border-radius: var(--border-radius);
  margin: 0 var(--space-lg);
  position: relative;
}

/* Base style for the quotation indicator */
.step-content::before {
  content: '';
  position: absolute;
  top: 30px;
  width: 20px;
  height: 20px;
  background-color: var(--gray-100);
  transform: rotate(45deg);
}

/* For odd steps, place the indicator on the right side to match the number */
.process-step:nth-child(odd) .step-content::before {
  right: -10px;
  left: auto;
}

/* For even steps, place the indicator on the left side to match the number */
.process-step:nth-child(even) .step-content::before {
  left: -10px;
  right: auto;
}

.step-details {
  margin-top: var(--space-md);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.step-details.active {
  max-height: 200px;
  padding: var(--space-md) 0;
}

.step-details ul {
  padding-left: var(--space-lg);
  list-style: none;
}

.step-details li {
  position: relative;
  margin-bottom: 0.5rem;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInUp 0.3s forwards;
}

.step-details.active li {
  animation-delay: 0.2s;
}

.details-toggle {
  background: none;
  border: none;
  color: var(--primary);
  font-weight: 500;
  cursor: pointer;
  padding: var(--space-xs) 0;
  margin-top: var(--space-sm);
  transition: color 0.3s ease;
}

.details-toggle:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.process-step.animate {
  opacity: 1;
  transform: translateY(0);
}

/* === CTA SECTION === */
.cta {
  /* Styles from whoweare.css .contact-cta */
  background: linear-gradient(135deg, #3498db, #1abc9c); /* Updated gradient */
  color: white;
  text-align: center;
  padding: 6.25rem 0; /* Updated padding (100px) */
  position: relative;
  overflow: hidden; 
}

/* Remove previously added decorative patterns */
/* .cta::before { ... } */
/* .cta::after { ... } */

.cta .container {
  position: relative;
  z-index: 1;
  max-width: 800px; /* Match whoweare.css .cta-content */
  margin: 0 auto; /* Match whoweare.css .cta-content */
  padding: 0 20px; /* Match whoweare.css .cta-content */
}

.cta p {
  /* Styles from whoweare.css .cta-content p */
  font-size: 1.2rem; 
  line-height: 1.7;
  margin-bottom: 2.5rem; 
  opacity: 0.9;
  max-width: none; /* Remove previous max-width constraint */
  margin-left: auto; /* Keep centered within container */
  margin-right: auto; /* Keep centered within container */
}

.cta-actions {
  /* Styles from whoweare.css .cta-buttons */
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 0; /* Keep margin 0 */
}

/* Button styles adapted from whoweare.css */
.cta .btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.cta .primary-btn {
    background: #2c3e50; /* Button color from whoweare.css */
    color: white;
    border-color: #2c3e50;
}

.cta .primary-btn:hover {
    background: #34495e;
    border-color: #34495e;
    transform: translateY(-2px);
}

.cta .secondary-btn {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cta .secondary-btn:hover {
    background: white;
    color: #2c3e50;
    transform: translateY(-2px);
}

/* Remove specific styling for quick contact form as it might conflict */
.quick-contact-form {
  /* Comment out or remove styles if not needed/conflicting */
  /* max-width: 700px; */
  /* ... other styles ... */
  display: none; /* Hide it for now to match whoweare.css */
}

/* Quick contact form trigger styling */
.quick-contact-form.active {
  /* Remove or adjust if keeping the form */
  /* max-height: 500px; */
  /* opacity: 1; */
}

/* Form input styles if keeping the form */
/* 
.form-row { ... } 
input, select, textarea { ... } 
input::placeholder, textarea::placeholder { ... }
textarea { ... }
.submit-btn { ... } 
.submit-btn:hover { ... }
*/

/* === ANIMATIONS === */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* === RESPONSIVE STYLES === */
@media (max-width: 992px) {
  .animated-title {
    font-size: 2.5rem;
  }
  
  .animated-subtitle {
    font-size: 1.2rem;
  }
  
  .process-timeline {
    padding-left: 40px;
  }
  
  .timeline-track {
    left: 40px;
  }
  
  .step-number {
    flex: 0 0 60px;
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  .step-content {
    margin: 0 var(--space-md);
  }
}

@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
  }

  /* Mobile Process Section Fixes */
  .process {
    padding: 2rem 1rem;
  }

  .process-timeline {
    padding-left: 30px;
    padding-right: 1rem;
  }
  
  .timeline-track {
    left: 30px;
  }
  
  .process-step {
    margin-bottom: 2rem;
  }
  
  .step-number {
    flex: 0 0 50px;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    box-shadow: 0 0 0 5px white;
  }
  
  .step-content {
    margin: 0 1rem;
    padding: 1.5rem;
  }

  .step-content h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }

  .step-content p {
    font-size: 0.9rem;
    line-height: 1.4;
  }
}

@media (max-width: 576px) {
  .animated-title {
    font-size: 2rem;
  }
  
  .cta-actions {
    flex-direction: column;
  }

  /* Mobile Phone Process Section */
  .process {
    padding: 1.5rem 0.5rem;
  }

  /* Ensure steps are visible by default on very small screens */
  .process-step {
    opacity: 1;
    transform: none;
  }

  .process-timeline {
    padding-left: 25px;
    padding-right: 0.5rem;
    max-width: none;
  }
  
  .timeline-track {
    left: 25px;
    width: 2px;
  }
  
  .process-step {
    margin-bottom: 1.5rem;
  }

  /* Force all steps to left alignment on mobile */
  .process-step:nth-child(odd),
  .process-step:nth-child(even) {
    flex-direction: row;
  }
  
  .step-number {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    font-size: 1rem;
    font-weight: 700;
    box-shadow: 0 0 0 3px white;
  }
  
  .step-content {
    margin: 0 0.5rem;
    padding: 1rem;
    border-radius: 15px;
  }

  /* Reset pseudo-element positioning for mobile */
  .process-step:nth-child(odd) .step-content::before,
  .process-step:nth-child(even) .step-content::before {
    left: -10px;
    right: auto;
  }

  .step-content h3 {
    font-size: 1rem;
    margin-bottom: 0.8rem;
  }

  .step-content p {
    font-size: 0.85rem;
    line-height: 1.3;
    margin-bottom: 1rem;
  }

  .details-toggle {
    font-size: 0.85rem;
    padding: 0.3rem 0;
  }

  .step-details {
    margin-top: 0.8rem;
  }

  .step-details ul {
    padding-left: 1rem;
  }

  .step-details li {
    font-size: 0.8rem;
    margin-bottom: 0.3rem;
  }
}

/* === NEW CAROUSEL STYLES === */
.services-carousel {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    margin-top: 1rem;
    margin-bottom: 2rem;
    overflow: hidden;
    background: #f6f6f8;
    padding: 80px 20px;
    box-sizing: border-box;
}

.carousel-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    overflow: hidden;
    height: auto;
    box-sizing: border-box;
}

.carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.carousel-item {
    flex: 0 0 calc(100% - 40px);
    margin: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    padding: 100px;
    border-radius: 50px;
    height: 450px;
    box-sizing: border-box;
}

/* Add different background colors for each carousel item */
.carousel-item:nth-child(1) {
    background: linear-gradient(135deg, #80d8a8, #5eb696);
}

.carousel-item:nth-child(2) {
    background: linear-gradient(135deg, #6ea8fe, #3d8bfd);
}

.carousel-item:nth-child(3) {
    background: linear-gradient(135deg, #ffca80, #ffc107);
}

.carousel-item:nth-child(4) {
    background: linear-gradient(135deg, #9d6dd3, #6c3eb5);
}

.item-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    width: 100%;
    height: 100%;
}

.text-content {
    flex: 1;
    padding: 20px;
    margin-left: 0;
    text-align: left;
}

.text-content h2 {
    font-size: 44px;
    color: white;
    margin: 0 0 20px;
    font-weight: bold;
}

.text-content h3 {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 15px;
    text-transform: uppercase;
}

.text-content p {
    font-size: 16px;
    color: white;
    margin: 0 0 40px;
}

.text-content .btn {
    display: none;
}

.text-content .btn:hover {
    background: white;
    color: #6c3eb5;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.image-content { display: none; }

.icon-content {
    flex-shrink: 0;
    width: 180px;
    height: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 28px;
    background: rgba(255,255,255,0.18);
    border: 2px solid rgba(255,255,255,0.6);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12), inset 0 0 20px rgba(255,255,255,0.15);
    backdrop-filter: blur(6px);
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
}

.icon-content i {
    font-size: 64px;
    color: #ffffff;
    text-shadow: 0 4px 20px rgba(0,0,0,0.25);
}

.carousel-item:hover .icon-content {
    transform: translateY(-6px) scale(1.04);
    box-shadow: 0 16px 40px rgba(0,0,0,0.18), inset 0 0 30px rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.24);
    border-color: rgba(255,255,255,0.85);
}

.image-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.indicators {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.indicators span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gray-500);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.indicators span.active {
    background: white;
    transform: scale(1.2);
    border-color: var(--primary);
}

.indicators span:hover {
    background: var(--primary);
}

/* Responsive styles */
@media (max-width: 1024px) {
    .carousel-wrapper {
        height: auto;
        overflow-x: auto;
    }

    .carousel {
        flex-direction: row;
        width: 100%;
    }

    .carousel-item {
        padding: 60px;
    }

    .icon-content { width: 150px; height: 150px; }
}

@media (max-width: 768px) {
    .services-carousel {
        padding: 20px 10px;
    }

    .carousel-item {
        padding: 40px 20px;
        border-radius: 30px;
        height: auto;
        flex: 0 0 calc(100% - 20px);
        margin: 0 10px;
    }

    .item-content {
        flex-direction: column-reverse;
        text-align: center;
    }

    .text-content {
        text-align: center;
    }

    .text-content h2 {
        font-size: 28px;
    }

    .text-content h3 {
        font-size: 16px;
    }

    .text-content p {
        font-size: 14px;
    }

    .text-content .btn {
        padding: 8px 30px;
        font-size: 14px;
    }

    .icon-content { width: 140px; height: 140px; margin: 0 auto 20px; }
}

/* Mobile Phone Specific Fixes */
@media (max-width: 576px) {
    .services-carousel {
        padding: 15px 5px;
    }

    .carousel-item {
        flex: 0 0 100%;
        margin: 0;
        padding: 30px 15px;
        border-radius: 20px;
        min-height: 400px;
    }

    .text-content h2 {
        font-size: 24px;
        margin-bottom: 15px;
    }

    .text-content h3 {
        font-size: 14px;
    }

    .text-content p {
        font-size: 13px;
        margin-bottom: 20px;
    }

    .text-content .btn {
        padding: 8px 25px;
        font-size: 13px;
    }

    .icon-content { width: 120px; height: 120px; }
}

/* Center the carousel intro section */
.carousel-intro {
    max-width: 1200px;
    margin: 0 auto 60px;
    padding: 0 20px;
    text-align: center;
}

.carousel-intro p {
    color: var(--gray-600);
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* Add these new styles */

.services-benefits-section {
    position: relative;
    max-width: 1800px;
    margin: 0 auto;
    padding-top: 0;
    padding-left: 2rem;
    padding-right: 2rem;
    padding-bottom: 2rem;
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 2rem;
    background-color: #ffffff;
    border-radius: 50px;
    margin-top: 0rem;
}

.services-info {
    position: sticky;
    top: 100px;
    height: fit-content;
    padding-top: 0;
    padding-left: 2rem;
    padding-right: 2rem;
    padding-bottom: 2rem;
    border-right: none;
    flex-direction: column;
    gap: 2rem;
    overflow: hidden;
    background-color:#ffffff;
    border-radius: 50px;
}

.services-info p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.benefits-list {
    margin-top: 3rem;
}

.benefits-list h3 {
    font-size: 1rem;
    color: #333;
    margin-bottom: 1.5rem;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 10rem;
    
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.8s ease;
}

.benefit-item.active {
    opacity: 1;
    transform: translateX(0);
}

.benefit-item i {
    font-size: 1.5rem;
    color: var(--secondary);
    background-color: rgba(68, 173, 151, 0.1);
    padding: 1rem;
    border-radius: 50%;
}

.services-timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding-top: 0;
    padding-left: 2rem;
    padding-right: 2rem;
    padding-bottom: 2rem;
  
    overflow: hidden;
    background-color: #ffffff;
    border-radius: 50px;
   /*border: 1px solid var(--gray-200);*/
}

/* Service items - adjusted for vertical flow */
.service-item {
    position: relative;
    width: 100%;
    padding: 2rem 2rem 3rem 2rem;
    background: #f8f9fa;
    border-radius: 50px;
    border: 1px solid var(--gray-200); /* Default pale border */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05); 
    display: flex;
    flex-direction: column;
    position: relative; 
    overflow: hidden; 
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease, border-color 0.3s ease; /* Add border-color to transition */
}

/* Price chip badge for service items */
.service-item .price-chip {
    position: absolute;
    top: 16px;
    right: 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(51, 51, 51, 0.6);
    background: transparent; /* colorless by default */
    border: 2px solid rgba(51, 51, 51, 0.3);
    box-shadow: none;
    z-index: 2;
    transition: all 0.25s ease;
}

.service-item .price-chip i { opacity: 0.9; }

.service-item:hover .price-chip,
.service-item .price-chip:hover {
    background: rgba(16, 185, 129, 1);
    border-color: rgba(16, 185, 129, 1);
    color: #fff;
    box-shadow: 0 5px 20px rgba(16, 185, 129, 0.6);
    transform: translateY(-2px) scale(1.03);
}

/* Our Process: increase corner radius on step cards */
.process .step-content { border-radius: 50px; }

/* Style for the gradient border pseudo-element */
.service-item::before {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    /* Create padding for the border */
    border: 2px solid transparent; 
    border-radius: inherit; /* Match parent's radius */
    background: linear-gradient(45deg, var(--secondary), var(--primary)) border-box;
    -webkit-mask: 
        linear-gradient(#fff 0 0) padding-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none; /* Ensure it doesn't interfere with clicks */
}

/* Text styling within the box */
.service-item h3 {
    display: inline-block; /* To contain the border */
    font-size: 1.25rem;
    color: #555;
    margin-bottom: 1.5rem; /* Increased spacing below heading */
    font-weight: 600;
    padding: 0.5rem 1.2rem; /* Add padding inside the border */
    border: 2px solid transparent; /* Make border transparent by default */
    border-radius: 15px; /* Curved corners matching container style */
    position: relative; /* For the background fill */
    transition: color 0.3s ease, border-color 0.3s ease; /* Smooth transition */
    overflow: hidden; /* Keep the background contained */
    z-index: 1; /* Keep text above the background */
}

/* Create pseudo-element for the fill effect */
.service-item h3::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--secondary); /* Green color matching buttons */
    transform: scaleX(0); /* Start with no width */
    transform-origin: left; /* Fill from left to right */
    transition: transform 0.3s ease; /* Smooth transition */
    z-index: -1; /* Behind the text */
}

/* Hover effect for the heading on service item hover */
.service-item:hover h3 {
    color: white; /* Text becomes white on hover */
    border-color: var(--secondary); /* Border becomes green */
}

/* Fill effect on hover */
.service-item:hover h3::before {
    transform: scaleX(1); /* Fill to full width */
}

.service-item p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease; /* Add transition for color change */
}

/* Darken paragraph text on service item hover */
.service-item:hover p {
    color: #333; /* Darker text color on hover */
}

/* Button style from energy-modeling.css */
.pricing-btn, .learn-btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    color: rgba(51, 51, 51, 0.6); /* Pale text color */
    background: transparent;
    border: 2px solid rgba(51, 51, 51, 0.3); /* Pale border restored */
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: background-color 0.3s, color 0.3s, transform 0.3s, border-color 0.3s;
    align-self: flex-start;
    cursor: pointer;
}

/* Style specifically for Learn More button */
.learn-btn {
    border-color: rgba(51, 51, 51, 0.3); /* Ensure pale border */
    color: rgba(51, 51, 51, 0.6); /* Ensure pale text */
}

.learn-btn:hover {
    background-color: var(--secondary);
    color: white; /* Text becomes white on hover */
    border-color: var(--secondary);
    transform: translateY(-2px);
}

.pricing-btn:hover {
    background-color: #333;
    color: white; /* Text becomes white on hover */
    border-color: #333;
    transform: translateY(-2px);
}

/* Animation trigger */
.service-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Add hover effect for service items */
.service-item:hover {
    transform: translateY(-5px) scale(1.02); 
    box-shadow: 0 12px 28px rgba(68, 173, 151, 0.25); 
    border-color: #d5d5d5; /* Match whoweare credential item hover */
}

/* Styles for Interactive Image Section */
.interactive-image-wrapper {
    position: relative; /* For absolute positioning of children */
    cursor: pointer;
    margin-top: 2rem;
    padding: 1rem;
    border-radius: 30px; /* Softer curve */
    background-color: var(--light);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease;
}

.interactive-image-wrapper:hover {
     box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.interactive-image-wrapper h3 {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 1.5rem;
    text-align: center;
}

.image-container {
    position: relative;
    width: 100%;
    /* Make image larger and more square */
    aspect-ratio: 3 / 2; 
    min-height: 400px; /* Ensure minimum height */
    border-radius: 50px; /* Curve for image */
    overflow: hidden; /* Important for zoom and overlay */
}

.interactive-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the container */
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Smooth zoom */
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, rgba(68, 173, 151, 0.7), rgba(44, 110, 154, 0.7)); /* Gradient overlay */
    mix-blend-mode: multiply; /* Blend with image */
    clip-path: polygon(0 0, 65% 0, 35% 100%, 0 100%); /* Initial artistic shape */
    transition: clip-path 0.5s cubic-bezier(0.77, 0, 0.175, 1); /* Smooth clip-path animation */
}

.image-benefits {
    position: absolute;
    bottom: 8%; /* Position benefits near bottom */
    right: 8%;
    left: 8%; /* Add left constraint to prevent overflow */
    width: auto; /* Let width be determined by left/right constraints */
    max-width: 80%; /* Prevent overflow beyond image boundaries */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease-out 0.1s, transform 0.4s ease-out 0.1s;
    pointer-events: none; /* Initially not interactive */
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.image-benefits .benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 1rem;
    opacity: 1; /* Override observer opacity */
    transform: none; /* Override observer transform */
}
.image-benefits .benefit-item:last-child {
    margin-bottom: 0;
}

.image-benefits .benefit-item i {
    font-size: 1.1rem; 
    padding: 0.7rem;
    color: #2563eb;
    background-color: rgba(37, 99, 235, 0.1);
    border-radius: 50%;
    flex-shrink: 0; /* Prevent icon from shrinking */
}
.image-benefits .benefit-item div {
    flex: 1; /* Allow text container to grow */
}
.image-benefits .benefit-item h4 {
    font-size: 0.95rem;
    color: var(--dark);
    margin-bottom: 0.3rem;
    font-weight: 600;
}
.image-benefits .benefit-item p {
    font-size: 0.85rem;
    color: var(--gray-700);
    line-height: 1.4;
    margin-bottom: 0;
}

.hover-prompt {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    opacity: 1;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

/* Hover Effects */
.interactive-image-wrapper:hover .interactive-image {
    transform: scale(1.05); /* Zoom image slightly */
}

.interactive-image-wrapper:hover .image-overlay {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); /* Reveal more/change shape */
}

.interactive-image-wrapper:hover .image-benefits {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto; /* Make benefits interactive */
}

.interactive-image-wrapper:hover .hover-prompt {
    opacity: 0; /* Hide prompt */
}

/* Keep existing Benefit Item styles for observer (if used elsewhere) */
.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.8s ease;
}

/* === End Animated Underline === */


/* === NEW STYLES FOR HEADING SECTION === */
/* .service-heading-intro { ... } */ /* Styles removed as requested */

/* Service buttons container */
.service-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

/* Button style from energy-modeling.css */
.pricing-btn, .learn-btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    color: rgba(51, 51, 51, 0.6); /* Pale text color */
    background: transparent;
    border: 2px solid rgba(51, 51, 51, 0.3); /* Pale border restored */
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: background-color 0.3s, color 0.3s, transform 0.3s, border-color 0.3s;
    align-self: flex-start;
    cursor: pointer;
}

/* Style specifically for Learn More button */
.learn-btn {
    border-color: rgba(51, 51, 51, 0.3); /* Ensure pale border */
    color: rgba(51, 51, 51, 0.6); /* Ensure pale text */
}

.learn-btn:hover {
    background-color: var(--secondary);
    color: white; /* Text becomes white on hover */
    border-color: var(--secondary);
    transform: translateY(-2px);
}

.pricing-btn:hover {
    background-color: #333;
    color: white; /* Text becomes white on hover */
    border-color: #333;
    transform: translateY(-2px);
}

/* Enhance buttons on card hover */
.service-item:hover .pricing-btn {
    background-color: #333;
    color: white;
    border-color: #333; /* Ensure border shows on card hover */
}

.service-item:hover .learn-btn {
    background-color: var(--secondary);
    color: white;
    border-color: var(--secondary); /* Ensure border shows on card hover */
}

/* Add responsive media queries for the interactive image section */
@media (max-width: 1200px) {
    .image-container {
        min-height: 350px; /* Slightly smaller on medium screens */
    }
    
    .image-benefits {
        bottom: 6%;
        right: 6%;
        left: 6%;
        padding: 1rem;
    }
}

@media (max-width: 992px) {
    .services-benefits-section {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
        border-radius: 30px;
    }

    .services-info {
        position: static;
        padding: 1.5rem;
        border-radius: 30px;
    }

    .services-timeline {
        padding: 1.5rem;
        border-radius: 30px;
    }

    .image-container {
        min-height: 300px; /* Smaller on tablet screens */
        aspect-ratio: 16 / 9; /* More widescreen on tablets */
    }
    
    .image-benefits {
        position: static; /* Change from absolute to static positioning */
        width: 100%; /* Full width on smaller screens */
        max-width: none;
        opacity: 1; /* Always visible */
        transform: none;
        margin-top: 1.5rem;
        pointer-events: auto; /* Always interactive */
        background-color: rgba(255, 255, 255, 0.95); /* More opaque background */
        left: auto;
        right: auto;
        bottom: auto;
    }
    
    .hover-prompt {
        display: none; /* Hide the hover prompt on smaller screens */
    }
    
    .interactive-image-wrapper:hover .image-benefits {
        /* No need for hover effect since benefits are always visible */
        transform: none;
    }
    
    .image-overlay {
        /* Simplify the overlay on smaller screens */
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
        opacity: 0.6;
    }
}

@media (max-width: 768px) {
    .services-benefits-section {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
        border-radius: 20px;
    }

    .services-info {
        padding: 1rem;
        border-radius: 20px;
    }

    .services-timeline {
        padding: 1rem;
        border-radius: 20px;
    }

    .service-item {
        padding: 1.5rem;
        border-radius: 30px;
    }

    .service-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }

    .pricing-btn, .learn-btn {
        width: 100%;
        text-align: center;
        padding: 0.8rem 1.5rem;
    }

    .image-container {
        min-height: 250px;
        aspect-ratio: 16 / 10;
    }
    
    .interactive-image-wrapper {
        margin-top: 1.5rem;
        padding: 0.8rem;
    }
    
    .image-benefits .benefit-item {
        margin-bottom: 0.8rem;
        gap: 0.6rem;
    }
    
    .image-benefits .benefit-item i {
        font-size: 1rem;
        padding: 0.6rem;
    }
    
    .image-benefits .benefit-item h4 {
        font-size: 0.9rem;
    }
    
    .image-benefits .benefit-item p {
        font-size: 0.8rem;
    }
}

/* Extra small mobile phones */
@media (max-width: 480px) {
    .services-benefits-section {
        padding: 0.5rem;
        margin: 0.5rem;
        border-radius: 15px;
    }

    .services-info, .services-timeline {
        padding: 0.8rem;
        border-radius: 15px;
    }

    .service-item {
        padding: 1rem;
        border-radius: 20px;
    }

    .service-item h3 {
        font-size: 1.1rem;
        padding: 0.4rem 1rem;
    }

    .service-item p {
        font-size: 0.9rem;
    }

    .interactive-image-wrapper {
        padding: 0.5rem;
        border-radius: 20px;
    }

    .image-container {
        min-height: 200px;
        border-radius: 20px;
    }

    .image-benefits {
        padding: 0.8rem;
        border-radius: 10px;
    }
}