/* ==========================================================================
   SG SOLAR - Modern, High-Performance Solar Energy Stylesheet
   Theme Color Scheme (Preserved from Reference):
   - Primary Accent Green: #76c21b / #62a414
   - Secondary Solar Lime: #9dd53a
   - Deep Solar Navy: #002e5b
   - Contrast Midnight: #010f2e
   - Light Background: #f1f8fe / #f8fafc
   ========================================================================== */

/* 1. Custom CSS Variables */
:root {
  --primary-green: #76c21b;
  --primary-green-hover: #62a414;
  --secondary-lime: #9dd53a;
  --solar-navy: #002e5b;
  --solar-navy-light: #0d4277;
  --midnight-dark: #010f2e;
  --dark-surface: #071536;
  --light-bg: #f1f8fe;
  --light-surface: #f8fafc;
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --border-light: #e2e8f0;
  --border-dark: #1b2a4e;
  
  --font-heading: 'Rubik', system-ui, -apple-system, sans-serif;
  --font-body: 'Roboto', system-ui, -apple-system, sans-serif;
  
  --shadow-sm: 0 2px 8px rgba(0, 46, 91, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 46, 91, 0.1);
  --shadow-lg: 0 16px 40px rgba(0, 46, 91, 0.14);
  --shadow-glow: 0 0 20px rgba(118, 194, 27, 0.4);
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition-fast: 0.25s ease;
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 2. Global Resets & Typography */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 85px;
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font-family: var(--font-body);
  color: #475569;
  background-color: #ffffff;
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--midnight-dark);
  font-weight: 700;
  line-height: 1.25;
}

a {
  text-decoration: none;
  transition: all var(--transition-fast);
}

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

::selection {
  background: var(--primary-green);
  color: #ffffff;
}

/* 3. Section Titles & Badges */
.section-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary-green);
  background-color: rgba(118, 194, 27, 0.1);
  padding: 6px 16px;
  border-radius: 30px;
  margin-bottom: 14px;
}

.section-badge.badge-navy {
  color: var(--solar-navy);
  background-color: rgba(0, 46, 91, 0.08);
}

.section-badge.badge-white {
  color: var(--secondary-lime);
  background-color: rgba(255, 255, 255, 0.12);
}

