/* ==========================================================================
   HashOne Power Tech - Premium Energy Storage UI Stylesheet
   Design Tokens, Glassmorphism, Micro-Animations & Responsive Layouts
   ========================================================================== */

:root {
  /* Brand Palette */
  --color-primary: #00A3E0;        /* Electric Blue Glow */
  --color-primary-dark: #0077A3;
  --color-accent: #E31E24;         /* HashOne Red Bolt */
  --color-accent-glow: rgba(227, 30, 36, 0.4);
  
  /* Dark Tech Neutral Palette (Default) */
  --bg-darker: #060913;
  --bg-dark: #0B1120;
  --bg-card: rgba(15, 23, 42, 0.75);
  --bg-card-hover: rgba(30, 41, 59, 0.85);
  --bg-glass: rgba(255, 255, 255, 0.03);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(0, 163, 224, 0.3);
  --bg-alt: rgba(11, 17, 32, 0.5);

  /* Typography Tokens */
  --font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --text-main: #F1F5F9;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  --text-heading: #FFFFFF;
  
  /* Component Tokens */
  --navbar-bg: rgba(6, 9, 19, 0.85);
  --footer-bg: #03060D;
  --modal-bg: #0B1120;
  --input-bg: rgba(30, 41, 59, 0.5);
  --input-color: #FFFFFF;
  --input-border: rgba(255, 255, 255, 0.1);
  --appliance-item-bg: rgba(30, 41, 59, 0.4);
  --calc-box-bg: linear-gradient(145deg, rgba(11, 17, 32, 0.95) 0%, rgba(15, 23, 42, 0.95) 100%);
  --product-img-bg: radial-gradient(circle at center, rgba(30, 41, 59, 0.5) 0%, rgba(15, 23, 42, 1) 100%);
  --view-switcher-bg: rgba(6, 9, 19, 0.8);
  --badge-floating-bg: rgba(11, 17, 32, 0.9);
  --table-th-bg: rgba(15, 23, 42, 0.9);
  
  /* Logo Tokens */
  --logo-card-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(15, 23, 42, 0.65) 100%);
  --logo-border: rgba(0, 163, 224, 0.25);
  --logo-text-color: #FFFFFF;
  --logo-subtext-gradient: linear-gradient(90deg, #94A3B8 0%, var(--color-primary) 100%);
  --logo-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);

  /* Shadows & Effects */
  --glow-blue: 0 0 25px rgba(0, 163, 224, 0.35);
  --glow-red: 0 0 25px rgba(227, 30, 36, 0.4);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Light Mode Theme Overrides
   ========================================================================== */
[data-theme="light"] {
  /* Light Crisp Neutral Palette */
  --bg-darker: #F8FAFC;
  --bg-dark: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F1F5F9;
  --bg-glass: rgba(0, 0, 0, 0.03);
  --border-glass: rgba(0, 0, 0, 0.08);
  --border-highlight: rgba(0, 163, 224, 0.35);
  --bg-alt: #F1F5F9;

  /* Typography Tokens */
  --text-main: #1E293B;
  --text-muted: #64748B;
  --text-dim: #94A3B8;
  --text-heading: #0F172A;

  /* Component Tokens */
  --navbar-bg: rgba(255, 255, 255, 0.92);
  --footer-bg: #FFFFFF;
  --modal-bg: #FFFFFF;
  --input-bg: #F8FAFC;
  --input-color: #0F172A;
  --input-border: rgba(0, 0, 0, 0.12);
  --appliance-item-bg: #F8FAFC;
  --calc-box-bg: linear-gradient(145deg, #FFFFFF 0%, #F8FAFC 100%);
  --product-img-bg: radial-gradient(circle at center, #F8FAFC 0%, #E2E8F0 100%);
  --view-switcher-bg: rgba(226, 232, 240, 0.9);
  --badge-floating-bg: rgba(255, 255, 255, 0.95);
  --table-th-bg: #F1F5F9;

  /* Logo Tokens in Light Mode */
  --logo-card-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(241, 245, 249, 0.9) 100%);
  --logo-border: rgba(0, 163, 224, 0.35);
  --logo-text-color: #0F172A;
  --logo-subtext-gradient: linear-gradient(90deg, #475569 0%, var(--color-primary) 100%);
  --logo-shadow: 0 4px 20px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.9);

  /* Shadows & Effects */
  --glow-blue: 0 0 25px rgba(0, 163, 224, 0.18);
  --glow-red: 0 0 25px rgba(227, 30, 36, 0.2);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] body::before {
  background: radial-gradient(circle, rgba(0, 163, 224, 0.08) 0%, rgba(227, 30, 36, 0.03) 50%, transparent 70%);
}

/* Base Resets */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 74px;
  font-size: 17px; /* Increased from 16px for better readability on high-DPI screens */
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
  background-color: var(--bg-darker);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  transition: background-color 0.35s ease, color 0.35s ease;
}

