:root {
  --navy: #07142d;
  --navy-2: #0a1c3d;
  --blue: #087fe0;
  --blue-2: #12a7ec;
  --blue-dark: #063d9b;
  --text: #171b24;
  --muted: #667080;
  --line: #e7e9ed;
  --soft: #f6f7f9;
  --white: #ffffff;
  --radius: 22px;
  --container: 1410px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: "DM Sans", sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.5;
  overflow-x: hidden;
}

img {
  width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.container {
  width: min(calc(100% - 48px), var(--container));
  margin-inline: auto;
}

.section-pad {
  padding: 78px 0;
}

/* HEADER */

.site-header {
  height: 76px;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(15px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(0,0,0,.04);
  transition: box-shadow .25s ease;
}

.site-header.scrolled {
  box-shadow: 0 8px 30px rgba(9, 24, 48, .08);
}

.nav-wrap {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 190px;
}

.brand-mark {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
}

.brand-name {
  font-family: "Manrope", sans-serif;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.2px;
  background: linear-gradient(135deg, #063d9b 0%, #087fe0 55%, #19b7ed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-name strong {
  font-weight: 800;
  background: inherit;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  font-weight: 800;
  color: #454c58;
}

.desktop-nav a,
.footer-nav a {
  transition: color .2s ease;
}

.desktop-nav a:hover,
.footer-nav a:hover {
  color: var(--blue);
}

.nav-cta,
.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--navy);
  color: #fff;
  border-radius: 999px;
  padding: 11px 17px;
  font-size: 12px;
  font-weight: 700;
  transition: transform .2s ease, background .2s ease;
}

.nav-cta:hover,
.primary-btn:hover {
  transform: translateY(-2px);
  background: #102752;
}

.nav-cta span,
.primary-btn span {
  font-size: 14px;
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  background: var(--soft);
  border-radius: 50%;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--navy);
}

.mobile-menu {
  display: none;
}

/* TYPOGRAPHY */

.eyebrow {
  display: inline-block;
  position: relative;
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .7px;
  padding-left: 19px;
  margin-bottom: 10px;
}

.eyebrow::before {
  content: "";
  position: absolute;
  width: 11px;
  height: 2px;
  background: var(--blue);
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

.eyebrow.light {
  color: rgba(255,255,255,.8);
}

.eyebrow.light::before {
  background: #56c7ff;
}

h1,
h2,
h3 {
  font-family: "Manrope", sans-serif;
  letter-spacing: -.035em;
}

h2 {
  font-size: clamp(29px, 3vw, 43px);
  line-height: 1.08;
  font-weight: 600;
}

.section-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: end;
  margin-bottom: 38px;
}

.section-intro p {
  color: #5f6876;
  font-size: 13px;
  max-width: 530px;
  line-height: 1.55;
}

/* HERO */

.hero {
  padding-top: 18px;
  padding-bottom: 45px;
}

.hero-card {
  min-height: 580px;
  position: relative;
  overflow: hidden;
  border-radius: 27px;
  background:
    linear-gradient(90deg, rgba(4,11,19,.85) 0%, rgba(4,11,19,.62) 43%, rgba(4,11,19,.05) 78%),
    url("../images/secs/hero.jpg") center/cover;
  display: flex;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(600px, 60%);
  padding: 65px;
  color: #fff;
}

.hero-content h1 {
  font-size: clamp(42px, 5vw, 72px);
  line-height: .98;
  font-weight: 600;
  margin-bottom: 28px;
  letter-spacing: -.05em;
}

.hero-text {
  max-width: 470px;
  color: rgba(255,255,255,.84);
  font-size: 15px;
  line-height: 1.45;
  margin-bottom: 25px;
}

.hero-stat {
  position: absolute;
  z-index: 3;
  right: 32px;
  bottom: 31px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 17px;
  border-radius: 13px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 15px 40px rgba(0,0,0,.2);
}

.hero-stat strong {
  display: block;
  font-size: 16px;
  line-height: 1;
  font-weight: 800;
}

.hero-stat small {
  display: block;
  margin-top: 4px;
  color: #7a818b;
  font-size: 12px;
}

