:root {
  --primary-blue: #1038a6;
  --electric-gold: #f4c51c;
  --deep-navy: #0b1434;
  --charcoal: #1a2238;
  --light-bg: #f4f7ff;
  --white: #ffffff;
  --muted: #66708a;
  --danger-red: #d91f26;
  --accent-orange: #f09a17;
  --glass: rgba(255, 255, 255, 0.12);
  --glass-border: rgba(255, 255, 255, 0.28);
  --success: #08a66c;
  --shadow-lg: 0 20px 45px rgba(11, 20, 52, 0.25);
  --shadow-md: 0 12px 30px rgba(16, 56, 166, 0.15);
  --radius: 18px;
  --radius-sm: 12px;
  --container: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  color: var(--charcoal);
  background: linear-gradient(180deg, #f8faff, #eef3ff 65%, #f8faff);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(var(--container), 92vw);
  margin: 0 auto;
}

.section {
  padding: 86px 0;
  position: relative;
}

.section-title {
  font-size: clamp(1.7rem, 3vw, 2.8rem);
  line-height: 1.2;
  margin: 0 0 14px;
  color: var(--deep-navy);
}

.section-kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary-blue);
  font-weight: 700;
  font-size: 0.8rem;
  margin-bottom: 10px;
}

.section-copy {
  color: var(--muted);
  max-width: 650px;
  margin: 0;
}

.glass-card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: transform 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-120%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transition: transform 0.5s ease;
}

