/* Energex Brand Style System (Showcase Model) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  /* Colors */
  --primary: #1c9961;
  --primary-hover: #157e4e;
  --primary-light: #e8fff2;
  --secondary: #061d3b;
  --secondary-hover: #112d52;
  --secondary-dark: #031022;
  --accent: #facc15;
  --accent-hover: #eab308;
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --text-light: #ffffff;
  --border-color: #e2e8f0;
  
  /* Fonts */
  --font-headings: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Layout */
  --container-width: 1200px;
  --header-height: 80px;
  --transition-speed: 0.3s;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-white);
  color: var(--text-dark);
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  font-weight: 600;
  line-height: 1.3;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-speed) ease;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
}

/* Container */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Utility Classes */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  gap: 8px;
  min-height: 48px; /* Mobile Friendly Tap Target */
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--text-light);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(28, 153, 97, 0.3);
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--text-light);
}

.btn-secondary:hover {
  background-color: var(--secondary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(6, 29, 59, 0.3);
}

.btn-accent {
  background-color: var(--accent);
  color: var(--secondary-dark);
}

.btn-accent:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(250, 204, 21, 0.3);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--border-color);
  color: var(--text-dark);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline-white {
  background-color: transparent;
  border: 2px solid var(--text-light);
  color: var(--text-light);
}

.btn-outline-white:hover {
  background-color: var(--text-light);
  color: var(--secondary-dark);
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-green {
  background-color: var(--primary-light);
  color: var(--primary);
}

.badge-yellow {
  background-color: #fef9c3;
  color: #a16207;
}

.text-center { text-align: center; }
.section-padding { padding: 80px 0; }
.bg-light { background-color: var(--bg-light); }

/* Animation Keyframes */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.04); }
  100% { transform: scale(1); }
}

/* Header & Navigation Styling */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: transparent;
  z-index: 1000;
  transition: all var(--transition-speed) ease;
}

header.scrolled {
  background-color: var(--bg-white);
  height: 70px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-headings);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-light);
  letter-spacing: 1px;
}

header.scrolled .logo {
  color: var(--secondary);
}

.logo span {
  color: var(--primary);
}

nav ul {
  display: flex;
  gap: 32px;
}

nav a {
  font-weight: 500;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  position: relative;
  padding: 6px 0;
}

header.scrolled nav a {
  color: var(--secondary);
}

nav a:hover, nav a.active {
  color: var(--text-light);
}

header.scrolled nav a:hover, header.scrolled nav a.active {
  color: var(--primary);
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width var(--transition-speed) ease;
}

nav a:hover::after, nav a.active::after {
  width: 100%;
}

.header-icons {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--text-light);
  font-size: 1.2rem;
}

header.scrolled .header-icons {
  color: var(--secondary);
}

.user-icon {
  cursor: pointer;
}

.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 6px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

/* Hero Section */
.hero {
  height: 100vh;
  min-height: 600px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  color: var(--text-light);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(6, 29, 59, 0.9) 0%, rgba(19, 60, 39, 0.8) 100%);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: center;
  gap: 40px;
  animation: slideUp 1s ease;
}

.hero-text h1 {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero-text h1 span {
  color: var(--primary);
  background: linear-gradient(to right, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-text p {
  font-size: 1.25rem;
  margin-bottom: 35px;
  color: rgba(255, 255, 255, 0.85);
  max-width: 580px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
}

.hero-image {
  display: flex;
  justify-content: center;
  position: relative;
}

.hero-image img {
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
  animation: pulse 4s infinite ease-in-out;
  max-height: 480px;
  object-fit: contain;
}

/* Floating WhatsApp Widget */
.whatsapp-bubble {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 999;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.whatsapp-bubble:hover {
  transform: scale(1.1) rotate(10deg);
  background-color: #128c7e;
}

/* Stats Counter Section */
.stats {
  padding: 40px 0;
  background-color: var(--secondary-dark);
  color: var(--text-light);
  border-bottom: 4px solid var(--primary);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.stat-item h3 {
  font-size: 2.8rem;
  color: var(--primary);
  margin-bottom: 5px;
  font-weight: 700;
}

.stat-item p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Services / Features Section */
.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--secondary);
  margin-bottom: 15px;
}

.section-title h2 span {
  color: var(--primary);
}

.section-title p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  background-color: var(--bg-white);
  padding: 40px 30px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all var(--transition-speed) ease;
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--primary);
  transform: scaleX(0);
  transition: transform var(--transition-speed) ease;
  transform-origin: left;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: transparent;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 25px;
}

.service-card h3 {
  font-size: 1.4rem;
  color: var(--secondary);
  margin-bottom: 15px;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Products Catalog Showcase Section */
.products-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  margin-top: 40px;
}

/* Filter Sidebar */
.filters-sidebar {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 30px 24px;
  height: fit-content;
  position: sticky;
  top: 100px;
}

.filter-group {
  margin-bottom: 30px;
}

.filter-group h4 {
  font-size: 1.1rem;
  color: var(--secondary);
  margin-bottom: 15px;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 8px;
}

.search-input-wrapper {
  position: relative;
}

.search-input-wrapper input {
  width: 100%;
  padding: 12px 16px 12px 40px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  transition: all var(--transition-speed) ease;
  min-height: 48px;
}

.search-input-wrapper input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(28, 153, 97, 0.15);
}

