/* ============================================================
   SunVolt Energy — Custom Styles
   ============================================================ */
:root {
  --primary:   #0f9d58;   /* solar green */
  --primary-d: #0b7a44;
  --accent:    #ffc107;   /* sun yellow */
  --accent-d:  #e5a800;
  --dark:      #0d1b2a;
  --dark-2:    #16283c;
  --light:     #f6f9f7;
  --text:      #4a5568;
  --radius:    18px;
}

* { font-family: 'Poppins', sans-serif; }
html { scroll-behavior: smooth; }
body { color: var(--text); overflow-x: hidden; }

h1, h2, h3, h4, h5, h6 { color: var(--dark); font-weight: 700; }

.section { padding: 90px 0; }

/* ---------- Section headings ---------- */
.section-badge {
  display: inline-block;
  background: rgba(15, 157, 88, .12);
  color: var(--primary);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 7px 18px;
  border-radius: 50px;
  margin-bottom: 14px;
}
.section-title { font-size: 2.4rem; font-weight: 800; margin-bottom: 16px; }
.section-title span { color: var(--primary); }
.section-text { font-size: 1.02rem; line-height: 1.8; }

/* ---------- Buttons ---------- */
.btn-main {
  background: var(--primary);
  border: none;
  font-weight: 600;
  padding: 13px 32px;
  border-radius: 50px;
  transition: all .3s;
}
.btn-main:hover { background: var(--primary-d); transform: translateY(-3px); box-shadow: 0 10px 25px rgba(15,157,88,.35); }

.btn-hero {
  font-weight: 700;
  padding: 14px 34px;
  border-radius: 50px;
  color: var(--dark);
  transition: all .3s;
}
.btn-hero:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(255,193,7,.4); }
.btn-hero-outline {
  border-radius: 50px;
  padding: 14px 34px;
  font-weight: 600;
  border-width: 2px;
  transition: all .3s;
}
.btn-hero-outline:hover { background: #fff; color: var(--dark); transform: translateY(-3px); }

/* ---------- Navbar ---------- */
#mainNav {
  padding: 18px 0;
  transition: all .35s ease;
  background: transparent;
}
#mainNav.scrolled {
  background: rgba(13, 27, 42, .96);
  backdrop-filter: blur(12px);
  padding: 10px 0;
  box-shadow: 0 4px 24px rgba(0,0,0,.25);
}
.navbar-brand { font-size: 1.6rem; font-weight: 800; color: #fff !important; }
.navbar-brand span { color: var(--accent); }
.brand-icon { color: var(--accent); }
#mainNav .nav-link {
  color: rgba(255,255,255,.85);
  font-weight: 500;
  margin: 0 8px;
  position: relative;
  transition: color .3s;
}
#mainNav .nav-link::after {
  content: '';
  position: absolute;
  left: 50%; bottom: -4px;
  width: 0; height: 2px;
  background: var(--accent);
  transition: all .3s;
  transform: translateX(-50%);
}
#mainNav .nav-link:hover::after,
#mainNav .nav-link.active::after { width: 70%; }
#mainNav .nav-link:hover,
#mainNav .nav-link.active { color: var(--accent); }
.btn-quote {
  font-weight: 700;
  border-radius: 50px;
  padding: 9px 24px;
  color: var(--dark);
}
.navbar-toggler { border-color: rgba(255,255,255,.4); }
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
@media (max-width: 991px) {
  #mainNav { background: rgba(13, 27, 42, .97); }
  #mainNav .navbar-collapse { padding: 16px 0; }
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  background: url('https://images.unsplash.com/photo-1508514177221-188b1cf16e9d?w=1920&q=80') center/cover no-repeat fixed;
  position: relative;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(13,27,42,.95) 30%, rgba(13,27,42,.55) 70%, rgba(15,157,88,.25));
}
.hero-badge {
  display: inline-block;
  background: rgba(255,193,7,.15);
  border: 1px solid rgba(255,193,7,.5);
  color: var(--accent);
  font-size: .85rem;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 50px;
  margin-bottom: 22px;
}
.hero-title {
  color: #fff;
  font-size: 3.6rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 22px;
}
.hero-title span {
  color: var(--accent);
  position: relative;
}
.hero-text {
  color: rgba(255,255,255,.85);
  font-size: 1.1rem;
  line-height: 1.8;
  max-width: 620px;
}
.hero-trust div {
  color: rgba(255,255,255,.9);
  font-size: .95rem;
  font-weight: 500;
}
.hero-trust i { color: var(--accent); margin-right: 6px; }
.hero-scroll {
  position: absolute;
  bottom: 30px; left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 1.6rem;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, 10px); }
}
@media (max-width: 767px) {
  .hero-title { font-size: 2.4rem; }
  .hero { background-attachment: scroll; }
}

