/* Page-specific styles for Home page (home.css) */

/* Hero dark background (override/augment main.css) */
.hero.dark-background {
  background-image:
    linear-gradient(165deg,
      rgba(7, 18, 33, 0.92) 0%,
      rgba(7, 18, 33, 0.78) 55%,
      rgba(13, 71, 161, 0.22) 100%),
    var(--hero-bg-image, none);
  background-size: cover;
  background-position: center;
  color: var(--contrast-color);
}

.hero .hero-content .hero-headline {
  color: var(--heading-color);
}

/* Products & Services merged section specific background and pattern */
.products-services-merged {
  padding: 88px 0 96px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg,
    color-mix(in srgb, var(--nexus-primary) 7%, white) 0%,
    color-mix(in srgb, var(--nexus-primary) 4%, white) 28%,
    #f8f9fc 50%,
    color-mix(in srgb, var(--accent-color) 5%, white) 78%,
    color-mix(in srgb, var(--accent-color) 8%, white) 100%);
}
.products-services-merged .merged-bg-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image:
    linear-gradient(135deg, var(--nexus-primary) 25%, transparent 25%),
    linear-gradient(225deg, var(--nexus-primary) 25%, transparent 25%),
    linear-gradient(45deg, var(--accent-color) 10%, transparent 10%);
  background-size: 60px 60px, 60px 60px, 40px 40px;
  background-position: 0 0, 30px 30px, 0 0;
  pointer-events: none;
}

/* About images shuffle helpers */
.about .image-main, .about .image-offset {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.about .image-main img, .about .image-offset img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.5s ease;
  transform: none !important; /* we animate containers, not images */
}
.about .about-images-wrapper.about-images-shuffling .image-main img {
  transform: none !important;
}
.about .about-images-wrapper.about-images-shuffling .image-offset img {
  transform: none !important;
}

/* About image shuffle: swap front/back by moving containers (grid overlay so wrapper keeps height) */
.about .about-images-wrapper {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  display: grid;
  aspect-ratio: 4 / 3;
}
/* All children overlap in same grid area */
.about .about-images-wrapper > * {
  grid-area: 1 / 1;
}
.about .about-images-wrapper .image-main,
.about .about-images-wrapper .image-offset {
  position: relative; /* avoid collapsing absolute stack issues */
  width: 100%;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(7,18,33,0.10);
  transition: transform 820ms cubic-bezier(.2,.9,.3,1), opacity 720ms ease;
  will-change: transform, opacity;
}
.about .about-images-wrapper .image-main { z-index: 4; transform: translate(0,0) scale(1); }
.about .about-images-wrapper .image-offset { z-index: 3; transform: translate(18px, 18px) scale(.96); opacity: 0.98; }

/* swapped state (back comes to front) */
.about .about-images-wrapper.is-swapped .image-main {
  transform: translate(18px,18px) scale(.96);
  z-index: 3;
  opacity: 0.98;
}
.about .about-images-wrapper.is-swapped .image-offset {
  transform: translate(0,0) scale(1);
  z-index: 5;
  opacity: 1;
}

/* Mobile/tablet: main.css hides .image-offset at <=992px; override so shuffle works */
@media (max-width: 992px) {
  .about .image-offset { display: block !important; }
  .about .about-images-wrapper { max-width: 520px; }
}

@media (max-width: 576px) {
  .about .about-images-wrapper { max-width: 100%; }
  .about .about-images-wrapper .image-offset { transform: translate(12px,12px) scale(.97); }
  .about .about-images-wrapper.is-swapped .image-main { transform: translate(12px,12px) scale(.97); }
}

/* keep badge above images */
.about .about-images-wrapper .experience-badge {
  position: absolute;
  z-index: 8;
  right: -12px;
  top: 14px;
  pointer-events: none;
  transform: translateX(0);
}
.about .about-images-wrapper .image-main,
.about .about-images-wrapper .image-offset {
  /* ensure images are not covered by badge */
  padding-right: 0;
}
.about .about-images-wrapper .experience-badge .years { display:block; }
.about .about-images-wrapper .shape-pattern { position: relative; z-index: 1; }

/* Remove any shine/overlay on About images */
.about .about-images-wrapper::before,
.about .about-images-wrapper::after,
.about .about-images-wrapper .image-main::before,
.about .about-images-wrapper .image-offset::before {
  content: none !important;
  display: none !important;
}

/* Modal logo sizing for home (kept small to avoid disruption) */
.modal .modal-logo {
  max-height: 60px;
  width: auto;
  display: block;
}

