/* Ensure Inquiry button doesn't overlap mobile bottom nav */
@media (max-width: 768px) {
  .inquiry-button {
    /* lift above mobile nav height (≈64px) + extra spacing + safe area inset */
    bottom: calc(112px + env(safe-area-inset-bottom, 0px));
    right: 12px;
  }
  /* ensure page content never hides behind bottom nav */
  body { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
}

/* Home page: circular green up-arrow inquiry button on mobile */
@media (max-width: 768px) {
  .home .inquiry-button {
    width: 56px;
    height: 56px;
    border-radius: 9999px;
    background: var(--primary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 0;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
    z-index: 1001;
    bottom: calc(136px + env(safe-area-inset-bottom, 0px));
  }
  .home .inquiry-button i { font-size: 20px; line-height: 1; }
  .home .inquiry-button .inquiry-label { display: none; }
}

/* Avoid iOS zoom on input focus by ensuring 16px font on mobile */
@media (max-width: 768px) {
  input, select, textarea {
    font-size: 16px !important;
  }
}

/* Improve text size adjust on iOS */
html { -webkit-text-size-adjust: 100%; }
/* Neosolar Energy - Modern CSS Framework */
/* Disable dark mode UI */
.theme-toggle { display: none !important; }
/* Enforce high-contrast light mode base */
body { color: var(--text-primary); background: var(--bg-primary); }
/* Page Loader */
.page-loader {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-primary, #ffffff);
  z-index: 2000;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.page-loader.hide { opacity: 0; visibility: hidden; pointer-events: none; }
.page-loader .loader-logo {
  width: 140px;
  height: auto;
  padding: 0;
  border: none;
  border-radius: 0;
  animation: none;
  position: relative;
  z-index: 1;
  max-width: 80vw;
}

/* Colorful circular ring around the logo */
.loader-wrap {
  position: relative;
  width: 160px;
  height: 160px;
  display: grid;
  place-items: center;
  isolation: isolate;
  max-width: 90vw;
  max-height: 90vw;
}
.loader-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    #2563eb,
    #0ea5e9,
    #10b981,
    #f59e0b,
    #ef4444,
    #8b5cf6,
    #2563eb
  );
  filter: saturate(1.1);
  animation: loader-ring-spin 8s linear infinite;
  z-index: 0;
}
.loader-wrap::after {
  content: '';
  position: absolute;
  inset: 12px; /* ring thickness */
  border-radius: 50%;
  background: var(--bg-primary, #ffffff);
  z-index: 0;
}

@keyframes loader-ring-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .loader-wrap::before { animation: none; }
}
@keyframes loader-pulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.08); opacity: 1; }
}
:root {
  /* Solar-inspired Color Palette */
  --primary: #2563eb; /* Primary Blue */
  --primary-light: #3b82f6;
  --primary-dark: #1d4ed8;
  --secondary: #0ea5e9; /* Sky Blue */
  --secondary-light: #38bdf8;
  --secondary-dark: #0284c7;
  --accent: #10b981; /* Green Energy */
  --accent-light: #34d399;
  --accent-dark: #059669;
  
  /* Light Mode Colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f9fafb;
  --bg-tertiary: #f3f4f6;
  --text-primary: #111827;
  --text-secondary: #6b7280;
  --text-light: #9ca3af;
  --border-color: #e5e7eb;
  --shadow-color: rgba(0, 0, 0, 0.1);
  
  /* Neutral Colors */
  --white: #ffffff;
  --neutral-50: #f9fafb;
  --neutral-100: #f3f4f6;
  --neutral-200: #e5e7eb;
  --neutral-300: #d1d5db;
  --neutral-400: #9ca3af;
  --neutral-500: #6b7280;
  --neutral-600: #4b5563;
  --neutral-700: #374151;
  --neutral-800: #1f2937;
  --neutral-900: #111827;
}

/* Poster Card (static, non-popup) */
.poster-card {
  position: relative;
  background: #0b0f17;
  border-radius: 22px;
  padding: 24px;
  display: flex;
  gap: 28px;
  align-items: center;
  box-shadow: 0 30px 60px rgba(0,0,0,0.35);
  overflow: hidden;
}
.poster-card::before {
  content: "";
  position: absolute;
  top: 0; left: -30%;
  width: 40%; height: 140%;
  background: linear-gradient(120deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.18) 50%, rgba(255,255,255,0.06) 100%);
  transform: skewX(-20deg);
  filter: blur(8px);
  animation: posterSheen 6s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
