/* ============================================================
   GREEN POWER SOLUTIONS — Master Stylesheet
   Pure CSS3 | Flexbox + Grid | Mobile-First Responsive
   Color: Navy #0A2540 | Green #27AE60 | Yellow #F1C40F
   ============================================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  --navy: #0A2540;
  --navy-light: #0F3460;
  --navy-dark: #061A2E;
  --green: #27AE60;
  --green-light: #2ECC71;
  --green-dark: #1E8449;
  --yellow: #F1C40F;
  --yellow-hover: #D4AC0D;
  --white: #FFFFFF;
  --off-white: #F8F9FA;
  --light-gray: #ECF0F1;
  --mid-gray: #BDC3C7;
  --dark-gray: #7F8C8D;
  --text-primary: #2C3E50;
  --text-secondary: #576574;
  --shadow-sm: 0 2px 8px rgba(10, 37, 64, 0.08);
  --shadow-md: 0 4px 20px rgba(10, 37, 64, 0.12);
  --shadow-lg: 0 8px 40px rgba(10, 37, 64, 0.16);
  --shadow-xl: 0 16px 60px rgba(10, 37, 64, 0.20);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1280px;
  --header-height: 80px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text-primary);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy);
}

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

ul, ol {
  list-style: none;
}

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

button {
  font-family: 'Montserrat', sans-serif;
  cursor: pointer;
  border: none;
  outline: none;
}

/* ---------- Utility ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header .overline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 16px;
}

.section-header .overline::before,
.section-header .overline::after {
  content: '';
  width: 30px;
  height: 2px;
  background: var(--green);
}

.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 18px;
  color: var(--navy);
}

.section-header p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  border-radius: 50px;
  transition: all var(--transition);
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--yellow);
  color: var(--navy);
  box-shadow: 0 4px 15px rgba(241, 196, 15, 0.4);
}

.btn-primary:hover {
  background: var(--yellow-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(241, 196, 15, 0.5);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.6);
}

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

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

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

.btn-green {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(39, 174, 96, 0.4);
}

.btn-green:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(39, 174, 96, 0.5);
}

/* ---------- Header / Navbar ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all var(--transition);
  height: var(--header-height);
}

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

.header:not(.scrolled) {
  background: transparent;
}

.header.scrolled {
  background: rgba(10, 37, 64, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1001;
}

.logo img {
  height: 48px;
  width: auto;
}

.header.scrolled .logo img {
  height: 40px;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-text .brand {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.logo-text .tagline {
  font-size: 0.65rem;
  color: var(--green-light);
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* Nav Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-menu a {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  letter-spacing: 0.3px;
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--green);
  border-radius: 2px;
  transition: width var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--white);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 24px;
}

.nav-cta {
  margin-left: 12px;
}

.nav-cta .btn {
  padding: 10px 24px;
  font-size: 0.78rem;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  z-index: 1001;
  padding: 4px;
}

.hamburger span {
  width: 28px;
  height: 2.5px;
  background: var(--white);
  border-radius: 4px;
  transition: all var(--transition);
  transform-origin: center;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ---------- Hero Slider ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 650px;
  max-height: 1000px;
  overflow: hidden;
}

.hero-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.2s ease, visibility 1.2s ease;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
}

.hero-slide .slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 8s ease;
}

.hero-slide.active .slide-bg {
  transform: scale(1);
}

.hero-slide .slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 37, 64, 0.88) 0%,
    rgba(10, 37, 64, 0.65) 50%,
    rgba(10, 37, 64, 0.45) 100%
  );
}

.hero-slide .slide-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero-slide .slide-content .overline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--green-light);
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s 0.3s forwards;
}

.hero-slide .slide-content .overline::before {
  content: '';
  width: 40px;
  height: 2px;
  background: var(--green-light);
}

.hero-slide .slide-content h1 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  color: var(--white);
  max-width: 780px;
  margin-bottom: 20px;
  line-height: 1.15;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s 0.5s forwards;
}

.hero-slide .slide-content h1 span {
  color: var(--green-light);
}

.hero-slide .slide-content p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 580px;
  margin-bottom: 36px;
  line-height: 1.8;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s 0.7s forwards;
}

.hero-slide .slide-content .hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s 0.9s forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero Navigation Dots */
.hero-dots {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.hero-dots button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transition: all var(--transition);
  border: none;
}

.hero-dots button.active {
  background: var(--green);
  width: 36px;
  border-radius: 6px;
}

/* Hero Arrows */
.hero-arrows {
  position: absolute;
  bottom: 40px;
  right: 40px;
  display: flex;
  gap: 8px;
  z-index: 10;
}

.hero-arrows button {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--white);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  backdrop-filter: blur(4px);
}

.hero-arrows button:hover {
  background: var(--green);
  border-color: var(--green);
}

