@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;600;700&display=swap');

:root {
  --primary-yellow: #FACC15; /* Vibrant Yellow for Electrical */
  --primary-hover: #EAB308;
  --secondary-blue: #0EA5E9; /* Vibrant Blue for Plumbing */
  --secondary-hover: #0284C7;
  
  --dark-black: #0F172A; /* Rich slate */
  --light-dark: #1E293B;
  --bg-gradient: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  
  --white: #FFFFFF;
  --light-gray: #F8FAFC;
  --text-dark: #334155;
  --text-muted: #64748B;
  --border-color: #E2E8F0;
  
  --font-primary: 'Plus Jakarta Sans', sans-serif;
  --font-heading: 'Outfit', sans-serif;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 30px -5px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 40px -5px rgba(15, 23, 42, 0.12);
  --shadow-hover: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
  
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  color: var(--text-dark);
  background-color: var(--light-gray);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
  /* Screen transition fade */
  opacity: 0;
  animation: pageFadeIn 0.6s ease-out forwards;
}

@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Background Blur Shapes for Glassmorphism */
body::before, body::after {
  content: '';
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.4;
  pointer-events: none;
}
body::before {
  top: -100px;
  left: -100px;
  width: 50vw;
  height: 50vw;
  max-width: 500px;
  max-height: 500px;
  background: var(--primary-yellow);
}
body::after {
  bottom: 100px;
  right: -100px;
  width: 40vw;
  height: 40vw;
  max-width: 400px;
  max-height: 400px;
  background: var(--secondary-blue);
}



/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--dark-black);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

h1 { font-size: clamp(28px, 6vw, 64px); letter-spacing: -0.03em; }
h2 { font-size: clamp(22px, 5vw, 48px); letter-spacing: -0.02em; }
h3 { font-size: clamp(18px, 3vw, 32px); letter-spacing: -0.01em; }

p { margin-bottom: 1.25rem; font-size: clamp(15px, 2vw, 18px); }

a {
  text-decoration: none;
  color: var(--dark-black);
  transition: var(--transition-smooth);
}

/* Utilities */
.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding { padding: 80px 0; }
@media (min-width: 768px) {
  .section-padding { padding: 120px 0; }
}

.text-center { text-align: center; }
.text-gradient {
  background: linear-gradient(90deg, var(--primary-yellow), #F59E0B);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.text-gradient-blue {
    background: linear-gradient(90deg, var(--secondary-blue), #3B82F6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background-color: var(--white);
  color: var(--dark-black);
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 1px solid rgba(0,0,0,0.05);
  font-family: var(--font-heading);
}

.badge-blue {
    background-color: rgba(14, 165, 233, 0.1);
    color: var(--secondary-hover);
    border: none;
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes pulse-glow {
  0% { box-shadow: 0 0 0 0 rgba(250, 204, 21, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(250, 204, 21, 0); }
  100% { box-shadow: 0 0 0 0 rgba(250, 204, 21, 0); }
}

.animate-up { animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; opacity: 0; }
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 36px;
  font-size: 16px;
  font-weight: 700;
  border-radius: var(--radius-full);
  cursor: pointer;
  border: none;
  transition: var(--transition-smooth);
  gap: 12px;
  font-family: var(--font-heading);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 0; height: 100%;
  background: rgba(255,255,255,0.2);
  transition: var(--transition-smooth);
  z-index: -1;
}

.btn:hover::before { width: 100%; }

/* Button Bounce & Ripple */
.btn:active {
  transform: scale(0.95);
}

.btn-primary {
  background-color: var(--primary-yellow);
  color: var(--dark-black);
  box-shadow: 0 8px 25px rgba(250, 204, 21, 0.4);
}
.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(250, 204, 21, 0.6);
}

.btn-secondary {
    background-color: var(--secondary-blue);
    color: var(--white);
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.4);
}
.btn-secondary:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(14, 165, 233, 0.6);
}


