body {
  font-family: "Poppins", sans-serif;
}

/* Hero Section with Video Background */
.hero-section {
  min-height: 90vh;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  /* justify-content: space-between; */
  padding: 2rem 0;
  left: 0;
  right: 0;
  justify-content: end;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 2;
}


/* Navbar custom */
.custom-navbar {
  border-bottom: 4px solid #00b6ff;
  background-color: rgb(255 255 255 / 95%) !important;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.custom-navbar.scrolled {
  background-color: rgb(255 255 255 / 98%) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.brand-fenice {
  color: #00b6ff;
  font-size: 2rem;
  font-weight: 800;
}

.brand-plus {
  color: #e5a027;
  font-size: 1.5rem;
  font-weight: 800;
  margin-left: 0.2rem;
}

.brand-energy {
  color: #6c757d;
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: -0.5rem;
}

.navbar-brand {
  line-height: 1.2;
}

/* Form styling */
.form-control {
  border-radius: 8px;
  border: 2px solid #e9ecef;
  padding: 12px 16px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.form-control:focus {
  box-shadow: 0 0 0 0.2rem rgba(108, 194, 46, 0.25);
  border-color: #6bc22e;
  outline: none;
}

.form-control:hover {
  border-color: #6bc22e;
}

.form-check-input:checked {
  background-color: #6bc22e;
  border-color: #6bc22e;
}

.form-check-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(108, 194, 46, 0.25);
}

.form-check-label {
  font-weight: 500;
  color: white;
}

#residential-fields, #commercial-fields {
  transition: all 0.3s ease;
}

.btn-success {
  background-color: #e5a027 !important;
  border-color: #e5a027 !important;
}

.btn-success:hover {
  background-color: #e5a027 !important;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .form-box {
    flex-direction: column;
  }

  .border-end {
    border: none !important;
  }
}
/* Rooftop Solar Section */
.solar-section {
  position: relative;
  background: url('rooftop-solar-bg.jpg') center center/cover no-repeat;
  height: 90vh;
  overflow: hidden;
}
.borderptop {
  border-top: 4px solid #00b6ff;
}

.solar-overlay {
  background: rgba(0, 0, 0, 0.45);
  position: absolute;
  inset: 0;
  text-align: center;
}

/* Floating Vertical Button */
.vertical-btn {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  border-radius: 0;
  padding: 10px 8px;
  font-size: 14px;
  background-color: #e5a027 !important;
  border: none;
  transition: 0.3s;
  z-index: 99;
}

.vertical-btn:hover {
  background-color: #e5a027 !important;
}

/* Services Grid Section */
.services-grid {
  min-height: auto;
}

.service-card {
  height: 50vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.3s ease;
}

.service-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 2;
}

.greenpartners {
  background-image: url('https://images.unsplash.com/photo-1521791136064-7986c2920216?ixlib=rb-4.0.3&auto=format&fit=crop&w=1000&q=80');
}

.greenambassadors {
  background-image: url('https://images.unsplash.com/photo-1522202176988-66273c2fd55f?ixlib=rb-4.0.3&auto=format&fit=crop&w=1000&q=80');
}

.reviews {
  background-image: url('https://images.unsplash.com/photo-1516321318423-f06f85e504b3?ixlib=rb-4.0.3&auto=format&fit=crop&w=1000&q=80');
}

.expert {
  background-image: url('https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?ixlib=rb-4.0.3&auto=format&fit=crop&w=1000&q=80');
}

/* Statistics Section */
.stats-section {
  background: url('https://images.unsplash.com/photo-1497435334941-8c899ee9e8e9?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80') center center/cover no-repeat;
  min-height: 80vh;
  position: relative;
}

/* Mobile responsive stats section */
@media (max-width: 768px) {
  .stats-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
  }
  
  .stats-overlay {
    width: 100%;
    height: 100%;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
  }
  
  .stats-section .container {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  
  .stat-item {
    padding: 1rem 0.5rem !important;
    /* margin-bottom: 1rem; */
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    backdrop-filter: blur(5px);
  }
  
  .stat-item h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }
  
  .stat-item p {
    font-size: 0.9rem;
    margin-bottom: 0;
  }
}

.stats-overlay {
  background: rgba(0, 0, 0, 0.6);
  position: absolute;
  inset: 0;
  text-align: center;
}

.stat-item {
  padding: 2rem 1rem;
}

/* Footer Section */
.footer-section {
  background-color: #f8f9fa;
}

.social-links a {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  border-radius: 50%;
  background-color: #e9ecef;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background-color: #e5a027;
  color: white !important;
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .service-card {
    height: 40vh;
  }
  
  .hero-section h1 {
    font-size: 2.5rem;
  }
  
  .hero-section p {
    font-size: 1.2rem;
  }
  
  .vertical-btn {
    display: none;
  }
  
  .stats-section h2 {
    font-size: 2rem;
  }
  
  .stat-item h3 {
    font-size: 2rem;
  }
}

@media (max-width: 576px) {
  .service-card {
    height: 35vh;
  }
  
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .hero-section p {
    font-size: 1rem;
  }
}


a.nav-link {
    color: #000000;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.75rem 1rem !important;
}

a.nav-link:hover {
    color: #e5a027 !important;
    transform: translateY(-2px);
}