.search-input-wrapper i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.filter-options li {
  margin-bottom: 15px;
}

.filter-checkbox {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 0.95rem;
  min-height: 32px;
}

.filter-checkbox input {
  width: 20px;
  height: 20px;
  accent-color: var(--primary);
  cursor: pointer;
}

.price-range-wrapper {
  padding: 10px 0;
}

.price-range-wrapper input {
  width: 100%;
  accent-color: var(--primary);
  cursor: pointer;
}

.price-values {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 8px;
}

/* Products Listing Grid */
.products-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.products-count {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.products-sorting select {
  padding: 10px 16px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background-color: var(--bg-white);
  cursor: pointer;
  min-height: 44px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* Product Card (Showcase version) */
.product-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
  transition: all var(--transition-speed) ease;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  border-color: transparent;
}

.product-img-wrapper {
  position: relative;
  background-color: var(--bg-light);
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 250px;
  overflow: hidden;
}

.product-img-wrapper img {
  max-height: 180px;
  transition: transform var(--transition-speed) ease;
  object-fit: contain;
}

.product-card:hover .product-img-wrapper img {
  transform: scale(1.08);
}

.product-badges {
  position: absolute;
  top: 15px;
  left: 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-info {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-cat {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.product-title {
  font-size: 1.15rem;
  color: var(--secondary);
  margin-bottom: 10px;
  font-weight: 600;
}

.product-rating {
  color: #fbbf24;
  font-size: 0.85rem;
  margin-bottom: 15px;
  display: flex;
  gap: 3px;
  align-items: center;
}

.product-rating span {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-left: 4px;
}

.product-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid var(--border-color);
}

.product-price {
  display: flex;
  flex-direction: column;
}

.price-new {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--secondary);
}

.price-old {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

/* Product Detail Page Showcase */
.product-detail-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  margin-top: 40px;
}

.detail-gallery {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.main-image-wrapper {
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 450px;
}

.main-image-wrapper img {
  max-height: 380px;
  object-fit: contain;
}

.thumb-images {
  display: flex;
  gap: 15px;
}

.thumb-wrapper {
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 15px;
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
}

.thumb-wrapper.active, .thumb-wrapper:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 10px rgba(28, 153, 97, 0.1);
}

.thumb-wrapper img {
  max-height: 60px;
  object-fit: contain;
}

.detail-info h1 {
  font-size: 2.2rem;
  color: var(--secondary);
  margin-bottom: 10px;
}

.detail-info .product-rating {
  font-size: 1rem;
  margin-bottom: 20px;
}

.detail-price-box {
  display: flex;
  align-items: baseline;
  gap: 15px;
  margin-bottom: 25px;
}

.detail-price-new {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary);
}

.detail-price-old {
  font-size: 1.4rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.detail-description {
  color: var(--text-muted);
  margin-bottom: 30px;
  font-size: 1.05rem;
}

.detail-specs-list {
  margin-bottom: 35px;
}

.detail-specs-list li {
  display: flex;
  margin-bottom: 12px;
  border-bottom: 1px dashed var(--border-color);
  padding-bottom: 8px;
  font-size: 0.95rem;
}

.detail-specs-list li strong {
  width: 180px;
  color: var(--secondary);
}

.detail-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
}

/* Tabs Section */
.tabs-container {
  margin-top: 60px;
}

.tabs-nav {
  display: flex;
  border-bottom: 2px solid var(--border-color);
  gap: 40px;
  margin-bottom: 30px;
}

.tab-btn {
  font-family: var(--font-headings);
  font-size: 1.2rem;
  font-weight: 600;
  padding: 15px 0;
  color: var(--text-muted);
  background: none;
  cursor: pointer;
  position: relative;
  transition: color var(--transition-speed) ease;
  min-height: 48px;
}

.tab-btn.active, .tab-btn:hover {
  color: var(--primary);
}

.tab-btn::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 3px;
  background-color: var(--primary);
  transition: width var(--transition-speed) ease;
}