.btn-outline {
  background-color: var(--white);
  color: var(--dark-black);
  border: 2px solid var(--border-color);
}
.btn-outline:hover {
  border-color: var(--dark-black);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* Forms */
.form-group { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.form-group label { font-weight: 700; font-size: 15px; color: var(--light-dark); }
.form-control { 
  width: 100%;
  padding: 18px 24px; 
  border: 2px solid var(--border-color); 
  border-radius: var(--radius-md); 
  font-family: inherit; 
  font-size: 16px; 
  background-color: var(--light-gray);
  transition: var(--transition-smooth);
}
.form-control:focus { 
  outline: none; 
  border-color: var(--primary-yellow); 
  background: var(--white); 
  box-shadow: 0 0 0 6px rgba(250, 204, 21, 0.15); 
}

/* Cards */
.card {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.8);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 4px;
    background: var(--primary-yellow);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.card:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-hover);
}
.card:hover::after {
    transform: scaleX(1);
}

.card.card-blue::after { background: var(--secondary-blue); }

.card-icon {
    width: 64px; height: 64px;
    background: rgba(250, 204, 21, 0.15);
    color: var(--primary-hover);
    display: flex; align-items: center; justify-content: center;
    border-radius: 20px;
    margin-bottom: 24px;
    transition: var(--transition-smooth);
}
.card:hover .card-icon {
    background: var(--primary-yellow);
    color: var(--dark-black);
    transform: rotate(10deg) scale(1.1);
}

.card-blue .card-icon {
    background: rgba(14, 165, 233, 0.15);
    color: var(--secondary-blue);
}
.card.card-blue:hover .card-icon {
    background: var(--secondary-blue);
    color: var(--white);
}

/* Header Top Bar (Desktop Only) */
.top-bar {
  background: var(--bg-gradient);
  color: var(--white);
  padding: 10px 0;
  font-size: 14px;
  font-weight: 600;
  display: none;
}
@media(min-width: 992px) { .top-bar { display: block; } }

.top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.top-contact { display: flex; gap: 32px; }
.top-contact div { display: flex; align-items: center; gap: 8px; }
.top-contact a { color: var(--white); }
.top-contact a:hover { color: var(--primary-yellow); }

/* Main Header */
.header {
  background-color: rgba(255, 255, 255, 0.85); /* Slightly more translucent for true glassmorphism */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08); /* slight boost in shadow for depth */
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: var(--transition-smooth);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
}

@media (min-width: 992px) {
  .nav-container {
    height: 90px;
  }
}

.logo {
  font-size: 28px;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--dark-black);
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: -0.02em;
}

/* Navigation */
.desktop-nav {
  display: flex !important;
  gap: 6px;
  align-items: center;
}
.desktop-nav a.nav-link {
  color: var(--text-dark);
  font-weight: 700;
  padding: 6px 8px;
  font-size: 13px;
  border-radius: var(--radius-full);
}
.desktop-nav a.nav-link:hover, .desktop-nav a.nav-link.active { 
  background-color: rgba(250, 204, 21, 0.15);
  color: var(--primary-hover); 
}
.desktop-nav .btn {
  display: none !important; /* Hide CTA button in mobile header */
}

@media (min-width: 992px) {
  .desktop-nav {
    gap: 12px;
  }
  .desktop-nav a.nav-link {
    padding: 12px 20px;
    font-size: 16px;
  }
  .desktop-nav a.nav-link:hover, .desktop-nav a.nav-link.active { 
    background-color: var(--light-gray);
    color: var(--primary-hover);
  }
  .desktop-nav .btn {
    display: inline-flex !important; /* Show CTA button on desktop */
  }
}