.poster-card::after {
  content: "";
  position: absolute;
  right: -20%;
  top: -20%;
  width: 70%;
  height: 140%;
  background: radial-gradient(closest-side, rgba(255,255,255,0.22), rgba(255,255,255,0.06) 40%, rgba(255,255,255,0) 65%);
  filter: blur(1px);
  pointer-events: none;
  z-index: 0;
}
.poster-media {
  flex: 0 0 360px;
  max-width: 360px;
  position: relative;
  animation: floatY 7s ease-in-out infinite;
}
.poster-media::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 12px;
  width: 120px;
  height: 160px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  border-radius: 20px;
  filter: blur(0.2px);
  pointer-events: none;
}
.poster-img {
  position: relative;
  width: 100%;
  height: auto;
  border-radius: 18px;
  object-fit: cover;
}
.poster-content {
  flex: 1;
  color: #e5e7eb;
}
.poster-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fbbf24;
  background: #111827;
  border-radius: 10px;
  padding: 8px 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.35);
}
.poster-title {
  color: #fff;
  font-size: 2.25rem;
  line-height: 1.15;
  font-weight: 800;
  margin: 0 0 10px 0;
}
.poster-sub {
  color: #cbd5e1;
  font-size: 1.05rem;
  margin-bottom: 22px;
}
.poster-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: linear-gradient(135deg, #ef4444, #f87171);
  color: #fff;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35), 0 0 0 rgba(239,68,68,0.0);
  position: relative;
  overflow: hidden;
}
.poster-cta:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.4), 0 0 20px rgba(239,68,68,0.35);
}
.poster-cta::after {
  content: "";
  position: absolute;
  top: 0; left: -50%;
  width: 40%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transform: skewX(-20deg);
  transition: left 0.5s ease;
}
.poster-cta:hover::after { left: 120%; }

.poster-actions { display: flex; gap: 12px; flex-wrap: wrap; }

@media (max-width: 992px) {
  .poster-card { flex-direction: column; text-align: center; }
  .poster-media { max-width: 100%; flex-basis: auto; }
  .poster-title { font-size: 1.75rem; }
}

/* Square variant for popup */
.poster-card.poster-square { border-radius: 12px; }
.poster-card.poster-square .poster-media { flex-basis: 320px; max-width: 320px; }
.poster-card.poster-square .poster-img { height: 320px; object-fit: contain; background: transparent; }

/* Narrow variant for entry modal */
.poster-card.poster-narrow { padding: 14px; gap: 14px; }
.poster-card.poster-narrow .poster-media { flex-basis: 220px; max-width: 220px; }
.poster-card.poster-narrow .poster-img { height: 240px; }
.poster-card.poster-narrow .poster-title { font-size: 1.4rem; }
.poster-card.poster-narrow .poster-sub { font-size: 0.95rem; margin-bottom: 12px; }
.poster-card.poster-narrow .poster-cta { padding: 10px 16px; }

/* Entry Poster Overlay */
.entry-poster-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}
.entry-poster-overlay.show { display: flex; animation: fadeIn 0.25s ease-out; }

.entry-poster-modal {
  position: relative;
  width: min(560px, 95vw);
}

.entry-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,0.7);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
}

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

@keyframes posterSheen {
  0% { left: -30%; opacity: 0; }
  10% { opacity: 1; }
  50% { left: 110%; opacity: 0.8; }
  100% { left: 110%; opacity: 0; }
}

@keyframes floatY {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
}