.avatars {
  display: flex;
}

.avatars span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  margin-left: -6px;
  border: 2px solid #fff;
  border-radius: 50%;
  overflow: hidden; /* Ensures the image stays inside the circle */
  background: #dcecff; /* Fallback background while image loads */
}

.avatars span img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Prevents the image from stretching or distorting */
}

.avatars span:first-child {
  margin-left: 0;
}

.stat-divider {
  height: 30px;
  width: 1px;
  background: #e1e3e7;
  margin: 0 4px;
}

/* TRUST */

.trust-strip {
  padding: 18px 0 20px;
  border-top: 1px solid #f0f1f3;
  border-bottom: 1px solid #f0f1f3;
}

.trust-strip p {
  text-align: center;
  color: #7d8490;
  font-size: 15px;
  font-weight: 600;
  font-style: italic;
  margin-bottom: 17px;
}

.trust-items {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  width: 100%;
}

.trust-items span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;   /* <-- Adjust this fixed width to fit your layout */
  height: 70px;   /* <-- Adjust this fixed height to match your desired row height */
}

/* Styles the images to match the muted, clean look from your screenshot */
.trust-items img {
  max-width: 100%;  /* Ensures wide logos don't break the box width */
  max-height: 100%; /* Ensures tall logos don't break the box height */
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0.8; 
  /* filter: grayscale(100%);  */
  transition: opacity 0.3s ease;
}

/* Optional: brings logo color/opacity back slightly on hover */
.trust-items img:hover {
  opacity: 1;
}

/* ABOUT */

.about {
  padding-bottom: 85px;
}

.about-intro h2 {
  max-width: 600px;
}

.about-intro p {
  font-size: 14px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.about-image-card,
.service-image-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  min-height: 390px;
}

.about-image-card::after,
.service-image-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,.7) 100%);
}

.about-image-card img,
.service-image-card img {
  height: 100%;
  object-fit: cover;
}

.image-caption {
  position: absolute;
  z-index: 2;
  left: 28px;
  right: 28px;
  bottom: 25px;
  color: #fff;
}

.image-caption span {
  display: block;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .7px;
  margin-bottom: 5px;
  color: rgba(255,255,255,.75);
}

.image-caption strong {
  display: block;
  font-family: "Manrope", sans-serif;
  font-size: 22px;
  line-height: 1.05;
  font-weight: 600;
}

.value-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.value-card {
  min-height: 188px;
  padding: 25px;
  border-radius: 17px;
  background: #f5f6f8;
}

.value-card.value-blue {
  background: linear-gradient(135deg, #f3f8ff, #e9f4ff);
}

.value-card.value-dark {
  color: #fff;
  background: linear-gradient(135deg, #0a4ca9, #087fe0);
}

.value-card.value-light {
  background: #f5f6f8;
}

.value-icon {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  margin-bottom: 19px;
  border-radius: 8px;
  background: rgba(255,255,255,.55);
  color: var(--blue-dark);
  font-size: 16px;
}

.value-dark .value-icon {
  color: #fff;
  background: rgba(255,255,255,.12);
}

.value-card h3 {
  font-size: 15px;
  line-height: 1.15;
  margin-bottom: 9px;
  font-weight: 700;
}

.value-card p {
  color: #737b88;
  font-size: 13px;
  line-height: 1.45;
}

.value-dark p {
  color: rgba(255,255,255,.78);
}

/* SERVICES */

.services {
  padding-top: 20px;
}

.service-panel {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 60px;
  padding: 50px;
  background: #f6f7f8;
  border-radius: 25px;
}

.service-description {
  max-width: 470px;
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 28px;
}

.service-image-card {
  height: 360px;
  min-height: 0;
}

.service-list-wrap h2 {
  margin-bottom: 30px;
}

.service-list details {
  border-top: 1px solid #dfe2e6;
  padding: 17px 0;
}

.service-list details:last-child {
  border-bottom: 1px solid #dfe2e6;
}

.service-list summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "Manrope", sans-serif;
  font-size: 16px;
  font-weight: 700;
}

.service-list summary::-webkit-details-marker {
  display: none;
}

.service-list summary span {
  color: var(--blue);
  font-size: 18px;
  font-weight: 400;
}

.service-list details[open] summary span {
  transform: rotate(45deg);
}

.service-list details p {
  max-width: 650px;
  margin-top: 10px;
  color: #727b88;
  font-size: 14px;
  line-height: 1.5;
}

/* PRODUCTS */

.products {
  background:
    linear-gradient(rgba(255,255,255,.92), rgba(255,255,255,.98)),
    repeating-linear-gradient(0deg, transparent 0 39px, #eaf1f7 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, #eaf1f7 40px);
}

.product-intro {
  margin-bottom: 34px;
}

.product-intro p {
  font-size: 15px;
}

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

.product-card {
  position: relative;
  height: 260px;
  overflow: hidden;
  border-radius: 17px;
  background: #0d1b31;
}

.product-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(4,12,27,.88));
}