/* Better line height on very tall screens */
@media (min-height: 800px) and (orientation: portrait) {
  body {
    line-height: 1.8;
  }
}

/* Background Ambient Glows */
body::before {
  content: '';
  position: fixed;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(0, 163, 224, 0.12) 0%, rgba(227, 30, 36, 0.05) 50%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  transition: background 0.35s ease;
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-heading);
}

.text-gradient {
  background: linear-gradient(135deg, var(--text-heading) 30%, var(--color-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-red-gradient {
  background: linear-gradient(135deg, #FF4D4D 0%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* Better container padding on very tall screens */
@media (min-height: 800px) and (orientation: portrait) {
  .container {
    padding: 0 2rem;
  }
}

.section-padding {
  padding: 6rem 0;
}

/* Enhanced padding for very tall screens */
@media (min-height: 800px) and (orientation: portrait) {
  .section-padding {
    padding: 8rem 0;
  }

  .section-alt {
    padding: 8rem 0;
  }
}

.section-alt {
  background: var(--bg-alt);
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem;
}

/* Better section header spacing on very tall screens */
@media (min-height: 800px) and (orientation: portrait) {
  .section-header {
    margin: 0 auto 5rem;
  }
}

.section-subtitle {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  background: rgba(0, 163, 224, 0.1);
  border: 1px solid rgba(0, 163, 224, 0.25);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}

/* Larger section titles on very tall screens */
@media (min-height: 800px) and (orientation: portrait) {
  .section-title {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  .section-title { font-size: 2rem; }
  .section-padding { padding: 4rem 0; }
}

/* Enhanced vertical spacing for tall screens (like S25 Ultra in portrait) */
@media (min-height: 800px) and (orientation: portrait) {
  .section-padding {
    padding: 8rem 0;
  }

  .hero {
    padding: 1rem 0 3.5rem;
  }
}

/* ==========================================================================
   Header & Navbar
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  background: var(--navbar-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
  z-index: 1000;
  transition: var(--transition);
}

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

.navbar-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  width: 48px; /* Minimum touch target size */
  height: 48px; /* Minimum touch target size */
  border-radius: 50%;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  padding: 0;
  position: relative;
  outline: none;
}

.theme-toggle-btn:hover {
  transform: scale(1.08);
  border-color: var(--color-primary);
  box-shadow: 0 0 16px rgba(0, 163, 224, 0.4);
}

.theme-toggle-slider {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.theme-icon-sun {
  color: #F59E0B;
  font-size: 1.3rem; /* Increased from 1.15rem */
  filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.6));
  display: block;
}

.theme-icon-moon {
  color: #6366F1;
  font-size: 1.3rem; /* Increased from 1.15rem */
  filter: drop-shadow(0 0 6px rgba(99, 102, 241, 0.6));
  display: none;
}

[data-theme="light"] .theme-icon-sun {
  display: none;
}

[data-theme="light"] .theme-icon-moon {
  display: block;
}

[data-theme="light"] .theme-toggle-btn {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .theme-toggle-btn:hover {
  border-color: var(--color-primary);
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.35);
}

/* ==========================================================================
   Premium Brand Logo System
   ========================================================================== */
.logo-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  padding: 0.45rem 1.15rem 0.45rem 0.65rem;
  background: var(--logo-card-bg);
  border: 1px solid var(--logo-border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--logo-shadow);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.logo-wrapper::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 163, 224, 0.18) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.logo-wrapper:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 163, 224, 0.55);
  box-shadow: 0 8px 30px rgba(0, 163, 224, 0.35), 0 0 20px rgba(227, 30, 36, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.logo-wrapper:hover::before {
  opacity: 1;
}

.logo-emblem-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-emblem-img {
  height: 42px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(0, 163, 224, 0.5)) drop-shadow(0 0 12px rgba(227, 30, 36, 0.35));
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.35s ease;
}

.logo-wrapper:hover .logo-emblem-img {
  transform: scale(1.08) rotate(-2deg);
  filter: drop-shadow(0 0 14px rgba(0, 163, 224, 0.8)) drop-shadow(0 0 20px rgba(227, 30, 36, 0.6));
}

.logo-brand-info {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-main-text {
  font-family: 'Outfit', sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--logo-text-color);
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  transition: color 0.35s ease;
}

.logo-main-text .brand-o {
  color: var(--color-accent);
  display: inline-block;
  text-shadow: 0 0 12px rgba(227, 30, 36, 0.6);
  font-weight: 900;
}

.logo-sub-text {
  font-family: 'Outfit', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: var(--logo-subtext-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-top: 3px;
  transition: background 0.35s ease;
}

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

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  min-height: 48px; /* Minimum touch target size */
  min-width: 48px; /* Minimum touch target size */
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 15px rgba(0, 163, 224, 0.3);
}

.btn-primary:hover {
  box-shadow: var(--glow-blue);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  box-shadow: 0 0 20px rgba(37, 211, 102, 0.5);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text-heading);
  border: 1px solid var(--border-highlight);
}

.btn-outline:hover {
  background: rgba(0, 163, 224, 0.1);
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

/* Mobile Nav CTA (Hidden on desktop) */
.mobile-nav-cta {
  display: none;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  width: 48px; /* Minimum touch target size */
  height: 48px; /* Minimum touch target size */
  border-radius: var(--radius-sm);
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  color: var(--text-heading);
  font-size: 1.15rem;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  outline: none;
}

.mobile-menu-btn:hover,
.mobile-menu-btn:focus-visible {
  background: rgba(0, 163, 224, 0.12);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* Mobile Navigation Backdrop */
.nav-backdrop {
  position: fixed;
  inset: 0;
  top: 68px;
  background: rgba(3, 6, 13, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
  z-index: 998;
  pointer-events: none;
}

.nav-backdrop.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Mobile Header & Navigation Drawer */
@media (max-width: 992px) {
  .navbar .container {
    height: 64px;
    padding: 0 1.25rem;
  }

  .nav-backdrop {
    top: 64px;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    background: var(--navbar-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border-highlight);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    flex-direction: column;
    padding: 1rem 1.25rem 1.5rem;
    gap: 0.4rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s ease;
    pointer-events: none;
    z-index: 999;
  }

  .nav-links.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.85rem 1.15rem;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    transition: all 0.2s ease;
    text-decoration: none;
  }

  .nav-link::after {
    content: '\f054';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.75rem;
    color: var(--text-dim);
    transition: transform 0.2s ease, color 0.2s ease;
  }

  .nav-link:hover,
  .nav-link:active,
  .nav-link.active {
    background: rgba(0, 163, 224, 0.12);
    border-color: rgba(0, 163, 224, 0.35);
    color: var(--color-primary);
    transform: translateX(4px);
  }

  .nav-link:hover::after,
  .nav-link:active::after,
  .nav-link.active::after {
    color: var(--color-primary);
    transform: translateX(3px);
  }

  .mobile-nav-cta {
    display: block;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-glass);
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  .logo-wrapper {
    padding: 0.32rem 0.85rem 0.32rem 0.55rem;
    gap: 0.65rem;
  }

  .logo-emblem-img {
    height: 36px;
  }

  .logo-main-text {
    font-size: 1.25rem;
  }

  .logo-sub-text {
    font-size: 0.6rem;
    letter-spacing: 0.18em;
  }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  padding: 0.5rem 0 2.5rem;
  overflow: hidden;
}

/* Adjust hero padding on very tall screens */
@media (min-height: 800px) and (orientation: portrait) {
  .hero {
    padding: 1rem 0 4rem;
  }
}

.hero .hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero .section-subtitle {
  display: block;
  margin-top: 0;
  margin-bottom: 1rem;
  align-self: flex-start;
}

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

/* Better hero grid gap on very tall screens */
@media (min-height: 800px) and (orientation: portrait) {
  .hero-grid {
    gap: 5rem;
  }
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero .hero-content {
    align-items: center;
  }
  .hero .section-subtitle {
    align-self: center;
  }
}

.hero-content h1 {
  font-size: 3.25rem;
  line-height: 1.15;
  margin-bottom: 1rem;
}

/* Larger hero heading on very tall screens */
@media (min-height: 800px) and (orientation: portrait) {
  .hero-content h1 {
    font-size: 4rem;
  }
}

@media (max-width: 768px) {
  html {
    scroll-padding-top: 64px;
  }

  .navbar .container {
    height: 60px;
    padding: 0 1rem;
  }

  .nav-backdrop {
    top: 60px;
  }

  .nav-links {
    max-height: calc(100vh - 60px);
    padding: 0.75rem 1rem 1.25rem;
  }

  .navbar-actions {
    gap: 0.45rem;
  }

  .theme-toggle-btn {
    width: 36px;
    height: 36px;
  }

  .mobile-menu-btn {
    width: 36px;
    height: 36px;
    font-size: 1.05rem;
  }

  .navbar-actions .btn-whatsapp {
    padding: 0.45rem 0.85rem;
    font-size: 0.825rem;
    border-radius: var(--radius-full);
    gap: 0.35rem;
  }

  .logo-wrapper {
    padding: 0.25rem 0.65rem 0.25rem 0.45rem;
    gap: 0.5rem;
    border-radius: var(--radius-sm);
  }

  .logo-emblem-img {
    height: 32px;
  }

  .logo-main-text {
    font-size: 1.15rem;
  }

  .logo-sub-text {
    font-size: 0.55rem;
    letter-spacing: 0.16em;
  }

  .hero {
    padding: 0.5rem 0 2rem;
  }

  .hero-content h1 {
    font-size: 2.15rem;
  }

  .hero-floating-badge.badge-top-left {
    top: 10px;
    left: 8px;
    padding: 0.55rem 0.85rem;
  }

  .hero-floating-badge.badge-bottom-right {
    bottom: 10px;
    right: 8px;
    padding: 0.55rem 0.85rem;
  }
}

@media (max-width: 480px) {
  .navbar .container {
    padding: 0 0.65rem;
  }

  .navbar-actions {
    gap: 0.35rem;
  }

  .navbar-actions .btn-whatsapp {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(37, 211, 102, 0.35);
  }

  .navbar-actions .btn-whatsapp span {
    display: none;
  }

  .logo-wrapper {
    padding: 0.2rem 0.45rem 0.2rem 0.35rem;
    gap: 0.35rem;
  }

  .logo-emblem-img {
    height: 28px;
  }

  .logo-main-text {
    font-size: 1.05rem;
  }

  .logo-sub-text {
    font-size: 0.5rem;
    letter-spacing: 0.12em;
  }

  .hero-content h1 {
    font-size: 1.75rem;
  }

  .hero-cta {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* Larger hero subtitle on very tall screens */
@media (min-height: 800px) and (orientation: portrait) {
  .hero-subtitle {
    font-size: 1.5rem;
  }
}

.hero-cta {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

@media (max-width: 992px) {
  .hero-cta {
    justify-content: center;
  }
}

.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-glass);
}

/* Enhanced stats row on very tall screens */
@media (min-height: 800px) and (orientation: portrait) {
  .hero-stats-row {
    gap: 1.5rem;
    padding-top: 3rem;
  }
}

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

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

@media (max-width: 992px) {
  .stat-item { text-align: center; }
}

.stat-num {
  font-size: 2rem; /* Increased from 1.75rem */
  font-weight: 800;
  color: var(--color-primary);
  display: block;
}

.stat-label {
  font-size: 0.9rem; /* Increased from 0.8rem */
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Hero Visual Showcase */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-card-stack {
  position: relative;
  width: 100%;
  max-width: 480px;
}

.hero-main-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), var(--glow-blue);
  border: 1px solid var(--border-highlight);
  transition: var(--transition);
  max-width: 560px; /* Increased from 480px for better display on high-DPI screens */
}

.hero-floating-badge {
  position: absolute;
  background: var(--badge-floating-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-highlight);
  padding: 0.75rem 1rem; /* Slightly reduced padding for better proportion */
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: var(--shadow-card);
  animation: float 4s ease-in-out infinite;
  color: var(--text-heading);
  transition: background 0.35s ease, color 0.35s ease;
}

.hero-floating-badge.badge-top-left {
  top: 2vw; /* Viewport width units for better scaling */
  left: 2vw;
}

.hero-floating-badge.badge-bottom-right {
  bottom: 2vw; /* Viewport width units for better scaling */
  right: 2vw;
  animation-delay: 2s;
}

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

/* Increase float distance on taller screens */
@media (min-height: 800px) and (orientation: portrait) {
  @keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
  }
}

.badge-icon {
  width: 40px; /* Slightly larger for better visibility */
  height: 40px; /* Slightly larger for better visibility */
  border-radius: 50%;
  background: rgba(0, 163, 224, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-size: 1.2rem; /* Slightly larger font */
}

/* ==========================================================================
   Product Showcase Grid
   ========================================================================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem; /* Increased gap for better spacing */
}

/* Auto-fit for better space distribution on wide screens */
@media (min-width: 1400px) {
  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem; /* Even larger gap on very wide screens */
  }
}

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

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

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-card);
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-highlight);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2), var(--glow-blue);
}