/* Glassmorphism variant */
.poster-card.poster-glass {
  background: rgba(17, 24, 39, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.37);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.poster-card.poster-glass::after {
  background: radial-gradient(closest-side, rgba(255,255,255,0.28), rgba(255,255,255,0.08) 50%, rgba(255,255,255,0) 70%);
}
.poster-card.poster-glass .poster-badge { background: rgba(17,24,39,0.85); border: 1px solid rgba(255,255,255,0.12); }
.poster-card.poster-glass .poster-cta { box-shadow: 0 10px 30px rgba(239, 68, 68, 0.35); }

/* Dark Mode Variables */
[data-theme="dark"] {
  --bg-primary: #111827;
  --bg-secondary: #1f2937;
  --bg-tertiary: #374151;
  --text-primary: #f9fafb;
  --text-secondary: #d1d5db;
  --text-light: #9ca3af;
  --border-color: #374151;
  --shadow-color: rgba(0, 0, 0, 0.3);
}

:root {
  /* Background Colors */
  --bg-dark: var(--neutral-900);
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  
  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-2xl: 2rem;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition: all 0.3s ease;
  --transition-fast: all 0.15s ease;
  --transition-slow: all 0.5s ease;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
  /* Prevent zoom on mobile */
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

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

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

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

a:hover {
  color: var(--primary-dark);
}

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

/* Grid System */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-1 { grid-template-columns: 1fr; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

/* Flexbox Utilities */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.items-start {
  align-items: flex-start;
}

.items-end {
  align-items: flex-end;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-around {
  justify-content: space-around;
}

.flex-wrap {
  flex-wrap: wrap;
}

.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

/* Spacing */
.m-0 { margin: 0; }
.m-1 { margin: 0.25rem; }
.m-2 { margin: 0.5rem; }
.m-4 { margin: 1rem; }
.m-6 { margin: 1.5rem; }
.m-8 { margin: 2rem; }

.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }

.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }

.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }

.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }

/* Text Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }
.text-6xl { font-size: 3.75rem; }

.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }

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

/* Colorful icon utilities */
 .text-accent { color: var(--accent); }
 .text-theme-secondary { color: var(--secondary); }

/* Background Colors */
.bg-primary { background-color: var(--primary); }
.bg-secondary { background-color: var(--secondary); }
.bg-accent { background-color: var(--accent); }
.bg-white { background-color: var(--white); }
.bg-neutral-50 { background-color: var(--neutral-50); }
.bg-neutral-900 { background-color: var(--neutral-900); }

/* Border Radius */
.rounded { border-radius: var(--radius); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-2xl { border-radius: var(--radius-2xl); }
.rounded-full { border-radius: var(--radius-full); }

/* Shadows */
.shadow { box-shadow: var(--shadow); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }

/* Width & Height */
.w-full { width: 100%; }
.w-auto { width: auto; }
.h-full { height: 100%; }
.h-auto { height: auto; }

.w-8 { width: 2rem; }
.w-10 { width: 2.5rem; }
.w-12 { width: 3rem; }
.w-16 { width: 4rem; }
.w-20 { width: 5rem; }
.w-24 { width: 6rem; }

.h-8 { height: 2rem; }
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }
.h-16 { height: 4rem; }
.h-20 { height: 5rem; }
.h-24 { height: 6rem; }
.h-48 { height: 12rem; }
.h-64 { height: 16rem; }

/* Display */
.block { display: block; }
.inline-block { display: inline-block; }
.hidden { display: none; }

/* Position */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }

/* Z-index */
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-50 { z-index: 50; }

/* Navigation */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--neutral-200);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-md);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

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

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: var(--text-primary);
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
  transition: var(--transition);
}

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

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  border-radius: var(--radius-full);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  border-radius: var(--radius-full);
  transition: var(--transition);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--radius-lg);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
  line-height: 1;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

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

.btn-secondary:hover {
  background: var(--secondary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

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

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

/* Outline button variant with white border/text for dark backgrounds */
.btn-outline.border-white {
  border-color: var(--white) !important;
  color: var(--white) !important;
}
.btn-outline.border-white:hover {
  background: var(--white);
  color: var(--primary) !important;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--neutral-50) 0%, var(--neutral-100) 100%);
  padding: 8rem 0 4rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

/* Landing hero: 80% screen image cover */
.hero.hero-landing {
  padding: 0;
  min-height: 80vh;
  position: relative;
  background: transparent;
}
.hero-landing .hero-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6) blur(2px);
}
.hero-landing .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.35) 40%, rgba(0,0,0,0.6) 100%);
}
.hero-landing .hero-landing-content {
  position: relative;
  color: #fff;
  max-width: 720px;
}
.hero-landing .hero-landing-content h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.15;
  margin-bottom: 1rem;
}
.hero-landing .hero-landing-content p {
  color: #e5e7eb;
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  margin-bottom: 1.5rem;
}
.hero-landing .landing-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

@media (max-width: 768px) {
  .hero.hero-landing { min-height: 80vh; }
}

