/*
 * EcoSmart modern single-page experience
 * ------------------------------------------------------------
 */

:root {
  --color-background: #f5f7fb;
  --color-surface: #ffffff;
  --color-primary: #0a84ff;
  --color-primary-dark: #006adc;
  --color-accent: #1ed6a4;
  --color-text: #1f2a37;
  --color-text-muted: #5a6473;
  --gradient-hero: radial-gradient(120% 120% at 90% 20%, rgba(30, 214, 164, 0.3), rgba(10, 132, 255, 0.2) 40%, rgba(15, 23, 42, 0.95) 85%);
  --gradient-section: linear-gradient(135deg, rgba(10, 132, 255, 0.08), rgba(30, 214, 164, 0.08));
  --shadow-soft: 0 24px 48px -24px rgba(15, 23, 42, 0.25);
  --shadow-card: 0 18px 40px -20px rgba(15, 23, 42, 0.35);
  --radius-lg: 32px;
  --radius-md: 20px;
  --radius-sm: 14px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--color-background);
  color: var(--color-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.25s ease, opacity 0.25s ease;
}

a:hover,
a:focus {
  color: var(--color-primary-dark);
}

p {
  margin-bottom: 1.5rem;
  color: var(--color-text-muted);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Montserrat", "Inter", sans-serif;
  margin: 0 0 1rem;
  font-weight: 700;
  color: var(--color-text);
}

img {
  max-width: 100%;
  display: block;
}

section {
  padding: 6rem 0;
}

.section-light {
  background: var(--color-background);
}

.section-default {
  background: var(--color-surface);
}

.section-gradient {
  background: #f0f8ff;
  background-image: var(--gradient-section);
}

.section-title h2 {
  font-size: clamp(2rem, 3vw, 2.75rem);
  margin-bottom: 1rem;
}

.section-title .subtitle {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  margin: 0;
}

#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 84px;
  display: flex;
  align-items: center;
  z-index: 999;
  transition: backdrop-filter 0.4s ease, background-color 0.4s ease, height 0.4s ease;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  background: rgba(10, 19, 43, 0.58);
}

#header.header-scrolled {
  height: 70px;
  background: rgba(10, 19, 43, 0.86);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.18);
}

#header .brand img {
  height: 42px;
  transition: transform 0.3s ease;
}

#header .brand:hover img {
  transform: scale(1.04);
}

.nav-menu ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu .active > a::after {
  transform: scaleX(1);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-weight: 600;
  transition: background 0.3s ease, border 0.3s ease;
}

.header-cta:hover {
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.4);
}

.hero-section {
  padding-top: 9rem;
  padding-bottom: 6rem;
  color: #fff;
  background: #0f172a;
  background-image: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: -40% auto auto -30%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(30, 214, 164, 0.28), transparent 70%);
  filter: blur(60px);
  opacity: 0.6;
}

.hero-section::after {
  content: "";
  position: absolute;
  inset: auto -25% -25% auto;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(10, 132, 255, 0.35), transparent 70%);
  filter: blur(80px);
  opacity: 0.5;
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero-section h1 {
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  margin-bottom: 1rem;
  color: #fff;
}

.hero-section .lead {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 2.2rem;
}

.btn-get-started,
.btn-outline {
  padding: 0.85rem 1.9rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
}

.btn-get-started {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.btn-get-started:hover {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-accent));
}

.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  background: transparent;
}

.btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.08);
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
}

.hero-highlights li {
  padding: 1.05rem 1.2rem;
  background: rgba(15, 23, 42, 0.35);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.highlight-value {
  font-size: 1.45rem;
  font-weight: 700;
  color: #fff;
  display: block;
}

.highlight-label {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.85rem;
  letter-spacing: 0.02rem;
}

.hero-visual {
  position: relative;
  display: grid;
  gap: 1.5rem;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: -18% -8% auto -20%;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(30, 214, 164, 0.35), transparent 70%);
  filter: blur(60px);
  opacity: 0.4;
  z-index: 0;
}

.hero-visual > * {
  position: relative;
  z-index: 1;
}