.section-title h2 {
  font-size: 2.35rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

@media (min-width: 992px) {
  .section-title h2 {
    font-size: 2.75rem;
  }
}

.section-title p {
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 680px;
}

/* 4. Custom Button Hierarchy */
.btn-solar-primary {
  background: var(--primary-green);
  color: #ffffff !important;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.5px;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--primary-green);
  box-shadow: 0 6px 20px rgba(118, 194, 27, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all var(--transition-normal);
}

.btn-solar-primary:hover {
  background: var(--primary-green-hover);
  border-color: var(--primary-green-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(118, 194, 27, 0.45);
}

.btn-solar-outline {
  background: transparent;
  color: #ffffff !important;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.5px;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  border: 2px solid rgba(255, 255, 255, 0.6);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all var(--transition-normal);
}

.btn-solar-outline:hover {
  background: #ffffff;
  color: var(--solar-navy) !important;
  border-color: #ffffff;
  transform: translateY(-2px);
}

.btn-solar-outline-dark {
  background: transparent;
  color: var(--solar-navy) !important;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 30px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--solar-navy);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-solar-outline-dark:hover {
  background: var(--solar-navy);
  color: #ffffff !important;
}

.btn-solar-sm {
  padding: 9px 20px;
  font-size: 14px;
}

/* 5. Header Area */
/* 5.1 Top Bar (Light, airy Capatel style) */
.header-topbar {
  background-color: #f4f8f4;
  color: #556980;
  font-size: 13.5px;
  border-bottom: 1px solid #e7efe7;
}

.topbar-item {
  color: #556980;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  font-size: 13.5px;
  transition: color var(--transition-fast);
}

.topbar-item:hover {
  color: var(--primary-green);
}

.topbar-icon-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary-green);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  margin-right: 8px;
}

.topbar-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #556980;
  font-size: 14px;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.topbar-social-link:hover {
  color: var(--primary-green);
}

/* 5.2 Main Navigation Bar (Overlaps light hero seamlessly) */
.navbar-main {
  position: absolute;
  top: 41px;
  left: 0;
  right: 0;
  background: transparent;
  z-index: 1030;
  transition: all var(--transition-normal);
}

.navbar-main.is-sticky {
  position: fixed;
  top: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 8px 0;
}

.navbar-brand img {
  height: 48px;
  width: auto;
}

.navbar-nav .nav-link {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 500;
  color: var(--midnight-dark);
  padding: 8px 16px !important;
  position: relative;
  transition: color var(--transition-fast);
}

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

.nav-search-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: #010f2e;
  font-size: 18px;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.nav-search-trigger:hover {
  color: var(--primary-green);
}

.btn-capatel-quote {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-image: linear-gradient(0deg, #76c21b 0%, #a7da42 100%);
  color: #ffffff !important;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.5px;
  padding: 13px 32px;
  border-radius: 50px;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 2px 4px 15px rgba(0, 0, 0, 0.12);
  transition: all var(--transition-normal);
}

.btn-capatel-quote:hover {
  transform: translateY(-2px);
  box-shadow: 2px 6px 20px rgba(118, 194, 27, 0.4);
  color: #ffffff !important;
}

/* 6. Capatel Light Hero Section */
.capatel-hero-section {
  position: relative;
  background-color: #ffffff;
  overflow: hidden;
  padding-top: 140px;
  padding-bottom: 90px;
}

.hero-curved-backdrop {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.hero-text-content {
  position: relative;
  z-index: 2;
}

.hero-welcome-badge {
  display: inline-block;
  background-image: linear-gradient(0deg, #76c21b 0%, #a7da42 100%);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 7px 20px;
  border-radius: 4px;
  margin-bottom: 22px;
}

.hero-main-title {
  font-family: var(--font-heading);
  font-size: 68px;
  font-weight: 800;
  color: #010f2e;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 22px;
}

@media (max-width: 991px) {
  .hero-main-title {
    font-size: 42px;
  }
  .capatel-hero-section {
    padding-top: 40px;
    padding-bottom: 60px;
  }
  .navbar-main {
    position: relative;
    top: 0;
    background: #ffffff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  }
  .navbar-collapse {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    margin-top: 15px;
    box-shadow: 0 10px 30px rgba(0, 46, 91, 0.12);
  }
}

@media (max-width: 575px) {
  .hero-main-title {
    font-size: 34px;
  }
}

.hero-main-desc {
  font-size: 16.5px;
  line-height: 1.75;
  color: #64748b;
  max-width: 520px;
  margin-bottom: 35px;
}

.hero-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.btn-hero-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-image: linear-gradient(0deg, #76c21b 0%, #a7da42 100%);
  color: #ffffff !important;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.5px;
  padding: 14px 34px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 2px 4px 15px rgba(0, 0, 0, 0.12);
  transition: all var(--transition-normal);
}

.btn-hero-solid:hover {
  transform: translateY(-2px);
  box-shadow: 2px 6px 20px rgba(118, 194, 27, 0.4);
}

.btn-hero-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #010f2e !important;
  border: 2px solid #76c21b;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.5px;
  padding: 12px 32px;
  border-radius: 50px;
  text-decoration: none;
  transition: all var(--transition-normal);
}

.btn-hero-outline:hover {
  background: #76c21b;
  color: #ffffff !important;
  transform: translateY(-2px);
}

.hero-illustration-wrap {
  position: relative;
  z-index: 2;
}

.hero-illustration-img {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 15px 30px rgba(0, 46, 91, 0.1));
}

/* 7. Quick Stats Counter Bar */
.stats-counter-bar {
  background: #ffffff;
  margin-top: -50px;
  position: relative;
  z-index: 20;
  border-radius: var(--radius-md);
  box-shadow: 0 12px 35px rgba(0, 46, 91, 0.1);
  padding: 35px 25px;
  border: 1px solid var(--border-light);
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 15px;
}

.stat-icon {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  background: var(--light-bg);
  color: var(--primary-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.stat-item:hover .stat-icon {
  background: var(--primary-green);
  color: #ffffff;
  transform: scale(1.08);
}

.stat-info .stat-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--solar-navy);
  line-height: 1.1;
  display: flex;
  align-items: baseline;
}

.stat-info .stat-label {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* 8. About Section */
.about-section {
  padding: 100px 0;
  position: relative;
  background: #ffffff;
}

.about-visual-container {
  position: relative;
  display: block;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(0, 46, 91, 0.16);
  background: var(--midnight-dark);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.about-visual-container:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 44px rgba(0, 46, 91, 0.22);
}

.about-visual-container .about-video,
.about-visual-container video,
.about-visual-container img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
  object-fit: cover;
}

.about-features-list {
  list-style: none;
  padding: 0;
  margin: 28px 0 32px;
}

.about-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}

.about-check-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(118, 194, 27, 0.15);
  color: var(--primary-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 3px;
}

.about-metric-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--light-bg);
  border-left: 4px solid var(--primary-green);
  padding: 14px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 26px;
}