/* Our Solar Solutions: Hover-to-expand gallery */
.solutions-gallery {
  display: flex;
  gap: 12px;
  height: auto;
  align-items: stretch;
}
.gallery-item {
  position: relative;
  flex: 1 1 0;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  transition: flex 0.45s ease, transform 0.35s ease, filter 0.35s ease;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  filter: brightness(0.85);
  transition: transform 0.45s ease, filter 0.3s ease;
}
/* Collapse others on hover; expand hovered */
.solutions-gallery:hover .gallery-item { flex: 0.8; filter: grayscale(35%); }
.solutions-gallery:hover .gallery-item:hover { flex: 3; filter: none; }
.solutions-gallery:hover .gallery-item:hover img { transform: scale(1.08); filter: brightness(1); }

.gallery-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 16px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.55) 60%, rgba(0,0,0,0.85) 100%);
  color: #fff;
}
.gallery-caption h3 { margin: 0; font-size: 1.125rem; }
.gallery-caption span { font-size: 0.85rem; opacity: 0.9; }

/* Active state (for touch devices) mimics hover */
.gallery-item.active { flex: 3 !important; filter: none !important; }
.gallery-item.active img { transform: scale(1.08); filter: brightness(1); }

@media (max-width: 1024px) {
  .gallery-item { aspect-ratio: 16 / 9; }
}

@media (max-width: 768px) {
  .solutions-gallery {
    flex-direction: column;
    height: auto;
  }
  .gallery-item { height: auto; aspect-ratio: 16 / 9; }
  /* Disable hover shrink on touch stacks; rely on active */
  .solutions-gallery:hover .gallery-item { flex: 1; filter: none; }
}

.reviews-marquee {
  position: relative;
  overflow: hidden;
  padding: 10px 0;
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}
.marquee-track {
  display: flex;
  gap: 14px;
  align-items: center;
  will-change: transform;
  animation: reviews-marquee 60s linear infinite;
}
.reviews-marquee:hover .marquee-track { animation-play-state: paused; }

.review-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--neutral-200);
  border-radius: 9999px;
  padding: 8px 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
  min-width: 260px;
}
.review-chip .avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  color: #fff;
}
.review-chip .avatar.male { background: var(--primary); }
.review-chip .avatar.female { background: var(--secondary); }
.review-chip .chip-body { display: flex; flex-direction: column; line-height: 1.2; }
.review-chip .chip-name { font-weight: 700; font-size: 0.95rem; color: var(--text-primary); }
.review-chip .chip-text { font-size: 0.85rem; color: var(--text-secondary); }

@keyframes reviews-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (max-width: 768px) {
  .review-chip { min-width: 220px; }
  .marquee-track { gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

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

.hero-text h1 {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-visual img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
}

/* Sections */
.section {
  padding: 5rem 0;
}

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

.section-title {
  font-size: 3rem;
  margin-bottom: 1rem;
}

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

/* Cards */
.card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--neutral-200);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.card-header {
  margin-bottom: 1.5rem;
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.card-subtitle {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

/* Mission & Vision attractive card variant */
.mv-card {
  position: relative;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius-xl);
  border: 1px solid var(--neutral-200);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}
.mv-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(37,99,235,0.35), rgba(14,165,233,0.35), rgba(16,185,129,0.35));
  padding: 1px;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.mv-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 45px rgba(0,0,0,0.12);
}
.mv-card > .flex > div:first-child {
  box-shadow: 0 10px 24px rgba(37,99,235,0.18);
  border: 2px solid rgba(255,255,255,0.28);
}
.mv-card h3 { position: relative; }
.mv-card h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 56px;
  height: 3px;
  border-radius: 9999px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

/* Glass Effect */
.glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-primary);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--neutral-300);
  border-radius: var(--radius-lg);
  font-size: 1rem;
  transition: var(--transition);
  background: var(--white);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

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

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

.animate-fade-in-left {
  animation: fadeInLeft 0.8s ease-out;
}

.animate-fade-in-right {
  animation: fadeInRight 0.8s ease-out;
}

/* Footer */
footer {
  background: var(--neutral-900);
  color: var(--white);
  padding: 4rem 0 2rem;
}

footer h4 {
  color: var(--white);
  margin-bottom: 1rem;
}

footer a {
  color: var(--white);
  transition: var(--transition);
}

footer a:hover { color: var(--white); }
footer p,
footer li,
footer .text-neutral-400,
footer .text-secondary { color: var(--white) !important; }

