/* CSS Variables */
:root {
  --primary: #64748b;
  --primary-foreground: #FFFFFF;
  --secondary: #16a34a;
  --secondary-foreground: #111827;
  --accent: #dc2626;
  --accent-foreground: #FFFFFF;
  --background: #FFFFFF;
  --foreground: #111827;
  --card: #FFFFFF;
  --card-foreground: #111827;
  --border: #E5E7EB;
  --input: #E5E7EB;
  --ring: #64748b;
  --muted: #F3F4F6;
  --muted-foreground: #6B7280;
  --font-family: 'Roboto', sans-serif;
  --radius: 0.75rem;
}

/* Global Styles */
* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  line-height: 1.6;
  color: var(--foreground);
  background: var(--background);
  margin: 0;
  padding: 0;
  overflow-wrap: break-word;
}

.hidden {
  display: none !important;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--foreground);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
  color: var(--foreground);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent);
}

/* Layout Grid */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* Buttons */
.btn-primary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary:hover {
  background: var(--primary);
  color: var(--primary-foreground);
}

.btn-outline {
  background: transparent;
  color: var(--foreground);
  border: 2px solid var(--border);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 1rem;
}

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

/* Icons */
.icon-sm { width: 16px; height: 16px; }
.icon-md { width: 24px; height: 24px; }
.icon-lg { width: 32px; height: 32px; }
.icon-xl { width: 48px; height: 48px; }

.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-muted { color: var(--muted-foreground); }

.icon-box {
  width: 60px;
  height: 60px;
  border-radius: var(--radius);
  background: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  box-shadow: 8px 8px 16px #d1d1d1, -8px -8px 16px #ffffff;
}

/* Top Bar */
.topbar {
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 0.5rem 0;
  font-size: 0.875rem;
}

.topbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar-left {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.topbar-left span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.topbar a {
  color: var(--primary-foreground);
  opacity: 0.9;
}

.topbar a:hover {
  opacity: 1;
}

@media (max-width: 768px) {
  .topbar-content {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .topbar-left {
    gap: 1rem;
  }
}

/* Navigation */
.navbar {
  background: var(--background);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

.logo-img {
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: var(--foreground);
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
}

.smartgridhubae_mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--foreground);
}

.smartgridhubae_mobile-menu {
  display: none;
  flex-direction: column;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  margin-top: 1rem;
}

.mobile-nav-link {
  padding: 0.75rem 0;
  color: var(--foreground);
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}

@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }
  
  .smartgridhubae_mobile-menu-toggle {
    display: block;
  }
  
  .smartgridhubae_mobile-menu {
    display: flex;
  }
  
  .smartgridhubae_mobile-menu.hidden {
    display: none;
  }
}

/* Hero Section */
.hero {
  isolation: isolate;
  background: var(--background);
  color: var(--foreground);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  z-index: -1;
}

.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.1;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--foreground);
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: var(--muted-foreground);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-main-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 8px 8px 16px #d1d1d1, -8px -8px 16px #ffffff;
}

@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-background {
    display: none;
  }
}

/* Section Styles */
section {
  padding: 5rem 0;
  background: linear-gradient(180deg, var(--background) 0%, var(--muted) 100%);
}

section:nth-child(even):not(.stats-section) {
  background: linear-gradient(180deg, var(--muted) 0%, var(--background) 100%);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--foreground);
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  max-width: 600px;
  margin: 0 auto;
}

.section-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 8px 8px 16px #d1d1d1, -8px -8px 16px #ffffff;
}

/* Page Header */
.page-header {
  isolation: isolate;
  background: var(--muted);
  padding: 3rem 0;
  text-align: center;
}

.page-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--foreground);
}

.page-subtitle {
  font-size: 1.25rem;
  color: var(--muted-foreground);
}

/* Process Steps */
.process-section {
  padding: 5rem 0;
}

.process-step {
  text-align: center;
  position: relative;
  padding: 1.5rem;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 8px 8px 16px #d1d1d1, -8px -8px 16px #ffffff;
  border-left: 4px solid var(--primary);
}

.process-number {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--primary-foreground);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
}

