/* 1. Reset default styles and Variables */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:root {
  --navbar-height: 80px;
  --color-primary: #007aff; /* Blue */
  --color-text: #1d1d1f; /* Dark Gray */
  --color-sun: #ff9900; /* Yellow/Orange Gold */
  --color-stat-red: #e74c3c; /* Red color for the bottom bar */
  --mega-menu-transition: max-height 0.4s cubic-bezier(0.86, 0, 0.07, 1), opacity 0.4s ease-out;
}

html {
  scroll-behavior: smooth;
}

/* 2. Body styles */
body {
  background: #f5f5f7;
  color: var(--color-text);
  line-height: 1.6;
}

/* Optional: Prevent vertical scrolling when mobile menu is open */
body.no-scroll {
    overflow: hidden;
}

/* --- NAVBAR STYLES ARE NOW IN navbar.css --- */


.spacer {
  height: var(--navbar-height);
}

/* 4. Hero Section */

.hero {
  position: relative;
  height: calc(100vh - var(--navbar-height));  
  display: flex;
  align-items: flex-end;  
  justify-content: center;
  overflow: hidden;  
}

.hero-video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  object-fit: cover;
  background-color: rgba(0, 0, 0, 0.4);  
  transition: background-color 0.5s ease;
}

.hero:hover .hero-video-container {
  background-color: rgba(0, 0, 0, 0.1);  
}

.hero-video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;  
}

.hero-content {
  position: relative;
  z-index: 10;
  color: #ffffff;  
  text-align: center;
  max-width: 900px;
  padding: 0 20px 80px;  
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 600;
  margin-bottom: 15px;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.hero-content p {
  font-size: 1.5rem;
  font-weight: 500;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  margin-bottom: 30px;  
}

.hero-cta-buttons {
  display: flex;
  gap: 40px;  
}

.hero-cta-primary {
  padding: 15px 25px;
  background: #f0f0f5;  
  color: var(--color-text);  
  font-weight: 500;
  border-radius: 50px;  
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  font-size: 1.1rem;
}

.hero-cta-primary:hover {
  background: #ffffff;  
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);  
  transform: translateY(-2px);
}

.hero-cta-secondary {
  padding: 15px 35px;
  background: transparent;
  color: #ffffff;  
  font-weight: 400;
  border: 2px solid #ffffff;  
  border-radius: 50px;  
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
  font-size: 1.1rem;
}

.hero-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.1);  
  border-color: #ffffff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);  
  transform: translateY(-2px);
}

/* 5. FEATURE CARDS SECTION STYLES (SCROLLING MARQUEE) */
.feature-cards-section {
    background-color: #f5f5f7;  
    padding: 60px 0;  
    overflow: hidden;  
    box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.03), inset 0 -3px 5px rgba(0, 0, 0, 0.03);
}

/* Wrapper for the scrolling animation */
.scrolling-wrapper {
    display: flex;  
    width: max-content;  
    animation: scroll-right-to-left 40s linear infinite;  
}

/* Pause animation on hover */
.feature-cards-section:hover .scrolling-wrapper {
    animation-play-state: paused;
}

/* Base Grid Container - Now acting as a flex item */
.grid-container {
    display: flex;  
    flex-shrink: 0;  
    gap: 2rem;
    margin: 0;  
    padding: 0 2rem;  
    min-width: 100vw;  
}


/* Card Styling */
.card {
    min-width: 20rem;  
    width: 20rem;
    flex-shrink: 0;  
    
    --color-text-card: #444447;
    
    padding: 2.5rem 1.5rem;  
    background-image: linear-gradient(to bottom left, #e0e4e5, #f2f6f9);
    border-radius: 2rem;
    
    display: flex;
    flex-direction: column;  
    align-items: center;  
    text-align: center;  
    gap: 0;  
    
    font-family: system-ui, sans-serif;
    color: var(--color-text-card);
    box-shadow:  
        inset -2px 2px hsl(0 0 100% / 1),
        -10px 10px 20px hsl(0 0 0 / .05);  
    transition: none;  
}


/* Icon/Image Placeholder Styling */
.card .icon {
    order: 1;  
    width: 80px;  
    height: 80px;
    margin-bottom: 20px;
}

.card .icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;  
    display: block;
}

