/* --- EnergInAI Custom Theme (V25 - Corrected + Final Fixes) --- */

/* 1. Color Palette & Font Variables */
:root {
  --primary-blue: #0d274d;   
  --accent-orange: #f28c28;  
  --accent-green: #228b22;
  --background-light: #ffffff; 
  --text-dark: #333333;      
  --text-light: #ffffff;     
  --border-color: #dddddd;   
  --heading-font: 'Poppins', sans-serif;
  --body-font: 'Roboto', sans-serif;
}

/* 2. General Body & Typography Styles */
body {
  font-family: var(--body-font); color: var(--text-dark); background-color: var(--background-light);
  margin: 0; line-height: 1.7; overflow-x: hidden;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3, h4 { font-family: var(--heading-font); font-weight: 700; color: var(--primary-blue); }
h1 { font-size: 3em; }
h2 { font-size: 2.5em; }
h3 { font-size: 1.8em; }
p { font-size: 1.1em; color: #555; }
.section-title { text-align: center; margin-bottom: 80px; }

/* 3. Navigation Bar Styling */
.site-header {
  background-color: #ffffff; padding: 25px 0; border-bottom: 1px solid var(--border-color);
  position: sticky; top: 0; z-index: 1000; box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.site-header .container { display: flex; justify-content: space-between; align-items: center; }
.logo img { width: 220px; height: auto; vertical-align: middle; }
.main-nav { flex-grow: 1; }
.main-nav ul { display: flex; justify-content: center; gap: 60px; padding: 0; margin: 0; list-style: none; }
.main-nav a {
  text-decoration: none; color: var(--primary-blue); font-family: var(--heading-font); font-weight: 600;
  font-size: 1.1em; padding-bottom: 5px; border-bottom: 2px solid transparent; transition: border-color 0.3s ease;
}
.main-nav a:hover, .main-nav a.active { border-bottom-color: var(--accent-orange); }
.cta-button {
    background-color: var(--accent-orange); color: var(--text-light) !important; padding: 12px 24px;
    border-radius: 8px; text-decoration: none; font-weight: 700; transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cta-button:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(242, 140, 40, 0.4); border-bottom: none; }

/* 4. Landing Page Hero Section */
.hero {
  display: flex; align-items: center; padding: 100px 24px;
  background: linear-gradient(135deg, #f0f5ff 0%, #ffffff 70%); position: relative;
}
.hero::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background-image: radial-gradient(circle at 10% 20%, rgba(13, 39, 77, 0.05), transparent 40%),
                    radial-gradient(circle at 90% 80%, rgba(242, 140, 40, 0.05), transparent 50%);
  z-index: 0;
}
.hero-image-container, .hero-content { z-index: 1; }
.hero-image-container {
  flex: 1 1 50%; position: relative; display: flex;
  align-items: center; justify-content: center;
}
.hero-img-bg {
  width: 90%; border-radius: 15px; box-shadow: 0 15px 40px rgba(13, 39, 77, 0.15);
  opacity: 0; animation: slideInFromLeft 1s ease-out forwards;
  position: relative; z-index: 1;
}
.hero-img-fg {
  position: absolute; width: 35%; min-width: 180px; bottom: -40px; right: 0;
  border-radius: 20px; box-shadow: 0 20px 50px rgba(13, 39, 77, 0.25);
  border: 4px solid white; opacity: 0; animation: scaleUp 0.8s ease-out 0.5s forwards;
  background: #fff; z-index: 2;
}
.hero-content { flex: 1 1 50%; padding-left: 40px; }
.hero-content h1 {
  font-size: 3.2em; line-height: 1.2; margin-bottom: 20px;
  opacity: 0; animation: slideInFromRight 1s ease-out 0.2s forwards;
}
.hero-content p {
  font-size: 1.1em; margin-bottom: 30px; max-width: 550px;
  opacity: 0; animation: slideInFromRight 1s ease-out 0.4s forwards;
}
.primary-cta {
    display: inline-block; background-color: var(--primary-blue); color: var(--text-light); padding: 18px 36px;
    border-radius: 8px; text-decoration: none; font-size: 1.2em; font-weight: 700;
    transition: background-color 0.3s ease, transform 0.2s ease;
    opacity: 0; animation: slideInFromRight 1s ease-out 0.6s forwards;
}
.primary-cta:hover { background-color: #1a4a8d; transform: translateY(-3px); }



/* 5. Features Section: Final Polished Layout */
.features-section {
  padding: 100px 0;
  background-color: #ffffff;
}

/* Main Section Heading */
.section-title {
  color: var(--primary-blue);
  font-family: var(--heading-font, 'Poppins', sans-serif);
  font-size: 2.8rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 90px;
  letter-spacing: -0.7px;
  position: relative;
}
.section-title::after {
  content: "";
  width: 75px;
  height: 4px;
  background: var(--accent-orange);
  display: block;
  margin: 18px auto 0 auto;
  border-radius: 2px;
}

/* Feature Item Layout */
.feature-layout-item {
  display: grid;
  /* MODIFIED: Image column is smaller (0.9fr) than the text column (1.1fr) */
  grid-template-columns: 0.9fr 1.1fr; 
  align-items: center;
  gap: 80px;
  max-width: 1100px;
  margin: 0 auto;
  padding-bottom: 80px;
  margin-bottom: 80px;
  border-bottom: 1px solid #e8eef4;

  /* Scroll animation setup */
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.feature-layout-item.in-view {
  opacity: 1;
  transform: translateY(0);
}
.feature-layout-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

/* Alternate layout for every second item */
.feature-layout-item:nth-child(even) {
  direction: rtl;
}

/* Feature Image */
.feature-image {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 15px 45px rgba(30, 50, 80, 0.1);
  transition: transform 0.4s ease;
}
.feature-image img {
  width: 100%;
  height: auto;
  display: block;
}
.feature-layout-item:hover .feature-image {
  transform: scale(1.03);
}

/* Feature Text: Alignment Logic */
.feature-text {
  font-family: var(--body-font, 'Roboto', sans-serif);
  direction: ltr;
}
.feature-layout-item:nth-child(odd) .feature-text {
  text-align: right;
}
.feature-layout-item:nth-child(even) .feature-text {
  text-align: left;
}

.feature-text h3 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary-blue);
  line-height: 1.3;
  margin: 0 0 20px 0;
  position: relative;
  display: inline-block;
}

/* Heading Accent Bar */
.feature-text h3::before {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 28px;
  background: var(--accent-orange);
  border-radius: 3px;
}
.feature-layout-item:nth-child(even) .feature-text h3 {
  padding-left: 25px;
}
.feature-layout-item:nth-child(even) .feature-text h3::before {
  left: 0;
}
.feature-layout-item:nth-child(odd) .feature-text h3 {
  padding-right: 25px;
}
.feature-layout-item:nth-child(odd) .feature-text h3::before {
  right: 0;
}

.feature-text p {
  font-size: 1.01rem;
  color: #525c6a;
  line-height: 1.7;
  margin: 0;
}

/* MODIFIED: Responsive Adjustments with Centering Fix */
@media (max-width: 900px) {
  .feature-layout-item,
  .feature-layout-item:nth-child(odd),
  .feature-layout-item:nth-child(even) {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
    direction: ltr;
    padding-bottom: 50px;
    margin-bottom: 50px;
  }

  /* Reset heading padding for all items on mobile */
  .feature-layout-item:nth-child(odd) .feature-text h3,
  .feature-layout-item:nth-child(even) .feature-text h3 {
    padding: 0 0 15px 0;
  }

  /* Correctly center the accent bar for ALL items on mobile */
  .feature-layout-item:nth-child(odd) .feature-text h3::before,
  .feature-layout-item:nth-child(even) .feature-text h3::before {
    top: auto;
    bottom: 0;
    left: 50%;
    right: auto; /* Explicitly reset the 'right' property from desktop styles */
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
  }
}



/* 6. Landing Page How It Works Section */
.how-it-works-section { padding: 100px 0; background-color: #f8f9fa; }
.steps-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.step-card {
  background-color: #ffffff; padding: 40px 35px; border-radius: 15px;
  box-shadow: 0 10px 30px rgba(13, 39, 77, 0.08); border-top: 4px solid #f0b77e;
  transition: transform 0.4s ease, border-top-color 0.4s ease; position: relative;
  overflow: hidden; opacity: 0; transform: translateY(40px);
}
.step-card:hover { transform: translateY(-10px); border-top-color: var(--primary-blue); }
.step-card h3 { font-size: 1.5em; margin: 10px 0; }
.step-card-number {
  position: absolute; top: 0; left: 0; font-size: 4em; font-weight: 700;
  color: rgba(13, 39, 77, 0.05); z-index: 1; padding: 10px 20px; line-height: 1;
  /* flexbox centering for numbers */
  display: flex;
  justify-content: center;
  align-items: center;
  width: 70px;
  height: 70px;
}
.step-card h3, .step-card p { position: relative; z-index: 2; }
.step-card:nth-child(2) { transition-delay: 0.2s; }
.step-card:nth-child(3) { transition-delay: 0.4s; }
.step-card.in-view { opacity: 1; transform: translateY(0); }

/* 7. Landing Page FAQ Section */
.faq-section { padding: 100px 0; background-color: #ffffff; }
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border-color); }
.faq-question {
    width: 100%; background: none; border: none; text-align: left; padding: 25px 5px;
    font-family: var(--heading-font); font-size: 1.2em; font-weight: 600; color: var(--primary-blue);
    cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: color 0.3s ease;
}
.faq-question:hover { color: var(--accent-orange); }
.faq-icon { font-size: 1.5em; font-weight: 500; transition: transform 0.3s ease; }
.faq-question.active .faq-icon { transform: rotate(180deg); color: var(--accent-orange); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out; }
.faq-answer p { padding: 0 10px 25px 10px; margin: 0; font-size: 1em; line-height: 1.8; color: #555; }

/* 8. Sub-Page Styles */
.page-header { background-color: var(--primary-blue); color: var(--text-light); text-align: center; padding: 80px 0; }
.page-header h1 { color: var(--text-light); font-size: 3.5em; line-height: 1.2; }
.content-section { padding: 80px 0; }

/* Product Page Styles */
.product-intro-layout {
    display: flex; align-items: center; gap: 80px; margin-bottom: 120px;
}
.product-intro-layout.alt-layout { flex-direction: row-reverse; }
.product-image-container {
    flex: 1 1 45%; background-color: #f8f9fa; border-radius: 20px; padding: 20px;
    opacity: 0; transition: transform 0.8s ease-out, opacity 0.8s ease-out;
}
.product-text-container {
    flex: 1 1 55%; opacity: 0;
    transition: transform 0.8s ease-out, opacity 0.8s ease-out; transition-delay: 0.2s;
}
.product-intro-layout.in-view .product-image-container,
.product-intro-layout.in-view .product-text-container {
    transform: translateX(0); opacity: 1;
}
.product-intro-layout .product-image-container,
.product-intro-layout.alt-layout .product-text-container { transform: translateX(-40px); }
.product-intro-layout .product-text-container,
.product-intro-layout.alt-layout .product-image-container { transform: translateX(40px); }
.product-image-container img {
    width: 100%; height: auto; display: block;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.1));
}
.product-text-container h2 { font-size: 2.8em; margin-bottom: 20px; }

/* Value Flow Section Styles */
.value-flow-section { padding: 100px 0; background-color: #f8f9fa; }
.value-flow-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; align-items: start; }
.value-flow-item {
    text-align: center; position: relative; padding-top: 80px;
    opacity: 0; transform: translateY(40px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.value-flow-number {
    position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 70px; height: 70px; line-height: 70px; border-radius: 50%;
    background-color: var(--accent-orange); border: 2px solid var(--accent-orange);
    font-size: 1.5em; font-weight: 700; color: var(--primary-blue);
    z-index: 2; transition: transform 0.3s ease;
}
.value-flow-item:not(:last-child)::after {
    content: ''; position: absolute; top: 35px; left: 50%;
    width: 100%; height: 2px; background-color: var(--border-color); z-index: 1;
}
.value-flow-item:hover .value-flow-number { transform: scale(1.1) translateX(-45%); }
.value-flow-item h3 { font-size: 1.4em; margin-bottom: 10px; padding: 0 15px; }
.value-flow-item p { padding: 0 15px; }
.value-flow-item.in-view { opacity: 1; transform: translateY(0); }
.value-flow-item:nth-child(1).in-view { transition-delay: 0s; }
.value-flow-item:nth-child(2).in-view { transition-delay: 0.2s; }
.value-flow-item:nth-child(3).in-view { transition-delay: 0.4s; }
.value-flow-item:nth-child(4).in-view { transition-delay: 0.6s; }

/* "Why It Matters" Section */
.impact-section { padding-bottom: 0; max-width: 1180px; margin: 0 auto; }
.impact-card { display: flex; gap: 40px; align-items: center; padding: 60px 0; border-bottom: 2px solid var(--border-color);
 opacity: 1; transform: translateY(40px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }

.impact-card.alt-layout { flex-direction: row-reverse; }
.impact-card.in-view { opacity: 1; transform: translateY(0); }
.impact-icon-container { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #f5f7fa, #c3cfe2); border-radius: 20px; padding: 0; border: none; box-shadow: 0 4px 8px rgba(0,0,0,0.08); transition: box-shadow 0.3s ease; }
.impact-icon-container:hover { box-shadow: 0 8px 16px rgba(0,0,0,0.15); }
.impact-icon-container img { display: block; max-width: 300px; max-height: 300px; object-fit: contain; border-radius: 18px; border: 1.5px solid #ddd; background: #fff; padding: 20px; box-shadow: 0 8px 16px rgba(0,0,0,0.07); transition: box-shadow 0.3s ease; }
.impact-icon-container img:hover { box-shadow: 0 12px 20px rgba(0,0,0,0.17); }
.impact-text-container { max-width: px; }
.impact-text-container h2 { font-size: 2.3em; margin-bottom: 15px;}
.impact-text-container p { font-size: 1.1em; line-height: 1.7; color: #333; }

/* Final Thought Section */
.final-thought-section {
  background-color: linear-gradient(145deg, #e6f1ff 0%, #131b8a 100%);
  color: var(--primary-blue);
  padding: 95px 0;
  text-align: center;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}
.final-thought-section.in-view {
  opacity: 1;
  transform: translateY(0);
}
.final-thought-section blockquote {
  font-size: 1.8em;
  font-style: bold;
  font-weight: 550;
  max-width: 850px;
  margin: 0 auto 40px;
  border-left: 4px solid var(--primary-blue);
  padding-left: 40px;
  text-align: left;
}
.final-thought-section p {
  color: rgba(1, 3, 19, 0.8);
  margin-bottom: 40px;
  font-size: 1.1em;
}
.final-thought-section .primary-cta {
  background-color: var(--primary-blue);
}
.final-thought-section .primary-cta:hover {
  background-color: #e07b24;
}

/* Form Styles */
.form-container {
  max-width: 700px; margin: 0 auto; background: #fff; padding: 50px;
  border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,0.1);
  border-top: 5px solid var(--accent-orange);
}
.form-intro { text-align: center; margin-bottom: 40px; }
.form-intro h2 { font-size: 2.2em; margin-bottom: 10px; }
.form-intro p { max-width: 500px; margin: 0 auto; }
.form-group { margin-bottom: 25px; }
.form-group label {
  display: block; margin-bottom: 8px; font-weight: 600;
  font-family: var(--heading-font); color: var(--primary-blue);
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 15px; border: 1px solid var(--border-color);
  border-radius: 8px; font-family: var(--body-font); font-size: 1em;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(13, 39, 77, 0.1);
}
.submit-button {
  display: block; width: 100%; padding: 18px; background-color: var(--accent-orange);
  color: var(--text-light); border: none; border-radius: 8px; font-size: 1.2em;
  font-family: var(--heading-font); font-weight: 700; cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}
.submit-button:hover { background-color: #e07b24; transform: translateY(-2px); }

/* Footer Styling */
.site-footer {
  background-color: var(--primary-blue);
  padding: 50px 0 20px;
  color: var(--text-light);
  position: relative;
  overflow: hidden;
  background-image: linear-gradient(145deg, #1e3c72 0%, #2a5298 100%);
  animation: footer-gradient 10s ease infinite alternate;
}
.footer-container { display: flex; justify-content: space-between; align-items: center; gap: 60px; margin-bottom: 30px; }
.footer-logo-text { font-family: var(--heading-font); font-weight: 700; font-size: 2.2em; color: var(--text-light); }
.footer-about p { color: rgba(255,255,255,0.8); font-size: 1em; margin-top: 15px; }
.footer-contact {
    background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(10px);
    border-radius: 12px; padding: 30px; border: 1px solid rgba(247, 247, 247, 0.929);
}
.footer-contact h4 { margin-top: 0; font-size: 1.4em; margin-bottom: 20px; color: var(--text-light); }
.contact-info p { margin: 10px 0; color: rgba(255,255,255,0.9); }
.contact-info a { color: var(--text-light); text-decoration: none; font-weight: 600; transition: opacity 0.3s ease; }
.contact-info a:hover { opacity: 0.8; }
.footer-bottom p {
  text-align: center; padding-top: 20px; font-size: 0.9em;
  color: #ffffff; border-top: 1px solid rgba(241, 237, 237, 0.89);
}

/* Animations */
@keyframes footer-gradient { from { background-position: 0% 0%; } to { background-position: 100% 0%; } }
@keyframes slideInFromLeft { from { transform: translateX(-50px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes slideInFromRight { from { transform: translateX(50px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes scaleUp { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }


/* 11. Media Queries for Responsive Design */
@media (max-width: 960px) {

  h3 { font-size: 1.6em; }

  /* --- Landing Page Hero images - overlays like desktop --- */
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 60px 24px 24px 24px;
  }
  .hero-image-container {
    width: 100%;
    order: 1;
    margin-bottom: 22px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .hero-img-bg {
    width: 96%;
    max-width: 420px;
    position: relative;
    z-index: 1;
  }
  .hero-img-fg {
    position: absolute;
    width: 55%;
    max-width: 180px;
    bottom: -38px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    margin: 0;
  }
  .hero-content {
    order: 2;
    flex: 1 1 100%;
    width: 100%;
    padding-left: 0;
    margin-bottom: 24px;
  }
  /* Center the "Explore Features" button in hero */
  .hero-content .primary-cta {
    display: block;
    margin: 32px auto 0 auto;
    float: none;
  }
  .hero-content p {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  display: block;
  }


  /* --- Product Page 2nd section (app image) centering on mobile --- */
  .product-intro-layout,
  .product-intro-layout.alt-layout {
    flex-direction: column;
    gap: 40px;
    text-align: center;
  }
  .product-image-container {
    margin-left: auto;
    margin-right: auto;
    width: 80vw;
    max-width: 350px;
    transform: none !important;
  }
  .product-text-container {
    transform: none !important;
    margin: 0 auto;
  }

  /* --- Landing Page How It Works (section 3) RESTORED simple stacked mobile styling --- */
/* Landing Page How It Works steps: Polished, white card, readable mobile look */
/* Landing Page How It Works steps: Soft blue-white gradient, aligned content for mobile */
.steps-container {
  grid-template-columns: 1fr;
  gap: 30px;
  padding: 0 8px;
}

.step-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  background: linear-gradient(120deg, #e6f4ff 68%, #fafdff 100%);
  border-radius: 20px;
  box-shadow: 0 4px 13px rgba(13,39,77,0.09), 0 2px 8px rgba(242,140,40,0.07);
  padding: 22px 18px 22px 14px;
  margin: 0 auto;
  border: none !important;
  min-height: 66px;
  position: relative;
  transition: box-shadow 0.2s;
  overflow: visible;
}

.step-card-number {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2em;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #f28c28 60%, #2183c5 100%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  margin-right: 14px;
  box-shadow: 0 3px 10px 0 rgba(242,140,40,0.10);
  border: 2px solid #e1efff;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.step-card-content {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
  justify-content: center;
}

.step-card h3 {
  font-size: 1.1em;
  font-weight: 700;
  margin: 0 0 7px 0;       /* Consistent margin under title */
  color: #14447b;
  line-height: 1.22;
  letter-spacing: 0.01em;
  text-align: left;
}

.step-card p {
  font-size: 1em;
  color: #444;
  margin: 0;
  line-height: 1.5;
  text-align: right;
}

.step-card::after,
.steps-container::before {
  display: none !important;
}

  /* --- Product Page 2nd section (Value Flow walkthrough) Enhanced Styling --- */
  .value-flow-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    counter-reset: step;
    padding: 0 8px;
  }
  .value-flow-grid::before,
  .value-flow-item:not(:last-child)::after {
    display: none !important;
  }
  .value-flow-item {
    display: flex !important;
    flex-direction: row;
    align-items: flex-start;
    background: linear-gradient(120deg, #f0f5ff 70%, #fbf7ed 100%);
    border-radius: 16px;
    box-shadow: 0 8px 22px rgba(13, 39, 77, 0.11), 0 2px 10px rgba(242,140,40,0.10);
    padding: 25px 18px 25px 12px;
    margin: 0 auto 0 auto;
    position: relative;
    min-height: 90px;
    border-top: none !important;
  }
  .value-flow-number {
    display: flex !important;
    justify-content: center;
    align-items: center;
    font-size: 1.5em;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #f28c28 60%, #e07b24 100%);
    min-width: 42px;
    min-height: 42px;
    border-radius: 50%;
    margin-right: 18px;
    box-shadow: 0 3px 10px rgba(242,140,40,0.18);
    border: 3px solid #ffe5c2;
    position: relative;
    left: 0;
    top: 2px;
    flex-shrink: 0;
  }
  .value-flow-item h3 {
    font-size: 1.2em;
    font-weight: 800;
    margin-bottom: 8px;
    margin-top: 2px;
    color: var(--primary-blue);
    letter-spacing: 0.015em;
  }
  .value-flow-item p {
    font-size: 1em;
    line-height: 1.65;
    color: #3a3a3a;
    margin: 0 0 0 0;
  }
  .value-flow-item h3::before {
    display: none !important;
  }

  /* --- Impact cards stacked on mobile --- */
  .impact-card,
  .impact-card.alt-layout {
    flex-direction: column;
    text-align: center;
    gap: 30px;
    padding: 40px 0;
  }

  /* --- Navigation and footer adjustments --- */
  .site-header .container {
    flex-direction: column;
    gap: 20px;
  }
  .main-nav {
    position: static;
    transform: none;
  }
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
}

/* Smaller devices adjustments */
@media (max-width: 650px) {
  .main-nav ul {
    gap: 14px;
  }
  .hero-content h1 {
    font-size: 2em;
  }
  .feature-layout-item,
  .feature-layout-item.alt-layout {
    margin-bottom: 60px;
  }
  .step-card-number {
    font-size: 2.4em;
  }
  .value-flow-number {
    font-size: 1.2em;
    min-width: 38px;
    min-height: 38px;
  }
}

/* Extra small screens */
@media (max-width: 400px) {
  .hero-content h1 {
    font-size: 1.6em;
  }
  .value-flow-item {
    padding: 20px 8px;
  }
}



/* --- About Us Section Styles restored as requested --- */

/* Vision Section Enhanced Styling */
.vision-section {
  background: linear-gradient(145deg, #e6f1ff 0%, #ffffff 100%);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
  z-index: 1;
}


.vision-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-image: radial-gradient(circle at 20% 30%, rgba(13, 39, 77, 0.05), transparent 50%),
                    radial-gradient(circle at 80% 70%, rgba(242, 140, 40, 0.05), transparent 50%);
  z-index: 0;
}


.vision-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.vision-content.in-view {
  opacity: 1;
  transform: translateY(0);
}

.vision-content h2 {
  font-size: 2.8em;
  color: var(--primary-blue);
  margin-bottom: 20px;
}

.vision-content p {
  font-size: 1.2em;
  line-height: 1.8;
  color: #444;
}

.vision-content h2 {
  font-size: 2.8em;
  color: var(--primary-blue);
  margin-bottom: 20px;
  position: relative; /* Needed for ::after positioning */
}

.vision-content h2::after {
  content: "";
  width: 75px;
  height: 4px;
  background: var(--accent-orange);
  display: block;
  margin: 18px auto 0 auto; /* top margin between text and bar */
  border-radius: 2px;
}


/* About Section Styling */
.about-intro-section {
  background: #ffffff; /* pure white */
  padding: 100px 0;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.about-intro-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-image: radial-gradient(circle at 25% 40%, rgba(13, 39, 77, 0.04), transparent 50%),
                    radial-gradient(circle at 75% 60%, rgba(242, 140, 40, 0.04), transparent 50%);
  z-index: 0;
}

.about-intro-section .container {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  opacity: 1;
  transform: none;
  transition: none;
}

.about-intro-section .section-title {
  font-size: 2.8em;
  color: var(--primary-blue); /* customize via your CSS variable or replace with a hex code */
  margin-bottom: 20px;
}

.about-intro-section .section-subtitle {
  font-size: 1.2em;
  line-height: 1.8;
  color: #444;
}



/* Founders Section Styling */
.founders-section {
  background: linear-gradient(145deg, #f7f7f7 0%, #ffffff 100%);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.founders-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-image: radial-gradient(circle at 20% 30%, rgba(13, 39, 77, 0.05), transparent 50%),
                    radial-gradient(circle at 80% 70%, rgba(242, 140, 40, 0.05), transparent 50%);
  z-index: 0;
}

.founders-section .container {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  opacity: 1;
  transform: none;
  transition: none;
}

.founders-section .section-title {
  font-size: 2.8em;
  color: var(--primary-blue);
  margin-bottom: 20px;
}

.founders-section .founders-bio p {
  font-size: 1.2em;
  line-height: 1.8;
  color: #444;
}


/*FOOTER NEW STYLE */
.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 36px;
  padding: 30px;
  flex-wrap: wrap;
  font-family: var(--body-font);
}

.footer-about, .footer-contact, .footer-nav {
  min-width: 210px;
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo-text {
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 2em;
  color: #fff;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.footer-logo-text sup {
  font-size: 0.6em;
  vertical-align: super;
}
.footer-about p {
  margin: 0;
  font-size: 1.05em;
  color: #eaf2ff;
  opacity: 0.95;
}

.footer-nav h4 {
  font-family: var(--heading-font);
  font-weight: 800;
  color: #fff;
  margin: 0 0 10px;
  font-size: 1.12em;
  letter-spacing: 0.013em;
}

.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-nav ul li {
  margin-bottom: 8px;
}
.footer-nav ul li:last-child {
  margin-bottom: 0;
}

.footer-nav ul li a {
  color: #eaf2ff;
  font-family: var(--body-font);
  font-size: 1.07em;
  text-decoration: none;
  font-weight: 500;
  padding: 2px 0;
  border-bottom: 1.5px solid transparent;
  transition: color 0.22s, border-bottom 0.22s;
  opacity: 0.94;
  border-radius: 2px;
}
.footer-nav ul li a:hover,
.footer-nav ul .footer-legal-link a:hover {
  color: var(--accent-orange);
  border-bottom: 1.5px solid var(--accent-orange);
  opacity: 1;
}

.footer-legal-link {
  margin-top: 10px;
}

.footer-contact h4 {
  font-family: var(--heading-font);
  font-size: 1.1em;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: 0.013em;
}

.contact-info p {
  margin: 5px 0 0 0;
  color: #eaf2ff;
  font-size: 1em;
}
.contact-info a {
  color: var(--background-light);
  font-weight: 500;
  transition: color .21s;
}
.contact-info a:hover {
  color: #fff;
}

.footer-bottom {
  text-align: center;
  padding: 20px 0 10px 0;
  font-size: 1em;
  color: #eaf2ff;
 
  background: none;
  font-family: var(--body-font);
}

@media (max-width: 900px) {
  .footer-container {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    gap: 22px;
    padding: 30px 20px;
  }
  .footer-about, .footer-contact, .footer-nav {
    align-items: flex-start;
    margin-bottom: 0;
  }
  .footer-bottom {
    font-size: .95em;
    padding: 14px 0 7px 0;
  }
}
@media (max-width: 600px) {
  .footer-logo-text {
    font-size: 1.25em;
  }

  .footer-container {
    gap: 16px;
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* button on lp secn 3 - form */
.step-card a {
  background-color: #fdf6d9; /* Light yellow highlight */
  padding: 4px 8px;
  border-radius: 4px;
  text-decoration: none;
  color:var(--primary-blue) ; /* Dark text for readability */
  font-weight: 600;
  transition: background-color 0.3s;

}

.step-card a:hover {
  background-color: #ffef9f;
}


/* links */
.footer-contact {
  position: relative;
}

.social-icons {
  margin-top: 16px;
  display: flex;
  justify-content: center; /* center horizontally */
  gap: 24px;
}

.social-icons a img {
  width: 24px;
  height: 24px;
  display: block;
  transition: transform 0.3s ease;
}

.social-icons a:hover img {
  transform: scale(1.1);
}


/* 6. What is EnergInAI Section: Enhanced with Color & Animation */
.what-is-section {
    padding: 100px 0;
    background-color: #f8f9fa;
    text-align: center;
}

.section-intro {
    max-width: 800px;
    margin: 0 auto 70px auto;
}

.intro-headline {
    font-family: var(--heading-font, 'Poppins', sans-serif);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary-blue);
    letter-spacing: -1px;
    margin-bottom: 20px;
    /* Animation */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.intro-headline::after {
    content: "";
    display: block;
    width: 75px;
    height: 4px;
    background: var(--accent-orange);
    border-radius: 2px;
    /* Creates 20px of space below the heading and centers the line */
    margin: 20px auto 0 auto; 
}

.intro-subheading {
    font-size: 1.2rem;
    line-height: 1.7;
    color: #525c6a;
    /* Animation */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out 0.2s, transform 0.6s ease-out 0.2s;
}

/* Add in-view triggers for intro text animation */
.what-is-section.in-view .intro-headline,
.what-is-section.in-view .intro-subheading {
    opacity: 1;
    transform: translateY(0);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.benefit-item {
    background-color: #ffffff;
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(15, 45, 90, 0.07);
    border-top: 4px solid transparent; /* Placeholder for hover effect */
    position: relative;
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-top-color 0.35s ease;

    /* Staggered animation setup */
    opacity: 0;
    transform: translateY(30px);
}

/* Staggered Animation Delays */
.benefit-item:nth-child(1) { transition-delay: 0.3s; }
.benefit-item:nth-child(2) { transition-delay: 0.45s; }
.benefit-item:nth-child(3) { transition-delay: 0.6s; }

/* Trigger animation for all cards at once when section is in view */
.what-is-section.in-view .benefit-item {
    opacity: 1;
    transform: translateY(0);
}

.benefit-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(15, 45, 90, 0.12);
    border-top-color: var(--accent-orange);
}

/* Background Icon Styling */
.benefit-item::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.06;
    z-index: 1;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.benefit-item:hover::before {
    opacity: 0.1;
    transform: rotate(-10deg) scale(1.05);
}

/* Assigning unique background icons to each card */
.benefit-item:nth-child(1)::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230d274d'%3E%3Cpath d='M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/%3E%3C/svg%3E");
}
.benefit-item:nth-child(2)::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230d274d'%3E%3Cpath d='M20 2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM12 4c1.93 0 3.5 1.57 3.5 3.5S13.93 11 12 11s-3.5-1.57-3.5-3.5S10.07 4 12 4zm0 16c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.69 6 6-2.69 6-6 6z'/%3E%3C/svg%3E");
}
.benefit-item:nth-child(3)::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230d274d'%3E%3Cpath d='M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4zm-1 16l-4-4 1.41-1.41L11 14.17l6.59-6.59L19 9l-8 8z'/%3E%3C/svg%3E");
}


.benefit-title {
    font-family: var(--heading-font, 'Poppins', sans-serif);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.benefit-item p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #4A5568;
    position: relative;
    z-index: 2;
}

/* Responsive Adjustments */
@media (max-width: 900px) {

    .what-is-section { padding: 80px 0; }
    .benefits-grid { grid-template-columns: 1fr; gap: 30px; }
    .intro-headline { font-size: 2.2rem; }
    .benefit-item::before { width: 90px; height: 90px; }
}

.highlight-offer {
  color: var(--primary-blue);
  font-weight: 700; /* makes it bold */
}