/* Tweak hero stats spacing for home */
.hero .stats-grid .stat-card {
  padding: 18px 16px;
}

/* Contact map styling */
.contact-map .ratio iframe {
  border-radius: 10px;
  box-shadow: 0 14px 60px rgba(7,18,33,0.18);
  border: 1px solid rgba(7,18,33,0.06);
}
.contact-methods-detailed .method-item { display:flex; gap:10px; margin-bottom:10px; align-items:flex-start; }
.contact-methods-detailed .method-icon { font-size:18px; color:var(--nexus-primary); margin-top:4px; }
.contact-methods-detailed .method-label { font-weight:700; color:var(--heading-color); display:block; }
.contact-methods-detailed .method-text { color:#4b6578; font-size:14px; display:block; margin-top:4px; }

/* Hero light sweep (vertical) */
/* Hero diagonal shine (full-bleed, smooth) */
.section-bg-hero { position: relative; overflow: hidden; }
.section-bg-hero .container { position: relative; z-index: 12; } /* ensure content stays above background */
.section-bg-hero::before {
  /* full-bleed diagonal shine that crosses entire hero smoothly */
  content: "";
  position: absolute;
  left: -60%;
  top: -60%;
  width: 220%;
  height: 220%;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(135deg,
    rgba(255,255,255,0.00) 0%,
    rgba(255,255,255,0.10) 35%,
    rgba(255,255,255,0.26) 50%,
    rgba(255,255,255,0.10) 65%,
    rgba(255,255,255,0.00) 100%);
  background-size: 200% 200%;
  mix-blend-mode: screen;
  opacity: 0.95;
  filter: blur(14px);
  transform: rotate(-18deg);
  animation: hero-shine-bg 4.2s linear infinite;
}
@keyframes hero-shine-bg {
  0% { transform: translate(-80%,-80%) rotate(-18deg); opacity: 0; }
  10% { opacity: 0.45; }
  50% { transform: translate(60%,60%) rotate(-18deg); opacity: 0.95; }
  90% { opacity: 0.45; }
  100% { transform: translate(60%,60%) rotate(-18deg); opacity: 0; }
}

/* Image frame subtle border shine (diagonal) */
.hero-image-frame { position: relative; z-index: 6; overflow: visible; }
.hero-image-frame::before {
  /* subtle border highlight only (no sweeping rectangle) */
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.12), rgba(255,255,255,0.04));
  filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 360ms ease;
  z-index: 5;
}

/* Keep shine on mobile, but softer to prevent layout issues */
@media (max-width: 768px) {
  .section-bg-hero::before {
    opacity: 0.42;
    filter: blur(10px);
    animation-duration: 6.6s;
  }
  .hero-image-frame::before {
    opacity: 0.18;
  }
}


/* Section background variants (attractive, theme-matching) */
.section-bg-hero {
  position: relative;
  background-image:
    linear-gradient(180deg, rgba(7,18,33,0.68), rgba(13,71,161,0.18)),
    url('../img/portfolio/portfolio12.jpeg');
  /* Responsive hero background (avoid zoom on large screens, avoid tiny on mobile) */
  background-size: cover;
  background-position: center;
  color: #fff;
  overflow: hidden !important; /* prevents extra right space from shine transforms */
}
.section-bg-hero .container { position: relative; z-index: 2; }
.section-bg-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient( circle at 10% 20%, rgba(204,85,0,0.06), transparent 12%),
              radial-gradient( circle at 85% 80%, rgba(13,71,161,0.06), transparent 14%);
  pointer-events: none;
}

/* Mobile: show more of the top area */
@media (max-width: 768px) {
  .section-bg-hero { background-position: center top; }
}

/* Extra safety: prevent horizontal scroll on Home */
body.nexus-index-page { overflow-x: hidden; }