.about-action {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

/* 8b. Engineering Standards Section (Split from About) */
.engineering-standards-section {
  padding: 85px 0 95px;
  background: #f7faf4;
  position: relative;
  border-top: 1px solid rgba(118, 194, 27, 0.15);
  border-bottom: 1px solid #e7eff6;
}

.engineering-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 34px 28px;
  height: 100%;
  border: 1px solid #e6f0dc;
  box-shadow: 0 10px 25px rgba(0, 46, 91, 0.05);
  transition: all var(--transition-normal);
  position: relative;
  display: flex;
  flex-direction: column;
}

.engineering-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 46, 91, 0.12);
  border-color: var(--primary-green);
}

.engineering-card .pillar-icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: rgba(118, 194, 27, 0.12);
  color: var(--primary-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 22px;
  transition: all var(--transition-normal);
}

.engineering-card:hover .pillar-icon {
  background: var(--primary-green);
  color: #ffffff;
  transform: scale(1.05);
}

.engineering-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--solar-navy);
  margin-bottom: 14px;
}

.engineering-card p {
  color: var(--text-body);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 20px;
  flex-grow: 1;
}

.engineering-card .pillar-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px dashed #e2e8f0;
  color: var(--primary-green);
  font-size: 0.85rem;
  font-weight: 600;
}

/* 9. Services Grid */
.services-section {
  padding: 100px 0;
  background: var(--light-bg);
  position: relative;
}

.service-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 36px 30px;
  height: 100%;
  border: 1px solid #e5eef7;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-normal);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

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

.service-icon-box {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: rgba(118, 194, 27, 0.1);
  color: var(--primary-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 24px;
  transition: all var(--transition-fast);
}

.service-card:hover .service-icon-box {
  background: var(--primary-green);
  color: #ffffff;
  transform: rotate(6deg);
}

.service-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.service-card p {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 20px;
  flex-grow: 1;
}

.service-highlights {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  font-size: 13.5px;
  color: #475569;
}

.service-highlights li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.service-highlights li i {
  color: var(--primary-green);
  font-size: 11px;
}

.service-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  color: var(--solar-navy);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}

.service-link i {
  color: var(--primary-green);
  transition: transform var(--transition-fast);
}

.service-card:hover .service-link i {
  transform: translateX(4px);
}

/* 10. Projects Portfolio Section */
.portfolio-section {
  position: relative;
  padding: 100px 0;
  background: #ffffff;
  overflow: hidden;
}

.portfolio-curved-backdrop {
  position: absolute;
  top: 0;
  right: 0;
  width: 440px;
  max-width: 45vw;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.portfolio-filter-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 45px;
}

.filter-btn {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: var(--solar-navy);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  padding: 10px 26px;
  border-radius: 30px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--primary-green);
  border-color: var(--primary-green);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(118, 194, 27, 0.35);
}

.project-masonry-grid {
  column-count: 3;
  column-gap: 24px;
}

@media (max-width: 991px) {
  .project-masonry-grid {
    column-count: 2;
    column-gap: 20px;
  }
}

@media (max-width: 575px) {
  .project-masonry-grid {
    column-count: 1;
  }
}