/* Content Styling (The Big Number) */
.card .content {
    order: 2;  
    white-space: normal;  
    overflow-wrap: break-word;  
    margin-top: 10px;  
}

/* STYLING THE NUMBER */
.card .content strong {
    display: block;  
    font-size: 2.8rem;  
    font-weight: 800;
    color: var(--color-text);  
    line-height: 1.1;
}

/* Title Styling */
.card .title {
    order: 3;  
    font-size: 0.95rem;
    text-transform: uppercase;
    font-weight: 600;
    color: #555;  
    letter-spacing: 0.5px;
    margin-top: 5px;  
}


/* Bottom Bar Pseudo-element */
.card::after {
    content: "";
    order: 4;  
    height: 4px;  
    width: 50px;  
    margin-top: 25px;  
    background-image: linear-gradient(90deg, var(--color-stat-red), var(--color-stat-red));  
    border-radius: 2px;
}

/* Keyframes for the scrolling Marquee effect */
@keyframes scroll-right-to-left {
  from {
      transform: translateX(0);
  }
  to {
      transform: translateX(-50%);  
  }
}
/* --- 6. Product Grid (Image Swap) Styles --- */
.products {
  padding: 60px 20px;
  background-color: #f7f9fc;  
}

h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2.5rem;  
  color: #333;
}

.core-grid-overlay {
  display: grid;
  grid-template-columns: repeat(3, 1fr);  
  gap: 0;  
  max-width: 1200px;  
  margin: 0 auto;
  border-radius: 12px;  
  overflow: hidden;  
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);  

  background-image: url('../images/solar-panels.JPG');  
  background-size: cover;  
  background-position: center center;  
  position: relative;  
  min-height: 500px;  
  
  transition: background-image 0.5s ease-in-out, filter 0.5s ease;
}

/* Individual Card Overlay Styles */
.card-overlay {
  background-color: rgba(0, 0, 0, 0.4);  
  color: #ffffff;  
  padding: 30px;  
  display: flex;
  flex-direction: column;
  justify-content: flex-end;  
  align-items: flex-start;  
  box-sizing: border-box;  
  min-height: 100%;  
  border-right: 1px solid rgba(255, 255, 255, 0.15);  
  
  transition: background-color 0.4s ease, transform 0.4s ease, opacity 0.4s ease;
  z-index: 10;  
}

/* Remove the border on the last card in the row */
.card-overlay:last-child {
  border-right: none;
}


/* --- HOVER ANIMATIONS START HERE --- */

/* 1. Highlight the Hovered Card (Content Becomes Main) */
.card-overlay:hover {
  background-color: rgba(0, 0, 0, 0.2);  
  transform: translateY(-5px);
  opacity: 1;  
}

/* 2. Dim/De-emphasize Non-Hovered Cards (Shared Background Change Effect) */
.core-grid-overlay:hover .card-overlay:not(:hover) {
  background-color: rgba(0, 0, 0, 0.7);  
  opacity: 0.7;
  transform: translateY(0);  
}
.core-grid-overlay.is-hovering {
  filter: brightness(1.1) saturate(1.1);  
  transition: filter 0.5s ease;
}


/* Text Styling */
.card-overlay .product-title {
  color: #ffffff;  
  font-size: 1.5rem;  
  font-weight: 700;
  margin-bottom: 10px;
}

.card-overlay .product-description {
  color: #e0e0e0;  
  font-size: 1rem;  
  line-height: 1.5;
  margin-bottom: 0;  
}


/* --- Responsive Breakpoints (Grid only) --- */