/* Responsive Design */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-text h1 {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
  }
  
  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }
  
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .hero {
    padding: 6rem 0 2rem;
    min-height: auto;
  }
  
  .hero-text h1 {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.75rem;
  }
  
  .hero-text h1 {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .btn-lg {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }
}

/* Utility Classes */
.max-w-sm { max-width: 24rem; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }

.mx-auto { margin-left: auto; margin-right: auto; }

.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }

.opacity-90 { opacity: 0.9; }
.opacity-70 { opacity: 0.7; }
.opacity-50 { opacity: 0.5; }

/* Object Fit */
.object-cover { object-fit: cover; }
.object-contain { object-fit: contain; }

/* Overflow */
.overflow-hidden { overflow: hidden; }

/* Transform */
.transform { transform: translateZ(0); }

/* Transition */
.transition-all { transition: all 0.3s ease; }

/* Hover Effects */
.hover\:scale-105:hover { transform: scale(1.05); }
.hover\:shadow-lg:hover { box-shadow: var(--shadow-lg); }

/* Focus States */
.focus\:outline-none:focus { outline: none; }
.focus\:ring-2:focus { box-shadow: 0 0 0 2px var(--primary); }

/* Selection */
::selection {
  background: var(--primary);
  color: var(--white);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--neutral-100);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
}

.modal-content {
  background-color: white;
  margin: 5% auto;
  padding: 2rem;
  border-radius: var(--radius-xl);
  width: 90%;
  max-width: 800px;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.close {
  color: var(--neutral-400);
  float: right;
  font-size: 28px;
  font-weight: bold;
  position: absolute;
  right: 1rem;
  top: 1rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close:hover,
.close:focus {
  color: var(--neutral-900);
}

/* Filter Button Styles */
.filter-btn {
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--neutral-200);
  background: white;
  color: var(--neutral-700);
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.filter-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Product Card Enhancements */
.product-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.product-card > .btn,
.product-card button.btn {
  margin-top: auto;
}

/* Additional Grid Utilities */
.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

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

/* Enhanced responsive utilities for services section */
@media (max-width: 1024px) {
  .lg\:grid-cols-2 {
    grid-template-columns: 1fr;
  }
  
  .lg\:order-1 {
    order: 1;
  }
  
  .lg\:order-2 {
    order: 2;
  }
  
  .lg\:text-base {
    font-size: 0.875rem;
  }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .lg\:order-1 {
    order: 1;
  }
  
  .lg\:order-2 {
    order: 2;
  }
  
  .lg\:text-base {
    font-size: 1rem;
  }
}

/* Improved image responsiveness */
.section img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Enhanced flex utilities */
.flex-shrink-0 {
  flex-shrink: 0;
}

.flex-1 {
  flex: 1 1 0%;
}

/* Better spacing for mobile */
@media (max-width: 768px) {
  .space-y-6 > * + * {
    margin-top: 1.5rem;
  }
  
  .gap-12 {
    gap: 2rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Dark Mode Toggle Styles */
.theme-toggle {
  position: relative;
  width: 50px;
  height: 26px;
  background: var(--neutral-200);
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  padding: 2px;
}

[data-theme="dark"] .theme-toggle {
  background: var(--neutral-700);
}

.theme-toggle::before {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  background: white;
  border-radius: 50%;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .theme-toggle::before {
  transform: translateX(24px);
  background: var(--primary);
}

.theme-toggle-icon {
  position: absolute;
  font-size: 12px;
  transition: opacity 0.3s ease;
}

.theme-toggle .sun-icon {
  left: 6px;
  color: var(--primary);
  opacity: 1;
}

.theme-toggle .moon-icon {
  right: 6px;
  color: var(--neutral-400);
  opacity: 0;
}

[data-theme="dark"] .theme-toggle .sun-icon {
  opacity: 0;
}

[data-theme="dark"] .theme-toggle .moon-icon {
  opacity: 1;
  color: white;
}

/* Dark mode component styles */
[data-theme="dark"] .card {
  background: var(--bg-secondary);
  border-color: var(--border-color);
  color: var(--text-primary);
}

[data-theme="dark"] .navbar {
  background: var(--bg-primary);
  border-bottom-color: var(--border-color);
}

[data-theme="dark"] .hero {
  background: var(--bg-primary);
}

[data-theme="dark"] .section {
  background: var(--bg-primary);
}

[data-theme="dark"] .bg-neutral-50 {
  background: var(--bg-secondary) !important;
}

[data-theme="dark"] .bg-neutral-900 {
  background: var(--bg-tertiary) !important;
}

[data-theme="dark"] .text-neutral-400 {
  color: var(--text-light) !important;
}

[data-theme="dark"] .text-secondary {
  color: var(--text-secondary) !important;
}

[data-theme="dark"] .border-neutral-800 {
  border-color: var(--border-color) !important;
}

/* Mobile Bottom Navigation */
.mobile-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  z-index: 1000;
  display: none;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

.mobile-nav-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0.5rem 0;
  max-width: 100%;
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--text-light);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.5rem 0.25rem;
  transition: all 0.3s ease;
  min-width: 60px;
}

.mobile-nav-item i {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
  transition: all 0.3s ease;
}

.mobile-nav-item span {
  font-size: 0.65rem;
  text-align: center;
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
  color: var(--primary);
  transform: translateY(-2px);
}

.mobile-nav-item.active i {
  color: var(--primary);
  transform: scale(1.1);
}

/* Show mobile nav only on mobile devices */
@media (max-width: 768px) {
  .mobile-nav {
    display: block;
  }
  
  .mobile-nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 100%;
  }
  
  .mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-secondary);
    transition: var(--transition);
    padding: 0.5rem;
    border-radius: var(--radius);
    min-width: 60px;
  }
  
  .mobile-nav-item i {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
  }
  
  .mobile-nav-item span {
    font-size: 0.75rem;
    font-weight: 500;
  }
  
  .mobile-nav-item.active,
  .mobile-nav-item:hover {
    color: var(--primary);
    background: var(--bg-secondary);
  }
  
  .navbar {
    padding: 0.75rem 0;
    position: relative;
  }
  
  .nav-container {
    justify-content: center;
  }
  
  /* Hide theme toggle from nav menu on mobile */
  .nav-menu .theme-toggle {
    display: none !important;
  }
  
  /* Hide desktop navigation menu on mobile */
  .nav-menu {
    display: none !important;
  }
  
  /* Show theme toggle button even when nav-menu is hidden */
  .nav-menu .theme-toggle {
    display: flex !important;
    position: fixed !important;
    top: 1rem !important;
    right: 1rem !important;
    z-index: 1001 !important;
  }
  
  /* Hide nav toggle button on mobile */
  .nav-toggle {
    display: none !important;
  }
  
  /* Add bottom padding to body to prevent content being hidden behind mobile nav */
  body {
    padding-bottom: 80px;
  }
}