.btn:hover::after {
  transform: translateX(130%);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(120deg, var(--primary-blue), #1c62e6);
  color: var(--white);
  box-shadow: 0 12px 24px rgba(16, 56, 166, 0.3), 0 0 0 0 rgba(28, 98, 230, 0.4);
  animation: pulse 3s infinite;
}

.btn-primary:hover {
  box-shadow: 0 14px 34px rgba(16, 56, 166, 0.36);
}

.btn-secondary {
  background: linear-gradient(120deg, var(--electric-gold), #ffd95e);
  color: #111;
  border-color: #f8d45c;
}

.btn-outline {
  border-color: rgba(16, 56, 166, 0.35);
  color: var(--primary-blue);
  background: rgba(255, 255, 255, 0.75);
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 12px 24px rgba(16, 56, 166, 0.3), 0 0 0 0 rgba(28, 98, 230, 0.4);
  }
  70% {
    box-shadow: 0 12px 24px rgba(16, 56, 166, 0.3), 0 0 0 16px rgba(28, 98, 230, 0);
  }
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background 0.35s ease, box-shadow 0.35s ease;
}

.site-header.scrolled {
  background: rgba(11, 20, 52, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 20px rgba(11, 20, 52, 0.35);
}

.nav-wrap {
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-quote-btn {
  white-space: nowrap;
  padding: 10px 18px;
  font-size: 0.92rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.brand strong {
  color: var(--white);
  display: block;
  font-size: 0.96rem;
  line-height: 1.2;
}

.brand span {
  color: #d6ddff;
  font-size: 0.72rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links a {
  color: var(--white);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
}

.nav-links a::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 100%;
  height: 2px;
  background: var(--electric-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-links a:hover::before,
.nav-links a.active::before {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--white);
  font-size: 1.9rem;
}

.hero {
  min-height: 84vh;
  padding: 120px 0 72px;
  color: var(--white);
  position: relative;
  background: radial-gradient(circle at 12% 10%, #1f5de4 0, #102f80 30%, #081332 82%);
  isolation: isolate;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 36px 36px;
  opacity: 0.25;
  z-index: -3;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      65deg,
      rgba(11, 20, 52, 0.2) 0%,
      rgba(244, 197, 28, 0.1) 20%,
      rgba(17, 52, 145, 0) 100%
    ),
    linear-gradient(
      to bottom,
      rgba(8, 19, 50, 0) 100%,
      rgba(255, 255, 255, 0.88) 100%,
      #ffffff 100%
    );
  z-index: -2;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 42px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2rem, 4.4vw, 4.2rem);
  line-height: 1.08;
  margin: 0 0 20px;
}

.hero p {
  color: #e4eaff;
  max-width: 630px;
  margin-bottom: 28px;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-image {
  position: relative;
}

.hero-image img {
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: var(--shadow-lg);
}

.hero-slider {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  min-height: 300px;
  aspect-ratio: 16 / 10;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-lg);
}

.hero-slider::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.12) 0%,
    rgba(255, 255, 255, 0.02) 55%,
    rgba(244, 197, 28, 0.06) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.hero-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 0.55s ease;
  z-index: 0;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slider-dots {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 3;
  display: flex;
  gap: 10px;
}

.hero-slider-dots button {
  width: 100%;
  height: 4px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: background 0.25s ease;
}

.hero-slider-dots button.is-active {
  background: var(--electric-gold);
}

.hero-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 4;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.hero-slider-arrow:hover {
  transform: translateY(-50%) scale(1.04);
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.42);
}

.hero-slider-prev {
  left: 12px;
}

.hero-slider-next {
  right: 12px;
}

.hero-slider-arrow i {
  font-size: 1.25rem;
}

.floating-badge {
  position: absolute;
  right: -18px;
  bottom: -24px;
  padding: 16px;
  max-width: 220px;
  z-index: 2;
}

.floating-badge h4 {
  margin: 0 0 3px;
  color: var(--deep-navy);
}

.floating-badge p {
  margin: 0;
  color: #455070;
  font-size: 0.88rem;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.metric {
  text-align: center;
  padding: 26px 16px;
}

.metric strong {
  display: block;
  color: var(--deep-navy);
  font-size: clamp(1.8rem, 3.4vw, 3rem);
  line-height: 1;
}

.metric span {
  color: var(--muted);
  font-size: 0.92rem;
}

.stats-section {
  padding-top: 36px;
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 26px;
  align-items: center;
}

.feature-list {
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.feature-list li {
  padding-left: 28px;
  position: relative;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffe27f, var(--electric-gold));
  box-shadow: 0 0 12px rgba(244, 197, 28, 0.7);
}

.services-grid,
.projects-grid,
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card,
.project-card,
.mini-card {
  padding: 22px;
  transition: transform 0.26s ease, box-shadow 0.26s ease;
  height: 100%;
}

.service-card:hover,
.project-card:hover,
.mini-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.service-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  font-size: 1.25rem;
  color: var(--primary-blue);
  background: linear-gradient(130deg, rgba(244, 197, 28, 0.4), rgba(16, 56, 166, 0.1));
  border: 1px solid rgba(16, 56, 166, 0.18);
}

.service-card h3,
.project-card h3 {
  margin: 0 0 8px;
  color: var(--deep-navy);
  font-size: 1.1rem;
}

.service-card p,
.project-card p {
  color: var(--muted);
  margin: 0 0 14px;
  font-size: 0.95rem;
}

.service-card button,
.project-filter button {
  border: 1px solid rgba(16, 56, 166, 0.25);
  background: rgba(16, 56, 166, 0.08);
  color: var(--primary-blue);
  border-radius: 999px;
  font-weight: 600;
  padding: 8px 16px;
  cursor: pointer;
}

.project-card img {
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.project-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.project-filter button.active {
  background: var(--primary-blue);
  color: var(--white);
}

.featured-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.featured-gallery-item {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-md);
  background: #fff;
  cursor: zoom-in;
}

.featured-gallery-item img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.featured-gallery-item figcaption {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 0.88rem;
  color: #fff;
  background: rgba(10, 20, 45, 0.54);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.featured-gallery-item:hover img {
  transform: scale(1.05);
}

.featured-gallery-item:focus-visible {
  outline: 3px solid rgba(16, 56, 166, 0.45);
  outline-offset: 3px;
}

.gallery-actions {
  margin: 24px 0 0;
  text-align: center;
}

.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 120;
  background: rgba(7, 14, 30, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lightbox.open {
  display: flex;
}

.lightbox-panel {
  width: min(1020px, 96vw);
  max-height: 92vh;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.lightbox-panel img {
  width: 100%;
  max-height: 92vh;
  object-fit: contain;
  display: block;
  background: rgba(5, 12, 28, 0.85);
}

.lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.testimonial-wrap {
  margin-top: 20px;
  position: relative;
  overflow: hidden;
  min-height: 240px;
}

.testimonial-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.testimonial {
  position: relative;
  top: auto;
  left: auto;
  width: auto;
  padding: 24px;
  box-sizing: border-box;
  transition: transform 0.55s ease, opacity 0.55s ease;
  grid-row: 1;
  margin: 0;
}

.testimonial-wrap {
  --testimonial-offset: clamp(110px, 18vw, 250px);
}

.testimonial.test-current {
  opacity: 1;
  z-index: 3;
  grid-column: 2;
  grid-row: 1;
  transform: translateY(0) rotate(0deg) skewX(0deg) scale(1);
}

.testimonial.test-prev {
  opacity: 0.88;
  z-index: 2;
  grid-column: 1;
  grid-row: 1;
  transform: translateY(6px) rotate(-2deg) skewX(-8deg) scale(0.96);
}

.testimonial.test-next {
  opacity: 0.88;
  z-index: 2;
  grid-column: 3;
  grid-row: 1;
  transform: translateY(6px) rotate(2deg) skewX(8deg) scale(0.96);
}

.testimonial p {
  margin: 0 0 12px;
  color: #233059;
}

.testimonial strong {
  color: var(--deep-navy);
}

.cta-strip {
  background: linear-gradient(90deg, #102f80, #133fac, #0b1434);
  color: var(--white);
}

.cta-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
}

.page-hero {
  min-height: 56vh;
  padding: 150px 0 70px;
  color: var(--white);
  position: relative;
  background:
    linear-gradient(125deg, rgba(8, 19, 50, 0.84), rgba(16, 56, 166, 0.7)),
    url("../generated/hero-poles.webp") center/cover no-repeat;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 12%, rgba(244, 197, 28, 0.35), transparent 36%);
}

.breadcrumbs {
  color: #e4eaff;
  font-size: 0.9rem;
}

.breadcrumbs a {
  color: #fff;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.team-member {
  padding: 18px;
}

.team-member img {
  border-radius: 14px;
  margin-bottom: 12px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.value-item {
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(16, 56, 166, 0.15);
  background: #fff;
}

.service-banner {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.service-banner img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 16, 34, 0.62);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 90;
}

.modal.open {
  display: flex;
}

.modal-content {
  width: min(680px, 94vw);
  border-radius: var(--radius);
  background: #fff;
  padding: 26px;
  position: relative;
}

.modal-close {
  position: absolute;
  right: 12px;
  top: 10px;
  border: 0;
  background: transparent;
  font-size: 1.8rem;
  cursor: pointer;
  color: #233059;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 18px;
}

.contact-block {
  padding: 24px;
}

form {
  display: grid;
  gap: 12px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(16, 56, 166, 0.2);
  border-radius: 10px;
  padding: 11px 12px;
  font: inherit;
  background: #fff;
}

textarea {
  min-height: 135px;
  resize: vertical;
}

.form-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.form-switch button {
  border: 1px solid rgba(16, 56, 166, 0.2);
  background: #fff;
  color: var(--primary-blue);
  padding: 8px 12px;
  border-radius: 999px;
}

.form-switch button.active {
  color: #fff;
  background: var(--primary-blue);
}

.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 60px;
  height: 60px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(140deg, #2ad06f, #0e9f4f);
  color: #fff;
  font-size: 1.8rem;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 26px rgba(9, 133, 64, 0.42);
  z-index: 88;
  cursor: pointer;
  animation: wa-bob 2.3s infinite ease-in-out;
}

@keyframes wa-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.wa-panel {
  position: fixed;
  right: 20px;
  bottom: 90px;
  width: min(360px, 94vw);
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid rgba(16, 56, 166, 0.14);
  box-shadow: var(--shadow-lg);
  padding: 16px;
  z-index: 88;
  display: none;
}

.wa-panel.open {
  display: block;
}

.site-footer {
  background: #0a132d;
  color: #d9def0;
  padding: 58px 0 18px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.9fr 1fr;
  gap: 18px;
  margin-bottom: 26px;
}

.footer-grid h4 {
  color: #fff;
  margin: 0 0 12px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-brand i {
  font-size: 1.35rem;
  color: var(--electric-gold);
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.socials {
  display: flex;
  gap: 10px;
}

.socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 14px;
  color: #adb5d4;
  font-size: 0.9rem;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1000px) {
  .hero-layout,
  .split,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .metrics,
  .services-grid,
  .projects-grid,
  .featured-gallery,
  .cards-3,
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .value-grid {
    grid-template-columns: 1fr;
  }

  .floating-badge {
    position: static;
    margin-top: 14px;
    max-width: 420px;
    padding: 14px 14px;
    border-radius: 16px;
  }
}

@media (max-width: 760px) {
  .nav-links {
    position: fixed;
    top: 84px;
    left: 0;
    right: 0;
    background: rgba(10, 19, 45, 0.97);
    padding: 16px 4vw;
    transform: translateY(-130%);
    transition: transform 0.3s ease;
    flex-direction: column;
    align-items: flex-start;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .nav-links.open {
    transform: translateY(0);
  }

  .menu-toggle {
    display: block;
  }

  .nav-right {
    gap: 10px;
  }

  .nav-quote-btn {
    padding: 10px 14px;
    font-size: 0.85rem;
  }

  .hero {
    min-height: auto;
    padding: 108px 0 54px;
  }

  .hero-slider {
    min-height: 230px;
  }

  /* "Trusted Execution" badge should look neat under the slider on mobile */
  .floating-badge {
    width: 100%;
    max-width: 420px;
    margin: 14px auto 0;
    padding: 14px 14px;
    border-radius: 16px;
    text-align: left;
  }

  .floating-badge h4 {
    font-size: 1.05rem;
  }

  .floating-badge p {
    font-size: 0.9rem;
    line-height: 1.45;
  }

  .projects-grid,
  .cards-3,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  /* "Why Choose Us" cards should stay 2 columns on mobile */
  .cards-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .featured-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .metric {
    padding: 20px 12px;
  }

  .cta-wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Keep testimonials readable on small screens */
  .testimonial-wrap {
    min-height: 260px;
  }

  .testimonial.test-prev {
    opacity: 0;
    z-index: 1;
    transform: translateY(6px) scale(0.98);
    grid-column: 1;
  }

  .testimonial.test-next {
    opacity: 0;
    z-index: 1;
    transform: translateY(6px) scale(0.98);
    grid-column: 1;
  }

  .testimonial-track {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
  }

  .testimonial {
    grid-column: 1;
    grid-row: 1;
  }

  .testimonial.test-current {
    grid-column: 1;
    grid-row: 1;
    transform: translateY(0) rotate(0deg) skewX(0deg) scale(1);
  }

  /* Footer mobile layout:
     - About on top
     - Quick Links + Services in the middle (2 columns)
     - Contact at the bottom */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "footer-about footer-about"
      "footer-links footer-services"
      "footer-contact footer-contact";
    row-gap: 18px;
  }

  .footer-about {
    grid-area: footer-about;
  }

  .footer-links {
    grid-area: footer-links;
  }

  .footer-services {
    grid-area: footer-services;
  }

  .footer-contact {
    grid-area: footer-contact;
  }
}

/* --- Hub-inspired electric design upgrades --- */
.hero,
.page-hero {
  overflow: hidden;
}

.particles-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.9;
}

/* Keep real content above particle layers */
.hero > .container,
.page-hero > .container {
  position: relative;
  z-index: 1;
}

/* More premium card/photo hover overlays (Hub-like portfolio feel) */
.project-card,
.service-card {
  position: relative;
  overflow: hidden;
}

.project-card::after,
.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(
    180deg,
    rgba(16, 56, 166, 0) 28%,
    rgba(16, 56, 166, 0.18) 60%,
    rgba(244, 197, 28, 0.12) 100%
  );
  transition: opacity 0.26s ease;
}

.project-card:hover::after,
.service-card:hover::after {
  opacity: 1;
}

.project-card img,
.service-banner img {
  transition: transform 0.35s ease;
}

.project-card:hover img {
  transform: scale(1.05);
}

/* Electrical image mask vibe in hero */
.hero-image img {
  clip-path: polygon(2% 0%, 100% 4%, 98% 98%, 0% 100%);
}

.testimonial {
  position: relative;
}

.testimonial p {
  position: relative;
}

.testimonial p::before {
  content: "“";
  position: absolute;
  top: -18px;
  left: 0;
  font-size: 46px;
  line-height: 1;
  color: rgba(16, 56, 166, 0.18);
  pointer-events: none;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  z-index: 0;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(244, 197, 28, 0.18) 0px,
      rgba(244, 197, 28, 0.18) 1px,
      transparent 1px,
      transparent 28px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(16, 56, 166, 0.22) 0px,
      rgba(16, 56, 166, 0.22) 1px,
      transparent 1px,
      transparent 28px
    );
}

