/* ================== BASE ================== */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: #f5f5f5;
  color: #333;
}

h2 {
  text-align: center;
  margin-bottom: 10px;
}

/* ================== HEADER ================== */
.header {
  background: #004080;
  color: white;
  padding: 2rem;
  text-align: center;
  animation: fadeInDown 1s ease-in-out;
}

.navbar {
  background: #005675;
  padding: 1rem;
  text-align: center;
}

.navbar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar li {
  display: inline-block;
  margin: 0 1rem;
}

.navbar a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

/* ================== HERO ================== */
.hero {
  background: linear-gradient(rgba(12, 85, 232, 0.923), rgba(106, 74, 235, 0.786)),
    url('https://source.unsplash.com/1600x600/?electrician') center/cover no-repeat;
  color: rgb(255, 255, 255);
  padding: 4rem 2rem;
}

.hero-content {
  display: flex;
  gap: 30px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.hero-text {
  flex: 1;
}

.hero-image img {
  width: 280px;
  border-radius: 50%;
  border: 5px solid #0b5ed7;
  animation: float 3s ease-in-out infinite;
}

/* ================== SERVICES + SLIDESHOW ================== */
.services {
  padding: 3rem 2rem;
  background: #fff;
}

/* Slideshow */
.service-slideshow {
  max-width: 900px;
  margin: 30px auto;
}

.slides-wrapper img {
  width: 100%;
  height: auto;   /* 🔑 IMAGE CONTROLS HEIGHT */
  display: none;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

.slides-wrapper img.active {
  display: block;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

/* Service Card */
.service-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  transition: 0.3s;
}

.service-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 10px;
}

.service-card h3 {
  margin: 10px 0 5px;
}

.service-card .price {
  font-size: 20px;
  font-weight: bold;
  color: #0b5ed7;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

/* ================== PRICING ================== */
.pricing {
  padding: 3rem 2rem;
  background: #f9f9f9;
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.price-card {
  background: white;
  padding: 25px;
  border-radius: 18px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.price-card span {
  font-size: 26px;
  font-weight: bold;
  color: #0b5ed7;
}

.price-note {
  text-align: center;
  margin-top: 15px;
  font-style: italic;
}

/* ================== FLOATING BUTTONS ================== */
.whatsapp-float,
.call-float {
  position: fixed;
  width: 60px;
  height: 60px;
  right: 25px;
  border-radius: 50%;
  color: white;
  text-align: center;
  z-index: 9999;
}

.whatsapp-float {
  bottom: 25px;
  background: #25D366;
  font-size: 32px;
  animation: whatsappPulse 1.6s infinite;
}

.call-float {
  bottom: 100px;
  background: #0b5ed7;
  font-size: 26px;
  animation: callPulse 1.6s infinite;
}

.whatsapp-float i,
.call-float i {
  line-height: 60px;
}

.whatsapp-float:hover,
.call-float:hover {
  transform: scale(1.1);
}

/* ================== ANIMATIONS ================== */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
  100% { transform: translateY(0); }
}

@keyframes whatsappPulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,.6); }
  70% { box-shadow: 0 0 0 15px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

@keyframes callPulse {
  0% { box-shadow: 0 0 0 0 rgba(11,94,215,.6); }
  70% { box-shadow: 0 0 0 15px rgba(11,94,215,0); }
  100% { box-shadow: 0 0 0 0 rgba(11,94,215,0); }
} 

/* ================= ATTRACTIVE BOOK NOW BUTTON ================= */

.service-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;        /* ✅ center everything */
}

/* Price styling improvement */
.service-card .price {
  margin: 10px 0;
  font-size: 20px;
  font-weight: bold;
  color: #0b5ed7;
}

/* Book Now Button */
.book-btn {
  margin-top: 12px;
  padding: 12px 26px;
  border-radius: 30px;
  border: none;
  cursor: pointer;

  background: linear-gradient(135deg, #ff9800, #ff5722);
  color: white;

  font-size: 15px;
  font-weight: bold;
  letter-spacing: 0.5px;

  box-shadow: 0 8px 20px rgba(255, 87, 34, 0.4);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Hover effect */
.book-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 28px rgba(255, 87, 34, 0.6);
}

/* Shine animation */
.book-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: rgba(255, 255, 255, 0.35);
  transform: skewX(-25deg);
  transition: 0.5s;
}

.book-btn:hover::before {
  left: 125%;
}

/* Highlight card button (Emergency Service) */
.service-card.highlight .book-btn {
  background: linear-gradient(135deg, #00c853, #009624);
  box-shadow: 0 8px 20px rgba(0, 200, 83, 0.4);
}

.service-card.highlight .book-btn:hover {
  box-shadow: 0 12px 28px rgba(0, 200, 83, 0.6);
}

/* ===== HERO IMAGE SLIDESHOW (CIRCULAR) ===== */

.hero-slideshow {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid #007BFF;
  box-shadow: 0 12px 30px rgba(0,0,0,0.3);
  position: relative;
  animation: float 3s ease-in-out infinite;
}

/* Slides */
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;   /* 🔑 image fits perfectly */
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

/* Active slide */
.hero-slide.active {
  opacity: 1;
}

/* ================= CUSTOMER REVIEWS ================= */

.reviews {
  padding: 4rem 2rem;
  background: linear-gradient(135deg, #f8f9fa, #e3f2fd);
  text-align: center;
}

.reviews h2 {
  margin-bottom: 40px;
  font-size: 32px;
  color: #004080;
}

/* Slider */
.review-slider {
  max-width: 600px;
  margin: auto;
  position: relative;
}

/* Review Card */
.review-card {
  display: none;
  background: white;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
  animation: reviewFade 1s ease;
}

.review-card.active {
  display: block;
}

/* Customer Image */
.review-card img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #0b5ed7;
  margin-bottom: 15px;
}

/* Name */
.review-card h3 {
  margin: 10px 0 5px;
  color: #222;
}

/* Stars */
.stars {
  color: #ff9800;
  font-size: 18px;
  margin-bottom: 10px;
}

/* Review Text */
.review-text {
  font-size: 16px;
  color: #555;
  line-height: 1.6;
}

/* Animation */
@keyframes reviewFade {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
 
/* ================= APPOINTMENT SECTION ================= */
.appointment {
  padding: 4rem 2rem;
  background: linear-gradient(135deg, #e3f2fd, #f9f9f9);
  text-align: center;
}

.appointment h2 {
  margin-bottom: 30px;
  font-size: 32px;
  color: #004080;
}

#appointmentForm {
  max-width: 500px;
  margin: auto;
  background: white;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
  animation: fadeUp 1s ease;
}

#appointmentForm input,
#appointmentForm select,
#appointmentForm textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-size: 15px;
}

#appointmentForm textarea {
  resize: none;
  height: 90px;
}

.big-btn {
  width: 100%;
  font-size: 16px;
  padding: 14px;
}

/* Animation */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ================= ABOUT ================= */
.about {
  padding: 80px 20px;
  background: linear-gradient(135deg, #0b1d26, #07151c);
  color: #fff;
}

.about-container {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: center;
}

.about-text h2 {
  font-size: 36px;
  margin-bottom: 15px;
}

.about-text p {
  font-size: 16px;
  line-height: 1.8;
  opacity: 0.9;
}

.about-highlights {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.highlight-box {
  background: rgba(255,255,255,0.08);
  padding: 20px;
  border-radius: 16px;
  text-align: center;
  transform: translateY(30px);
  opacity: 0;
  transition: 0.6s ease;
}

.highlight-box.show {
  transform: translateY(0);
  opacity: 1;
}

.highlight-box i {
  font-size: 32px;
  color: #00ffcc;
  margin-bottom: 10px;
}

.highlight-box h3 {
  font-size: 18px;
  margin-bottom: 5px;
}

/* Founder */
.about-founder {
  background: rgba(255,255,255,0.08);
  padding: 30px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 15px 40px rgba(0,0,0,0.5);
}

.about-founder img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #00ffcc;
  margin-bottom: 15px;
}

.about-founder span {
  font-size: 14px;
  opacity: 0.8;
}

/* Responsive */
@media(max-width: 900px) {
  .about-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
}


/* ================= OUR WORK SECTION ================= */

.work {
  padding: 80px 10%;
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  color: #fff;
  overflow: hidden;
}

.section-title {
  text-align: center;
  font-size: 36px;
  margin-bottom: 10px;
}

.section-subtitle {
  text-align: center;
  color: #cfd8dc;
  margin-bottom: 40px;
  font-size: 16px;
}

.work-slider {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.work-track {
  display: flex;
  width: calc(300px * 8);
  animation: scrollWork 25s linear infinite;
}

.work-slide {
  width: 300px;
  margin: 0 15px;
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0,0,0,0.4);
  transition: transform 0.4s ease;
}

.work-slide:hover {
  transform: scale(1.05);
}

.work-slide img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.work-slide span {
  display: block;
  padding: 12px;
  text-align: center;
  font-weight: 600;
  color: #203a43;
  background: #f5f5f5;
}

/* Animation */
@keyframes scrollWork {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Pause animation on hover */
.work-slider:hover .work-track {
  animation-play-state: paused;
}

/* ================= HEADER UI UPGRADE ================= */

.header {
 background: linear-gradient(135deg, #394e78, #0340cf);
  padding: 25px 20px;
  color: #fff;
}

.header-inner {
  max-width: 1200px;
  margin: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.logo {
  width: 70px;
  height: 70px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.4));
}

.brand h1 {
  font-size: 34px;
  margin: 0;
  font-weight: 700;
  letter-spacing: 1px;
}

.tagline {
  margin: 4px 0 0;
  font-size: 15px;
  opacity: 0.9;
}

/* ================= NAVBAR UPGRADE ================= */

.navbar {
  background: linear-gradient(135deg,  #0A2540,  #102E4A);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.navbar a {
  padding: 10px 16px;
  border-radius: 20px;
  transition: 0.3s;
}

.navbar a:hover {
  background: #054582;
  color: #fff;
}

/* ================= CONTACT UI ================= */

.contact {
  padding: 80px 20px;
  background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
  text-align: center;
}

.contact h2 {
  font-size: 34px;
  color: #003973;
  margin-bottom: 40px;
}

.contact-cards {
  max-width: 1000px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 25px;
}

.contact-card {
  background: #fff;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
  transition: 0.4s;
}

.contact-card:hover {
  transform: translateY(-8px);
}

.contact-card i {
  font-size: 36px;
  color: #0b5ed7;
  margin-bottom: 15px;
}

.contact-card h3 {
  margin-bottom: 8px;
}

.contact-card a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
}
/* ================== COPYRIGHT ================== */
.copyright {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.2);
  text-align: center;
}

.copyright p {
  color: #141515;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

.copyright p span {
  color: #0a36e4;
  font-weight: bold;
}