.tab-btn.active::after {
  width: 100%;
}

.tab-content {
  display: none;
  animation: fadeIn 0.5s ease;
}

.tab-content.active {
  display: block;
}

/* Specs Table */
.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

.specs-table tr {
  border-bottom: 1px solid var(--border-color);
}

.specs-table tr:nth-child(even) {
  background-color: var(--bg-light);
}

.specs-table td {
  padding: 16px 24px;
  font-size: 0.95rem;
}

.specs-table td:first-child {
  font-weight: 600;
  color: var(--secondary);
  width: 320px;
}

/* About Page / Testimonial Carousel */
.milestones-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 50px;
}

.milestone-card {
  text-align: center;
  background: var(--bg-light);
  padding: 40px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
}

.milestone-card i {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.milestone-card h3 {
  font-size: 1.5rem;
  color: var(--secondary);
  margin-bottom: 10px;
}

.testimonials-section {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
  color: var(--text-light);
}

.testimonials-section .section-title h2 {
  color: var(--text-light);
}

.testimonials-slider {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.testimonial-slide {
  display: none;
  animation: fadeIn 0.5s ease;
}

.testimonial-slide.active {
  display: block;
}

.testimonial-slide p {
  font-size: 1.3rem;
  font-style: italic;
  margin-bottom: 30px;
  line-height: 1.8;
}

.testimonial-author {
  font-weight: 600;
  color: var(--primary);
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all var(--transition-speed) ease;
}

.dot.active {
  background-color: var(--primary);
  transform: scale(1.3);
}

/* Contact Page Grid */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  margin-top: 40px;
}

.contact-info-column h3 {
  font-size: 1.8rem;
  color: var(--secondary);
  margin-bottom: 20px;
}

.contact-info-list li {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  align-items: flex-start;
}

.contact-info-list i {
  font-size: 1.5rem;
  color: var(--primary);
  background-color: var(--primary-light);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-info-list h4 {
  font-size: 1.1rem;
  color: var(--secondary);
  margin-bottom: 5px;
}

.contact-info-list p {
  color: var(--text-muted);
}

/* Forms */
.form-card {
  background-color: var(--bg-white);
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-color);
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--secondary);
  font-size: 0.95rem;
}

.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background-color: var(--bg-light);
  transition: all var(--transition-speed) ease;
  min-height: 48px;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  background-color: var(--bg-white);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(28, 153, 97, 0.15);
}

.map-section {
  width: 100%;
  height: 450px;
  margin-top: 80px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.map-section iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Blog List Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.blog-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
  transition: all var(--transition-speed) ease;
}

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

.blog-img-wrapper {
  height: 260px;
  overflow: hidden;
  position: relative;
}

.blog-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-speed) ease;
}

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

.blog-meta-tags {
  position: absolute;
  bottom: 15px;
  left: 15px;
}

.blog-card-info {
  padding: 30px;
}

.blog-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.blog-card-info h3 {
  font-size: 1.4rem;
  color: var(--secondary);
  margin-bottom: 12px;
  font-weight: 600;
}

.blog-card-info p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.blog-read-more {
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.blog-read-more:hover {
  gap: 12px;
}

/* Footer Section */
footer {
  background-color: var(--secondary-dark);
  color: var(--text-light);
  padding: 80px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 60px;
}

.footer-column h3 {
  font-size: 1.3rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.footer-column h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--primary);
}

.footer-column p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.footer-socials {
  display: flex;
  gap: 15px;
}