/* More pronounced hover effect on very tall screens */
@media (min-height: 800px) and (orientation: portrait) {
  .product-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2), var(--glow-blue);
  }
}

.product-card.featured {
  border-color: var(--color-accent);
  box-shadow: var(--glow-red);
}

/* More noticeable featured border on very tall screens */
@media (min-height: 800px) and (orientation: portrait) {
  .product-card.featured {
    border-width: 2px;
    box-shadow: 0 0 0 2px var(--color-accent), var(--glow-red);
  }
}

.product-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: linear-gradient(135deg, var(--color-accent) 0%, #B30000 100%);
  color: #FFF;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  z-index: 10;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-img-wrapper {
  position: relative;
  height: 280px;
  background: var(--product-img-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow: hidden;
  transition: background 0.35s ease;
}

/* Make product images slightly taller on very tall screens */
@media (min-height: 800px) and (orientation: portrait) {
  .product-img-wrapper {
    height: 300px;
  }
}

.product-img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: var(--transition);
}

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

.view-switcher {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  background: var(--view-switcher-bg);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  padding: 4px; /* Increased padding for better touch target */
  gap: 4px; /* Increased gap for better touch target */
  backdrop-filter: blur(8px);
  transition: background 0.35s ease;
  min-height: 32px; /* Minimum height for touch target */
}