.project-item {
  break-inside: avoid;
  margin-bottom: 24px;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.gallery-image-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background-color: #f1f5f9;
  cursor: zoom-in;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}

/* Subtle gradient overlay on hover */
.gallery-image-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(1, 15, 46, 0) 45%, rgba(1, 15, 46, 0.55) 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  border-radius: 20px;
  z-index: 2;
}

.gallery-image-card:hover::after {
  opacity: 1;
}

.gallery-photo {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Minimal caption pill floating up on hover */
.gallery-hover-card {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 3;
}

.gallery-image-card:hover .gallery-hover-card {
  opacity: 1;
  transform: translateY(0);
}

.gallery-caption-pill {
  display: inline-block;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--solar-navy);
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 30px;
  box-shadow: 0 10px 25px rgba(1, 15, 46, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.9);
  letter-spacing: 0.3px;
  text-align: center;
  max-width: 90%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 11. Gallery Lightbox Zoom Modal */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
}

.gallery-lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 15, 46, 0.93);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: zoom-out;
}

.lightbox-container {
  position: relative;
  z-index: 2;
  max-width: 92vw;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.lightbox-figure {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(0.94);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-lightbox.active .lightbox-figure {
  transform: scale(1);
}

.lightbox-img {
  max-width: 86vw;
  max-height: 76vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65);
  user-select: none;
}

.lightbox-caption {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  color: #ffffff;
  font-family: var(--font-heading);
  gap: 16px;
}

.lightbox-title {
  font-size: 16px;
  font-weight: 600;
  color: #f1f5f9;
  letter-spacing: 0.3px;
}

.lightbox-counter {
  font-size: 13px;
  color: var(--primary-green);
  font-weight: 700;
  background: rgba(118, 194, 27, 0.18);
  padding: 4px 14px;
  border-radius: 20px;
  border: 1px solid rgba(118, 194, 27, 0.35);
  white-space: nowrap;
}

.lightbox-close {
  position: fixed;
  top: 24px;
  right: 28px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-size: 28px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.lightbox-close:hover {
  background: var(--primary-green);
  border-color: var(--primary-green);
  transform: rotate(90deg);
}

.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.lightbox-prev {
  left: 28px;
}

.lightbox-next {
  right: 28px;
}

.lightbox-nav:hover {
  background: var(--primary-green);
  border-color: var(--primary-green);
  transform: translateY(-50%) scale(1.1);
}

@media (max-width: 768px) {
  .lightbox-prev {
    left: 10px;
    width: 42px;
    height: 42px;
    font-size: 15px;
  }
  .lightbox-next {
    right: 10px;
    width: 42px;
    height: 42px;
    font-size: 15px;
  }
  .lightbox-close {
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
    font-size: 24px;
  }
  .lightbox-img {
    max-width: 94vw;
    max-height: 68vh;
  }
  .gallery-caption-pill {
    font-size: 12px;
    padding: 8px 16px;
  }
}

/* 12. Working Process (4 Steps) */
.process-section {
  padding: 100px 0;
  background: var(--light-bg);
  position: relative;
}

.process-step-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 35px 25px;
  position: relative;
  height: 100%;
  border: 1px solid #e2e8f0;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.process-step-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-green);
}

.process-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: rgba(118, 194, 27, 0.3);
  position: absolute;
  top: 18px;
  right: 22px;
  line-height: 1;
}

.process-icon-box {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: rgba(0, 46, 91, 0.08);
  color: var(--solar-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}

.process-step-card:hover .process-icon-box {
  background: var(--primary-green);
  color: #ffffff;
}

.process-step-card h3 {
  font-size: 1.22rem;
  margin-bottom: 12px;
}

.process-step-card p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* 13. Why Choose SG Solar */
.why-us-section {
  padding: 100px 0;
  background: #ffffff;
}

.why-feature-box {
  display: flex;
  gap: 18px;
  padding: 30px 24px;
  background: var(--light-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
}

.why-feature-box:hover {
  background: #ffffff;
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 46, 91, 0.08);
  border-color: rgba(118, 194, 27, 0.4);
}

.why-feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(118, 194, 27, 0.12);
  color: var(--primary-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  transition: all var(--transition-normal);
}

.why-feature-box:hover .why-feature-icon {
  background: var(--primary-green);
  color: #ffffff;
}

.why-feature-content h3 {
  font-size: 1.18rem;
  margin-bottom: 8px;
  color: var(--solar-navy);
}

.why-feature-content p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0;
}