.social-icon {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  transition: all var(--transition-speed) ease;
}

.social-icon:hover {
  background-color: var(--primary);
  color: var(--text-light);
  transform: translateY(-3px);
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 5px;
}

.footer-contact li {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  align-items: flex-start;
}

.footer-contact i {
  color: var(--primary);
  margin-top: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Toast Notifications */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--secondary-dark);
  color: var(--text-light);
  padding: 15px 25px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 2000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border-left: 4px solid var(--primary);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast i {
  color: var(--primary);
  font-size: 1.2rem;
}

/* Mobile & Tablet Responsive Optimizations (Fluid Layouts) */
@media (max-width: 1024px) {
  /* Fluid Typo scale */
  .hero-text h1 {
    font-size: 3rem;
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .services-grid {
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .brand-logo-svg {
    max-width: 190px;
    height: auto;
  }

  /* Dynamic Header Scrolled Override */
  header {
    background-color: var(--bg-white);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    height: 70px;
  }
  
  header .logo {
    color: var(--secondary);
  }
  
  .header-icons {
    color: var(--secondary);
  }
  
  .mobile-menu-btn {
    display: flex;
    color: var(--secondary);
  }
  
  /* Mobile Sidebar Drawer Navigation */
  nav {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 280px;
    height: calc(100vh - 70px);
    background-color: var(--bg-white);
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.08);
    padding: 30px 24px;
    transition: left 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1010;
  }
  
  nav.active {
    left: 0;
  }
  
  nav ul {
    flex-direction: column;
    gap: 20px;
  }
  
  nav a {
    color: var(--secondary);
    font-size: 1.1rem;
    font-family: var(--font-headings);
    display: block;
    padding: 8px 0;
  }
  
  nav a::after {
    bottom: 4px;
  }

  /* Fluid typography and spacing */
  .container {
    padding: 0 16px; /* Optimized narrow gutters */
  }

  .section-padding {
    padding: 50px 0; /* Reduced vertical spacing */
  }

  .section-title {
    margin-bottom: 40px;
  }

  .section-title h2 {
    font-size: 1.85rem;
  }

  /* Hero Mobile Refactor */
  .hero {
    height: auto;
    padding: 120px 0 60px;
  }
  
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }
  
  .hero-text h1 {
    font-size: 2.25rem;
    letter-spacing: -0.5px;
  }
  
  .hero-text p {
    font-size: 1.05rem;
    margin: 0 auto 30px;
  }
  
  .hero-buttons {
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
  }
  
  .hero-buttons .btn {
    width: 100%; /* Full width buttons for tap accessibility */
  }

  .hero-image img {
    max-height: 280px;
    margin: 0 auto;
  }
  
  /* Stats grid collapsing */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .stat-item h3 {
    font-size: 2.2rem;
  }
  
  /* Collapse grids to single-column */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .service-card {
    padding: 30px 20px;
  }
  
  .products-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .filters-sidebar {
    position: static;
    width: 100%;
    box-shadow: none;
    padding: 24px 16px;
  }
  
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .product-img-wrapper {
    height: 180px;
    padding: 15px;
  }

  .product-img-wrapper img {
    max-height: 130px;
  }

  .product-info {
    padding: 16px;
  }

  .product-title {
    font-size: 1rem;
  }

  .product-price-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .product-price-row .btn {
    width: 100%;
  }

  /* Product details mobile specifications layout */
  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .main-image-wrapper {
    height: 300px;
    padding: 20px;
  }

  .main-image-wrapper img {
    max-height: 260px;
  }

  .thumb-wrapper {
    width: 70px;
    height: 70px;
    padding: 10px;
  }

  .thumb-wrapper img {
    max-height: 45px;
  }

  .detail-info h1 {
    font-size: 1.75rem;
  }

  .detail-price-new {
    font-size: 1.85rem;
  }

  .detail-actions {
    flex-direction: column;
    gap: 12px;
  }

  .detail-actions .btn {
    width: 100%;
  }

  .tabs-nav {
    gap: 20px;
    overflow-x: auto; /* Allow horizontal scroll for tabs on narrow viewports */
    padding-bottom: 5px;
    white-space: nowrap;
  }

  .tab-btn {
    font-size: 1rem;
    padding: 10px 0;
  }

  .specs-table td {
    padding: 12px 14px;
    font-size: 0.9rem;
  }

  .specs-table td:first-child {
    width: 120px;
  }
  
  /* About and Contact Page Collapsing */
  .milestones-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }

  .milestone-card {
    padding: 30px 20px;
  }

  .testimonial-slide p {
    font-size: 1.1rem;
    line-height: 1.6;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .form-card {
    padding: 24px 16px;
  }

  .map-section {
    height: 300px;
    margin-top: 40px;
  }
  
  /* Blog collapsing */
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .blog-img-wrapper {
    height: 200px;
  }

  .blog-card-info {
    padding: 20px;
  }

  .article-header h1 {
    font-size: 1.85rem;
  }

  .article-cover {
    height: 250px;
    margin-bottom: 24px;
  }

  .article-body {
    font-size: 1rem;
  }
  
  /* Footer elements alignment */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  footer {
    padding: 50px 0 30px;
  }
}