.view-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 6px 14px; /* Increased padding for better touch target */
  font-size: 0.8rem; /* Slightly larger font */
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
  min-height: 36px; /* Minimum height for touch target */
  min-width: 36px; /* Minimum width for touch target */
}

.view-btn.active {
  background: var(--color-primary);
  color: #FFF;
}

.product-content {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-title {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

/* Larger product titles on very tall screens */
@media (min-height: 800px) and (orientation: portrait) {
  .product-title {
    font-size: 1.8rem;
  }
}

.product-spec-tag {
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* Larger product spec tags on very tall screens */
@media (min-height: 800px) and (orientation: portrait) {
  .product-spec-tag {
    font-size: 1.2rem;
  }
}

.specs-mini-list {
  list-style: none;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.specs-mini-list li {
  font-size: 0.875rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.specs-mini-list li i {
  color: var(--color-primary);
}

.product-actions {
  margin-top: auto;
  display: flex;
  gap: 0.75rem;
}

.product-actions .btn {
  flex: 1;
  font-size: 0.85rem;
  padding: 0.65rem 0.85rem;
}

/* ==========================================================================
   Comparison Matrix Section
   ========================================================================== */
.comparison-container {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 2rem;
  overflow-x: auto;
  box-shadow: var(--shadow-card);
  transition: background 0.35s ease;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 163, 224, 0.4) rgba(15, 23, 42, 0.2);
}

.comparison-container::-webkit-scrollbar {
  height: 6px;
}

.comparison-container::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.3);
  border-radius: var(--radius-full);
}

.comparison-container::-webkit-scrollbar-thumb {
  background: rgba(0, 163, 224, 0.4);
  border-radius: var(--radius-full);
}

.comparison-container::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

.comp-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 750px;
}

.comp-table th, .comp-table td {
  padding: 1.25rem 1rem;
  text-align: center;
  border-bottom: 1px solid var(--border-glass);
}

/* Better comparison table spacing on very tall screens */
@media (min-height: 800px) and (orientation: portrait) {
  .comp-table th, .comp-table td {
    padding: 1.75rem 1.5rem;
    font-size: 1.1rem;
  }
}

.comp-table th:first-child, .comp-table td:first-child {
  text-align: left;
  font-weight: 600;
  width: 25%;
}

.comp-table th {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-heading);
  background: var(--table-th-bg);
  transition: background 0.35s ease, color 0.35s ease;
}