/* Floating Actions */
.floating-whatsapp {
  position: fixed;
  right: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.floating-whatsapp {
  bottom: 20px; 
  background-color: #25D366;
  color: white;
  width: 50px;
  height: 50px;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
  animation: pulse-glow 3s infinite;
}
.floating-whatsapp i { width: 24px; height: 24px; }
.floating-whatsapp:hover { transform: scale(1.15) rotate(-10deg); color: white; }

@media (min-width: 992px) {
    .floating-whatsapp { bottom: 40px; right: 40px; width: 70px; height: 70px; }
    .floating-whatsapp i { width: 36px; height: 36px; }
}
/* Footer */
footer {
  background: var(--bg-gradient);
  color: var(--white);
  padding: 100px 0 40px;
  position: relative;
  overflow: hidden;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

footer h3 { color: var(--white); margin-bottom: 32px; font-size: 24px; font-family: var(--font-heading); }
footer p, footer li { color: #94A3B8; font-size: 16px; }
footer a { color: #94A3B8; display: inline-block; transition: transform 0.3s, color 0.3s; }
footer a:hover { color: var(--primary-yellow); transform: translateX(5px); }
footer ul { list-style: none; }
footer ul li { margin-bottom: 16px; display: flex; align-items: flex-start; gap: 12px; }
footer ul li i { margin-top: 4px; color: var(--primary-yellow); flex-shrink: 0; }

.footer-bottom {
  text-align: center;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: #64748B;
  font-size: 15px;
  font-weight: 500;
}

/* Service Tags for SEO & Display */
.tags-cloud { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.tag {
    padding: 8px 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #CBD5E1;
    border-radius: var(--radius-full);
    font-size: 14px;
    transition: var(--transition-smooth);
}
.tag:hover { background: var(--primary-yellow); color: var(--dark-black); }

/* Images and Media Hover Config */
.img-hover-zoom {
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 8px solid var(--white);
}
.img-hover-zoom img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    display: block;
}
.img-hover-zoom:hover img {
    transform: scale(1.08);
}

/* Form Grid */
.form-grid-2 { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 768px) { .form-grid-2 { grid-template-columns: 1fr 1fr; gap: 24px; } }


.brand-logo { height: 60px; width: auto; object-fit: contain; }
@media (max-width: 991px) { .brand-logo { height: 45px; } }


/* Form Success Subtle Checkmark */
.success-checkmark {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  display: none;
}
.success-checkmark.active {
  display: block;
}
.check-circle {
  fill: none;
  stroke: #25D366;
  stroke-width: 4;
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}
.check-path {
  fill: none;
  stroke: #25D366;
  stroke-width: 4;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.6s forwards;
}
@keyframes stroke {
  100% { stroke-dashoffset: 0; }
}

/* Skeleton Loading Container */
.skeleton-wrapper .skeleton-content { display: none; }
.skeleton-wrapper.loaded .skeleton-content { display: block; animation: pageFadeIn 0.5s; }
.skeleton-wrapper.loaded .skeleton { display: none; }

.skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.2) 25%, rgba(255,255,255,0.6) 50%, rgba(255,255,255,0.2) 75%);
  background-size: 200% 100%;
  animation: skeletonLoad 1.5s infinite;
  border-radius: 8px;
  height: 20px;
  margin-bottom: 12px;
}
.skeleton.title { height: 32px; width: 60%; margin-bottom: 24px; }
.skeleton.text { height: 16px; width: 100%; }
.skeleton.text.short { width: 80%; }
@keyframes skeletonLoad {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Shared Element Animation (Mobile specific) */
.shared-element {
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  max-width: 100%;
  box-shadow: var(--shadow-sm);
  z-index: 10;
  position: relative;
}
.shared-element.expanded {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2000;
  object-fit: cover;
  border-radius: 0;
  margin: 0;
  box-shadow: none;
}
.close-shared {
  position: fixed; top: 20px; right: 20px; z-index: 2001;
  background: rgba(0,0,0,0.5); color: white; border: none; border-radius: 50%;
  width: 40px; height: 40px; display: none; cursor: pointer;
  align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
}
.close-shared.visible { display: flex; animation: pageFadeIn 0.5s; }



/* Testimonial Slider */
.testimonial-slider {
    position: relative;
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
    padding-bottom: 24px;
}
.testimonial-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}
.testimonial-slide {
    min-width: 100%;
    flex: 0 0 100%;
    padding: 0 16px;
    opacity: 0.4;
    transform: scale(0.95);
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}
.testimonial-slide.active {
    opacity: 1;
    transform: scale(1);
}
@media (min-width: 768px) {
    .testimonial-slide {
        min-width: 50%;
        flex: 0 0 50%;
    }
}
.testimonial-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}
.indicator-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(0,0,0,0.1);
    cursor: pointer;
    transition: var(--transition-smooth);
}
.indicator-dot:hover {
    background: rgba(0,0,0,0.3);
}
.indicator-dot.active {
    background: var(--primary-yellow);
    transform: scale(1.2);
}

