:root {
  --btn-grad-start: #1ad3ff;
  --btn-grad-end: #1c6dff;
  --bg-page-top: #eaf3ff;
  --bg-page-bottom: #f6f8fc;
  --text-main: #0f172a;
  --text-muted: #6b7280;
  --card-bg: #ffffff;
}

/* FIX NAVBAR POSITIONING */
.navbar-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  width: 100%;
}

.main-navbar {
  padding: 0.9rem 0;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* ADD PADDING TO BODY TO PREVENT CONTENT HIDING UNDER FIXED NAVBAR */
body {
  margin: 0;
  padding-top: 80px; /* Height of navbar */
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-main);
  background: radial-gradient(circle at top center,
    var(--bg-page-top) 0,
    var(--bg-page-bottom) 55%,
    #ffffff 100%);
}

/* MOBILE-ONLY FIXES */
@media (max-width: 991.98px) {
  /* Fix horizontal overflow on mobile */
  html, body {
    max-width: 100%;
    overflow-x: hidden;
  }
  
  /* Fix mobile navbar underline position */
  .navbar .nav-link::after {
    bottom: -5px;
    margin-top: 0;
  }
  
  /* Fix hero section mobile layout */
  .hero-section {
    padding-top: 5rem !important;
    min-height: 120vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center; /* Add this to center content vertically */
  }
  
  /* FIX: Add margin-top to push content below fixed navbar */
  .hero-section .container {
    margin-top: 5rem; /* Adjust this value as needed */
  }
  
  .hero-title {
    margin-top: 0;
  }
  
  /* Ensure containers don't cause overflow */
  .container {
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Adjust body padding for mobile if needed */
  body {
    padding-top: 70px; /* Slightly less on mobile if navbar is smaller */
  }
}

/* REST OF YOUR ORIGINAL CSS EXACTLY AS IT WAS */
.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--btn-grad-start), var(--btn-grad-end));
  box-shadow: 0 5px 10px rgba(37, 99, 235, 0.45);
}

.brand-text {
  font-weight: 600;
  font-size: 1rem;
  color: #111827;
}