.process-step h3 {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.process-step p {
  color: var(--muted-foreground);
}

/* Gallery Preview */
.gallery-preview {
  padding: 5rem 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 8px 8px 16px #d1d1d1, -8px -8px 16px #ffffff;
}

.gallery-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-image {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: white;
  padding: 1.5rem;
}

.gallery-overlay h3 {
  margin: 0 0 0.5rem 0;
  color: white;
}

.gallery-overlay p {
  margin: 0;
  color: rgba(255,255,255,0.9);
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* Testimonials */
.testimonials-section {
  padding: 5rem 0;
  background: var(--muted);
}

.testimonials-carousel {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.testimonial-track {
  overflow: hidden;
  position: relative;
}

.testimonial-card {
  display: none;
  text-align: center;
  padding: 2rem;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 8px 8px 16px #d1d1d1, -8px -8px 16px #ffffff;
  border-left: 4px solid var(--primary);
}

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

.testimonial-stars {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
}

.star-icon {
  width: 20px;
  height: 20px;
  fill: var(--secondary);
  color: var(--secondary);
}

.testimonial-text {
  font-size: 1.125rem;
  font-style: italic;
  margin-bottom: 1.5rem;
  color: var(--foreground);
}

.testimonial-author h4 {
  margin: 0 0 0.25rem 0;
  color: var(--foreground);
}

.testimonial-author p {
  margin: 0;
  color: var(--muted-foreground);
}

.testimonial-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.testimonial-prev,
.testimonial-next {
  background: var(--primary);
  color: var(--primary-foreground);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.testimonial-prev:hover,
.testimonial-next:hover {
  background: var(--accent);
}

/* Features */
.features-section {
  padding: 5rem 0;
}

.feature-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 8px 8px 16px #d1d1d1, -8px -8px 16px #ffffff;
  border-left: 4px solid var(--primary);
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-image {
  height: 200px;
  overflow: hidden;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-content {
  padding: 1.5rem;
}

.feature-content h3 {
  margin-bottom: 0.75rem;
  color: var(--foreground);
}

.feature-content p {
  color: var(--muted-foreground);
}

/* Stats */
.stats-section {
  padding: 5rem 0;
  background: var(--primary);
  color: var(--primary-foreground);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--primary-foreground);
}

.stat-label {
  font-size: 1.125rem;
  color: var(--primary-foreground);
  opacity: 0.9;
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Team */
.team-preview,
.team-section {
  padding: 5rem 0;
}

.team-card,
.team-member {
  text-align: center;
  padding: 1.5rem;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 8px 8px 16px #d1d1d1, -8px -8px 16px #ffffff;
  border-left: 4px solid var(--primary);
}

.team-icon,
.team-avatar {
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
}

.team-content h3,
.team-info h3 {
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.team-role {
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 1rem;
}

.team-content p,
.team-info p:last-child {
  color: var(--muted-foreground);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}

/* Why Choose Us */
.why-choose-section {
  padding: 5rem 0;
}

.why-choose-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.benefits-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.benefit-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.benefit-content h3 {
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.benefit-content p {
  color: var(--muted-foreground);
  margin: 0;
}

@media (max-width: 768px) {
  .why-choose-content {
    grid-template-columns: 1fr;
  }
}

/* CTA Section */
.cta-section {
  isolation: isolate;
  padding: 5rem 0;
  background: var(--background);
}

.cta-card {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 3rem;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 8px 8px 16px #d1d1d1, -8px -8px 16px #ffffff;
  border: 1px solid var(--border);
}

.cta-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--foreground);
}

.cta-description {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  color: var(--muted-foreground);
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Footer */
.footer {
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand {
  margin-bottom: 1.5rem;
}

.footer-logo {
  height: 40px;
  width: auto;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
}

.footer-description {
  color: var(--primary-foreground);
  opacity: 0.85;
  margin-bottom: 1rem;
}

.footer-contact p {
  color: var(--primary-foreground);
  opacity: 0.85;
  margin-bottom: 0.25rem;
}

.footer-title {
  color: var(--primary-foreground);
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a,
.footer-contact-list a {
  color: var(--primary-foreground);
  opacity: 0.85;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.footer-links a:hover,
.footer-contact-list a:hover {
  opacity: 1;
}

.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  color: var(--primary-foreground);
  opacity: 0.85;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.footer-legal p {
  margin: 0;
  color: var(--primary-foreground);
  opacity: 0.85;
}

.footer-legal-links {
  display: flex;
  gap: 1.5rem;
}

.footer-legal-links a {
  color: var(--primary-foreground);
  opacity: 0.85;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.footer-legal-links a:hover {
  opacity: 1;
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .footer-legal-links {
    justify-content: center;
  }
}

/* Services Page */
.services-overview {
  padding: 5rem 0;
}

.services-grid {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.service-row.reverse {
  direction: rtl;
}

.service-row.reverse > * {
  direction: ltr;
}

.service-content {
  padding: 1.5rem;
}

.service-content h3 {
  margin-bottom: 1rem;
  color: var(--foreground);
}

.service-content p {
  margin-bottom: 1.5rem;
  color: var(--muted-foreground);
}

.service-features {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.service-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 8px 8px 16px #d1d1d1, -8px -8px 16px #ffffff;
}

.service-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

@media (max-width: 768px) {
  .service-row {
    grid-template-columns: 1fr;
  }
  
  .service-row.reverse {
    direction: ltr;
  }
}

/* Pricing */
.pricing-section {
  padding: 5rem 0;
  background: var(--muted);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.pricing-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  position: relative;
  box-shadow: 8px 8px 16px #d1d1d1, -8px -8px 16px #ffffff;
  border-left: 4px solid var(--primary);
}

.pricing-card.featured {
  border-left-color: var(--secondary);
  transform: scale(1.05);
}

.pricing-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--secondary);
  color: var(--secondary-foreground);
  padding: 0.25rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
}

.pricing-header {
  margin-bottom: 2rem;
}

.pricing-header h3 {
  margin-bottom: 1rem;
  color: var(--foreground);
}

.price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.price-period {
  color: var(--muted-foreground);
}

.pricing-features ul {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
  text-align: left;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  color: var(--foreground);
}

@media (max-width: 768px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  
  .pricing-card.featured {
    transform: none;
  }
}

/* Process Detailed */
.process-detailed {
  padding: 5rem 0;
}

.process-steps {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.process-step-detailed {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  padding: 2rem;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 8px 8px 16px #d1d1d1, -8px -8px 16px #ffffff;
  border-left: 4px solid var(--primary);
}

.step-number {
  background: var(--primary);
  color: var(--primary-foreground);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  flex-shrink: 0;
}

.step-content h3 {
  margin-bottom: 0.75rem;
  color: var(--foreground);
}

.step-content p {
  color: var(--muted-foreground);
  margin: 0;
}

/* About Page Styles */
.mission-statement {
  padding: 5rem 0;
  text-align: center;
  background: var(--muted);
}

.mission-content {
  max-width: 800px;
  margin: 0 auto;
}

.mission-title {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--foreground);
}

.mission-text {
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--muted-foreground);
}

.company-story {
  padding: 5rem 0;
}

.story-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.story-text p {
  margin-bottom: 1.5rem;
  color: var(--muted-foreground);
}

.values-section {
  padding: 5rem 0;
  background: var(--muted);
}

.value-card {
  text-align: center;
  padding: 2rem;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 8px 8px 16px #d1d1d1, -8px -8px 16px #ffffff;
  border-left: 4px solid var(--primary);
}

.value-card h3 {
  margin-bottom: 1rem;
  color: var(--foreground);
}

.value-card p {
  color: var(--muted-foreground);
}

.achievements-section {
  padding: 5rem 0;
}

.achievements-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.achievement-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.achievement-content h3 {
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.achievement-content p {
  color: var(--muted-foreground);
  margin: 0;
}

.company-info {
  padding: 5rem 0;
  background: var(--muted);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.info-card {
  padding: 2rem;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 8px 8px 16px #d1d1d1, -8px -8px 16px #ffffff;
  border-left: 4px solid var(--primary);
}

.info-card h3 {
  margin-bottom: 1rem;
  color: var(--foreground);
}

.info-content p {
  margin-bottom: 0.5rem;
  color: var(--muted-foreground);
}

@media (max-width: 768px) {
  .story-content,
  .achievements-content {
    grid-template-columns: 1fr;
  }
  
  .info-grid {
    grid-template-columns: 1fr;
  }
}

/* Contact Page */
.contact-section {
  padding: 5rem 0;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.smartgridhubae_contact-form-container {
  padding: 2rem;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 8px 8px 16px #d1d1d1, -8px -8px 16px #ffffff;
  border-left: 4px solid var(--primary);
}

.form-header {
  margin-bottom: 2rem;
}

.form-title {
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.form-subtitle {
  color: var(--muted-foreground);
}

.smartgridhubae_contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-label {
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--foreground);
}

.form-input {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--input);
  border-radius: var(--radius);
  font-size: 1rem;
  transition: border-color 0.3s ease;
  background: var(--background);
  color: var(--foreground);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
}

.form-submit {
  margin-top: 1rem;
}

.success-message {
  background: var(--secondary);
  color: var(--secondary-foreground);
  padding: 2rem;
  border-radius: var(--radius);
  text-align: center;
  margin-top: 1rem;
}

.success-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.success-content h3 {
  margin: 0;
  color: var(--secondary-foreground);
}

.success-content p {
  margin: 0;
  color: var(--secondary-foreground);
}

.contact-info-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-card {
  padding: 2rem;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 8px 8px 16px #d1d1d1, -8px -8px 16px #ffffff;
  border-left: 4px solid var(--primary);
}

.contact-card-header {
  margin-bottom: 2rem;
}

.contact-card-header h3 {
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.contact-card-header p {
  color: var(--muted-foreground);
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.contact-method {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-icon {
  width: 40px;
  height: 40px;
  background: var(--muted);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-details h4 {
  margin-bottom: 0.25rem;
  color: var(--foreground);
}

.contact-details p {
  margin-bottom: 0.25rem;
  color: var(--foreground);
}

.contact-note {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.business-hours h4 {
  margin-bottom: 1rem;
  color: var(--foreground);
}

.hours-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hours-item {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--foreground);
}

.map-container {
  height: 300px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 8px 8px 16px #d1d1d1, -8px -8px 16px #ffffff;
}

.map-placeholder {
  height: 100%;
  background: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.map-content h4 {
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.map-content p {
  margin-bottom: 0.5rem;
  color: var(--muted-foreground);
}

.map-note {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.contact-options {
  padding: 5rem 0;
  background: var(--muted);
}

.contact-option-card {
  text-align: center;
  padding: 2rem;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 8px 8px 16px #d1d1d1, -8px -8px 16px #ffffff;
  border-left: 4px solid var(--primary);
}

.contact-option-card h3 {
  margin-bottom: 1rem;
  color: var(--foreground);
}

.contact-option-card p {
  margin-bottom: 1.5rem;
  color: var(--muted-foreground);
}

.faq-section {
  padding: 5rem 0;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  margin-bottom: 1rem;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  cursor: pointer;
  color: var(--foreground);
}

.faq-question h3 {
  margin: 0;
  font-size: 1.125rem;
}

.faq-icon {
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding-bottom: 1.5rem;
}

.faq-answer p {
  color: var(--muted-foreground);
  margin: 0;
}

@media (max-width: 768px) {
  .contact-content {
    grid-template-columns: 1fr;
  }
}

/* Legal Pages */
.legal-content {
  padding: 3rem 0;
  max-width: 800px;
  margin: 0 auto;
}

.legal-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.legal-header h1 {
  margin-bottom: 1rem;
  color: var(--foreground);
}

.legal-updated {
  color: var(--muted-foreground);
  font-style: italic;
}

.legal-body {
  line-height: 1.7;
}

.legal-section {
  margin-bottom: 3rem;
}

.legal-section h2 {
  color: var(--foreground);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary);
}

.legal-section h3 {
  color: var(--foreground);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.legal-section p {
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

.legal-section ul,
.legal-section ol {
  margin-bottom: 1rem;
  padding-left: 2rem;
}

.legal-section li {
  color: var(--muted-foreground);
  margin-bottom: 0.5rem;
}

.contact-details {
  background: var(--muted);
  padding: 1.5rem;
  border-radius: var(--radius);
  margin: 1rem 0;
  border-left: 4px solid var(--primary);
}

.contact-details p {
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.contact-details strong {
  color: var(--foreground);
}

/* Cookie Table */
.cookie-table {
  overflow-x: auto;
  margin: 2rem 0;
  border-radius: var(--radius);
  box-shadow: 8px 8px 16px #d1d1d1, -8px -8px 16px #ffffff;
}

.cookie-table table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
}

.cookie-table th,
.cookie-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.cookie-table th {
  background: var(--muted);
  font-weight: 600;
  color: var(--foreground);
}

.cookie-table td {
  color: var(--muted-foreground);
}

/* Cookie Consent Styles */
.smartgridhubae_cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: 1rem 0;
  z-index: 9999;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.smartgridhubae_cookie-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.smartgridhubae_cookie-banner-text {
  flex: 1;
}

.smartgridhubae_cookie-banner-text p {
  margin: 0;
  color: var(--foreground);
  font-size: 0.875rem;
}

.smartgridhubae_cookie-banner-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.smartgridhubae_cookie-banner-actions button {
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  white-space: nowrap;
}

.smartgridhubae_cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.smartgridhubae_cookie-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
}

.smartgridhubae_cookie-modal-content {
  position: relative;
  background: var(--card);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  margin: 1rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.cookie-toggles {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.smartgridhubae_cookie-toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: var(--muted);
  border-radius: var(--radius);
}

.smartgridhubae_cookie-toggle-row input[type="checkbox"] {
  width: 20px;
  height: 20px;
}

.smartgridhubae_cookie-modal-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

.font-medium {
  font-weight: 500;
}

.font-semibold {
  font-weight: 600;
}

.text-lg {
  font-size: 1.125rem;
}

.text-sm {
  font-size: 0.875rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .smartgridhubae_cookie-banner-inner {
    flex-direction: column;
    gap: 1rem;
  }
  
  .smartgridhubae_cookie-banner-actions {
    width: 100%;
    justify-content: center;
  }
  
  .smartgridhubae_cookie-modal-content {
    margin: 0.5rem;
    padding: 1.5rem;
  }
  
  .smartgridhubae_cookie-modal-actions {
    flex-direction: column;
  }
}

/* Animation Classes */
.animate-fade-in { transition: opacity 0.6s ease, transform 0.6s ease; }

.animate-fade-in.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.animate-slide-up { transition: opacity 0.8s ease, transform 0.8s ease; }

.animate-slide-up.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.animate-scale { transition: opacity 0.6s ease, transform 0.6s ease; }

.animate-scale.animate-in {
  opacity: 1;
  transform: scale(1);
}

/* === CLASS ALIAS FIXES (injected by engine) === */
.hero-text { /* alias for .hero-content */ }
.hero-text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

/* === BASELINE SAFETY CSS (injected by engine) === */

/* Ensure .hidden works consistently even with ID-specific overrides */
.hidden { display: none !important; }

/* Prevent content overflow breaking layout */
img, video, iframe { max-width: 100%; height: auto; }
* { box-sizing: border-box; }

/* Ensure container has responsive padding */
.container { width: 100%; max-width: 1200px; margin-left: auto; margin-right: auto; padding-left: 1rem; padding-right: 1rem; }

/* Prevent flex/grid children from overflowing */
.grid-2, .grid-3, .grid-4 { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Responsive grid fallbacks */
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* Ensure forms don't break layout */
.form-input, input[type="text"], input[type="email"], input[type="tel"], textarea, select {
  width: 100%;
  max-width: 100%;
}

/* Success message styling */
.success-message {
  margin-top: 1rem;
  padding: 1rem;
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  border-radius: 0.5rem;
  color: #065f46;
  text-align: center;
}

/* Stacking context for hero sections — prevents z-index:-1 children from going behind the page */
.hero, .hero-section, .page-header, .cta, .cta-section { isolation: isolate; position: relative; }

/* Desktop nav injected by engine — show on desktop, hide on mobile */
.nav-menu { display: flex; align-items: center; gap: 1.5rem; }
.nav-menu .nav-link { text-decoration: none; color: var(--foreground, #1f2937); font-weight: 500; font-size: 0.95rem; transition: color 0.2s; }
.nav-menu .nav-link:hover { color: var(--primary, #2563eb); }
@media (max-width: 768px) {
  .nav-menu { display: none !important; }
}

/* Fixed header body padding safety */
body { min-height: 100vh; }

/* Prevent long words breaking layout */
h1, h2, h3, h4, p, li, td, th { overflow-wrap: break-word; word-wrap: break-word; }

/* === END BASELINE SAFETY CSS === */

/* Cookie banner visibility rules */
#smartgridhubae_cookie-banner.hidden, #cookie-consent-banner.hidden { display: none !important; }
#smartgridhubae_cookie-banner:not(.hidden), #cookie-consent-banner:not(.hidden) { display: block !important; }
#smartgridhubae_cookie-modal.hidden { display: none !important; }
.hidden { display: none !important; }

.animate-fade-in,.fade-in-up,.fade-in-left,.fade-in-right,.fade-in-down,.fade-in,.slide-in-left,.slide-in-right { opacity: 1 !important; transform: none !important; }

/* ============ smartgridhubae PATCH ============ */
[class*="mobile-menu-toggle"]{display:none!important;}
@media(max-width:767px){[class*="mobile-menu-toggle"]{display:flex!important;align-items:center;justify-content:center;}}
.icon-box{color:var(--primary);}
.icon-box i,.icon-box svg{color:var(--primary)!important;}
.nav-brand{display:flex;align-items:center;gap:.5rem;text-decoration:none;font-weight:700;color:var(--foreground);}
.topbar-right{display:flex;align-items:center;gap:1rem;font-size:.875rem;color:var(--muted-foreground);}
.page-header-content{max-width:700px;margin:0 auto;}
.cta-content{text-align:center;max-width:700px;margin:0 auto;}
.hero-image{border-radius:var(--radius);overflow:hidden;}
.hero-image img{width:100%;height:100%;object-fit:cover;display:block;}
.story-image{border-radius:var(--radius);overflow:hidden;height:380px;}
.story-image img{width:100%;height:100%;object-fit:cover;display:block;}
.why-choose-image{border-radius:var(--radius);overflow:hidden;height:380px;}
.why-choose-image img{width:100%;height:100%;object-fit:cover;display:block;}
.why-choose-text{display:flex;flex-direction:column;gap:1rem;color:var(--muted-foreground);}
.why-choose-text h2{color:var(--foreground);}
.achievements-image{border-radius:var(--radius);overflow:hidden;height:380px;}
.achievements-image img{width:100%;height:100%;object-fit:cover;display:block;}
.achievements-text{display:flex;flex-direction:column;gap:1rem;color:var(--muted-foreground);}
.author-info{display:flex;flex-direction:column;gap:.25rem;}
.testimonial-content{display:flex;flex-direction:column;gap:.5rem;}
.footer-column{display:flex;flex-direction:column;gap:.5rem;}
.footer-column h4{font-size:.8rem;font-weight:700;text-transform:uppercase;letter-spacing:.06em;margin-bottom:.5rem;}
.stats-section{background:linear-gradient(135deg,var(--primary),var(--secondary))!important;color:#fff!important;padding:5rem 0!important;}
.stats-section .stat-number,.stats-section .stat-value{color:#fff!important;}
.stats-section .stat-label{color:rgba(255,255,255,.85)!important;}
@media(min-width:769px){.grid-3{grid-template-columns:repeat(3,1fr)!important;}}

.stats-section { background: var(--primary) !important; color: var(--primary-foreground) !important; padding: 5rem 0 !important; }
.stats-section h2, .stats-section h3, .stats-section p { color: #fff !important; }

.animate-slide-up, .animate-scale, .animate-fade-in, .animate-fade { opacity: 1 !important; transform: none !important; }

.cta-title { color: var(--foreground) !important; }
.cta-description { color: var(--muted-foreground) !important; }