@media (max-width: 768px) {
  .core-grid-overlay {
      grid-template-columns: repeat(2, 1fr);
      min-height: 450px;  
  }
  .card-overlay {
      border-right: 1px solid rgba(255, 255, 255, 0.15);
  }
  .card-overlay:nth-child(2) { border-right: none; }  
  .card-overlay:nth-child(3) { border-bottom: none; }  
  .card-overlay:nth-child(1) { border-bottom: 1px solid rgba(255, 255, 255, 0.15); }  
}

@media (max-width: 500px) {
  .core-grid-overlay {
      grid-template-columns: 1fr;
      min-height: 600px;
      border-radius: 8px;
  }
  .card-overlay {
      border-right: none;
      border-bottom: 1px solid rgba(255, 255, 255, 0.15);
      min-height: 200px;
  }
  .card-overlay:last-child {  
      border-bottom: none;  
  }
}

/* --- 9. UPDATED TESTIMONIAL SECTION Styles --- */
.testimonial-section {
  padding: 80px 5%;
  background-color: #f5f5f7;  
  color: var(--color-text);
}

.testimonial-intro {
  text-align: left;  
  margin-bottom: 40px;
}

.testimonial-intro h1 {
  font-size: 3rem;  
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 5px;
}

.testimonial-intro .section-subheading {
  font-size: 1.2rem;
  color: #555;
  margin-bottom: 0;
}

.testimonial-content-wrapper {
  display: flex;
  justify-content: center;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: flex-start;  
}

/* NEW: Styles for the Image and Button */
.image-video-container {
    flex: 2;
    max-width: 55%;
    min-width: 300px;
    position: relative; /* For absolute positioning of the button */
    border-radius: 8px;
    overflow: hidden; /* Ensures the image respects border-radius */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000; /* Fallback */
}

.image-video-container .video-thumbnail {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.image-video-container:hover .video-thumbnail {
    transform: scale(1.03); /* Slight zoom on hover */
}

.watch-video-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 199, 44, 0.9); /* Semi-transparent gold */
    color: #1a1a1a;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    z-index: 1;
}

.watch-video-button:hover {
    background-color: #FFC72C; /* Solid gold on hover */
    transform: translate(-50%, -50%) scale(1.05);
}

.watch-video-button .fa-solid { /* Font Awesome icon */
    font-size: 1.3rem;
}
/* END NEW IMAGE/BUTTON STYLES */


.text-reviews-container {
  flex: 1;  
  max-width: 45%;
  min-width: 300px;
  position: relative;  
  min-height: 450px; /* Estimated height for the tallest card */
  height: auto;  
  display: block; /* Use block flow since children are absolute */
}