.comp-table th.highlight-col {
  color: var(--color-primary);
  background: rgba(0, 163, 224, 0.15);
  border-top: 3px solid var(--color-primary);
}

.comp-table td.highlight-col {
  background: rgba(0, 163, 224, 0.05);
  font-weight: 700;
  color: var(--text-heading);
}

.check-icon {
  color: #10B981;
  font-size: 1.25rem;
}

.cross-icon {
  color: #EF4444;
  font-size: 1.25rem;
}

.badge-winner {
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
}

/* ==========================================================================
   Interactive Solar & Load Sizing Calculator
   ========================================================================== */
.calculator-card {
  background: var(--bg-card);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
  transition: background 0.35s ease;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
}

/* Enhance calculator layout on wider screens */
@media (min-width: 1200px) {
  .calc-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

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

.appliance-selector-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem; /* Increased gap for better spacing */
  margin-bottom: 2rem;
}

/* Enhance appliance selector on wider screens */
@media (min-width: 500px) {
  .appliance-selector-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 600px) {
  .appliance-selector-grid { grid-template-columns: 1fr; }
}

.appliance-item {
  background: var(--appliance-item-bg);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.35s ease, border-color 0.35s ease;
}

.appliance-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.appliance-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(0, 163, 224, 0.15);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.appliance-name {
  font-size: 0.95rem;
  font-weight: 600;
}