.product-card img {
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

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

.product-info {
  position: absolute;
  z-index: 2;
  left: 23px;
  right: 23px;
  bottom: 21px;
  color: #fff;
}

.product-info small {
  font-size: 8px;
  color: rgba(255,255,255,.7);
  letter-spacing: .6px;
}

.product-info h3 {
  font-size: 17px;
  margin-top: 4px;
  line-height: 1.1;
}

.product-info p {
  font-size: 12px;
  margin-top: 5px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--blue-dark);
  font-size: 11px;
  font-weight: 700;
  margin-top: 23px;
}

/* FAQ */

.faq {
  background: #fff;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 70px;
  align-items: start;
}

.faq-description {
  max-width: 800px;
  color: #707985;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 35px;
}

.faq-item {
  border-top: 1px solid #e3e5e8;
}

.faq-item:last-child {
  border-bottom: 1px solid #e3e5e8;
}

.faq-question {
  width: 100%;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font-family: "Manrope", sans-serif;
  font-size: 15px;
  font-weight: 600;
}

.faq-arrow {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border: 1px solid #d8dce2;
  border-radius: 50%;
  color: #586170;
  transition: transform .25s ease;
}

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

.faq-answer {
  display: none;
  padding: 0 40px 20px 0;
  color: #727a86;
  font-size: 13px;
  line-height: 1.55;
}

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

.faq-image {
  height: 450px;
  overflow: hidden;
  border-radius: 19px;
}

.faq-image img {
  height: 100%;
  object-fit: cover;
}

/* CTA */

.cta {
  padding-top: 30px;
  padding-bottom: 40px;
}

.cta-card {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  border-radius: 24px;
  background:
    linear-gradient(90deg, rgba(5,16,44,.98) 0%, rgba(7,22,55,.91) 46%, rgba(5,20,50,.45) 100%),
    url("../images/secs/cta.jpg") center/cover;
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 560px;
  padding: 55px;
  color: #fff;
}

.cta-content h2 {
  font-size: clamp(34px, 4vw, 53px);
  line-height: 1;
  margin-bottom: 18px;
}

.cta-content p {
  max-width: 460px;
  margin-bottom: 22px;
  color: rgba(255,255,255,.7);
  font-size: 11px;
}

/* FOOTER */

.footer {
  border-top: 1px solid #eceef1;
  background: #fff;
}

.footer-top {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.footer-nav {
  display: flex;
  gap: 28px;
  color: #656d79;
  font-size: 13px;
}

.socials {
  display: flex;
  gap: 12px;
  align-items: center;
}

.socials a {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.15); /* Adapts nicely if in footer */
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  color: #a0aec0;
  transition: all 0.3s ease;
}

.socials a svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  transition: transform 0.3s ease;
}

.socials a:hover {
  background-color: #2563eb; /* Brand accent blue or your primary theme color */
  border-color: #2563eb;
  color: #ffffff;
  transform: translateY(-3px); /* Subtle lift effect */
}

.socials a:hover svg {
  transform: scale(1.1);
}

.footer-bottom {
  border-top: 1px solid #eceef1;
  min-height: 58px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #8a919c;
  font-size: 9px;
}

.footer-bottom div {
  display: flex;
  gap: 25px;
}