/* Mobile Responsive Layout and Spacing Adjustments */
@media (max-width: 767px) {
  .container {
    padding: 0 16px;
  }
  .section-padding {
    padding: 40px 0;
  }
  .hero {
    padding: 60px 0 40px;
    min-height: auto;
    background-attachment: scroll !important; /* Fixed backgrounds are buggy on mobile */
  }
  .hero-content {
    text-align: center;
  }
  .hero-btns {
    justify-content: center;
    gap: 12px;
  }
  .hero-btns .btn {
    width: 100%;
  }
  .floating-badges {
    justify-content: center;
  }
  .dual-services {
    margin-top: -15px;
    padding: 0 16px;
    gap: 16px;
  }
  .card {
    padding: 24px 20px;
  }
  .card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    margin-bottom: 16px;
  }
  .card-icon svg, .card-icon i {
    width: 24px !important;
    height: 24px !important;
  }
  .appointment-section {
    padding: 24px 16px;
    border-radius: var(--radius-md);
  }
  .form-control {
    padding: 12px 16px;
    font-size: 15px;
  }
  .form-group {
    margin-bottom: 16px;
    gap: 6px;
  }
  .btn {
    padding: 12px 24px;
    font-size: 15px;
  }
  footer {
    padding: 60px 0 30px;
  }
  .footer-grid {
    gap: 40px;
    margin-bottom: 40px;
  }
  footer h3 {
    margin-bottom: 16px;
    font-size: 20px;
  }
  
  /* Additional details & helper classes */
  .about-content {
    padding: 40px 0;
  }
  .about-grid {
    gap: 32px;
  }
  .stat-box {
    padding: 20px;
  }
  .contact-container {
    padding: 40px 0;
    gap: 32px;
  }
  .contact-info {
    padding: 24px;
  }
  .info-item {
    margin-bottom: 24px;
  }
  .map-container {
    height: 300px;
  }
  .page-header {
    padding: 80px 0 40px;
  }
  .service-detail-grid {
    padding: 40px 0;
    gap: 32px;
  }
  .benefits-list {
    margin-top: 20px;
  }
  .benefits-list li {
    margin-bottom: 16px;
    font-size: 16px;
  }
  .sub-services {
    padding: 40px 0;
  }
  .reviews-container {
    padding: 40px 0;
    gap: 24px;
  }
  .review-card {
    padding: 24px;
  }
  .review-text {
    font-size: 16px;
    margin-bottom: 20px;
  }
}

@media (max-width: 575px) {
  .nav-container {
    flex-direction: column;
    height: auto !important;
    padding: 10px 0 !important;
    gap: 8px;
  }
  .logo {
    justify-content: center;
    width: 100%;
  }
  .brand-logo {
    height: 32px !important;
  }
  .desktop-nav {
    width: 100%;
    justify-content: center;
    gap: 4px;
  }
  .desktop-nav a.nav-link {
    font-size: 12px;
    padding: 5px 8px;
  }
}