@media (max-width: 600px) {
  /* Fluid 1-column layouts for mobile phones */
  .products-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .thumb-images {
    justify-content: center;
  }
}

/* ==========================================
   E-COMMERCE & WIRING DIAGRAM ADDITIONS
   ========================================== */

/* Header Cart Badge */
.cart-icon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(28, 153, 97, 0.1);
  color: var(--primary);
  transition: all var(--transition-speed) ease;
}
header.scrolled .cart-icon-wrapper {
  background-color: var(--primary-light);
}
.cart-icon-wrapper:hover {
  background-color: var(--primary);
  color: var(--text-light);
  transform: scale(1.05);
}
.cart-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background-color: #ef4444;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-white);
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
header:not(.scrolled) .cart-badge {
  border-color: var(--secondary-dark);
}

/* Quantity Selector Component */
.quantity-selector {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  max-width: 130px;
  background: var(--bg-white);
}
.qty-btn {
  width: 38px;
  height: 38px;
  background: var(--bg-light);
  border: none;
  color: var(--text-dark);
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.qty-btn:hover {
  background: var(--border-color);
}
.qty-input {
  width: 54px;
  height: 38px;
  text-align: center;
  border: none;
  font-weight: 600;
  color: var(--text-dark);
  -moz-appearance: textfield;
  background: transparent;
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* E-Commerce Cart Layout */
.cart-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
  align-items: start;
}
.cart-table-wrapper {
  background: var(--bg-white);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.02);
  border: 1px solid var(--border-color);
  overflow-x: auto;
}
.cart-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 500px;
}
.cart-table th, .cart-table td {
  padding: 18px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}
.cart-table th {
  background-color: var(--bg-light);
  font-weight: 600;
  color: var(--secondary-dark);
}
.cart-item-title {
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 1rem;
  color: var(--secondary-dark);
}
.cart-item-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.cart-remove-btn {
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  font-size: 1.1rem;
  transition: transform 0.2s;
}
.cart-remove-btn:hover {
  transform: scale(1.1);
}
.coupon-section {
  display: flex;
  gap: 10px;
  margin-top: 25px;
  background: var(--bg-light);
  padding: 18px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}
.promo-input-group {
  display: flex;
  flex: 1;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-white);
}
.promo-input-group input {
  flex: 1;
  padding: 10px 15px;
  border: none;
  background: transparent;
}
.promo-input-group button {
  padding: 10px 20px;
  background: var(--secondary);
  color: var(--text-light);
  font-weight: 500;
  cursor: pointer;
}
.promo-input-group button:hover {
  background: var(--secondary-hover);
}

.cart-summary-card {
  background: var(--bg-white);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.02);
  border: 1px solid var(--border-color);
  padding: 24px;
}
.cart-summary-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--secondary-dark);
  margin-bottom: 20px;
  border-bottom: 2px solid var(--primary-light);
  padding-bottom: 10px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  color: var(--text-dark);
}
.summary-row.discount {
  color: var(--primary);
  font-weight: 600;
}
.summary-row.total {
  border-top: 1px dashed var(--border-color);
  padding-top: 15px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--secondary-dark);
}