.brand-image {
  height: 60px;             
  width: auto;
  display: block;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.navbar .nav-link {
  position: relative;
  font-size: 0.95rem;
  font-weight: 500;
  color: #4b5563;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  transition: color 0.25s ease;
  text-decoration: none;
}

.navbar .nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  width: 70px;
  height: 2px;
  margin-top: 0.35rem;
  border-radius: 999px;
  background-image: linear-gradient(135deg, #1ad3ff, #1c6dff);
  transition: transform 0.3s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
  color: #111827;
}

.navbar .nav-link:hover::after,
.navbar .nav-link:focus::after {
  transform: translateX(-50%) scaleX(1);
}

.btn-primary-cta {
  padding: 0.55rem 1.5rem;
  border-radius: 999px;
  border: none;
  font-size: 0.92rem;
  font-weight: 600;
  color: #ffffff;
  background-image: linear-gradient(135deg, var(--btn-grad-start), var(--btn-grad-end));
  box-shadow: 0 5px 10px rgba(37, 99, 235, 0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.btn-primary-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 10px rgba(37, 99, 235, 0.5);
  filter: brightness(1.03);
  color: #ffffff;
}

.navbar-toggler {
  border: none;
}
.navbar-toggler:focus {
  box-shadow: none;
}
.navbar-toggler-icon {
  background-image: none;
  position: relative;
  width: 1.4rem;
  height: 1.4rem;
}
.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 999px;
  background-color: #111827;
}
.navbar-toggler-icon::before {
  top: 4px;
  box-shadow: 0 6px 0 0 #111827;
}
.navbar-toggler-icon::after {
  bottom: 4px;
}

.hero-section {
  min-height: 100vh;               
  display: flex;
  align-items: center;             
  padding: 0;                     
  background: radial-gradient(circle at top center,
    var(--bg-page-top) 0,
    var(--bg-page-bottom) 55%,
    #ffffff 100%);
}

.hero-section .row {
  display: flex;
  align-items: flex-start;
}

.hero-text {
  max-width: 520px;
}

.hero-title {
  font-size: 4.3rem;
  font-weight: 700;
  margin-bottom: 1.4rem;
  color: #111827;
  margin-top: -8.5rem;
}

.hero-description {
  font-size: 1.2rem;
  line-height: 1.9;
  color: var(--text-muted);
  margin-bottom: 2.1rem;
}

.btn-hero,
.hero-text .btn-primary-cta {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: #ffffff;
  background-image: linear-gradient(135deg, var(--btn-grad-start), var(--btn-grad-end));
  box-shadow: 0 5px 10px rgba(37, 99, 235, 0.45);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.btn-hero:hover,
.hero-text .btn-primary-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 10px rgba(37, 99, 235, 0.55);
  filter: brightness(1.04);
  color: #ffffff;
}

.hero-image-card {
  position: relative;
  border-radius: 1.75rem;
  overflow: hidden;
  max-width: 640px;
  margin-left: auto;
  box-shadow: 0 5px 10px rgba(15, 23, 42, 0.55);
  background-color: #000;
}

.hero-image-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-badge {
  position: absolute;
  bottom: 1.6rem;
  left: 2rem;
  background-color: #ffffff;
  padding: 0.7rem 1.3rem;
  border-radius: 1.25rem;
  box-shadow: 0 5px 10px rgba(15, 23, 42, 0.35);
  display: inline-flex;
  flex-direction: column;
  font-size: 0.85rem;
}
.hero-badge span:first-child {
  color: #2563eb;
  font-weight: 600;
}
.hero-badge span:last-child {
  color: #4b5563;
  font-size: 0.8rem;
}

@media (max-width: 991.98px) {
  .hero-text {
    text-align: center;
    margin: 0 auto 2.5rem;
  }
  .hero-image-card {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-title {
    font-size: 2.3rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
  }
  
  .hero-description {
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 2.1rem;
  }
}

.services-section {
  padding: 6rem 0 5rem;
}

.services-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.4rem;
}

.services-underline {
  width: 70px;
  height: 3px;
  margin: 0.35rem auto 0;
  border-radius: 999px;
  background-image: linear-gradient(135deg, #1ad3ff, #1c6dff);
}

.service-card {
  background-color: #ffffff;
  border-radius: 1.5rem;
  padding: 2.2rem 2.25rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  align-items: center;
}

.service-card:hover {
  transform: scale(1.05);
  box-shadow: 0 25px 60px rgba(37, 99, 235, 0.15);
  z-index: 5;
}

.service-icon {
  width: 300px;
  height: 300px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.1);
}

.service-icon img {
  width: 300px;
  height: 300px;
  border-radius: 14px;
}

.service-icon-blue {
  background-image: linear-gradient(135deg, #1ad3ff, #1c6dff);
}

.service-icon-teal {
  background-color: #00a9a3;
}

.service-icon-green {
  background-color: #00c272;
}

.service-name {
  font-size: 1.02rem;
  font-weight: 600;
  color: #111827;
  margin: 0 0 0.4rem;
}

.service-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #4b5563;
  margin: 0;
}

@media (max-width: 991.98px) {
  .service-card {
    text-align: center;
    align-items: center;
  }
  .service-icon {
    margin-bottom: 1rem;
  }
}

.partners-section {
  padding: 6rem 0 5rem;
  background: radial-gradient(circle at 30% top, #f8fbff 0%, #edf4ff 60%, #f9fbfd 100%);
}

.partners-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.25rem;
}

.partners-subtitle {
  font-size: 0.95rem;
  color: #6b7280;
  margin-bottom: 0.35rem;
}

.partners-underline {
  width: 80px;
  height: 3px;
  border-radius: 999px;
  margin: 0.4rem auto 0;
  background-image: linear-gradient(135deg, #1ad3ff, #1c6dff);
}

.partner-card {
  background-color: #ffffff;
  border-radius: 1.5rem;
  padding: 1.8rem 1.6rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.partner-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.12);
}

.partner-icon {
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.25rem;
}

.partner-icon img {
  width: 200px;
  height: 200px;
}

.partner-name {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #4b5563;
}

.partners-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.9rem;
  border-radius: 999px;
  background: radial-gradient(circle at top left, #e0f6ff 0, #f3fbff 45%, #f4f9ff 100%);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  font-size: 0.95rem;
  color: #4b5563;
}

.partners-badge-strong {
  font-weight: 600;
  color: #0f172a;
}

.expertise-section {
  padding: 6rem 0 5.5rem;
  background-color: #f7f9fc;
}

.expertise-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.35rem;
}

.expertise-underline {
  width: 70px;
  height: 3px;
  margin: 0.4rem auto 0;
  border-radius: 999px;
  background-image: linear-gradient(135deg, #1ad3ff, #1c6dff);
}

.expertise-image-card {
  border-radius: 1.8rem;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.45);
  background: #000;
}

.expertise-image-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.expertise-content {
  max-width: 540px;
  margin-left: auto;
}

.expertise-text {
  font-size: 0.97rem;
  line-height: 1.7;
  color: #4b5563;
  margin-bottom: 2rem;
}

.expertise-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.expertise-feature-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background-color: #ffffff;
  border-radius: 1.2rem;
  padding: 1.1rem 1.4rem;
  box-shadow: 0 5px 10px rgba(15, 23, 42, 0.08);
}

.expertise-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 10px rgba(37, 99, 235, 0.35);
}

.expertise-icon svg {
  width: 26px;
  height: 26px;
}