.appliance-watt {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.counter-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.counter-btn {
  width: 36px; /* Increased width for better touch target */
  height: 36px; /* Increased height for better touch target */
  border-radius: 50%;
  background: var(--bg-dark);
  border: 1px solid var(--border-glass);
  color: var(--text-heading);
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

/* Make counter buttons even larger on taller screens */
@media (min-height: 800px) and (orientation: portrait) {
  .counter-btn {
    width: 40px;
    height: 40px;
  }
}

.counter-btn:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #FFF;
}

.counter-val {
  font-weight: 700;
  width: 28px; /* Slightly wider */
  text-align: center;
}

/* Make counter values larger on taller screens */
@media (min-height: 800px) and (orientation: portrait) {
  .counter-val {
    width: 32px;
    font-size: 1.1rem; /* Slightly larger font */
  }
}

.slider-group {
  margin-top: 1.5rem;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem; /* Increased margin for better spacing */
  font-weight: 600;
}

/* Increase slider header spacing on taller screens */
@media (min-height: 800px) and (orientation: portrait) {
  .slider-header {
    margin-bottom: 1rem;
  }
}

.custom-range {
  width: 100%;
  accent-color: var(--color-primary);
  height: 8px; /* Increased height for better touch target */
  background: rgba(125, 125, 125, 0.2);
  border-radius: 4px; /* Increased border radius */
}

/* Make slider even larger on taller screens */
@media (min-height: 800px) and (orientation: portrait) {
  .custom-range {
    height: 10px;
  }
}

/* Calculator Output Side */
.calc-result-box {
  background: var(--calc-box-bg);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-card);
  transition: background 0.35s ease;
}

/* Better calculator result box spacing on very tall screens */
@media (min-height: 800px) and (orientation: portrait) {
  .calc-result-box {
    padding: 3rem;
    gap: 2rem;
  }
}

/* Enhanced styling for backup hours value on tall screens */
@media (min-height: 800px) and (orientation: portrait) {
  #backupHoursVal {
    font-size: 1.5rem !important;
  }
}

.res-header {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.res-main-rec {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

/* Larger main recommendation on very tall screens */
@media (min-height: 800px) and (orientation: portrait) {
  .res-main-rec {
    font-size: 2.2rem;
    margin-bottom: 2rem;
  }
}

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

/* Better metrics spacing on very tall screens */
@media (min-height: 800px) and (orientation: portrait) {
  .res-metrics {
    gap: 1.5rem;
    margin-bottom: 3rem;
  }
}

.res-metric-item {
  display: flex;
  justify-content: space-between;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-glass);
}

.res-metric-item span:last-child {
  font-weight: 700;
  color: var(--color-primary);
}

/* Parallel Model Options Selector (Up to 15 Units Support) */
.parallel-models-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem; /* Increased gap for better spacing */
  margin-bottom: 1.5rem;
}

/* Enhance parallel models grid on wider screens */
@media (min-width: 500px) {
  .parallel-models-grid {
    gap: 1rem;
  }
}

@media (max-width: 600px) {
  .parallel-models-grid {
    grid-template-columns: 1fr;
  }
}

.parallel-model-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.5rem;
  cursor: pointer;
  position: relative;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  user-select: none;
}

.parallel-model-card:hover {
  transform: translateY(-2px);
  border-color: var(--color-primary);
  box-shadow: 0 4px 15px rgba(0, 163, 224, 0.2);
}

.parallel-model-card.active {
  border-color: var(--color-primary);
  background: rgba(0, 163, 224, 0.12);
  box-shadow: 0 0 16px rgba(0, 163, 224, 0.3);
}

/* Larger parallel model cards on very tall screens for better touch interaction */
@media (min-height: 800px) and (orientation: portrait) {
  .parallel-models-grid {
    gap: 1.5rem;
    margin-bottom: 2.5rem;
  }

  .parallel-model-card {
    padding: 1.25rem 0.75rem;
    min-height: 100px;
  }

  .parallel-model-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 163, 224, 0.25);
  }

  .pmc-badge {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
  }

  .pmc-model {
    font-size: 1.1rem;
  }

  .pmc-units {
    font-size: 1.5rem;
  }

  .pmc-kwh {
    font-size: 0.9rem;
  }

  .pmc-cycles {
    font-size: 0.8rem;
  }
}

.parallel-model-card.active .pmc-units {
  color: var(--color-primary);
  text-shadow: 0 0 8px rgba(0, 163, 224, 0.4);
}

.pmc-badge {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.pmc-model {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-heading);
  white-space: nowrap;
}

.pmc-units {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-heading);
  margin: 0.25rem 0;
  transition: color 0.2s ease;
}

.pmc-kwh {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-primary);
}

.pmc-cycles {
  font-size: 0.68rem;
  color: #10B981;
  font-weight: 600;
  margin-top: 0.25rem;
}

.pmc-status {
  font-size: 0.65rem;
  color: var(--text-dim);
  margin-top: 0.2rem;
}

.pmc-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.ac-inverter-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  color: #10B981;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-full);
  padding: 0.15rem 0.5rem;
  margin-top: 0.2rem;
  font-weight: 600;
}

.appliance-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.68rem;
  border-radius: var(--radius-full);
  padding: 0.15rem 0.5rem;
  margin-top: 0.25rem;
  font-weight: 600;
}