/* ---------- Stats bar ---------- */
.stats-bar {
  background: linear-gradient(135deg, var(--primary) 0%, #0c7d46 100%);
  padding: 55px 0;
}
.stat-item i { font-size: 2.2rem; color: rgba(255,255,255,.85); }
.stat-item h3 { color: #fff; font-size: 2.3rem; font-weight: 800; margin: 8px 0 2px; }
.stat-item p { color: rgba(255,255,255,.85); margin: 0; font-weight: 500; }

/* ---------- About ---------- */
.about { background: var(--light); }
.about-img-wrap { position: relative; }
.about-img-main { box-shadow: 0 25px 60px rgba(0,0,0,.18); width: 100%; }
.about-experience-badge {
  position: absolute;
  bottom: -25px; right: 20px;
  background: var(--accent);
  border-radius: var(--radius);
  padding: 22px 26px;
  text-align: center;
  box-shadow: 0 15px 35px rgba(255,193,7,.4);
}
.about-experience-badge h3 { font-size: 2.2rem; font-weight: 800; margin: 0; }
.about-experience-badge p { margin: 0; font-weight: 600; font-size: .85rem; line-height: 1.3; color: var(--dark); }
.about-feature {
  background: #fff;
  border-radius: 12px;
  padding: 14px 18px;
  font-weight: 600;
  color: var(--dark);
  box-shadow: 0 4px 15px rgba(0,0,0,.05);
}
.about-feature i { color: var(--primary); margin-right: 8px; }
.about-call { display: flex; align-items: center; gap: 14px; }
.about-call i {
  width: 52px; height: 52px;
  background: rgba(15,157,88,.12);
  color: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}
.about-call small { display: block; color: var(--text); }
.about-call strong { color: var(--dark); font-size: 1.05rem; }

/* ---------- Services ---------- */
.service-card {
  background: #fff;
  border: 1px solid #eef2ef;
  border-radius: var(--radius);
  padding: 38px 30px;
  transition: all .35s ease;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 45px rgba(15,157,88,.15);
  border-color: transparent;
}
.service-icon {
  width: 68px; height: 68px;
  background: linear-gradient(135deg, rgba(15,157,88,.12), rgba(255,193,7,.15));
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.9rem;
  color: var(--primary);
  margin-bottom: 22px;
  transition: all .35s;
}
.service-card:hover .service-icon {
  background: var(--primary);
  color: #fff;
  transform: rotate(-6deg) scale(1.05);
}
.service-card h4 { font-size: 1.25rem; margin-bottom: 12px; }
.service-card p { font-size: .95rem; line-height: 1.7; margin-bottom: 18px; }
.service-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  font-size: .95rem;
}
.service-link i { transition: transform .3s; }
.service-link:hover i { transform: translateX(5px); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(rgba(13,27,42,.88), rgba(13,27,42,.88)),
              url('https://images.unsplash.com/photo-1466611653911-95081537e5b7?w=1600&q=80') center/cover no-repeat fixed;
  padding: 70px 0;
}
.cta-band h2 { color: #fff; font-size: 2.1rem; font-weight: 800; }
.cta-band h2 span { color: var(--accent); }
.cta-band p { color: rgba(255,255,255,.8); font-size: 1.05rem; }
@media (max-width: 767px) {
  .cta-band { background-attachment: scroll; }
}

/* ---------- Projects ---------- */
.projects { background: var(--light); }
.project-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,.06);
  transition: all .35s;
}
.project-card:hover { transform: translateY(-8px); box-shadow: 0 22px 45px rgba(0,0,0,.14); }
.project-img { position: relative; overflow: hidden; height: 230px; }
.project-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s;
}
.project-card:hover .project-img img { transform: scale(1.08); }
.project-tag {
  position: absolute;
  top: 15px; left: 15px;
  background: var(--accent);
  color: var(--dark);
  font-size: .75rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 50px;
}
.project-body { padding: 22px 24px; }
.project-body h5 { margin-bottom: 6px; font-size: 1.1rem; }
.project-body p { margin: 0; font-size: .9rem; }
.project-body p i { color: var(--primary); margin-right: 4px; }

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: #fff;
  border: 1px solid #eef2ef;
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: all .35s;
  box-shadow: 0 6px 20px rgba(0,0,0,.04);
}
.testimonial-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,.1); }
.testimonial-stars { color: var(--accent); margin-bottom: 16px; font-size: 1.05rem; }
.testimonial-card p { font-size: .96rem; line-height: 1.8; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 14px; margin-top: 20px; }
.testimonial-avatar {
  width: 50px; height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.testimonial-author strong { display: block; color: var(--dark); }
.testimonial-author small { color: var(--text); }

/* ---------- Contact ---------- */
.contact { background: var(--light); }
.contact-info-card {
  background: linear-gradient(150deg, var(--dark) 0%, var(--dark-2) 100%);
  border-radius: var(--radius);
  padding: 40px 34px;
  height: 100%;
  color: rgba(255,255,255,.8);
}
.contact-info-card h4 { color: #fff; }
.contact-item { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.contact-item i {
  width: 48px; height: 48px;
  min-width: 48px;
  background: rgba(255,193,7,.15);
  color: var(--accent);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem;
}
.contact-item small { display: block; color: rgba(255,255,255,.6); font-size: .8rem; }
.contact-item strong { color: #fff; font-size: .98rem; }
.contact-social a {
  display: inline-flex;
  width: 42px; height: 42px;
  background: rgba(255,255,255,.08);
  color: #fff;
  border-radius: 50%;
  align-items: center; justify-content: center;
  margin-right: 10px;
  transition: all .3s;
}
.contact-social a:hover { background: var(--accent); color: var(--dark); transform: translateY(-4px); }

.contact-form-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 40px 34px;
  box-shadow: 0 10px 35px rgba(0,0,0,.07);
}
.form-label { font-weight: 600; color: var(--dark); font-size: .9rem; }
.form-control, .form-select {
  border: 1.5px solid #e3e9e4;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: .95rem;
  transition: all .3s;
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(15,157,88,.1);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,.7);
  padding: 70px 0 0;
}
.footer h5 { color: #fff; font-size: 1.05rem; margin-bottom: 20px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: 12px; }
.footer ul a {
  color: rgba(255,255,255,.65);
  text-decoration: none;
  transition: all .3s;
}
.footer ul a:hover { color: var(--accent); padding-left: 5px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact i { color: var(--accent); margin-top: 3px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 50px;
  padding: 22px 0;
  font-size: .9rem;
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 25px; bottom: 95px;
  width: 46px; height: 46px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  opacity: 0;
  visibility: hidden;
  transition: all .4s;
  z-index: 999;
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--primary-d); color: #fff; transform: translateY(-4px); }

/* ---------- WhatsApp float ---------- */
.whatsapp-float {
  position: fixed;
  right: 25px; bottom: 30px;
  width: 54px; height: 54px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem;
  box-shadow: 0 8px 25px rgba(37,211,102,.45);
  z-index: 999;
  transition: all .3s;
  animation: pulse-wa 2.2s infinite;
}
.whatsapp-float:hover { color: #fff; transform: scale(1.1); }
@keyframes pulse-wa {
  0%   { box-shadow: 0 0 0 0 rgba(37,211,102,.5); }
  70%  { box-shadow: 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}