/* Mobile dark mode toggle positioning - separate media query for better control */
@media (max-width: 768px) {
  /* Hide theme toggle from navigation menu on mobile */
  .nav-menu .theme-toggle {
    display: none !important;
  }
  
  /* Create floating dark mode toggle for mobile */
  .theme-toggle {
    position: fixed !important;
    top: 1rem !important;
    right: 1rem !important;
    z-index: 1001 !important;
    background: var(--bg-primary) !important;
    border: 2px solid var(--border-color) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    backdrop-filter: blur(10px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    cursor: pointer !important;
  }
  
  /* Ensure toggle is visible above other elements */
  .theme-toggle:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2) !important;
  }
  
  /* Make sure the toggle button appears as a floating action button */
  .theme-toggle::before {
    display: none !important;
  }
  
  .theme-toggle-icon {
    position: static !important;
    font-size: 1.2rem !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
  }
  
  /* Ensure only one icon is visible at a time */
  .theme-toggle .sun-icon {
    display: block !important;
  }
  
  .theme-toggle .moon-icon {
    display: none !important;
  }
  
  [data-theme="dark"] .theme-toggle .sun-icon {
    display: none !important;
  }
  
  [data-theme="dark"] .theme-toggle .moon-icon {
    display: block !important;
  }
}

/* Dark mode styles for mobile nav */
[data-theme="dark"] .mobile-nav {
  background: var(--bg-primary);
  border-top-color: var(--border-color);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .mobile-nav-item {
  color: var(--text-light);
}

[data-theme="dark"] .mobile-nav-item:hover,
[data-theme="dark"] .mobile-nav-item.active {
  color: var(--primary);
}

/* Lead Widget (Top-right lead capture) */
.lead-widget {
  position: fixed;
  right: 20px;
  bottom: 100px;
  z-index: 1100;
}

.lead-card {
  width: 320px;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  overflow: hidden;
  border: 1px solid var(--neutral-200);
}

.lead-head {
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  text-align: center;
  padding: 14px 16px;
}

.lead-close {
  position: absolute;
  top: 6px;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.08);
  color: #111;
  cursor: pointer;
}