.expertise-icon-blue {
  background-image: linear-gradient(135deg, #1ad3ff, #1c6dff);
}

.expertise-icon-cyan {
  background-color: #00a9a3;
}

.expertise-feature-text h3 {
  font-size: 0.98rem;
  font-weight: 600;
  margin: 0 0 0.2rem;
  color: #111827;
}

.expertise-feature-text p {
  margin: 0;
  font-size: 0.9rem;
  color: #6b7280;
}

@media (max-width: 991.98px) {
  .expertise-section {
    padding-top: 4.5rem;
  }

  .expertise-content {
    margin-left: 0;
    margin-top: 2rem;
  }
}

.proenergie-about-section {
  position: relative;
  overflow: hidden;
  padding: 6rem 0;
  color: #ffffff;
  background: linear-gradient(120deg, #06236b 0%, #005f85 100%);
}

.proenergie-about-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.18;
  pointer-events: none;
}

.proenergie-about-section .container {
  position: relative;
  z-index: 1;
}

.section-kicker {
  font-size: 1.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1rem;
}

.section-description {
  font-size: 1.02rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.9);
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
}

.feature-item {
  text-align: center;
  padding: 1rem;
}

.feature-icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  background-color: #0d62b6;
  color: #ffffff;
  font-size: 2.25rem;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease, background-color 0.3s ease,
              box-shadow 0.3s ease;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.45);
}

.feature-item:hover .feature-icon-circle {
  transform: translateY(-5px);
  background-color: #1a75cf;
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.6);
}

.feature-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.feature-description-text {
  font-size: 0.95rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.85);
}

.contact-section {
  padding: 6rem 0 5rem;
  background-color: #f7f9fc;
}

.contact-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.35rem;
}

.contact-underline {
  width: 80px;
  height: 3px;
  border-radius: 999px;
  margin: 0.4rem auto 0;
  background-image: linear-gradient(135deg, #1ad3ff, #1c6dff);
}

.contact-subtitle {
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
}

.contact-info-card {
  background-color: #ffffff;
  border-radius: 1.5rem;
  padding: 1.25rem 1.6rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
  margin-bottom: 1.1rem;
}

.contact-icon {
  width: 52px;
  height: 52px;
  border-radius: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.6rem;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

.contact-icon-blue {
  background-image: linear-gradient(135deg, #1ad3ff, #1c6dff);
}

.contact-label {
  font-size: 0.98rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.15rem;
}

.contact-value {
  font-size: 0.95rem;
  color: #4b5563;
  margin: 0;
}

.contact-map-card {
  background-color: #ffffff;
  border-radius: 1.5rem;
  padding: 1.8rem 1.8rem 1.6rem;
  box-shadow: 0 20px 55px rgba(15, 23, 42, 0.12);
  margin-top: 2.5rem;
}

.contact-map-title {
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
}

.contact-map-wrapper {
  margin-top: 0.5rem;
  border-radius: 1.2rem;
  overflow: hidden;
  height: 360px;
}

.contact-map-wrapper iframe {
  border: 0;
  width: 100%;
  height: 100%;
}

@media (max-width: 991.98px) {
  .contact-section {
    padding-top: 4.5rem;
  }

  .contact-map-card {
    margin-top: 1rem;
  }
}

.footer-section {
  background-color: #0e1622;
  color: #d1d5db;
  padding: 4rem 0 2rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
}

.footer-section a {
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-section a:hover {
  color: #1ad3ff;
}

.footer-brand {
  font-size: 1.05rem;
  font-weight: 600;
  color: #f9fafb;
}

.footer-logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 0.75rem;
  background-image: linear-gradient(135deg, #1ad3ff, #1c6dff);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.4rem;
}

.footer-description {
  color: #a5b4cb;
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-title {
  color: #ffffff;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.footer-links,
.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li,
.footer-contact li {
  margin-bottom: 0.45rem;
  font-size: 0.93rem;
}

.footer-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 2.2rem 0 1.5rem;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: #808b9e;
  margin: 0;
}

@media (max-width: 767.98px) {
  .footer-section {
    text-align: center;
  }
  .footer-logo-icon {
    margin: 0 auto 0.5rem;
  }
  .footer-brand {
    justify-content: center;
  }
}

.footer-logo {
  height: 55px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.25));
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.footer-logo:hover {
  transform: scale(1.05);    
  opacity: 0.95;
}

[data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

[data-animate="fade-up"]    { transform: translateY(20px); }
[data-animate="fade-down"]  { transform: translateY(-20px); }
[data-animate="fade-left"]  { transform: translateX(30px); }
[data-animate="fade-right"] { transform: translateX(-30px); }
[data-animate="zoom-in"]    { transform: scale(0.97); }

[data-animate].show {
  opacity: 1;
  transform: none !important;
}

[data-animate],
[data-animate] * {
  -webkit-font-smoothing: antialiased;
}