/* Homepage service hover effect */
.service-box {
  transition: all 0.3s ease;
  padding: 20px;
  border-radius: 10px;
}

.service-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  background-color: #ffffff;
}
.service-icon {
  font-size: 3rem;
  color: #0d6efd;
  margin-bottom: 15px;
}

/* Icon colors */
.service-card .bi-sun { color: #ffc107; }        /* Solar */
.service-card .bi-diagram-3 { color: #0d6efd; }  /* Design/Analysis */
.service-card .bi-tools { color: #28a745; }      /* Repair */
.service-card .bi-camera-video { color: #dc3545; } /* CCTV */
.service-card .bi-lightbulb { color: #17a2b8; }   /* Solar equipment */

/* Services page card hover effect */
.service-card {
  transition: all 0.3s ease;
  border-radius: 10px;
}

.service-card .card-body {
  padding: 2rem 1.5rem;
}

.service-card .btn-primary {
  transition: all 0.3s ease;
}

.service-card .btn-primary:hover {
  transform: scale(1.05);
}

.service-card:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 25px rgba(0,0,0,0.25);
  background-color: #fff9e6; /* subtle warm tint on hover */
}

.service-card {
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-card .card-title {
  font-size: 1.25rem;
  font-weight: 600;
}

.service-card .card-text {
  font-size: 1rem;
  color: #6c757d;
}

#services {
  background-color: #f8f9fa; /* light grey for contrast */
  padding-top: 80px;
  padding-bottom: 80px;
}

#services h2 {
  color: #0d6efd;   /* matching your brand blue */
  font-weight: 700;
}

#services p {
  color: #6c757d;   /* subtle grey for description */
  font-size: 1.1rem;
}

#services::before {
  content: '';
  display: block;
  height: 50px;
  background: linear-gradient(to right, #ffc10720, #0d6efd20); /* faint gradient */
  margin-bottom: -50px; /* overlaps top a little */
}

/* Floating WhatsApp Button */
.floating-whatsapp {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  text-align: center;
  font-size: 30px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}


/* Project card hover effect */
.project-card {
  transition: all 0.3s ease;
  border-radius: 12px;
  overflow: hidden;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}


/* Social-style testimonial cards */
.testimonial-card {
  transition: transform 0.35s ease, box-shadow 0.35s ease, background-color 0.35s ease;
  border-radius: 16px;
  background-color: #f8f9fa;
  cursor: pointer;
}

.testimonial-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.15);
  background-color: #ffffff;
}
.testimonial-card i {
  transition: color 0.3s ease, transform 0.3s ease;
}

.testimonial-card:hover i {
  color: #198754; /* WhatsApp green vibe */
  transform: scale(1.1);
}

/* Base card style */
.service-card {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  border-radius: 12px;
  overflow: hidden;
}

/* Hover effect */
.service-card:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 25px rgba(0,0,0,0.25);
}

/* Icon accent hover */
.service-card:hover i {
  color: #ffbf00; /* Bright gold accent for icons */
  transform: scale(1.2);
  transition: transform 0.4s ease, color 0.4s ease;
}

/* Button hover tweak */
.service-card .btn-primary:hover {
  background-color: #ffbf00;
  border-color: #ffbf00;
  color: #000;
  transition: all 0.3s ease;
}

.footer a:hover {
  color: #ffc107; /* solar yellow */
  transition: color 0.3s ease;
}

/* Animate mobile navbar dropdown */
.navbar-collapse {
  transition: height 0.35s ease, opacity 0.25s ease;
}

.navbar-collapse.collapsing {
  opacity: 0;
}

.navbar-collapse.show {
  opacity: 1;
}

/* Optional: spacing & polish on mobile */
@media (max-width: 991.98px) {
  .navbar-nav {
    padding-top: 1rem;
  }

  .navbar-nav .nav-link {
    padding: 0.6rem 0;
  }
}


@media (max-width: 991.98px) {
  .navbar-nav .nav-item {
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.3s ease;
  }

  .navbar-collapse.show .nav-item {
    opacity: 1;
    transform: translateY(0);
  }

  .navbar-collapse.show .nav-item:nth-child(1) { transition-delay: 0.05s; }
  .navbar-collapse.show .nav-item:nth-child(2) { transition-delay: 0.1s; }
  .navbar-collapse.show .nav-item:nth-child(3) { transition-delay: 0.15s; }
  .navbar-collapse.show .nav-item:nth-child(4) { transition-delay: 0.2s; }
  .navbar-collapse.show .nav-item:nth-child(5) { transition-delay: 0.25s; }
  .navbar-collapse.show .nav-item:nth-child(6) { transition-delay: 0.3s; }
}

.navbar-nav .nav-link.active {
  color: #ffc107 !important; /* solar yellow */
  font-weight: 600;
}
.navbar-nav .nav-link.active::after {
  content: "";
  display: block;
  height: 2px;
  width: 100%;
  background: #ffc107;
  margin-top: 4px;
}
body {
  padding-top: 70px; /* adjust if navbar height changes */
}
.navbar {
  transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
}