/* RESPONSIVE */

@media (max-width: 1000px) {
  .desktop-nav {
    gap: 18px;
  }

  .hero-card {
    min-height: 540px;
  }

  .hero-content {
    width: 70%;
    padding: 48px;
  }

  .service-panel {
    gap: 35px;
    padding: 35px;
  }

  .faq-grid {
    gap: 40px;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(calc(100% - 30px), var(--container));
  }

  .section-pad {
    padding: 55px 0;
  }

  .site-header,
  .nav-wrap {
    height: 68px;
  }

  .desktop-nav,
  .nav-cta {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .mobile-menu {
    position: absolute;
    top: 68px;
    left: 15px;
    right: 15px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 16px;
    box-shadow: 0 20px 45px rgba(0,0,0,.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: .2s ease;
  }

  .mobile-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .mobile-menu a {
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 13px;
  }

  .mobile-menu a:hover {
    background: var(--soft);
  }

  .mobile-contact {
    color: #fff;
    background: var(--navy);
    text-align: center;
    margin-top: 4px;
  }

  .hero {
    padding-top: 12px;
  }

  .hero-card {
    min-height: 600px;
    align-items: flex-end;
    background-position: 62% center;
  }

  .hero-content {
    width: 100%;
    padding: 35px 25px 105px;
  }

  .hero-content h1 {
    font-size: 43px;
  }

  .hero-stat {
    left: 20px;
    right: 20px;
    bottom: 18px;
    justify-content: center;
  }

.trust-items {
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
  }

  .section-intro,
  .about-grid,
  .service-panel,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .section-intro {
    gap: 20px;
  }

  .about-grid {
    gap: 18px;
  }

  .about-image-card {
    min-height: 330px;
  }

  .value-card {
    min-height: 165px;
  }

  .service-panel {
    padding: 25px;
  }

  .service-image-card {
    height: 300px;
  }

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

  .product-card {
    height: 240px;
  }

  .faq-image {
    height: 280px;
    order: -1;
  }

  .cta-content {
    padding: 38px 28px;
  }

  .footer-top,
  .footer-bottom {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 22px 0;
  }

  .footer-nav {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 430px) {
  h2 {
    font-size: 30px;
  }

  .brand-name {
    font-size: 15px;
  }

  .brand {
    min-width: 0;
  }

  .hero-card {
    min-height: 570px;
  }

  .hero-content h1 {
    font-size: 38px;
  }

  .hero-stat {
    gap: 7px;
    padding: 10px;
  }

  .hero-stat strong {
    font-size: 13px;
  }

  .hero-stat small {
    font-size: 7px;
  }

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

  .value-card {
    min-height: 145px;
  }

  .service-panel {
    border-radius: 18px;
  }

  .footer-bottom div {
    flex-direction: column;
    gap: 8px;
  }
}

/* CONTACT */

.contact-details-section {
  padding: 40px 0 80px 0;
}

.contact-main-card {
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid #e2e8f0;
  padding: 50px;
  box-shadow: 0 10px 30px rgba(13, 27, 49, 0.03);
}

.contact-header-content {
  text-align: center;
  margin-bottom: 40px;
}

.contact-header-content .eyebrow {
  font-family: "Manrope", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #087fe0;
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}

.contact-header-content h2 {
  font-family: "Manrope", sans-serif;
  font-size: 28px;
  color: #0d1b31;
  margin-bottom: 6px;
  font-weight: 700;
}

.contact-header-content p {
  color: #556987;
  font-size: 15px;
}

.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  border-top: 1px solid #edf2f7;
  padding-top: 35px;
}

.contact-info-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-label {
  font-size: 12px;
  font-weight: 700;
  color: #087fe0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-info-item a {
  font-size: 15px;
  color: #0d1b31;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
  word-break: break-all;
}

.contact-info-item a:hover {
  color: #087fe0;
}

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

@media (max-width: 640px) {
  .contact-main-card {
    padding: 30px 20px;
  }
  .contact-info-grid {
    grid-template-columns: 1fr;
  }
}

/* Privacy Policy and Terms & Conditions */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.legal-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.6rem;
  margin-left: 15px;
  transition: color 0.2s ease;
}

.legal-links a:hover {
  color: var(--blue);
  text-decoration: underline;
}

/* Modal Popup Overlay Styling */
.modal-overlay {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: #ffffff;
  color: #1e293b;
  padding: 30px;
  width: 90%;
  max-width: 550px;
  border-radius: 12px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
  position: relative;
  max-height: 80vh;
  overflow-y: auto;
  text-align: left;
}

.modal-content h2 {
  margin-top: 0;
  color: #061633;
  font-size: 1.4rem;
  margin-bottom: 15px;
}

.modal-content p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 12px;
  color: #475569;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #64748b;
}