.hero-dashboard {
  display: grid;
  gap: 1.75rem;
  padding: 2.25rem;
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 24px 54px -28px rgba(0, 0, 0, 0.65);
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: rgba(30, 214, 164, 0.16);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04rem;
  text-transform: uppercase;
}

.status-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 0 rgba(30, 214, 164, 0.45);
  animation: pulse-dot 2.4s ease infinite;
}

@keyframes pulse-dot {
  0% {
    box-shadow: 0 0 0 0 rgba(30, 214, 164, 0.45);
  }

  70% {
    box-shadow: 0 0 0 14px rgba(30, 214, 164, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(30, 214, 164, 0);
  }
}

.timestamp {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.82rem;
}

.dashboard-content {
  display: grid;
  grid-template-columns: minmax(120px, auto) 120px 1fr;
  gap: 1.6rem;
  align-items: center;
}

.gauge {
  display: grid;
  gap: 0.35rem;
  text-align: center;
}

.gauge-value {
  font-size: 2.8rem;
  font-weight: 700;
  color: #fff;
}

.gauge-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.08rem;
  text-transform: uppercase;
}

.gauge-chart {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: radial-gradient(circle at 30% 30%, rgba(10, 132, 255, 0.45), transparent 65%);
  display: grid;
  place-items: center;
}

.gauge-ring {
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 10px solid rgba(255, 255, 255, 0.08);
  border-top-color: var(--color-primary);
  border-right-color: var(--color-accent);
  transform: rotate(-20deg);
}

.gauge-needle {
  position: absolute;
  bottom: 50%;
  left: 50%;
  width: 4px;
  height: 40px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--color-accent), rgba(255, 255, 255, 0.4));
  transform-origin: center bottom;
  transform: translateX(-50%) rotate(-35deg);
  box-shadow: 0 0 12px rgba(30, 214, 164, 0.6);
}

.trend-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.trend-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.8);
}

.trend-list .label {
  letter-spacing: 0.02rem;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
}

.trend-list .value {
  font-weight: 600;
}

.trend-list .value.down {
  color: var(--color-accent);
}

.trend-list .value.up {
  color: #f7b84b;
}

.trend-list .value.neutral {
  color: rgba(255, 255, 255, 0.65);
}

.dashboard-footer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
  padding: 1.5rem 1.2rem;
  border-radius: var(--radius-sm);
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-metric {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.footer-label {
  font-size: 0.78rem;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.footer-value {
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
}

.hero-inline-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.mini-card {
  padding: 1.4rem 1.2rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: rgba(255, 255, 255, 0.86);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  box-shadow: 0 16px 36px -24px rgba(0, 0, 0, 0.7);
}

.mini-label {
  font-size: 0.78rem;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.mini-value {
  font-size: 1.6rem;
  font-weight: 600;
  color: #fff;
}

.mini-value.positive {
  color: var(--color-accent);
}

.mini-value.negative {
  color: #ff5f5f;
}

.mini-value.neutral {
  color: rgba(255, 255, 255, 0.75);
}

.mini-delta {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}

.mini-delta.neutral {
  color: rgba(255, 255, 255, 0.6);
}

.stat-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-soft);
  text-align: center;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.stat-value {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  display: inline-flex;
  align-items: baseline;
  gap: 0.25rem;
}

.stat-card p {
  margin: 0.8rem 0 0;
  font-weight: 500;
}

#about .row.content {
  align-items: center;
  margin-bottom: 3rem;
}

.btn-learn-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--color-primary-dark);
  border-bottom: 1px solid rgba(10, 132, 255, 0.3);
  padding-bottom: 0.15rem;
}

.btn-learn-more::after {
  content: "→";
  font-size: 1rem;
}

.about-pillars {
  margin-top: 1rem;
}

.pillar-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.pillar-media {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
}

.pillar-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pillar-icon {
  position: absolute;
  bottom: -22px;
  left: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #fff;
  font-size: 1.5rem;
  box-shadow: var(--shadow-card);
}

.pillar-content {
  padding: 2.6rem 2rem 2rem;
}

.pillar-content h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.service-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-md);
  padding: 2.2rem 1.8rem;
  box-shadow: var(--shadow-soft);
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border: 1px solid rgba(10, 132, 255, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
}