.text-testimonial {
  /* This is the DESKTOP style (fading slider) */
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
  opacity: 0;
  transform: translateY(20px);  
  transition: opacity 0.7s ease-in-out, transform 0.7s ease-in-out;  
  pointer-events: none; /* Disable interaction when hidden */
  z-index: 10;
  
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Style for the currently visible card (managed by JavaScript) */
.text-testimonial.visible {
  opacity: 1;
  transform: translateY(0);  
  pointer-events: auto; /* Enable interaction when visible */
  z-index: 20;
}

.text-testimonial p {
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 15px;
  margin-top: 0;  
  font-size: 1rem;
  white-space: normal; /* Ensure text wraps */
}

.reviewer-info {
  font-size: 0.9em;
  font-weight: 500;
  line-height: 1.4;
  text-align: right;  
}

.featured-testimonial {
  background-color: #FFC72C;
  color: #000;
  box-shadow: 0 8px 25px rgba(255, 199, 44, 0.4);
}

.featured-testimonial .reviewer-info {
  color: #1a1a1a;
}

.standard-testimonial {
  background-color: #ffffff;  
  color: #333;
  border: 1px solid #f0f0f5;
}

.standard-testimonial .reviewer-info {
  color: #666;  
}

/* --- 10. Contact Section Styles --- */
.contact * {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact {
  background: #fff;  
  padding: 80px 40px;
  text-align: center;
  width: 100%;
}

.contact h2 {
  color: var(--color-text);
  font-size: 2rem;
  margin-bottom: 10px;
  font-weight: 800;
}

.contact-subheading {
  font-size: 1.1rem;
  color: var(--color-subheading, #6a6a6a);
  margin-bottom: 30px;
  font-weight: 500;
}

.contact-form-layout {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 500px;
  margin: 0 auto;
  text-align: left;

  /* Card Style */
  padding: 30px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid #f0f0f5;
}

.form-group {
  width: 100%;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
}

.optional {
  font-weight: 400;
  color: #888;
  font-size: 0.9em;
  margin-left: 5px;
}

.contact-form-layout input,
.contact-form-layout textarea {
  width: 100%;
  padding: 16px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  box-sizing: border-box;  
  color: var(--color-text);
  outline: none;
  
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s;
}

.contact-form-layout input:focus,
.contact-form-layout textarea:focus {
  border-color: var(--color-primary); 
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.4); 
  transform: translateY(-1px); 
}

.contact-form-layout textarea {
  resize: vertical;
  min-height: 120px;
}

.cta-submit-button {
  padding: 14px 25px;
  background: var(--color-primary); 
  color: #ffffff;
  font-weight: 600;
  border: none;
  border-radius: 50px; 
  cursor: pointer;
  font-size: 1.1rem;
  
  box-shadow: 0 4px 10px rgba(0, 122, 255, 0.3); 
  transition: all 0.3s ease; 
  margin-top: 20px; 

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

.cta-submit-button:hover {
  background: var(--color-primary); 
  box-shadow: 0 6px 15px rgba(0, 122, 255, 0.45); 
}

.cta-submit-button:active {
  transform: scale(0.99); 
}

.whatsapp-cta i {
  font-size: 1.2rem;
  color: #ffffff;
}

.privacy-note {
  font-size: 0.85em; 
  color: #777;
  text-align: center;
  margin-top: 10px;
  padding: 0 10px;
}

@media (max-width: 600px) {
  .contact {
      padding: 40px 15px;
  }
  .contact-form-layout {
      padding: 20px; 
  }
}


/* --- 11. Work Process Timeline Styles --- */

.timeline-section {
  padding: 80px 40px;
  text-align: center;
  margin: 40px auto; 
  max-width: 1100px;
  width: 95%;
  background-color: #f5f5f5; 
  background-image: none; 
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); 
  color: var(--color-text); 
}

.timeline-section h2 {
  color: var(--color-text); 
  font-size: 2rem;
}

.section-subheading {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 60px;
}

.timeline {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 15px 0;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 4px; 
  background: #000000; 
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
  z-index: 0;
  border-radius: 2px;
}

.container {
  padding: 10px 30px;
  position: relative;
  width: 50%;
  background: inherit;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.container.show {
  opacity: 1;
}

.container.left {
  left: 0;
}

.container.right {
  left: 50%;
}

.container::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  top: calc(50% - 8px);
  right: -8px;
  background: #000000; 
  border: 3px solid #ffffff; 
  border-radius: 50%;
  z-index: 1;
}

.container.right::after {
  left: -8px;
  right: auto;
}

.container::before {
  content: '';
  position: absolute;
  width: 40px;
  height: 2px;
  top: calc(50% - 1px);
  right: 8px;
  background: #000000; 
  z-index: 1;
}

.container.right::before {
  left: 8px;
  right: auto;
}

.container .icon {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  top: calc(50% - 30px); 
  background: white; 
  border: 3px solid #000000; 
  border-radius: 50%;
  overflow: hidden;
  z-index: 2;
}

.container .icon img,
.container .icon svg {
  width: 60%;
  height: 60%;
  object-fit: contain;
}

.container.left .icon {
  right: -85px; 
}

.container.right .icon {
  left: -85px; 
}

.container .content {
  padding: 25px;
  background: #ebebeb; 
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); 
  position: relative;
  border-radius: 8px;
  text-align: left;
}

.container.left .content::after {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 10px solid #ebebeb; 
  right: -10px;
  top: 30px;
}

.container.right .content::after {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-right: 10px solid #ebebeb; 
  left: -10px;
  top: 30px;
}

.container .content h3 {
  margin: 0 0 10px 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: #000000; 
}

.container .date {
  display: none;
}

/* 12. Enphase Partner/Feature Section Styles */
.enphase-partner-section {
  padding: 20px 20px;
  background-color: #fff;  
}

.enphase-content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;  
  gap: 60px;  
}