.appliance-badge.badge-green {
  color: #10B981;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.appliance-badge.badge-amber {
  color: #F59E0B;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.appliance-badge.badge-blue {
  color: var(--color-primary);
  background: rgba(0, 163, 224, 0.12);
  border: 1px solid rgba(0, 163, 224, 0.25);
}

/* ==========================================================================
   Inverter Compatibility Grid
   ========================================================================== */
.inverter-search-bar {
  max-width: 500px;
  margin: 0 auto 2.5rem;
  position: relative;
}

.inverter-search-input {
  width: 100%;
  padding: 0.85rem 1.25rem 0.85rem 3rem;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-full);
  color: var(--input-color);
  font-size: 1rem;
  outline: none;
  transition: var(--transition);
}

.inverter-search-input:focus {
  border-color: var(--color-primary);
  box-shadow: var(--glow-blue);
}

.inverter-search-icon {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.inverter-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.5rem; /* Increased gap for better spacing */
}

@media (max-width: 1024px) {
  .inverter-grid { grid-template-columns: repeat(4, 1fr); }
}

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

.inverter-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
}

.inverter-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-4px);
  background: var(--bg-card-hover);
}

.inverter-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 0.35rem;
}

.inverter-protocol {
  font-size: 0.75rem;
  color: var(--color-primary);
  background: rgba(0, 163, 224, 0.1);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-full);
  display: inline-block;
}

/* ==========================================================================
   Real Installation Gallery
   ========================================================================== */
.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem; /* Increased gap for better spacing */
}

/* More columns on ultra-wide screens */
@media (min-width: 1600px) {
  .gallery-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem; /* Even larger gap on ultra-wide screens */
  }
}

@media (max-width: 1024px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

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

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

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 240px;
  cursor: pointer;
  border: 1px solid var(--border-glass);
}

/* Make gallery items slightly taller on very tall screens */
@media (min-height: 800px) and (orientation: portrait) {
  .gallery-item {
    height: 260px;
  }
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 9, 19, 0.9) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
  opacity: 0;
  transition: var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-caption {
  color: #FFF;
  font-weight: 600;
  font-size: 0.9rem;
}

/* ==========================================================================
   Interactive Modals & Lightbox
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6, 9, 19, 0.8);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: var(--modal-bg);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.5rem;
  position: relative;
  box-shadow: var(--shadow-card), var(--glow-blue);
  transform: scale(0.95);
  transition: var(--transition);
  color: var(--text-main);
}

.modal-backdrop.active .modal-box {
  transform: scale(1);
}

/* Enhanced modal boxes on very tall screens */
@media (min-height: 800px) and (orientation: portrait) {
  .modal-box {
    max-width: 800px;
    padding: 3rem;
    border-radius: var(--radius-xl);
  }

  .modal-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
  }

  .modal-text {
    font-size: 1.2rem;
    line-height: 1.7;
  }

  .modal-close-btn {
    width: 56px; /* Larger touch target */
    height: 56px;
    top: 1.5rem;
    right: 1.5rem;
  }

  .modal-close-btn i {
    font-size: 1.2rem;
  }
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  color: var(--text-heading);
  width: 48px; /* Minimum touch target size */
  height: 48px; /* Minimum touch target size */
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close-btn:hover {
  background: var(--color-accent);
  color: #FFF;
}

/* Universal Form Controls */
.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-sm);
  color: var(--input-color);
  outline: none;
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
  min-height: 48px; /* Minimum touch target size */
}

.form-control:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 10px rgba(0, 163, 224, 0.25);
}

/* Enhanced form controls on very tall screens */
@media (min-height: 800px) and (orientation: portrait) {
  .form-control {
    padding: 1rem 1.25rem;
    font-size: 1.1rem;
    min-height: 56px; /* Larger touch target for tall screens */
  }

  .form-control::placeholder {
    font-size: 1.1rem;
    opacity: 0.7;
  }

  label {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
  }

  /* Larger buttons on tall screens */
  .btn {
    padding: 0.9rem 1.5rem;
    font-size: 1.1rem;
    min-height: 56px;
  }

  .btn-lg {
    padding: 1.1rem 2rem;
    font-size: 1.2rem;
    min-height: 60px;
  }

  .btn-sm {
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
    min-height: 48px;
  }
}

/* ==========================================================================
   FAQ Accordions & Footer
   ========================================================================== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem; /* Increased gap for better spacing */
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
}

.faq-header {
  padding: 1.25rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  color: var(--text-heading);
  transition: color 0.35s ease;
}

/* Larger FAQ headers on very tall screens */
@media (min-height: 800px) and (orientation: portrait) {
  .faq-header {
    font-size: 1.4rem;
    padding: 1.5rem 2rem;
  }
}

.faq-header i {
  color: var(--color-primary);
  transition: var(--transition);
}