/* Ensure hero text is readable on dark backgrounds */
.section-bg-hero .hero-headline,
.section-bg-hero .hero-headline a {
  color: #f5fbff !important;
  text-shadow: 0 8px 30px rgba(0,0,0,0.6);
}
.section-bg-hero .hero-text,
.section-bg-hero .nexus-tagline .tag-text {
  color: rgba(255,223,115,0.96) !important;
  text-shadow: 0 6px 18px rgba(0,0,0,0.35);
}
.section-bg-hero .nexus-tagline .tag-dot {
  background: #fcc200 !important;
  box-shadow: 0 0 0 4px rgba(252,194,0,0.20);
}
.section-bg-hero .hero-cta .cta-button,
.section-bg-hero .hero-ctas .nexus-btn,
.section-bg-hero .nexus-btn-primary {
  background: linear-gradient(90deg,#ff8c3a 0%, #ffd28a 100%);
  color: #071225;
  border: 0;
  box-shadow: 0 12px 30px rgba(13,71,161,0.12);
}
.section-bg-hero .hero-cta .cta-button i,
.section-bg-hero .hero-ctas .nexus-btn i {
  color: inherit;
}
.section-bg-hero .stats-grid .stat-card {
  background: rgba(255,255,255,0.06);
  color: #fff;
  border: none;
}
.section-bg-hero .stats-grid .stat-card .stat-value,
.section-bg-hero .stats-grid .stat-card .stat-title {
  color: #fff;
}

/* Stronger stats card styles when hero uses dark background */
.section-bg-hero .stats-grid {
  position: relative;
  z-index: 4;
}
.section-bg-hero .stats-grid .stat-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,249,255,0.96));
  color: #072443;
  border: 1px solid rgba(7,18,33,0.08);
  box-shadow: 0 14px 40px rgba(7,18,33,0.12);
}
.section-bg-hero .stats-grid .stat-card.stat-card-primary {
  background: linear-gradient(90deg, #0d47a1, #0077ff);
  color: #fff;
  border: 0;
}
.section-bg-hero .stats-grid .stat-card .stat-icon-wrap { color: rgba(13,71,161,0.95); }
.section-bg-hero .stats-grid .stat-card .stat-value { color: inherit; }
.section-bg-hero .stats-grid .stat-card .stat-title { color: rgba(7,18,33,0.7); }

/* Accent stat card (fourth) styling */
.stat-card-accent {
  background: linear-gradient(90deg, #ff7a00 0%, #ffb86b 100%);
  color: #071225;
  border: 0;
  box-shadow: 0 14px 40px rgba(255,122,0,0.12), 0 6px 18px rgba(7,18,33,0.06);
}
.stat-card-accent .stat-icon-wrap { color: rgba(255,255,255,0.95); }
.stat-card-accent .stat-value { color: #071225; font-weight:800; }
.stat-card-accent .stat-title { color: rgba(7,18,33,0.85); }

/* Ensure accent card stands out on dark hero */
.section-bg-hero .stat-card-accent {
  background: linear-gradient(90deg, #ff8c3a 0%, #ffd28a 100%);
  color: #071225;
  border: 0;
}

/* Stronger, high-specificity rules to override other styles */
.section-bg-hero .stat-card.stat-card-accent,
.stat-card.stat-card-accent {
  background: linear-gradient(90deg, #e6c3ab 0% , #c5a26a 100%) !important;
  color: #0441aa !important;
  border: 2px solid rgba(241, 53, 53, 0.12) !important;
  box-shadow: 0 18px 48px rgba(241, 150, 86, 0.12) !important;
}
.section-bg-hero .stat-card.stat-card-accent .stat-icon-wrap,
.stat-card.stat-card-accent .stat-icon-wrap {
  color: #fff !important;
}
.section-bg-hero .stat-card.stat-card-accent .stat-value,
.stat-card.stat-card-accent .stat-value {
  color: #071225 !important;
}
.section-bg-hero .stat-card.stat-card-accent .stat-title,
.stat-card.stat-card-accent .stat-title {
  color: rgba(7,18,33,0.9) !important;
}

/* Hero popup animation styles */
.hero-popup-init .hero-content,
.hero-popup-init .hero-image-frame,
.hero-popup-init .stats-grid,
.hero-popup-init .hero-cta {
  opacity: 0;
  transform: translateY(18px) scale(.98);
  transition: opacity 520ms cubic-bezier(.2,.9,.3,1), transform 560ms cubic-bezier(.2,.9,.3,1);
  will-change: opacity, transform;
}
.hero-popup-show .hero-content,
.hero-popup-show .hero-image-frame,
.hero-popup-show .stats-grid,
.hero-popup-show .hero-cta {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Stagger children - fallback using nth-child for CSS-only */
.hero-popup-show .hero-content > * { transition-delay: 80ms; }
.hero-popup-show .hero-content > *:nth-child(1) { transition-delay: 80ms; }
.hero-popup-show .hero-content > *:nth-child(2) { transition-delay: 160ms; }
.hero-popup-show .hero-content > *:nth-child(3) { transition-delay: 240ms; }
.hero-popup-show .hero-content > *:nth-child(4) { transition-delay: 320ms; }
.hero-popup-show .stats-grid .stat-card { transition-delay: 420ms; }
.hero-popup-show .stats-grid .stat-card:nth-child(1) { transition-delay: 420ms; }
.hero-popup-show .stats-grid .stat-card:nth-child(2) { transition-delay: 500ms; }
.hero-popup-show .stats-grid .stat-card:nth-child(3) { transition-delay: 580ms; }
.hero-popup-show .stats-grid .stat-card:nth-child(4) { transition-delay: 660ms; }

/* Make the stats grid more visible on patterned/dark backgrounds */
.stats-grid {
  display: flex;
  gap: 14px;
  justify-content: space-between;
  align-items: stretch;
  flex-wrap: wrap;
  margin: 0 -8px;
  z-index: 3;
  position: relative;
}
.stats-grid .stat-card {
  flex: 1 1 220px;
  min-width: 160px;
  padding: 18px 16px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(248,249,255,0.92));
  color: var(--heading-color, #0d47a1);
  box-shadow: 0 10px 30px rgba(7,18,33,0.06);
  border: 1px solid rgba(13,71,161,0.06);
  display: flex;
  gap: 12px;
  align-items: center;
}
.stats-grid .stat-card.stat-card-primary {
  background: linear-gradient(90deg, rgba(13,71,161,0.95), rgba(0,119,255,0.86));
  color: #fff;
}
.stats-grid .stat-card .stat-icon-wrap { font-size: 28px; opacity: 0.95; }
.stats-grid .stat-card .stat-info { display:block; }
.stats-grid .stat-card .stat-value { font-weight:700; font-size:20px; display:block; }
.stats-grid .stat-card .stat-title { font-size:13px; opacity:0.9; display:block; }

@media (max-width: 768px) {
  .stats-grid .stat-card { flex: 1 1 48%; }
}
@media (max-width: 480px) {
  .stats-grid .stat-card { flex: 1 1 100%; }
}

.section-bg-about {
  position: relative;
  background-image:
    linear-gradient(120deg, rgba(248,249,255,0.92), rgba(230,238,252,0.96)),
    radial-gradient(circle at 20% 20%, rgba(13,71,161,0.06), transparent 30%),
    radial-gradient(circle at 80% 60%, rgba(204,85,0,0.05), transparent 28%),
    repeating-linear-gradient(45deg, rgba(13,71,161,0.015) 0 10px, transparent 10px 20px);
  background-size: auto, 1400px;
  background-position: center, right bottom;
  color: #07305a;
}
.section-bg-about .about-images-wrapper { box-shadow: 0 18px 50px rgba(7,18,33,0.06); border-radius: 10px; overflow: hidden; }

/* About section: subtle dotted texture (very light) */
.section-bg-about {
  overflow: hidden;
}
.section-bg-about::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.28;
  background-image:
    radial-gradient(circle, rgba(13,71,161,0.10) 1px, transparent 1.6px);
  background-size: 18px 18px;
  background-position: 0 0;
  mix-blend-mode: multiply;
}
.section-bg-about .container { position: relative; z-index: 2; }

.section-bg-products {
  position: relative;
  background: linear-gradient(165deg, rgba(13,71,161,0.03), rgba(204,85,0,0.02));
}
.section-bg-products .merged-bg-pattern { opacity: 0.06; filter: hue-rotate(-6deg) saturate(110%); }

.section-bg-why {
  position: relative;
  background-image:
    linear-gradient(90deg, rgba(13,71,161,0.04), rgba(255,255,255,0.98)),
    repeating-linear-gradient(45deg, rgba(13,71,161,0.01) 0 10px, transparent 10px 20px);
  background-size: cover;
  color: #072443;
}
.section-bg-why .features-grid .feature-box { background: rgba(255,255,255,0.9); box-shadow: 0 10px 30px rgba(7,18,33,0.04); }

.section-bg-testimonials {
  position: relative;
  background: linear-gradient(180deg, rgba(7,18,33,0.06), rgba(13,71,161,0.02));
}
.section-bg-testimonials .testimonial-card { background: rgba(255,255,255,0.98); }

.section-bg-contact {
  position: relative;
  /* Keep it simple: subtle wash + very light hatch (no circles) */
  background-image:
    linear-gradient(180deg, rgba(250,251,255,1), rgba(240,246,255,1)),
    repeating-linear-gradient(135deg, rgba(7,18,33,0.012) 0 10px, transparent 10px 20px);
  background-repeat: no-repeat, repeat;
  background-size: cover, auto;
  background-position: center, center;
  color: #072443;
}
.section-bg-contact .form-card { background: rgba(255,255,255,0.98); box-shadow: 0 12px 40px rgba(7,18,33,0.06); border-radius: 12px; padding: 22px; }

/* Contact section: crisp/compact sizing + responsive */
.section-bg-contact.contact .info-panel {
  padding: 28px;
  border-radius: 18px;
}
.section-bg-contact.contact .info-panel .panel-header {
  margin-bottom: 22px;
}
.section-bg-contact.contact .info-panel .panel-header .section-badge {
  padding: 6px 12px;
  font-size: 12px;
  letter-spacing: 0.8px;
  margin-bottom: 16px;
}
.section-bg-contact.contact .info-panel .panel-header h3 {
  font-size: 26px;
  margin-bottom: 10px;
}
.section-bg-contact.contact .info-panel .panel-header p {
  font-size: 14px;
  line-height: 1.6;
}
.section-bg-contact.contact .info-panel .stats-strip {
  gap: 10px;
  margin: 18px 0 14px;
}
.section-bg-contact.contact .info-panel .stats-strip .stat-item {
  padding: 10px 10px;
  border-radius: 14px;
}
.section-bg-contact.contact .info-panel .stats-strip .stat-item .stat-number {
  font-size: 18px;
}
.section-bg-contact.contact .info-panel .stats-strip .stat-item .stat-text {
  font-size: 12px;
}
.section-bg-contact.contact .info-panel .social-connect>span { font-size: 12px; }
.section-bg-contact.contact .info-panel .social-connect .social-icons a {
  width: 38px;
  height: 38px;
}

.section-bg-contact.contact .form-card {
  padding: 18px;
  border-radius: 16px;
}
.section-bg-contact.contact .form-card .form-card-header {
  padding-bottom: 12px;
  margin-bottom: 14px;
}
.section-bg-contact.contact .form-card .form-card-header .header-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
}
.section-bg-contact.contact .form-card .form-card-header .header-icon i { font-size: 18px; }
.section-bg-contact.contact .form-card .form-card-header .header-text h4 {
  font-size: 18px;
  margin-bottom: 6px;
}
.section-bg-contact.contact .form-card .form-card-header .header-text p {
  font-size: 13px;
  line-height: 1.5;
}
.section-bg-contact.contact .form-card .input-group-custom label {
  font-size: 12px;
  margin-bottom: 8px;
}
.section-bg-contact.contact .form-card .input-wrapper {
  border-radius: 12px;
}
.section-bg-contact.contact .form-card .input-wrapper i {
  font-size: 16px;
  left: 14px;
}
.section-bg-contact.contact .form-card .input-wrapper input,
.section-bg-contact.contact .form-card .input-wrapper textarea {
  padding: 12px 14px 12px 44px;
  font-size: 14px;
}
.section-bg-contact.contact .form-card .input-wrapper textarea { min-height: 130px; }
.section-bg-contact.contact .form-card .form-actions .btn-submit {
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
}
.section-bg-contact.contact .form-card .form-actions .secure-note {
  margin-top: 10px;
  font-size: 12px;
}

@media (max-width: 768px) {
  .section-bg-contact.contact .info-panel { padding: 20px; border-radius: 16px; }
  .section-bg-contact.contact .info-panel .panel-header h3 { font-size: 22px; }
  .section-bg-contact.contact .form-card { padding: 16px; }
  .section-bg-contact.contact .form-card .form-card-header { gap: 12px; }
  .section-bg-contact.contact .form-card .input-wrapper input,
  .section-bg-contact.contact .form-card .input-wrapper textarea { font-size: 13.5px; }
}

@media (max-width: 480px) {
  .section-bg-contact.contact .info-panel .stats-strip .stat-item { padding: 9px 9px; }
  .section-bg-contact.contact .form-card .input-wrapper textarea { min-height: 120px; }
}

/* Contact section: premium “best fit” design (Home only) */
.section-bg-contact.contact {
  overflow: hidden;
}
.section-bg-contact.contact::before,
.section-bg-contact.contact::after {
  /* IMPORTANT: kill global .contact circles from main.css */
  content: none !important;
  display: none !important;
  background: none !important;
  width: 0 !important;
  height: 0 !important;
}
.section-bg-contact.contact .container { position: relative; z-index: 1; }

.section-bg-contact.contact .contact-side-card {
  background: linear-gradient(145deg, rgba(13,71,161,0.96), rgba(7,18,33,0.92));
  color: #fff;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 18px 60px rgba(7,18,33,0.20);
  position: relative;
  overflow: hidden;
  border-radius: 12px; /* less curvy */
}
.section-bg-contact.contact .contact-side-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.040) 0 9px, transparent 9px 18px),
    linear-gradient(180deg, rgba(255,255,255,0.06), transparent 35%, rgba(0,0,0,0.10));
  opacity: 0.45;
  pointer-events: none;
}
.section-bg-contact.contact .contact-side-card * { position: relative; z-index: 1; }

.section-bg-contact.contact .contact-side-card .panel-header h3 { color: #fff; }
.section-bg-contact.contact .contact-side-card .panel-header p { color: rgba(255,255,255,0.84); }
.section-bg-contact.contact .contact-side-card .section-badge {
  background: rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.95);
}

/* Left info-panel: official contact details layout */
.section-bg-contact.contact .contact-details {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 16px;
}
.section-bg-contact.contact .contact-details .detail-card {
  padding: 14px 14px;
  border-radius: 10px; /* less curvy */
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.07);
}
.section-bg-contact.contact .contact-details .detail-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 12px;
  color: rgba(255,255,255,0.92);
}
.section-bg-contact.contact .contact-details .detail-title i {
  width: 30px;
  height: 30px;
  border-radius: 6px; /* less curvy */
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 15px;
  color: #ffd28a;
}
.section-bg-contact.contact .contact-details .detail-body {
  color: rgba(255,255,255,0.88);
  font-size: 13.5px;
  line-height: 1.55;
}
.section-bg-contact.contact .contact-details .detail-body strong {
  color: #fff;
  font-weight: 900;
  letter-spacing: 0.2px;
}