.lead-body {
  padding: 16px;
}

.lead-field { margin-bottom: 14px; }

.lead-field input,
.lead-field select {
  width: 100%;
  padding: 12px 8px;
  border: none;
  border-bottom: 2px solid var(--neutral-300);
  background: transparent;
  outline: none;
  font-size: 0.95rem;
}

.lead-field input:focus,
.lead-field select:focus { border-bottom-color: var(--primary); }

.lead-select select { appearance: none; }

.lead-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 140px;
  height: 48px;
  padding: 0 16px;
  border-radius: 9999px;
  border: 1px solid var(--primary);
  background: var(--primary);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  margin: 10px auto 0;
}

.lead-submit:hover { background: var(--primary-dark); border-color: var(--primary-dark); }

.lead-consent {
  margin-top: 10px;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

@media (max-width: 1024px) {
  .lead-widget { right: 12px; bottom: 100px; }
  .lead-card { width: 300px; }
}

@media (max-width: 768px) {
  .lead-widget { display: none; }
}

/* Floating Inquiry Button */
.inquiry-button {
  position: fixed;
  right: 20px;
  bottom: 20px;
  height: 50px;
  padding: 0 18px;
  border-radius: 9999px;
  background: var(--primary);
  color: #fff;
  border: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 1101;
}

.inquiry-button i { font-size: 1rem; }

.inquiry-button:hover { filter: brightness(1.05); transform: translateY(-2px); }

/* Price Blur Effect */
.price-blur {
  filter: blur(8px);
  user-select: none;
  cursor: pointer;
  transition: filter 0.3s ease;
  position: relative;
}

.price-blur:hover {
  filter: blur(4px);
}

.price-blur::after {
  content: '🔒 Contact for Price';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.price-blur:hover::after {
  opacity: 1;
}

/* Team Card Glass Enhancements */
.team-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid var(--neutral-200);
  box-shadow: var(--shadow);
  min-height: 360px;
}
.team-card .team-bg {
  position: absolute;
  inset: 0;
  background-image: var(--bg-url);
  background-size: cover;
  background-position: center;
  filter: brightness(0.55);
}
.team-card .team-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.45) 60%, rgba(0,0,0,0.6) 100%);
}
.team-card .team-content {
  position: relative;
  padding: 1.25rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.team-card .avatar-glass {
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  border: 2px solid rgba(255,255,255,0.6);
}
.team-card .team-text {
  color: #111827;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 12px;
  padding: 12px;
  max-height: 140px;
  overflow: auto;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
.team-card .team-text h3 { color: #111827; }
.team-card .team-text .text-primary,
.team-card .team-text .text-secondary { color: #111827 !important; }

@media (max-width: 768px) {
  .team-card { min-height: 320px; }
  .team-card .team-text { max-height: 120px; }
}

/* Remove hover animations for team cards and keep clear text */
.team-card:hover { transform: none; box-shadow: var(--shadow); animation: none; }
.team-card .text-center h3 { color: #111827; -webkit-text-fill-color: initial; }
.avatar-glass { position: relative; display: block; border-radius: 9999px; border: 3px solid rgba(255, 255, 255, 0.7); box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15); }
/* Ensure avatar stays square inside team card (overrides .section img height:auto) */
.team-card .avatar-glass { width: 6rem; height: 6rem; object-fit: cover; }
.avatar-glass::after { content: ''; position: absolute; inset: -6px; border-radius: 9999px; background: linear-gradient(135deg, rgba(245,158,11,0.2), rgba(14,165,233,0.2)); filter: blur(10px); z-index: -1; }
.team-card .team-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--bg-url) center center / cover no-repeat;
  transform: scale(1.05) translateZ(0);
  filter: blur(12px) brightness(0.95) saturate(1.2);
}

/* Team card background image and blur overlay */
.team-card .team-content {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius-xl);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), inset 0 -1px 0 rgba(255,255,255,0.15);
  padding: 1rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.team-card:hover .team-bg {
  transform: scale(1.12) translateY(-4px);
  filter: blur(14px) brightness(1.05) saturate(1.25);
}

.team-card::after {
  content: '';
  position: absolute;
  top: -20%;
  left: -120%;
  width: 60%;
  height: 140%;
  transform: rotate(15deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  opacity: 0;
  pointer-events: none;
}

.team-card:hover::after {
  opacity: 1;
  transition: transform 0.8s ease, opacity 0.4s ease;
  transform: rotate(15deg) translateX(420%);
}

/* Dark mode tuning for team cards */
[data-theme="dark"] .team-card {
  background: linear-gradient(135deg, rgba(17,24,39,0.7), rgba(31,41,55,0.5));
  border-color: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .avatar-glass {
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
}

[data-theme="dark"] .team-card .team-bg {
  filter: blur(12px) brightness(0.5) saturate(1.1);
}

[data-theme="dark"] .team-card .team-content {
  background: rgba(17, 24, 39, 0.45);
  backdrop-filter: blur(12px) saturate(1.6);
  border-color: rgba(255, 255, 255, 0.18);
}

/* Fixed size team card with scrollable text */
.team-card {
  height: 420px;
}

.team-card .avatar-glass,
.team-card > .team-content > .avatar-glass,
.team-card .w-24.h-24 {
  flex-shrink: 0;
}

.team-card .team-text {
  width: 100%;
  margin-top: 0.5rem;
  flex: 1 1 auto;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
  .team-card { height: 380px; }
}

@keyframes cardGlow {
  0% {
    box-shadow: 0 25px 50px rgba(0,0,0,0.18), 0 0 0 0 rgba(245,158,11,0.0), 0 0 0 0 rgba(14,165,233,0.0);
  }
  100% {
    box-shadow: 0 28px 55px rgba(0,0,0,0.22), 0 0 20px 2px rgba(245,158,11,0.25), 0 0 30px 6px rgba(14,165,233,0.18);
  }
}

/* Text visibility overrides */
/* Make all paragraph and secondary text fully visible and not faded */
 p, .text-secondary, .text-light, .section-subtitle, .poster-sub, .card p {
   color: var(--text-primary) !important;
   opacity: 1 !important;
 }

 /* Neutralize any opacity utility classes to ensure readability */
 .opacity-70, .opacity-80, .opacity-90 {
   opacity: 1 !important;
 }

/* Uniform media height for service cards */
/* Applies to cards like Residential/Commercial/Industrial under 'Complete Solar Solutions' */
 .card .relative.overflow-hidden {
   height: 12rem; /* matches h-48 */
 }
 .card .relative.overflow-hidden img {
   width: 100%;
   height: 100%;
   object-fit: cover;
 }

/* Equal height cards and feature blocks across grids */
 .grid { align-items: stretch; }
 .card { display: flex; flex-direction: column; height: 100%; }
 .card .mb-6:last-child { margin-bottom: 0; }
 .section .grid > .text-center { display: flex; flex-direction: column; height: 100%; }

/* Compact FAQ styling (contact page) */
 .faq-compact .card {
   padding: 0.875rem 1rem; /* slightly more compact */
 }
 .faq-compact h4 {
   font-size: 0.95rem; /* match body text */
   margin-bottom: 0.25rem;
 }
 .faq-compact p.text-secondary {
   font-size: 0.95rem; /* equal to question */
 }
 .faq-compact .grid.grid-2 {
   gap: 1rem; /* tighter grid */
 }

 /* Remove card look: plain text rows */
 .faq-compact .card {
   background: transparent !important;
   border: 0 !important;
   box-shadow: none !important;
   border-radius: 0 !important;
   padding: 0 !important;
 }
 .faq-compact .card + .card { margin-top: 0.5rem; }
 .faq-compact .card h4 { font-weight: 600; }

 /* FAQ question tiny pill */
 .faq-compact h4 {
   display: inline-block;
   background: var(--neutral-100);
   border: 1px solid var(--neutral-200);
   border-radius: var(--radius-lg);
   padding: 0.25rem 0.5rem;
   line-height: 1.2;
   margin: 0;
   max-width: 100%;
   -webkit-box-decoration-break: clone;
   box-decoration-break: clone;
 }

 /* Remove FAQ question headings entirely, only show answers */
 .faq-compact h4 { display: none !important; }
 .faq-compact .card p { margin: 0.25rem 0 0.5rem 0; }