/* E-Commerce Checkout Layout */
.checkout-layout {
  display: grid;
  grid-template-columns: 1.8fr 1.2fr;
  gap: 30px;
  align-items: start;
}
.checkout-card {
  background: var(--bg-white);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 20px rgba(0,0,0,0.02);
  padding: 30px;
  margin-bottom: 25px;
}
.checkout-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--secondary-dark);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
}
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.form-control {
  width: 100%;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-light);
  color: var(--text-dark);
  transition: all 0.3s;
}
.form-control:focus {
  border-color: var(--primary);
  background-color: var(--bg-white);
  box-shadow: 0 0 0 3px rgba(28, 153, 97, 0.1);
}

.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.payment-option {
  display: flex;
  align-items: flex-start;
  padding: 16px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
}
.payment-option:hover {
  border-color: var(--primary);
  background-color: var(--bg-light);
}
.payment-option input {
  margin-top: 4px;
  margin-right: 12px;
}
.payment-option-text h5 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--secondary-dark);
  margin-bottom: 4px;
}
.payment-option-text p {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.payment-option.active {
  border-color: var(--primary);
  background-color: var(--primary-light);
}

/* System Schematic Wiring Diagram CSS (Premium) */
.wiring-diagram-card {
  background: var(--bg-white);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  padding: 24px;
  margin-top: 30px;
}
.wiring-diagram-card h3 {
  font-size: 1.25rem;
  color: var(--secondary-dark);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.wiring-diagram-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.wiring-diagram-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px 10px;
  position: relative;
  overflow-x: auto;
}
.schematic-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 90px;
  z-index: 2;
}
.schematic-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--bg-light);
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--secondary);
  margin-bottom: 8px;
  transition: all 0.3s;
}
.schematic-node.active .schematic-icon {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 12px rgba(28, 153, 97, 0.2);
}
.schematic-node span {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-dark);
}
.schematic-node .node-subtext {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 2px;
}
.schematic-link {
  flex-grow: 1;
  height: 4px;
  background: var(--border-color);
  position: relative;
  margin: 0 -10px;
  min-width: 40px;
}
.schematic-link::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  background-size: 200% 100%;
  animation: flowLine 2s linear infinite;
  opacity: 0;
}
.schematic-node.active + .schematic-link::after {
  opacity: 1;
}
@keyframes flowLine {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Success Modal Overlay */
.success-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.success-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.success-modal {
  background: var(--bg-white);
  padding: 40px;
  border-radius: 16px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  box-shadow: 0 15px 40px rgba(0,0,0,0.3);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}
.success-overlay.active .success-modal {
  transform: scale(1);
}
.success-icon-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  margin: 0 auto 20px;
}
.success-modal h3 {
  font-size: 1.6rem;
  color: var(--secondary-dark);
  margin-bottom: 12px;
  font-family: var(--font-headings);
}
.success-modal p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.order-num-badge {
  display: inline-block;
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  padding: 6px 16px;
  border-radius: 6px;
  font-family: monospace;
  font-size: 1.1rem;
  color: var(--secondary-dark);
  font-weight: 700;
  margin-bottom: 24px;
}

/* Floating WhatsApp Bubble Adjustments */
.whatsapp-bubble {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  background-color: #25d366;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  z-index: 999;
  transition: all 0.3s ease;
}
.whatsapp-bubble:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
  color: #ffffff;
}

/* Slogan Styling */
.slogan-text {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  display: block;
}

/* Responsive Table */
.backup-table-wrapper {
  overflow-x: auto;
  margin-top: 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
}
.backup-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.backup-table th, .backup-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.95rem;
}
.backup-table th {
  background-color: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
}
.backup-table tr:last-child td {
  border-bottom: none;
}

/* Mobile responsive layout fixes and active touch states */
@media (max-width: 480px) {
  .brand-logo-svg {
    max-width: 160px;
    height: auto;
  }
}

/* Smooth Touch Momentum Scrolling */
.backup-table-wrapper,
.wiring-diagram-container,
.tabs-nav {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Hide standard ugly scrollbar on Firefox */
}

.backup-table-wrapper::-webkit-scrollbar,
.wiring-diagram-container::-webkit-scrollbar,
.tabs-nav::-webkit-scrollbar {
  display: none; /* Hide scrollbar on Chrome/Safari/Edge */
}

/* Active touch feedback for mobile buttons */
.btn:active,
.schematic-node:active,
.thumb-wrapper:active {
  transform: scale(0.96);
  opacity: 0.9;
}