.section-bg-contact.contact .contact-details .kv {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px dashed rgba(255,255,255,0.14);
}
.section-bg-contact.contact .contact-details .kv:first-of-type { border-top: none; padding-top: 0; }
.section-bg-contact.contact .contact-details .kv .k {
  color: rgba(255,255,255,0.72);
  font-size: 12.5px;
  font-weight: 800;
}
.section-bg-contact.contact .contact-details .kv .v {
  color: rgba(255,255,255,0.92);
  font-size: 13.5px;
  font-weight: 800;
}

.section-bg-contact.contact .contact-details .phone-pill-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.section-bg-contact.contact .contact-details .phone-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border-radius: 8px; /* less curvy */
  text-decoration: none;
  color: #fff;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.10);
  font-size: 12.5px;
  font-weight: 900;
  transition: transform 160ms ease, background 160ms ease;
}
.section-bg-contact.contact .contact-details .phone-pill.primary {
  background: rgba(255,210,138,0.16);
  border-color: rgba(255,210,138,0.26);
}
.section-bg-contact.contact .contact-details .phone-pill:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,0.14);
}
.section-bg-contact.contact .contact-details .link-inline {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.26);
}
.section-bg-contact.contact .contact-details .link-inline:hover {
  border-bottom-color: rgba(255,255,255,0.60);
}