.service-card .service-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(10, 132, 255, 0.12);
  color: var(--color-primary);
  font-size: 1.4rem;
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
}

.service-card p {
  margin: 0;
  font-size: 0.98rem;
}

.project-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card);
}

.project-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-card:hover .project-media img {
  transform: scale(1.05);
}

.project-content {
  padding: 1.8rem;
}

.project-category {
  text-transform: uppercase;
  letter-spacing: 0.22rem;
  font-size: 0.75rem;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 0.65rem;
  display: inline-block;
}

.project-content h3 {
  font-size: 1.2rem;
  line-height: 1.45;
}

.client-tile {
  background: var(--color-surface);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(15, 23, 42, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.client-tile:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
}

.client-tile img {
  filter: grayscale(100%);
  opacity: 0.75;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

.client-tile:hover img {
  filter: none;
  opacity: 1;
}

.contact-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(10, 132, 255, 0.08);
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.contact-info-block {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-info-block .icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(10, 132, 255, 0.12);
  color: var(--color-primary-dark);
  font-size: 1.4rem;
}

.contact-info-block h4 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.contact-info-block address,
.contact-info-block p {
  margin: 0;
  color: var(--color-text-muted);
  font-style: normal;
}

.contact-cta {
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  border: 1px solid rgba(10, 132, 255, 0.1);
}

.contact-cta h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.contact-cta ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.contact-cta li {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  color: var(--color-text);
  font-weight: 500;
}

.contact-cta li i {
  color: var(--color-accent);
}

.map-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  height: 220px;
  border: 1px solid rgba(10, 132, 255, 0.1);
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

#footer {
  background: #0f172a;
  color: rgba(255, 255, 255, 0.82);
  padding: 5rem 0 3rem;
}

#footer h3,
#footer h4 {
  color: #fff;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.65);
}

.footer-links a:hover {
  color: #fff;
}

.footer-note {
  color: rgba(255, 255, 255, 0.72);
}

.footer-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  margin-top: 1rem;
}

.footer-cta:hover {
  background: rgba(255, 255, 255, 0.26);
}

.footer-meta {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.9rem;
}

.footer-meta a {
  color: rgba(255, 255, 255, 0.75);
}

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease;
  z-index: 999;
}

.back-to-top:hover {
  transform: translateY(-4px);
}

.back-to-top i {
  font-size: 1rem;
}

@media (max-width: 991.98px) {
  #header {
    background: rgba(15, 23, 42, 0.92);
  }

  .header-cta {
    display: none !important;
  }

  .hero-section {
    padding-top: 8rem;
  }

  .hero-dashboard {
    padding: 2rem;
  }

  .dashboard-content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trend-list {
    grid-column: 1 / -1;
  }

  .stat-card {
    margin-bottom: 1.5rem;
  }

  .contact-cta {
    padding: 2rem;
  }
}

@media (max-width: 767.98px) {
  section {
    padding: 4.5rem 0;
  }

  .hero-section {
    padding-bottom: 4rem;
  }

  .hero-visual {
    margin-top: 2.5rem;
  }

  .dashboard-content {
    grid-template-columns: 1fr;
  }

  .gauge-chart {
    justify-self: center;
  }

  .trend-list {
    grid-column: 1 / -1;
  }

  .hero-inline-cards {
    grid-template-columns: 1fr;
  }

  .hero-highlights {
    grid-template-columns: 1fr;
  }

  .pillar-card,
  .service-card,
  .project-card,
  .client-tile,
  .contact-card,
  .contact-cta {
    border-radius: 18px;
  }

  .footer-meta {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 575.98px) {
  .hero-section h1 {
    font-size: 2.2rem;
  }

  .hero-section .lead {
    font-size: 1rem;
  }

  .hero-dashboard {
    padding: 1.8rem;
  }

  .gauge-value {
    font-size: 2.2rem;
  }

  .gauge-chart {
    width: 96px;
    height: 96px;
  }

  .gauge-ring {
    inset: 8px;
    border-width: 8px;
  }

  .gauge-needle {
    height: 32px;
  }

  .contact-info-block {
    flex-direction: column;
  }

  .contact-info-block .icon {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }

  .contact-cta ul {
    gap: 0.6rem;
  }

}