.modal-close:hover {
  color: #000000;
}

/* DARWIN MOTION SHOWCASE SECTION STYLING */

.darwin-showcase {
  background: #f8fafc;
  border-top: 1px solid var(--line);
}

.darwin-hero-card {
  background: linear-gradient(135deg, #07142d 0%, #0a1c3d 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 50px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(7, 20, 45, 0.15);
  margin-bottom: 40px;
}

.darwin-badge-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 15px;
}

.darwin-brand-tag {
  background: rgba(255, 255, 255, 0.1);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: #56c7ff;
  text-transform: uppercase;
}

.url-tag {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

.darwin-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 30px;
  align-items: center;
}

.darwin-hero-text h2 {
  font-size: clamp(32px, 3.5vw, 48px);
  color: #fff;
  margin-bottom: 18px;
}

.darwin-hero-text p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 25px;
}

.badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.badge-pill {
  background: rgba(8, 127, 224, 0.2);
  border: 1px solid rgba(8, 127, 224, 0.4);
  color: #79d2ff;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.darwin-hero-img {
  max-width: 380px;
  margin-inline: auto;
}

.darwin-hero-img img {
  width: 100%;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.design-footer-note {
  margin-top: 35px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  gap: 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.dot {
  color: var(--blue);
}

.darwin-specs-wrapper {
  margin-bottom: 40px;
}

.specs-header {
  text-align: center;
  margin-bottom: 30px;
}

.specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: stretch;
}

.spec-card {
  background: #ffffff;
  padding: 35px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(7, 20, 45, 0.04);
  display: flex;
  flex-direction: column;
}

.spec-card h3 {
  font-size: 20px;
  color: var(--navy);
  margin-bottom: 22px;
  font-weight: 700;
  text-align: center;
  position: relative;
  padding-bottom: 10px;
}

.spec-card h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
}

.features-grid-modern {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.feat-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 12px;
  border-radius: 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  transition: all 0.2s ease;
}

.feat-box:hover {
  background: #f0f7ff;
  border-color: var(--blue);
  transform: translateY(-2px);
}

.feat-icon-wrap {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 8px;
  background: #e0f2fe;
  color: var(--blue-dark);
  display: grid;
  place-items: center;
  font-size: 14px;
}

.feat-content {
  display: flex;
  flex-direction: column;
}

.feat-content strong {
  font-size: 15px;
  color: var(--navy);
  font-weight: 700;
  line-height: 1.2;
}

.feat-content span {
  font-size: 12px;
  color: #64748b;
  margin-top: 3px;
  line-height: 1.3;
}