/* Mobile navbar improvements */
@media (max-width: 991.98px) {
  .custom-navbar {
    padding: 0.75rem 0;
  }
  
  .navbar-brand img {
    width: 220px;
  }
  
  .navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
  }
  
  .navbar-toggler:focus {
    box-shadow: none;
  }
  
  .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%280, 0, 0, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  }
  
  .navbar-collapse {
    background-color: rgb(255 255 255 / 95%);
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  }
  
  .navbar-nav {
    text-align: center;
  }
  
  .nav-item {
    margin: 0.25rem 0;
  }
  
  .nav-link {
    font-size: 1.1rem;
    padding: 0.75rem 1rem !important;
    border-radius: 8px;
    transition: all 0.3s ease;
  }
  
  .nav-link:hover {
    background-color: rgba(229, 160, 39, 0.1);
    color: #e5a027 !important;
  }
  
  .dropdown-menu {
    background-color: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-top: 0.5rem;
  }
  
  .dropdown-item {
    color: white;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
  }
  
  .dropdown-item:hover {
    background-color: rgba(229, 160, 39, 0.1);
    color: #e5a027;
  }
  
  .d-flex.align-items-center.gap-3 {
    flex-direction: column;
    gap: 1rem !important;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .btn-success {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }
  
  .text-white.text-decoration-none.fw-bold {
    font-size: 1.1rem;
    text-align: center;
    display: block;
    padding: 0.5rem;
    background-color: rgba(229, 160, 39, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
  }
  
  .text-white.text-decoration-none.fw-bold:hover {
    background-color: rgba(229, 160, 39, 0.2);
    color: #e5a027 !important;
  }
}

/* Extra small devices */
@media (max-width: 576px) {
  .navbar-brand img {
    width: 220px;
  }
  
  .custom-navbar {
    padding: 0.5rem 0;
  }
  
  .nav-link {
    font-size: 1rem;
    padding: 0.5rem 0.75rem !important;
  }
  
  .btn-success {
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
  }
}

/* Estimate Modal Styling */
.estimate-modal {
  border: none;
  border-radius: 15px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.estimate-modal .modal-header {
  background: linear-gradient(135deg, #e5a027, #f4c430);
  color: white;
  border: none;
  padding: 1.5rem;
}

.estimate-modal .modal-title {
  font-size: 1.5rem;
  font-weight: 700;
}

.estimate-modal .btn-close {
  filter: invert(1);
  opacity: 0.8;
}

.estimate-modal .btn-close:hover {
  opacity: 1;
}

.estimate-modal .modal-body {
  padding: 2rem;
}

.estimate-info {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  padding: 1.5rem;
  border-radius: 10px;
  height: 100%;
}

.estimate-info h6 {
  color: #e5a027;
  font-size: 1.1rem;
}

.estimate-info ul li {
  font-size: 0.95rem;
  color: #495057;
}

.contact-info {
  background: rgba(229, 160, 39, 0.1);
  padding: 1rem;
  border-radius: 8px;
  border-left: 4px solid #e5a027;
}

.contact-info h6 {
  color: #e5a027;
  margin-bottom: 0.5rem;
}

.contact-info p {
  font-size: 0.9rem;
  color: #6c757d;
  margin-bottom: 0.25rem;
}

.estimate-form .form-label {
  font-weight: 600;
  color: #495057;
  margin-bottom: 0.5rem;
}

.estimate-form .form-control {
  border: 2px solid #e9ecef;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.estimate-form .form-control:focus {
  border-color: #e5a027;
  box-shadow: 0 0 0 0.2rem rgba(229, 160, 39, 0.25);
}

.estimate-form .form-check-label {
  font-size: 0.9rem;
  color: #6c757d;
}

.estimate-form .form-check-input:checked {
  background-color: #e5a027;
  border-color: #e5a027;
}

.estimate-form .btn-success {
  background: linear-gradient(135deg, #e5a027, #f4c430);
  border: none;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.estimate-form .btn-success:hover {
  background: linear-gradient(135deg, #d4911f, #e5a027);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(229, 160, 39, 0.3);
}

/* Modal Animation */
.modal.fade .modal-dialog {
  transform: translate(0, -50px);
  transition: transform 0.3s ease-out;
}

.modal.show .modal-dialog {
  transform: translate(0, 0);
}

/* Mobile Responsive Modal */
@media (max-width: 768px) {
  .estimate-modal .modal-body {
    padding: 1.5rem;
  }
  
  .estimate-info {
    margin-bottom: 1.5rem;
    padding: 1rem;
  }
  
  .estimate-modal .modal-title {
    font-size: 1.25rem;
  }
  
  .estimate-form .form-control {
    padding: 0.6rem 0.8rem;
    font-size: 0.9rem;
  }
  
  .estimate-form .btn-success {
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
  }
}

@media (max-width: 576px) {
  .estimate-modal .modal-body {
    padding: 1rem;
  }
  
  .estimate-info {
    padding: 0.75rem;
  }
  
  .estimate-modal .modal-title {
    font-size: 1.1rem;
  }
}


.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 20px;
  right: 20px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 3px #999;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
}

.whatsapp-float:hover {
  background-color: #128c7e;
  color: #fff;
  text-decoration: none;
  transform: scale(1.1);
}

.whatsapp-float i {
  font-size: 30px;
}

/* Client Carousel Styles */
.client-carousel-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.client-logo {
  height: 100px;
  transition: all 0.3s ease;
  border: 1px solid #e9ecef;
}

.client-logo:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1) !important;
  border-color: #25d366;
}

.client-logo img {
  /* filter: grayscale(100%); */
  transition: all 0.3s ease;
}

.client-logo:hover img {
  filter: grayscale(0%);
}

.carousel-control-prev,
.carousel-control-next {
  width: 50px;
  height: 50px;
  background-color: #25d366;
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.8;
  transition: all 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1;
  background-color: #128c7e;
}

.carousel-control-prev {
  left: -25px;
}

.carousel-control-next {
  right: -25px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 20px;
  height: 20px;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 15px;
    right: 15px;
    font-size: 25px;
  }
  
  .whatsapp-float i {
    font-size: 25px;
  }
}