/* Home quick-contact cards (without form) */
.section-bg-contact.contact .detail-card {
  padding: 14px 14px;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.07);
}
.section-bg-contact.contact .detail-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 12px;
  color: rgba(255,255,255,0.92);
}
.section-bg-contact.contact .detail-title i {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 15px;
  color: #ffd28a;
}
.section-bg-contact.contact .detail-body {
  color: rgba(255,255,255,0.88);
  font-size: 13.5px;
  line-height: 1.55;
}
.section-bg-contact.contact .detail-body .btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
}

/* Professional quick-contact UI (home) */
.section-bg-contact.contact .quick-contact-grid .quick-contact-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(252,194,0,0.20);
  background:
    linear-gradient(165deg, rgba(10,24,56,0.90), rgba(28,35,96,0.82)),
    radial-gradient(circle at 90% 0%, rgba(252,194,0,0.20), transparent 35%);
  box-shadow: 0 14px 36px rgba(0,0,0,0.20);
}
.section-bg-contact.contact .quick-contact-grid .quick-contact-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #fcc200, #ff9f43);
  opacity: 0.95;
}
.section-bg-contact.contact .quick-contact-grid .quick-contact-card .detail-title {
  text-transform: none;
  font-size: 14px;
  letter-spacing: 0.2px;
}
.section-bg-contact.contact .quick-contact-grid .quick-contact-card .detail-title i {
  background: rgba(252,194,0,0.16);
  border-color: rgba(252,194,0,0.36);
  color: #fcc200;
}
.section-bg-contact.contact .quick-contact-copy {
  color: rgba(255,255,255,0.86);
  font-size: 13px;
  margin-bottom: 10px;
  min-height: 38px;
}
.section-bg-contact.contact .quick-contact-grid .quick-contact-card .phone-pill,
.section-bg-contact.contact .quick-contact-grid .quick-contact-card .link-inline {
  color: #ffd28a !important;
}
.section-bg-contact.contact .quick-contact-btn {
  background: linear-gradient(90deg, #2a237e, #a53022);
  border: 1px solid rgba(252,194,0,0.35);
  color: #fff;
  font-weight: 700;
  border-radius: 10px;
  padding: 10px 14px;
}
.section-bg-contact.contact .quick-contact-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.section-bg-contact.contact .quick-contact-grid .quick-contact-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(0,0,0,0.26);
}