/* ---------- Welcome / Intro Section ---------- */
.intro {
  background: var(--white);
}

.intro .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.intro-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.intro-image img {
  width: 100%;
  height: 450px;
  object-fit: cover;
}

.intro-image .experience-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: var(--green);
  color: var(--white);
  padding: 20px 28px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.intro-image .experience-badge .number {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
}

.intro-image .experience-badge .label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 4px;
}

.intro-content .overline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 16px;
}

.intro-content .overline::before {
  content: '';
  width: 30px;
  height: 2px;
  background: var(--green);
}

.intro-content h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: 20px;
}

.intro-content p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.85;
  font-size: 1rem;
}

.intro-content .intro-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 28px;
  margin-bottom: 32px;
}

.intro-feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.intro-feature-item .icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(39, 174, 96, 0.1);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.intro-feature-item span {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
}

/* ---------- Stats / Counter Section ---------- */
.stats {
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

.stats::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(39, 174, 96, 0.06);
}

.stats .container {
  position: relative;
  z-index: 1;
}

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

.stat-card {
  text-align: center;
  padding: 40px 20px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all var(--transition);
}

.stat-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-4px);
}

.stat-card .stat-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(39, 174, 96, 0.15);
  color: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin: 0 auto 20px;
}

.stat-card .stat-number {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-card .stat-number .suffix {
  font-size: 1.6rem;
  color: var(--green-light);
}

.stat-card .stat-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

/* ---------- Services Section ---------- */
.services {
  background: var(--off-white);
}

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

.service-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 40px 32px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--green), var(--green-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(39, 174, 96, 0.1);
}

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

.service-card .service-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(39, 174, 96, 0.1), rgba(39, 174, 96, 0.05));
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 24px;
  transition: all var(--transition);
}

.service-card:hover .service-icon {
  background: var(--green);
  color: var(--white);
}

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 14px;
  color: var(--navy);
}

.service-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 20px;
}

.service-card .service-link {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--green);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition);
}

.service-card:hover .service-link {
  gap: 12px;
}

/* ---------- Featured Projects ---------- */
.projects {
  background: var(--white);
}

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

.project-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  background: var(--white);
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.project-card .project-image {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.project-card .project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.project-card:hover .project-image img {
  transform: scale(1.08);
}

.project-card .project-image .project-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--green);
  color: var(--white);
  padding: 5px 14px;
  border-radius: 50px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.project-card .project-tag.ongoing {
  background: var(--yellow);
  color: var(--navy);
}

.project-card .project-body {
  padding: 24px;
}

.project-card .project-body h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  line-height: 1.4;
}

.project-card .project-body .project-meta {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.project-card .project-body .project-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-card .project-body .project-specs span {
  font-size: 0.72rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 50px;
  background: rgba(39, 174, 96, 0.08);
  color: var(--green-dark);
}

/* ---------- Clients Section ---------- */
.clients {
  background: var(--off-white);
  padding: 80px 0;
}

.clients-track {
  display: flex;
  gap: 48px;
  animation: scrollClients 30s linear infinite;
}

.clients-track:hover {
  animation-play-state: paused;
}

.client-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  min-width: 200px;
  height: 80px;
}

.client-logo span {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--navy);
  text-align: center;
  white-space: nowrap;
}

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

.clients-wrapper {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(39, 174, 96, 0.08);
}

.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -50px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(241, 196, 15, 0.05);
}

.cta-banner .container {
  position: relative;
  z-index: 1;
  text-align: center;
}

.cta-banner h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--white);
  margin-bottom: 16px;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.8;
}

.cta-banner .cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.7);
  padding-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-col h4 {
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 12px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 3px;
  background: var(--green);
  border-radius: 2px;
}

.footer-about .footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.footer-about .footer-logo img {
  height: 40px;
}

.footer-about .footer-logo span {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--white);
}

.footer-about p {
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all var(--transition);
}

.footer-social a:hover {
  background: var(--green);
  color: var(--white);
}

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

.footer-col ul li a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-col ul li a::before {
  content: '›';
  color: var(--green);
  font-weight: 700;
}

.footer-col ul li a:hover {
  color: var(--green-light);
  padding-left: 4px;
}

.footer-contact li {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  align-items: flex-start;
}

.footer-contact li .fc-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(39, 174, 96, 0.12);
  color: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-contact li .fc-text {
  font-size: 0.88rem;
  line-height: 1.6;
}

.footer-contact li .fc-text strong {
  display: block;
  color: var(--white);
  font-size: 0.8rem;
  margin-bottom: 2px;
}

.footer-bottom {
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 0.82rem;
}

.footer-bottom .footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom .footer-bottom-links a {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--transition);
}