/* 14. Testimonials Section */
.testimonials-section {
  padding: 100px 0;
  background: var(--light-bg);
}

.testimonial-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 35px 30px;
  border: 1px solid #e2e8f0;
  box-shadow: var(--shadow-sm);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-header {
  margin-bottom: 16px;
}

.testimonial-card p {
  font-style: italic;
  color: #334155;
  font-size: 15.5px;
  line-height: 1.7;
  margin-bottom: 24px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid #f1f5f9;
  padding-top: 16px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--solar-navy);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
}

.author-info h4 {
  font-size: 1rem;
  margin-bottom: 2px;
}

.author-info span {
  font-size: 13px;
  color: var(--text-muted);
}

/* 15. FAQ Section */
.faq-section {
  padding: 100px 0;
  background: #ffffff;
}

.accordion-item {
  border: 1px solid #e2e8f0 !important;
  border-radius: var(--radius-sm) !important;
  margin-bottom: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.accordion-button {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--solar-navy);
  background: #ffffff;
  padding: 18px 24px;
}

.accordion-button:not(.collapsed) {
  color: var(--primary-green);
  background-color: rgba(118, 194, 27, 0.05);
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: none;
  border-color: rgba(118, 194, 27, 0.4);
}

.accordion-body {
  padding: 20px 24px 24px;
  font-size: 15px;
  color: #475569;
  line-height: 1.7;
}

/* 16. Contact & Quote Section */
.contact-section {
  padding: 100px 0;
  background: var(--light-bg);
  position: relative;
}

.contact-info-card {
  background: var(--solar-navy);
  color: #ffffff;
  border-radius: var(--radius-md);
  padding: 40px;
  height: 100%;
}

.contact-info-card h3 {
  color: #ffffff;
  font-size: 1.6rem;
  margin-bottom: 20px;
}

.contact-info-card p {
  color: #cbd5e1;
  margin-bottom: 30px;
}

.contact-methods-list {
  list-style: none;
  padding: 0;
  margin: 0 0 35px 0;
}

.contact-method-item {
  display: flex;
  gap: 16px;
  margin-bottom: 22px;
}

.contact-method-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--secondary-lime);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.contact-method-item h4 {
  font-size: 14px;
  color: #94a3b8;
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-method-item a,
.contact-method-item span {
  color: #ffffff;
  font-size: 15px;
  font-weight: 500;
}

.quote-form-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid #e2e8f0;
}

.form-label {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--midnight-dark);
  margin-bottom: 6px;
}

.form-control,
.form-select {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid #cbd5e1;
  font-size: 15px;
  transition: all var(--transition-fast);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-green);
  box-shadow: 0 0 0 4px rgba(118, 194, 27, 0.15);
}

/* 17. Footer Area */
.footer-area {
  background-color: var(--midnight-dark);
  color: #94a3b8;
  padding: 80px 0 0;
  position: relative;
}

.footer-brand p {
  color: #94a3b8;
  font-size: 14.5px;
  margin: 18px 0 24px;
  line-height: 1.7;
}

.footer-heading {
  font-family: var(--font-heading);
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 24px;
  position: relative;
}

.footer-heading::after {
  content: '';
  display: block;
  width: 32px;
  height: 3px;
  background: var(--primary-green);
  margin-top: 8px;
  border-radius: 2px;
}

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

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