.section-bg-contact.contact .contact-side-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 18px;
}
.section-bg-contact.contact .contact-side-chips .chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.08);
  color: #fff;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease;
  font-size: 13px;
  font-weight: 600;
}
.section-bg-contact.contact .contact-side-chips .chip i { font-size: 16px; opacity: 0.95; }
.section-bg-contact.contact .contact-side-chips .chip:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.14);
}

.section-bg-contact.contact .contact-side-points {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 14px;
}
.section-bg-contact.contact .contact-side-points .point {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.92);
  font-size: 13px;
}
.section-bg-contact.contact .contact-side-points .point i {
  color: #ffd28a;
  font-size: 16px;
  margin-top: 2px;
}

.section-bg-contact.contact .stats-strip.compact {
  margin-top: 10px;
  margin-bottom: 12px;
}
.section-bg-contact.contact .stats-strip.compact .stat-item {
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.06);
}
.section-bg-contact.contact .stats-strip.compact .stat-number { color: #fff; }
.section-bg-contact.contact .stats-strip.compact .stat-text { color: rgba(255,255,255,0.78); }

.section-bg-contact.contact .contact-side-card .social-connect>span { color: rgba(255,255,255,0.85); }
.section-bg-contact.contact .contact-side-card .social-icons a {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.08);
}
.section-bg-contact.contact .contact-side-card .social-icons a i { color: #fff; }
.section-bg-contact.contact .contact-side-card .social-icons a:hover { background: rgba(255,255,255,0.16); }

/* Form card: gradient border + crisp inputs */
.section-bg-contact.contact .contact-form-card {
  position: relative;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(7,18,33,0.06);
  box-shadow: 0 18px 60px rgba(7,18,33,0.10);
}
.section-bg-contact.contact .contact-form-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(13,71,161,0.24), rgba(204,85,0,0.18));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}
.section-bg-contact.contact .contact-form-card .btn-submit {
  background: linear-gradient(90deg, #0d47a1, #0077ff);
}
.section-bg-contact.contact .contact-form-card .btn-submit:hover {
  filter: brightness(1.05);
}

@media (max-width: 768px) {
  .section-bg-contact.contact .contact-details .kv { grid-template-columns: 1fr; }
  .section-bg-contact.contact .contact-details .kv .k { margin-bottom: -2px; }
}

/* Improve contrast on dark/patterned sections */
.section-bg-hero h1,
.section-bg-hero h2,
.section-bg-hero h3,
.section-bg-hero h4,
.section-bg-hero .merged-title,
.section-bg-hero .merged-desc,
.section-bg-hero .variant-sub,
.section-bg-hero .variant-title {
  color: #ffffff !important;
}
.section-bg-hero .hero-text {
  color: rgba(255,230,140,0.96) !important;
}
.section-bg-hero a { color: #fff !important; }

/* Make product/service cards pop on darker backgrounds */
.section-bg-products .merged-product-card,
.section-bg-products .merged-service-card,
.section-bg-testimonials .testimonial-card,
.section-bg-about .about-content,
.section-bg-why .sidebar-content {
  background: rgba(255,255,255,0.98);
  color: #072443;
  border: 1px solid rgba(7,18,33,0.06);
  box-shadow: 0 12px 30px rgba(7,18,33,0.06);
  border-radius: 10px;
  padding: 14px;
}

/* Ensure headings inside these cards are prominent */
.section-bg-products .merged-product-card h4,
.section-bg-why .feature-box h4,
.section-bg-testimonials .testimonial-card .testimonial-text,
.section-bg-about .about-content h2 {
  color: #072443;
}

/* Contact form inputs on patterned background */
.section-bg-contact .input-wrapper input,
.section-bg-contact .input-wrapper textarea,
.section-bg-contact .input-wrapper .form-control {
  background: #fff;
  color: #072443;
  border: 1px solid rgba(7,18,33,0.06);
  border-radius: 8px;
  padding: 10px 12px;
}
.section-bg-contact .input-wrapper input::placeholder,
.section-bg-contact .input-wrapper textarea::placeholder {
  color: #7a8a98;
}

/* Buttons contrast on darker sections */
.section-bg-products .merged-btn,
.section-bg-why .btn-main,
.section-bg-why .btn-outline,
.section-bg-testimonials .nexus-btn {
  color: #071225;
}
.section-bg-products .merged-btn-primary {
  background: linear-gradient(90deg,#0d47a1,#0077ff);
  color: #fff;
}

/* Products: move "View All Products" to bottom on mobile (Home blade only) */
.products-block .view-all-mobile-wrap {
  display: none;
  margin-top: 16px;
  justify-content: center;
}
@media (max-width: 767.98px) {
  .products-block .merged-btn-view-all--top { display: none !important; }
  .products-block .view-all-mobile-wrap { display: flex; }
  .products-block .view-all-mobile-wrap .merged-btn-view-all--bottom {
    width: 100%;
    max-width: 340px;
    justify-content: center;
  }
}

/* Home featured product image slider */
.merged-product-card-image {
  position: relative;
  overflow: hidden;
}
.merged-product-slider {
  position: relative;
  width: 100%;
  height: 100%;
}
.merged-product-track {
  position: relative;
  width: 100%;
  height: 100%;
}
.merged-product-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 320ms ease;
}
.merged-product-slide.is-active {
  opacity: 1;
  z-index: 1;
}
.merged-product-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.merged-product-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255,255,255,0.45);
  background: rgba(7,18,33,0.40);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

/* Home testimonials: uniform card height + expandable long reviews */
.testimonials .testimonial-top-cta {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 14px;
}

.testimonials .testimonials-carousel .swiper-slide {
  height: auto;
  display: flex;
}

.testimonials .testimonial-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 430px;
}