.footer-bottom .footer-bottom-links a:hover {
  color: var(--green-light);
}

/* ---------- Back to Top ---------- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--green-dark);
  transform: translateY(-3px);
}

/* ---------- Page Banner (Subpages) ---------- */
.page-banner {
  background: var(--navy);
  padding: 160px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1509391366360-2e959784a276?w=1600') center/cover;
  opacity: 0.12;
}

.page-banner .container {
  position: relative;
  z-index: 1;
}

.page-banner h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white);
  margin-bottom: 12px;
}

.page-banner .breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
}

.page-banner .breadcrumb a {
  color: var(--green-light);
}

/* ---------- Preloader ---------- */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--navy);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* ---------- Scroll Reveal Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

/* Tablet Landscape */
@media (max-width: 1024px) {
  .intro .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .intro-image {
    order: -1;
  }

  .intro-image img {
    height: 350px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablet Portrait */
@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }

  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 360px;
    height: 100vh;
    background: var(--navy-dark);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 32px 40px;
    gap: 2px;
    transition: right var(--transition);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
  }

  .nav-menu.open {
    right: 0;
  }

  .nav-menu a {
    font-size: 0.95rem;
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav-menu a::after {
    display: none;
  }

  .nav-cta {
    margin-left: 0;
    margin-top: 20px;
  }

  .mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
  }

  .mobile-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  .hero {
    min-height: 560px;
  }

  .hero-slide .slide-content h1 {
    font-size: clamp(1.6rem, 6vw, 2.4rem);
  }

  .hero-arrows {
    display: none;
  }

  .section-padding {
    padding: 70px 0;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-bottom {
    justify-content: center;
    text-align: center;
  }

  .cta-banner .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero-slide .slide-content .hero-buttons {
    flex-direction: column;
  }

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

  .intro-content .intro-features {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-card {
    padding: 28px 20px;
  }

  .hero-dots {
    bottom: 24px;
  }

  .section-header h2 {
    font-size: 1.6rem;
  }
}

/* ═══════════════════════════════════════════════
   SUBPAGE COMPONENTS
   ═══════════════════════════════════════════════ */

/* ── Service Detail Grid ── */
.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.service-detail-grid.reverse .sd-content {
  order: 2;
}

.service-detail-grid.reverse .sd-image {
  order: 1;
}

.sd-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(39, 174, 96, 0.1);
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.sd-lead {
  font-size: 1.1rem;
  color: var(--green);
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 12px;
}

.sd-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.sd-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.92rem;
  color: var(--text-primary);
  line-height: 1.6;
}

.sd-list li i {
  color: var(--green);
  margin-top: 4px;
  flex-shrink: 0;
}

.sd-voltage-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.7);
  padding: 14px 24px;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 1px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.sd-voltage-bar .highlight {
  color: var(--green-light);
  font-size: 1rem;
  font-weight: 800;
}

/* ── Filter Buttons ── */
.filter-btn {
  padding: 10px 24px;
  border: 2px solid var(--light-gray);
  background: var(--white);
  color: var(--text-primary);
  font-size: 0.88rem;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  border-radius: 30px;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover {
  border-color: var(--green);
  color: var(--green);
}

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

/* ── Gallery Grid (Masonry-like) ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.gallery-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.gallery-item.tall img {
  height: 540px;
}

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

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(10, 37, 64, 0.9));
  padding: 48px 20px 20px;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}

.gallery-overlay h4 {
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 4px;
}

.gallery-overlay p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Gallery item hide/show for filter */
.gallery-item.hidden {
  display: none;
}

/* ── Contact Form ── */
.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-form .form-group {
  margin-bottom: 18px;
}

.contact-form label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
  font-family: 'Montserrat', sans-serif;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--light-gray);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: 'Open Sans', sans-serif;
  color: var(--text-primary);
  background: var(--white);
  transition: border-color var(--transition);
  box-sizing: border-box;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--green);
}

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

.contact-form select {
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%230A2540' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

/* ── Project Card (subpage variant) ── */
.project-grid-sub {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.project-card-sub {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.project-card-sub:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.project-card-sub.hidden {
  display: none;
}

/* ═══════════════════════════════════════════════
   SUBPAGE RESPONSIVE
   ═══════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .service-detail-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .service-detail-grid.reverse .sd-content,
  .service-detail-grid.reverse .sd-image {
    order: unset;
  }
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-item.tall img {
    height: 300px;
  }
  .contact-form .form-row {
    grid-template-columns: 1fr;
  }
  .project-grid-sub {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .gallery-item img,
  .gallery-item.tall img {
    height: 220px;
  }
  .gallery-overlay {
    transform: translateY(0);
  }
  .sd-voltage-bar {
    font-size: 0.72rem;
    gap: 6px;
    padding: 10px 16px;
  }
}