.footer-links a {
  color: #94a3b8;
  font-size: 14.5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-links a:hover {
  color: var(--secondary-lime);
  transform: translateX(4px);
}

.footer-contact-info li {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 14.5px;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 0;
  margin-top: 60px;
  font-size: 13.5px;
}

.footer-bottom a {
  color: #cbd5e1;
}

.footer-bottom a:hover {
  color: var(--secondary-lime);
}

/* 18. Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary-green);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(118, 194, 27, 0.4);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--solar-navy);
  color: #ffffff;
  transform: translateY(-4px);
}

/* 19. Responsive Adjustments */
@media (max-width: 991.98px) {
  /* Hero Section */
  .capatel-hero-section {
    padding-top: 40px;
    padding-bottom: 35px;
    text-align: center;
  }
  
  .hero-main-title {
    font-size: 38px;
    line-height: 1.2;
  }

  .hero-main-desc {
    margin-left: auto;
    margin-right: auto;
    font-size: 15.5px;
    line-height: 1.65;
    margin-bottom: 25px;
  }

  .hero-btn-group {
    justify-content: center;
  }

  .hero-illustration-wrap {
    margin-top: 25px;
  }

  .hero-illustration-img {
    max-height: 260px;
    width: auto;
    max-width: 90%;
  }

  /* Stats Counter Bar */
  .stats-counter-bar {
    margin-top: 25px;
    margin-bottom: 10px;
    padding: 24px 18px;
  }

  .stat-item {
    padding: 10px 4px;
    gap: 12px;
    border-bottom: none;
  }

  .stat-icon {
    width: 48px;
    height: 48px;
    font-size: 20px;
    border-radius: 10px;
  }

  .stat-info .stat-number {
    font-size: 1.6rem;
  }

  .stat-info .stat-label {
    font-size: 12.5px;
    line-height: 1.35;
  }

  /* About Section & Video */
  .about-section {
    padding: 60px 0 45px;
  }

  .about-visual-container {
    margin-bottom: 25px;
  }

  .about-section .section-title h2 {
    font-size: 28px;
    line-height: 1.25;
  }

  .about-metric-pill {
    margin-bottom: 22px;
  }

  /* Engineering Standards */
  .engineering-standards-section {
    padding: 55px 0 65px;
  }

  .engineering-standards-section .section-title h2 {
    font-size: 28px;
    line-height: 1.25;
  }

  .engineering-card {
    padding: 26px 22px;
  }

  /* Navigation */
  .navbar-nav {
    padding: 15px 0;
  }

  .navbar-nav .nav-link::after {
    display: none;
  }
}

@media (max-width: 575.98px) {
  /* Hero adjustments for smaller phones / iPhone */
  .hero-main-title {
    font-size: 30px;
    line-height: 1.2;
    margin-bottom: 16px;
  }

  .hero-welcome-badge {
    font-size: 13px;
    padding: 5px 16px;
    margin-bottom: 16px;
  }

  .hero-illustration-img {
    max-height: 220px;
  }

  .hero-btn-group {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .hero-btn-group .btn-hero-solid,
  .hero-btn-group .btn-hero-outline {
    width: 100%;
    justify-content: center;
    padding: 12px 24px;
    text-align: center;
  }

  /* Stats Counter Bar 2x2 grid */
  .stats-counter-bar {
    padding: 18px 12px;
    margin-top: 20px;
  }

  .stat-item {
    gap: 10px;
    padding: 8px 2px;
  }

  .stat-icon {
    width: 42px;
    height: 42px;
    font-size: 17px;
    border-radius: 8px;
  }

  .stat-info .stat-number {
    font-size: 1.45rem;
  }

  .stat-info .stat-label {
    font-size: 11.5px;
    line-height: 1.3;
  }

  /* About Action Buttons - Stack full width with zero overlap */
  .about-action {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: 100%;
  }

  .about-action .btn-solar-primary,
  .about-action .btn-solar-outline-dark {
    width: 100%;
    margin-right: 0 !important;
    justify-content: center;
    text-align: center;
    padding: 14px 20px;
  }

  /* About Section Spacing */
  .about-section {
    padding: 45px 0 35px;
  }

  .about-section .section-title h2 {
    font-size: 24px;
    line-height: 1.25;
  }

  .about-metric-pill {
    padding: 12px 14px;
    font-size: 13px;
  }

  /* Engineering Standards */
  .engineering-standards-section {
    padding: 45px 0 50px;
  }

  .engineering-standards-section .section-title h2 {
    font-size: 24px;
    line-height: 1.25;
  }

  /* Section Badges */
  .section-badge {
    font-size: 11.5px;
    padding: 5px 14px;
    letter-spacing: 1px;
  }
}