.testimonials .testimonial-card .testimonial-text[data-review-text] {
  --review-lines: 6;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: var(--review-lines);
  line-clamp: var(--review-lines);
  overflow: hidden;
  min-height: calc(1.75em * var(--review-lines));
  margin-bottom: 12px;
}

.testimonials .testimonial-card .testimonial-text[data-review-text].is-expanded {
  -webkit-line-clamp: unset;
  line-clamp: unset;
  overflow: visible;
  min-height: 0;
}

.testimonials .testimonial-card .testimonial-toggle-btn {
  align-self: flex-start;
  border: 0;
  background: transparent;
  color: var(--accent-color);
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  padding: 0;
  margin-bottom: 16px;
  cursor: pointer;
}

.testimonials .testimonial-card .testimonial-toggle-btn:hover {
  color: var(--nexus-primary);
  text-decoration: underline;
}

.testimonials .testimonial-card .author-info {
  margin-top: auto;
  gap: 0;
}

.testimonials .testimonial-google-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

@media (max-width: 991.98px) {
  .testimonials .testimonial-top-cta {
    justify-content: flex-start;
    margin-bottom: 10px;
  }

  .testimonials .testimonial-card {
    min-height: 390px;
  }
}
.merged-product-prev { left: 8px; }
.merged-product-next { right: 8px; }
.merged-product-nav:hover { background: rgba(7,18,33,0.62); }