.faq-item.active .faq-header i {
  transform: rotate(180deg);
}

.faq-body {
  padding: 0 1.5rem 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  display: none;
  border-top: 1px solid var(--border-glass);
  padding-top: 1rem;
}

/* Larger FAQ body text on very tall screens */
@media (min-height: 800px) and (orientation: portrait) {
  .faq-body {
    font-size: 1.2rem;
    padding: 0 2rem 1.5rem;
    padding-top: 1.5rem;
  }
}

.faq-item.active .faq-body {
  display: block;
}

.footer {
  background: var(--footer-bg);
  border-top: 1px solid var(--border-glass);
  padding: 4rem 0 2rem;
  margin-top: 4rem;
  transition: background 0.35s ease;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3.5rem; /* Increased gap for better spacing */
  margin-bottom: 3rem;
}

/* Better footer grid spacing on very tall screens */
@media (min-height: 800px) and (orientation: portrait) {
  .footer-grid {
    gap: 5rem;
    margin-bottom: 5rem;
  }
}

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

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

.footer-col h4 {
  margin-bottom: 1.25rem;
  font-size: 1.1rem;
  color: var(--text-heading);
}

/* Larger footer headings on very tall screens */
@media (min-height: 800px) and (orientation: portrait) {
  .footer-col h4 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
  }
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}

/* Larger footer links on very tall screens */
@media (min-height: 800px) and (orientation: portrait) {
  .footer-links a {
    font-size: 1.1rem;
  }
}

.footer-links a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-glass);
  color: var(--text-dim);
  font-size: 0.875rem;
}

/* Larger footer bottom text on very tall screens */
@media (min-height: 800px) and (orientation: portrait) {
  .footer-bottom {
    font-size: 1.1rem;
    padding-top: 2.5rem;
  }
}

/* Ultra-wide screen optimizations */
@media (min-width: 1920px) {
  .container {
    max-width: 1600px;
  }

  .section-title {
    font-size: 3.5rem;
  }

  .hero-content h1 {
    font-size: 4.5rem;
  }

  .hero-subtitle {
    font-size: 1.5rem;
  }
}

/* Larger savings text on very tall screens */
@media (min-height: 800px) and (orientation: portrait) {
  #calcSavings {
    font-size: 1.5rem;
  }

  #calcTotalKWh {
    font-size: 1.2rem;
  }

  #calcPeakWatts,
  #calcSustainedWatts {
    font-size: 1.2rem;
  }

  /* Make labels larger on very tall screens */
  .res-metric-item span[style*="font-weight:600"] {
    font-size: 1.1rem;
  }

  /* Make spec modal title larger on very tall screens */
  #specModalTitle {
    font-size: 2rem !important;
  }

  /* Make spec modal body text larger on very tall screens */
  #specModalBody {
    font-size: 1.2rem !important;
  }

  /* Make inquiry modal heading larger on very tall screens */
  #inquiryModal h3 {
    font-size: 2.2rem !important;
  }

  /* Make inquiry modal paragraph larger on very tall screens */
  #inquiryModal p {
    font-size: 1.3rem !important;
  }

  /* Make inquiry modal form labels larger on very tall screens */
  #inquiryModal label {
    font-size: 1.3rem !important;
  }

  /* Make inquiry modal form inputs larger on very tall screens */
  #inquiryModal .form-control {
    font-size: 1.2rem !important;
  }

  /* Make inquiry modal submit button larger on very tall screens */
  #inquiryModal .btn.btn-whatsapp {
    font-size: 1.5rem !important;
    padding: 1.5rem !important;
  }

  /* Make lightbox modal container larger on very tall screens */
  #lightboxModal .modal-box {
    max-width: 950px !important;
    padding: 2.5rem !important;
  }

  /* Make lightbox modal caption larger on very tall screens */
  #lightboxCaption {
    font-size: 1.8rem !important;
  }

  /* Make lightbox image have better spacing on very tall screens */
  #lightboxImg {
    margin-bottom: 2.5rem !important;
  }

  /* Make WhatsApp inquiry buttons larger on very tall screens */
  .btn.btn-whatsapp.btn-open-inquiry {
    font-size: 1.2rem !important;
    padding: 0.85rem 1.5rem !important;
  }

  /* Make calc order button larger on very tall screens */
  #calcOrderBtn {
    font-size: 1.4rem !important;
    padding: 1.25rem !important;
  }

  /* Make view switcher larger on very tall screens */
  .view-switcher {
    bottom: 16px !important;
    padding: 6px !important;
    gap: 6px !important;
    min-height: 40px !important;
  }

  /* Make view switcher buttons larger on very tall screens */
  .view-btn {
    padding: 8px 16px !important;
    font-size: 0.9rem !important;
    min-height: 42px !important;
    min-width: 42px !important;
  }
}