.enphase-image-container {
  flex: 1;  
  max-width: 40%;
  background-color: #fff;
  padding: 30px;  
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.enphase-image-container img {
  width: 100%;
  height: auto;
  display: block;
}

.enphase-text-content {
  flex: 1;  
  max-width: 60%;
  color: var(--color-text);  
}

.enphase-text-content p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* --- 13. RESPONSIVE DESIGN (Consolidated) --- */

@media (max-width: 1024px) {
  
  /* Hero Section */
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-content p {
    font-size: 1.1rem;
  }
  
  .hero-cta-buttons {
    flex-direction: column; 
    gap: 15px;
    width: 100%;
    padding: 0 40px;
  }

  .hero-cta-buttons a {
    width: 100%;
    text-align: center;
  }
  
  /* Contact Form */
  .contact-form-layout {
      grid-template-columns: 1fr; 
  }
}

@media (max-width: 768px) {
    /* Feature Cards Mobile */
    .card {
        min-width: 12rem; 
        width: 12rem;
        padding: 1.5rem 1rem;
    }
    .card .content strong {
        font-size: 2.2rem; 
    }
    .card .icon {
        width: 60px;
        height: 60px;
    }
    .grid-container {
        padding: 0 1rem;
    }
    .scrolling-wrapper {
        animation-duration: 30s; 
    }
    
    /* UPDATED Testimonial Section Mobile */
    .testimonial-content-wrapper {
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }

    .image-video-container { /* Adjust for mobile */
        flex: none;
        max-width: 100%;
        width: 90%; /* Keep some padding */
        min-width: 0;
    }

    .text-reviews-container {
        flex: none;
        max-width: 100%;
        width: 100%; /* Use full width for the scroll container */
        min-width: 0;
        
        /* NEW: Enable horizontal scrolling */
        overflow-x: scroll;
        overflow-y: hidden;
        white-space: nowrap;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding: 0 5% 15px; /* Add padding to match page edges */
        margin-bottom: -15px;

        /* Overrides for desktop state */
        position: static;
        min-height: auto; 
    }
    
    /* Optional: style scrollbar */
    .text-reviews-container::-webkit-scrollbar { height: 8px; }
    .text-reviews-container::-webkit-scrollbar-thumb { background-color: #ccc; border-radius: 4px; }
    .text-reviews-container::-webkit-scrollbar-track { background-color: #f0f0f0; }

    .text-testimonial {
        /* NEW: Styles for horizontal display on mobile */
        /* These styles COMPLETELY OVERRIDE the desktop 'absolute' positioning */
        display: inline-block;
        vertical-align: top;
        width: 85%; /* Each card takes 85% of container width */
        margin-right: 20px;
        scroll-snap-align: start;
        white-space: normal;
        flex-shrink: 0;

        /* OVERRIDES for desktop 'fading' styles */
        position: static; /* Override 'absolute' */
        opacity: 1; /* Override '0' */
        transform: none; /* Override 'translateY' */
        pointer-events: auto; /* Override 'none' */
        z-index: auto;
    }
    
    /* This class is for desktop, so we don't need its effects on mobile */
    .text-testimonial.visible {
        opacity: 1;
        transform: none;
    }

    .text-reviews-container .text-testimonial:last-child {
        margin-right: 0;
    }
    /* END Testimonial Mobile */
    
    /* Timeline Mobile */
    .timeline::after { left: 20px; margin-left: 0; }
    .container { width: 100%; padding-left: 45px; padding-right: 15px; margin-bottom: 30px; }
    .container.right { left: 0%; }
    .container::after, .container.right::after { left: 14px; right: auto; top: 20px; }
    .container::before, .container.right::before { display: none; }
    .container .icon { position: static; width: 50px; height: 50px; margin: 0 auto 10px auto; float: none; transform: none; border: 2px solid #000000; }
    .container.left .icon, .container.right .icon { left: auto; right: auto; margin: 0 auto 10px auto; }
    .container .content { padding: 15px; text-align: center; display: flex; flex-direction: column; align-items: center; margin-top: 10px; }
    .container .date { display: block; font-size: 0.9rem; font-weight: 600; color: #000000; margin-bottom: 5px; }
    .container .content h3 { font-size: 1.1rem; text-align: center; }
    .container .content ul { text-align: left; padding-left: 20px; }
    .container.left .content::after, .container.right .content::after { left: -10px; right: auto; border-top: 10px solid transparent; border-bottom: 10px solid transparent; border-right: 10px solid #ebebeb; border-left: none; top: 20px; }

    /* Enphase Section Mobile */
    .enphase-content-wrapper { flex-direction: column; gap: 40px; }
    .enphase-image-container, .enphase-text-content { max-width: 100%; flex: none; }
    .enphase-image-container { order: 1; }
    .enphase-text-content { order: 2; text-align: center; }
}

/* KEYFRAMES: The universal, responsive loop */
@keyframes infiniteLogoScroll {
  0% { transform: translateX(0); }
  /* CRITICAL: -50% translation scrolls exactly one copy of the content (the first 9 items) */
  100% { transform: translateX(-50%); } 
}

/* Base and Typography */
.trusted-by-section {
  background-color: #f7f7f7;
  padding: 20px 0;
  text-align: center;
}

.trusted-by-section h2 {
  font-size: 3.5em;
  font-weight: bold;
  color: #333;
  margin-bottom: 10px;
}

/* 1. MASK CONTAINER: For the absolute fade overlays */
.logo-track-mask {
  position: relative; 
  margin: 0 auto;
  max-width: 100%;
}

/* 2. Scroll mechanism setup */
.logo-scroller {
  position: relative;
  overflow: hidden; /* Hides content outside the viewport */
  margin: 0 auto;
  width: 100%;
}

/* 3. ROW (The Animated Element) */
.logo-scroller-row {
  width: 200%; /* Must hold two full sets of logos */
  display: flex;
  height: 150px; /* Increased height */
  margin: 24px 0;
  
  /* Animation Application */
  animation-name: infiniteLogoScroll;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-duration: 45s; /* Adjusted duration */
}

/* 4. INDIVIDUAL ITEMS (9 original + 9 duplicate = 18 items) */
.logo-scroller-item {
  /* CRITICAL: 1/18th of the 200% width = 11.111% */
  width: 11.111%; 
  flex-shrink: 0;
  box-sizing: border-box;
  padding: 0 5px;
}

.logo-scroller-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 15px;
}

.logo-scroller-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* 5. FADE/BLUR EFFECTS - Background color is #f7f7f7 */
.fade-overlay {
  position: absolute; 
  top: 0;
  width: 12%; 
  height: 100%;
  pointer-events: none; 
}

.left-fade {
  left: 0;
  background: linear-gradient(
      to right, 
      rgba(247, 247, 247, 1) 0%, 
      rgba(247, 247, 247, 0) 100% 
  );
}

.right-fade {
  right: 0;
  background: linear-gradient(
      to left, 
      rgba(247, 247, 247, 1) 0%, 
      rgba(247, 247, 247, 0) 100%
  );
}

/* Pause State (Hover Effect using CSS) */
.logo-scroller:hover .logo-scroller-row {
  animation-play-state: paused;
}