/* About section: dynamic videos gallery */
.about-video-gallery {
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: 20px;
  padding: 18px;
  background: linear-gradient(145deg, rgba(9, 33, 61, 0.58), rgba(13, 71, 161, 0.26));
  box-shadow: 0 16px 44px rgba(3, 16, 34, 0.28);
}
.about-video-wrapper .about-video-frame {
  max-width: 100%;
}
.about-video-gallery-track {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.about-video-card {
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255,255,255,0.98);
  border: 1px solid rgba(13,71,161,0.12);
  box-shadow: 0 8px 22px rgba(10,38,71,0.12);
  transition: transform .25s ease, box-shadow .25s ease;
}
.about-video-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(10,38,71,0.2);
}
.about-video-card-featured {
  grid-row: 1 / span 2;
  grid-column: 1;
}
.about-video-card-media .ratio iframe,
.about-video-card-media .ratio video {
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  display: block;
  background: #000;
}
.about-video-gallery-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
}
.about-video-nav {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.55);
  background: rgba(13,71,161,0.9);
  color: #fff;
}
.about-video-nav:disabled { opacity: 0.45; }
.about-video-dots { display: flex; gap: 6px; }
.about-video-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  background: rgba(255,255,255,0.48);
}
.about-video-dot.is-active { background: #fff; }

@media (max-width: 1199.98px) {
  .about-video-gallery-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
  }
  .about-video-card-featured {
    grid-column: 1 / -1;
    grid-row: auto;
  }
}
@media (max-width: 767.98px) {
  .about-video-gallery-track {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .about-video-card-featured {
    grid-column: auto;
    grid-row: auto;
  }
  .about-video-gallery { padding: 10px; }
}