.protection-grid-modern {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.prot-box {
  background: #fdf2f2;
  border: 1px solid #fecdca;
  padding: 12px 14px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s ease;
}

.prot-box:hover {
  background: #fff5f5;
  border-color: #f04438;
  transform: translateY(-2px);
}

.prot-icon-wrap {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 50%;
  background: #fee4e2;
  display: grid;
  place-items: center;
  font-size: 14px;
}

.prot-box span:last-child {
  font-size: 15px;
  font-weight: 700;
  color: #b42318;
  line-height: 1.3;
}

.prot-full-row {
  grid-column: span 2;
}

.power-quality-banner {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 45px;
  margin-bottom: 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}

.pq-header {
  text-align: center;
  max-width: 700px;
  margin-inline: auto;
  margin-bottom: 35px;
}

.pq-header h2 {
  color: var(--navy);
  margin-top: 5px;
  margin-bottom: 10px;
}

.pq-header p {
  color: var(--muted);
  font-size: 14px;
}

.pq-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.pq-card {
  background: #f6f8fb;
  padding: 25px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  text-align: center;
  transition: transform 0.3s ease;
}

.pq-card:hover {
  transform: translateY(-4px);
  border-color: var(--blue);
}

.pq-img-wrap {
  height: 130px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pq-img-wrap img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
  border-radius: 16px;
}

.pq-card small {
  color: var(--blue);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.5px;
}

.pq-card h3 {
  font-size: 16px;
  color: var(--navy);
  margin: 6px 0 10px 0;
}

.pq-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.darwin-applications {
  background: var(--navy);
  color: #fff;
  padding: 30px 40px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.darwin-applications h3 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.app-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.app-tag-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  transition: background 0.2s ease;
}

.app-tag-pill:hover {
  background: rgba(255, 255, 255, 0.15);
}

.app-tag-pill img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 50%;
}

.app-tag-pill span {
  font-size: 14px;
  font-weight: 600;
  color: #cbd5e1;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .darwin-hero-grid,
  .specs-grid,
  .pq-cards-grid {
    grid-template-columns: 1fr;
  }
  .darwin-applications {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .darwin-hero-card,
  .power-quality-banner,
  .spec-card {
    padding: 25px 20px;
  }
  .features-grid-modern,
  .protection-grid-modern {
    grid-template-columns: 1fr;
  }
  .prot-full-row {
    grid-column: span 1;
  }
}

/* MODERN GALLERY */

.project-gallery {
  background: #ffffff;
}

.gallery-intro {
  margin-bottom: 45px;
}

.masonry-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 170px;
  gap: 16px;
}

.gallery-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #0d1b31;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  cursor: pointer;
}

.item-square {
  grid-row: span 1;
  grid-column: span 1;
}

.item-tall {
  grid-row: span 2;
  grid-column: span 1;
}

.item-wide {
  grid-row: span 2;
  grid-column: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top, 
    rgba(7, 20, 45, 0.9) 0%, 
    rgba(7, 20, 45, 0.4) 50%, 
    transparent 100%
  );
  opacity: 0;
  display: flex;
  align-items: flex-end;
  padding: 22px;
  transition: opacity 0.35s ease;
}

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

.gallery-content {
  color: #ffffff;
  transform: translateY(15px);
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  padding: 15px;
  box-sizing: border-box;
}

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

.gallery-content h3 {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
  font-family: "Manrope", sans-serif;
}

.gallery-content p {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.4;
  margin: 0;
}

/* Responsive breakpoints */
@media (max-width: 1024px) {
  .masonry-gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 160px;
  }
}

@media (max-width: 768px) {
  .masonry-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 140px;
    gap: 10px;
  }
  
  /* Hide items after the first 6 on mobile to prevent long scrolling */
  .gallery-item:nth-child(n+7) {
    display: none;
  }
  
  .gallery-item:nth-child(n+7).show-all {
    display: block; 
  }

  .gallery-mobile-toggle {
    display: block;
    text-align: center;
    margin-top: 25px;
  }
}

@media (min-width: 769px) {
  .gallery-mobile-toggle {
    display: none; 
  }
}

@media (max-width: 768px) {
  .gallery-content {
    padding: 10px; 
  }

  .gallery-content h3 {
    font-size: 12px; 
    margin-bottom: 2px;
    line-height: 1.2;
  }

  .gallery-content p {
    font-size: 10px; 
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

/* MOBILE GALLERY TOGGLE BUTTON */

.gallery-mobile-toggle {
  display: none; 
  text-align: center;
  margin-top: 30px;
}

.gallery-mobile-toggle .btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--blue);
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 999px; 
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(8, 127, 224, 0.1);
}

.gallery-mobile-toggle .btn-outline:hover {
  background: var(--blue);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(8, 127, 224, 0.25);
}

.gallery-mobile-toggle .btn-outline:active {
  transform: translateY(0);
}

@media (max-width: 768px) {
  .gallery-mobile-toggle {
    display: block;
  }
}