/* Electro Serv - One Page Website Styles */

:root {
  --primary: #0d6efd;
  --primary-dark: #0a58ca;
  --dark: #1a1a2e;
  --navbar-bg: rgba(26, 26, 46, 0.95);
}

* {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: #333;
  overflow-x: hidden;
}

/* Top Bar */
.top-bar {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
}

.top-bar i {
  opacity: 0.9;
}

/* Navbar */
.navbar {
  background: var(--navbar-bg) !important;
  backdrop-filter: blur(10px);
  padding: 0.75rem 0;
  transition: background 0.3s ease;
}

.navbar.scrolled {
  background: rgba(26, 26, 46, 0.98) !important;
}

.navbar-brand {
  font-size: 1.4rem;
  letter-spacing: 0.05em;
}

.nav-link {
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--primary) !important;
}

/* Quote Button */
.btn-quote {
  background: var(--primary);
  color: #fff !important;
  border: none;
  padding: 0.5rem 1.25rem;
  font-weight: 600;
  border-radius: 0.35rem;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-quote:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-1px);
}

/* Hero Carousel */
.hero {
  position: relative;
  min-height: 85vh;
}

.hero .carousel,
.hero .carousel-inner,
.hero .carousel-item {
  height: 85vh;
  min-height: 500px;
}

.carousel-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.carousel-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(26, 26, 46, 0.5) 0%, rgba(26, 26, 46, 0.75) 100%);
}

.carousel-bg-1 {
  background-image: url('https://images.unsplash.com/photo-1558618666-fcd25c85cd64?w=1920&h=1080&fit=crop');
}

.carousel-bg-2 {
  background-image: url('https://images.unsplash.com/photo-1565793298595-6a879b1d9492?w=1920&h=1080&fit=crop');
}

.carousel-bg-3 {
  background-image: url('https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?w=1920&h=1080&fit=crop');
}

.carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 3rem 2rem 4rem;
  text-align: center;
  z-index: 2;
}

.carousel-subtitle {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
  opacity: 0.95;
}

.carousel-caption h1 {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
  margin-bottom: 0;
}

.carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  margin: 0 4px;
  transition: all 0.3s ease;
}

.carousel-indicators button.active {
  background: var(--primary);
  transform: scale(1.2);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 2.5rem;
  height: 2.5rem;
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 50%;
  background-size: 60%;
}

/* Features */
.features {
  background: #f8f9fa;
}

.feature-card {
  background: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.feature-card h4 {
  font-weight: 600;
  color: var(--dark);
}

/* About */
.about img {
  border-radius: 0.5rem;
}

.about .badge {
  font-size: 0.85rem;
  padding: 0.4rem 0.8rem;
}

.section-title {
  font-weight: 700;
  color: var(--dark);
}

/* Stats Counter */
.stats {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
}

.stats .counter {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

.stats p {
  opacity: 0.9;
  font-size: 0.95rem;
}

/* Services */
.services {
  background: #f8f9fa;
}

.service-card {
  border-radius: 0.5rem;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12) !important;
}

.service-img {
  height: 200px;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s ease;
}

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

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

.service-card .card-title {
  font-weight: 600;
  color: var(--dark);
}

/* Contact */
.contact {
  background: #fff;
}

.quote-form .form-control {
  padding: 0.75rem 1rem;
  border-radius: 0.35rem;
  border: 1px solid #dee2e6;
}

.quote-form .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Footer */
.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.9);
}

.footer h5 {
  font-weight: 600;
  color: #fff;
}

.footer a:hover {
  color: #fff !important;
}

/* Responsive */
@media (max-width: 768px) {
  .top-bar .col-md-4 {
    text-align: center !important;
    margin-bottom: 0.25rem;
  }

  .hero .carousel-caption h1 {
    font-size: 1.5rem;
  }

  .carousel-caption {
    padding: 2rem 1rem 3rem;
  }
}
