/* ══════════════════════════════════════════════════════════════
   Delta Efficiency — 3D & Premium Design Layer v4.0
   Cinematic effects · Depth · Motion · Immersion
   ══════════════════════════════════════════════════════════════ */

/* ── 3D CARD TILT EFFECT ──────────────────────────────────────── */
.card-3d {
  transform-style: preserve-3d;
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1),
              box-shadow 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  will-change: transform;
  cursor: default;
}
.card-3d:hover {
  transform: perspective(1000px) rotateX(4deg) rotateY(-4deg) translateZ(12px);
  box-shadow: 20px 20px 60px rgba(0,0,0,0.15), -4px -4px 20px rgba(255,255,255,0.05);
}
.card-3d-inner {
  position: relative;
  transform-style: preserve-3d;
}
.card-3d-shine {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%, rgba(255,255,255,0.05) 100%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  z-index: 1;
}
.card-3d:hover .card-3d-shine { opacity: 1; }

/* ── FLOATING 3D ELEMENTS ─────────────────────────────────────── */
@keyframes float3d {
  0%   { transform: translateY(0px) rotateX(0deg) rotateZ(0deg); }
  33%  { transform: translateY(-14px) rotateX(5deg) rotateZ(1deg); }
  66%  { transform: translateY(-7px) rotateX(-3deg) rotateZ(-1deg); }
  100% { transform: translateY(0px) rotateX(0deg) rotateZ(0deg); }
}
@keyframes floatSlow {
  0%,100% { transform: translateY(0) scale(1); }
  50%     { transform: translateY(-20px) scale(1.02); }
}
@keyframes orbit {
  from { transform: rotate(0deg) translateX(80px) rotate(0deg); }
  to   { transform: rotate(360deg) translateX(80px) rotate(-360deg); }
}
@keyframes morphBlob {
  0%,100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  25%     { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
  50%     { border-radius: 50% 60% 30% 60% / 30% 60% 70% 40%; }
  75%     { border-radius: 60% 40% 60% 30% / 70% 30% 50% 60%; }
}
@keyframes shimmerSlide {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes rotateGlow {
  0%   { filter: hue-rotate(0deg) brightness(1); }
  50%  { filter: hue-rotate(30deg) brightness(1.1); }
  100% { filter: hue-rotate(0deg) brightness(1); }
}
@keyframes counterUp {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
@keyframes glowPulse {
  0%,100% { box-shadow: 0 0 20px rgba(192,57,43,0.3), 0 0 40px rgba(192,57,43,0.1); }
  50%     { box-shadow: 0 0 40px rgba(192,57,43,0.6), 0 0 80px rgba(192,57,43,0.2); }
}
@keyframes borderFlow {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ── PREMIUM GLASS MORPHISM ───────────────────────────────────── */
.glass {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
}
.glass-light {
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 20px;
}
.glass-dark {
  background: rgba(13,17,23,0.8);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
}

/* ── GRADIENT TEXT ─────────────────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, #ff6b6b, #c0392b, #ff8c00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  /* Safety: if bg-clip not supported, show red */
  color: #ff6b6b;
}
.gradient-text-green {
  background: linear-gradient(135deg, #4ade80, #22c55e, #0f6e56);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: #4ade80;
}
.gradient-text-blue {
  background: linear-gradient(135deg, #60a5fa, #3b82f6, #1d4ed8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: #60a5fa;
}
/* On dark backgrounds, gradient headings need to be bright/light */
.de-section-dark .gradient-text,
.section-img-bg .gradient-text,
.de-final-cta .gradient-text {
  background: linear-gradient(135deg, #ff8080, #ff6b6b, #fca5a5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: #ff8080;
}
/* Hero headline accent spans always bright */
.de-hero-headline .hl-accent {
  background: linear-gradient(135deg, #ff8080, #ef4444) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}
.de-hero-headline .hl-green {
  background: linear-gradient(135deg, #4ade80, #22c55e) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}
/* Ensure .gradient-text is never invisible — add text-shadow fallback */
.gradient-text { text-shadow: none !important; }
.shimmer-text {
  background: linear-gradient(90deg,
    #ffffff 0%, #ffffff 40%,
    #ffd700 50%,
    #ffffff 60%, #ffffff 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmerSlide 3s linear infinite;
  color: #ffffff;
}

/* ── 3D PERSPECTIVE HERO ──────────────────────────────────────── */
.hero-3d-scene {
  perspective: 1200px;
  perspective-origin: 50% 40%;
}
.hero-3d-plane {
  transform-style: preserve-3d;
}

/* ── NEON GLOW EFFECTS ─────────────────────────────────────────── */
.neon-red    { box-shadow: 0 0 20px rgba(192,57,43,0.5), 0 0 60px rgba(192,57,43,0.2); }
.neon-green  { box-shadow: 0 0 20px rgba(74,222,128,0.5), 0 0 60px rgba(74,222,128,0.2); }
.neon-blue   { box-shadow: 0 0 20px rgba(59,130,246,0.5), 0 0 60px rgba(59,130,246,0.2); }
.neon-border {
  animation: glowPulse 3s ease-in-out infinite;
}

/* ── ANIMATED BORDER GRADIENT ────────────────────────────────── */
.border-gradient {
  position: relative;
  z-index: 0;
}
.border-gradient::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(
    270deg,
    #c0392b, #0f6e56, #3b82f6, #c0392b
  );
  background-size: 400% 400%;
  animation: borderFlow 4s ease infinite;
  z-index: -1;
}

/* ── DEPTH PARALLAX LAYERS ───────────────────────────────────── */
.parallax-container { position: relative; overflow: hidden; }
.parallax-bg { position: absolute; inset: -20%; will-change: transform; }
.depth-1 { transform: translateZ(-100px) scale(1.1); }
.depth-2 { transform: translateZ(-50px) scale(1.05); }
.depth-3 { transform: translateZ(0px); }

/* ── NEUMORPHISM CARDS ──────────────────────────────────────── */
.neumorph {
  background: #f0f2f5;
  box-shadow: 8px 8px 20px #c8cace, -8px -8px 20px #ffffff;
  border-radius: 16px;
  border: none;
}
.neumorph:hover {
  box-shadow: 12px 12px 30px #c8cace, -12px -12px 30px #ffffff;
}
.neumorph-dark {
  background: #1e2435;
  box-shadow: 8px 8px 20px #151a27, -8px -8px 20px #272e43;
  border-radius: 16px;
}

/* ── BLOB DECORATIONS ───────────────────────────────────────── */
.blob-decoration {
  position: absolute;
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  animation: morphBlob 8s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
.blob-red   { background: radial-gradient(ellipse, rgba(192,57,43,0.18) 0%, transparent 70%); }
.blob-green { background: radial-gradient(ellipse, rgba(15,110,86,0.18) 0%, transparent 70%); }
.blob-blue  { background: radial-gradient(ellipse, rgba(59,130,246,0.15) 0%, transparent 70%); }

/* ── IMAGE WITH 3D HOVER ─────────────────────────────────────── */
.img-3d {
  border-radius: 20px;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1),
              box-shadow 0.5s ease;
}
.img-3d:hover {
  transform: perspective(800px) rotateY(-8deg) rotateX(4deg) translateZ(20px);
  box-shadow: 30px 30px 80px rgba(0,0,0,0.25), -5px -5px 20px rgba(255,255,255,0.1);
}
.img-3d img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.img-3d:hover img { transform: scale(1.04); }

/* ── FLOATING IMAGE CARD ─────────────────────────────────────── */
.floating-card {
  animation: floatSlow 6s ease-in-out infinite;
  transform-style: preserve-3d;
}
.floating-card-alt {
  animation: floatSlow 6s ease-in-out infinite 1.5s;
}

/* ── SECTION IMAGE HERO ─────────────────────────────────────── */
.img-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(13,17,23,0.92) 0%,
    rgba(26,26,46,0.82) 50%,
    rgba(15,42,63,0.65) 100%
  );
  z-index: 1;
}
.img-hero-overlay-light {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(26,26,46,0.95) 0%,
    rgba(26,26,46,0.7) 50%,
    rgba(26,26,46,0.1) 100%
  );
  z-index: 1;
}

/* ── PARALLAX IMAGE SPLIT ────────────────────────────────────── */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
  overflow: hidden;
}
@media(max-width:900px) { .split-section { grid-template-columns:1fr; } }
.split-img-panel {
  position: relative;
  overflow: hidden;
}
.split-img-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}
.split-img-panel:hover img { transform: scale(1.06); }
.split-content-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3.5rem;
}
@media(max-width:768px) { .split-content-panel { padding: 2rem; } }

/* ── IMAGE GALLERY MOSAIC ────────────────────────────────────── */
.img-mosaic {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 200px 200px;
  gap: 12px;
  border-radius: 20px;
  overflow: hidden;
}
.img-mosaic-item {
  overflow: hidden;
  position: relative;
}
.img-mosaic-item:first-child {
  grid-row: 1 / 3;
}
.img-mosaic-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.img-mosaic-item:hover img { transform: scale(1.08); }

/* ── FLOATING STATS BADGES ───────────────────────────────────── */
.stat-badge-3d {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 16px;
  padding: 1rem 1.5rem;
  display: inline-flex;
  flex-direction: column;
  animation: floatSlow 5s ease-in-out infinite;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.stat-badge-3d .num {
  font-family: 'Calistoga', Georgia, serif;
  font-size: 1.8rem;
  color: #4ade80;
  line-height: 1;
}
.stat-badge-3d .lbl {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.7);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── TRUCK/VEHICLE IMAGE CARDS ────────────────────────────────── */
.vehicle-card {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  height: 280px;
  cursor: pointer;
}
.vehicle-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.23,1,0.32,1);
}
.vehicle-card:hover img { transform: scale(1.08); }
.vehicle-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,17,23,0.9) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  opacity: 0.85;
  transition: opacity 0.3s;
}
.vehicle-card:hover .vehicle-card-overlay { opacity: 1; }

/* ── MASONRY CARD GRID ───────────────────────────────────────── */
.masonry-grid {
  columns: 3 300px;
  column-gap: 1.5rem;
}
.masonry-item {
  break-inside: avoid;
  margin-bottom: 1.5rem;
}

/* ── SCROLL-TRIGGERED COUNTER ───────────────────────────────── */
.counter-3d {
  display: inline-block;
  animation: counterUp 0.6s ease both;
}

/* ── HOVER LIFT CARDS ─────────────────────────────────────────── */
.lift-card {
  transition: transform 0.35s cubic-bezier(0.23,1,0.32,1),
              box-shadow 0.35s ease;
}
.lift-card:hover {
  transform: translateY(-12px) scale(1.01);
  box-shadow: 0 30px 80px rgba(0,0,0,0.15);
}

/* ── KINETIC TYPOGRAPHY ──────────────────────────────────────── */
.word-reveal span {
  display: inline-block;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.23,1,0.32,1);
}
.word-reveal.visible span { opacity: 1; transform: translateY(0); }

/* ── IMAGE BACKGROUND SECTIONS ───────────────────────────────── */
.section-img-bg {
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  overflow: hidden;
}
@media(max-width:768px) {
  .section-img-bg { background-attachment: scroll; }
}
.section-img-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(8,10,16,0.75) 0%,
    rgba(10,13,20,0.92) 50%,
    rgba(10,13,20,0.88) 100%
  );
  z-index: 0;
}
.section-img-bg > .container {
  position: relative;
  z-index: 1;
}

/* ── VIDEO BG PATTERN ──────────────────────────────────────────── */
.mesh-gradient-bg {
  background:
    radial-gradient(ellipse 80% 50% at 20% 40%, rgba(192,57,43,0.15) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 60%, rgba(15,110,86,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 70% at 50% 100%, rgba(59,130,246,0.08) 0%, transparent 50%),
    #0d1117;
}

/* ── DOTTED GRID PATTERN ─────────────────────────────────────── */
.dot-grid-overlay {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1.5px, transparent 1.5px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}
.line-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  z-index: 0;
}

/* ── MARQUEE / IMAGE STRIP ───────────────────────────────────── */
.marquee-track {
  display: flex;
  gap: 1.5rem;
  animation: marqueeScroll 30s linear infinite;
  will-change: transform;
}
.marquee-track:hover { animation-play-state: paused; }
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee-img-item {
  flex-shrink: 0;
  width: 280px;
  height: 180px;
  border-radius: 16px;
  overflow: hidden;
}
.marquee-img-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── TIMELINE 3D ─────────────────────────────────────────────── */
.timeline-3d {
  position: relative;
  padding-left: 3rem;
}
.timeline-3d::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #c0392b, #0f6e56);
  border-radius: 3px;
}
.timeline-item-3d {
  position: relative;
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.timeline-item-3d.visible {
  opacity: 1;
  transform: translateX(0);
}
.timeline-dot-3d {
  position: absolute;
  left: -2.55rem;
  top: 6px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c0392b, #1a1a2e);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 900;
  box-shadow: 0 0 0 6px rgba(192,57,43,0.12), 0 4px 12px rgba(192,57,43,0.3);
  z-index: 1;
}

/* ── INDUSTRY IMAGE CARDS ───────────────────────────────────── */
.industry-img-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  height: 320px;
  cursor: pointer;
  text-decoration: none;
  display: block;
}
.industry-img-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.23,1,0.32,1);
}
.industry-img-card:hover img { transform: scale(1.1); }
.industry-img-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,17,23,0.95) 0%, rgba(13,17,23,0.3) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.75rem;
  transition: background 0.3s;
}
.industry-img-card:hover .industry-img-card-overlay {
  background: linear-gradient(to top, rgba(192,57,43,0.9) 0%, rgba(13,17,23,0.5) 60%, rgba(13,17,23,0.2) 100%);
}
.industry-img-card .card-icon {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.25rem;
  transition: background 0.3s;
}
.industry-img-card:hover .card-icon { background: rgba(192,57,43,0.7); }

/* ── FROSTED SERVICE CARDS ──────────────────────────────────── */
.service-img-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.23,1,0.32,1), box-shadow 0.4s;
}
.service-img-card:hover {
  transform: translateY(-10px) scale(1.01);
  box-shadow: 0 40px 100px rgba(0,0,0,0.25);
}
.service-img-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
  z-index: 0;
}
.service-img-card:hover .service-img-card-bg { transform: scale(1.08); }
.service-img-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,17,23,0.97) 0%, rgba(13,17,23,0.4) 60%, transparent 100%);
  z-index: 1;
  transition: background 0.4s;
}
.service-img-card:hover .service-img-card-overlay {
  background: linear-gradient(to top, rgba(192,57,43,0.95) 0%, rgba(13,17,23,0.6) 60%, transparent 100%);
}
.service-img-card-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
  color: #fff;
}
.service-img-card-saving {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(74,222,128,0.2);
  border: 1px solid rgba(74,222,128,0.4);
  border-radius: 20px;
  padding: 0.28rem 0.875rem;
  font-size: 0.75rem;
  font-weight: 800;
  color: #4ade80;
  margin-bottom: 0.875rem;
}

/* ── HORIZONTAL SCROLL SNAP ──────────────────────────────────── */
.hscroll-container {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 1rem;
  scrollbar-width: thin;
  scrollbar-color: #c0392b transparent;
}
.hscroll-container::-webkit-scrollbar { height: 4px; }
.hscroll-container::-webkit-scrollbar-thumb { background: #c0392b; border-radius: 2px; }
.hscroll-item {
  flex-shrink: 0;
  scroll-snap-align: start;
}

/* ── 3D BUTTON EFFECTS ──────────────────────────────────────── */
.btn-3d {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-3d::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.15) 0%,
    rgba(255,255,255,0) 50%,
    rgba(0,0,0,0.1) 100%
  );
  z-index: 1;
  pointer-events: none;
}
.btn-3d:hover {
  transform: translateY(-3px) translateZ(4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2), 0 4px 8px rgba(0,0,0,0.15);
}
.btn-3d:active {
  transform: translateY(1px) translateZ(0);
}

/* ── HERO BACKGROUND IMAGES ──────────────────────────────────── */
.hero-with-image {
  position: relative;
  overflow: hidden;
}
.hero-bg-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  transform: scale(1.05);
  transition: transform 8s ease;
}
.hero-with-image:hover .hero-bg-image { transform: scale(1.08); }

/* ── ABOUT SECTION IMAGES ────────────────────────────────────── */
.about-img-wrap {
  position: relative;
}
.about-img-main {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.2);
  transform: perspective(800px) rotateY(-5deg);
  transition: transform 0.5s ease;
}
.about-img-main:hover {
  transform: perspective(800px) rotateY(0deg);
}
.about-img-secondary {
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 55%;
  border-radius: 18px;
  overflow: hidden;
  border: 4px solid #fff;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  animation: floatSlow 7s ease-in-out infinite;
}
@media(max-width:768px) {
  .about-img-secondary { display: none; }
}

/* ── FEATURE ICON 3D ─────────────────────────────────────────── */
.feature-icon-3d {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  transform-style: preserve-3d;
  transition: transform 0.4s cubic-bezier(0.23,1,0.32,1), box-shadow 0.4s;
  position: relative;
}
.feature-icon-3d::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.3), rgba(255,255,255,0));
}
.feature-icon-3d:hover {
  transform: perspective(400px) rotateX(20deg) rotateY(-15deg) scale(1.1);
  box-shadow: 8px 8px 24px rgba(0,0,0,0.15);
}

/* ── COUNTER ANIMATION ───────────────────────────────────────── */
.count-up { display: inline-block; }

/* ── MOBILE RESPONSIVE ───────────────────────────────────────── */
@media(max-width:480px) {
  .card-3d:hover { transform: none; }
  .img-3d:hover  { transform: none; }
  .lift-card:hover { transform: translateY(-6px); }
}

/* ── REDUCED MOTION ─────────────────────────────────────────── */
@media(prefers-reduced-motion:reduce) {
  .floating-card, .floating-card-alt, .blob-decoration,
  .shimmer-text, .marquee-track, .stat-badge-3d,
  .neon-border { animation: none !important; }
  .card-3d:hover, .img-3d:hover, .btn-3d:hover { transform: none; }
}


/* ══════════════════════════════════════════════════════════════
   READABILITY & CONTRAST — FINAL
   Every text element guaranteed legible on any background.
   ══════════════════════════════════════════════════════════════ */

/* ── 1. OVERLAYS: all hero image sections get near-black overlay ─ */
.de-hero-overlay,
.about-hero-overlay,
.services-hero-overlay,
.pricing-hero-overlay,
.contact-hero-overlay,
.book-hero-overlay,
.scan-hero-overlay {
  background: linear-gradient(
    150deg,
    rgba(8,10,16,0.78) 0%,
    rgba(12,15,24,0.95) 50%,
    rgba(10,18,28,0.90) 100%
  ) !important;
}

/* ── 2. All text inside hero content: WHITE + strong shadow ────── */
.de-hero-content *,
.about-hero-content *,
.services-hero-content *,
.pricing-hero-content *,
.contact-hero-content *,
.book-hero-content *,
.scan-hero-content * {
  color: #ffffff;
}
.de-hero-content h1,
.about-hero-content h1,
.services-hero-content h1,
.pricing-hero-content h1,
.contact-hero-content h1,
.book-hero h1,
.scan-hero-content h1 {
  color: #ffffff !important;
  text-shadow: 0 2px 8px rgba(0,0,0,0.95), 0 4px 32px rgba(0,0,0,0.7) !important;
}
.de-hero-content p,
.about-hero-content p,
.services-hero-content p,
.pricing-hero-content p,
.contact-hero-content p,
.book-hero p,
.scan-hero-content p {
  color: #f0f4f8 !important;
  text-shadow: 0 1px 6px rgba(0,0,0,0.9) !important;
  opacity: 1 !important;
}

/* ── 3. section-img-bg: near-black overlay + white text ─────────── */
.section-img-bg-overlay {
  background: rgba(8,10,16,0.75) !important;
}
.section-img-bg h1,
.section-img-bg h2,
.section-img-bg h3,
.section-img-bg p,
.section-img-bg span,
.section-img-bg a {
  color: #ffffff !important;
  text-shadow: 0 1px 8px rgba(0,0,0,0.95) !important;
}

/* ── 4. Service image cards: pitch-black scrim at bottom ────────── */
.service-img-card-overlay {
  background: linear-gradient(
    to top,
    rgba(8,10,16,1.0) 0%,
    rgba(8,10,16,0.85) 40%,
    rgba(8,10,16,0.30) 70%,
    transparent 100%
  ) !important;
}
.service-img-card-content,
.service-img-card-content * {
  color: #ffffff !important;
  text-shadow: 0 1px 4px rgba(0,0,0,0.9);
}
.service-img-card-saving {
  color: #4ade80 !important;
  text-shadow: none !important;
  background: rgba(0,0,0,0.55) !important;
  border-color: rgba(74,222,128,0.6) !important;
}

/* ── 5. Industry image cards: black scrim at bottom ─────────────── */
.industry-img-card-overlay {
  background: linear-gradient(
    to top,
    rgba(8,10,16,0.98) 0%,
    rgba(8,10,16,0.65) 50%,
    rgba(8,10,16,0.15) 100%
  ) !important;
}
.industry-img-card-overlay h3 {
  color: #ffffff !important;
  text-shadow: 0 2px 8px rgba(0,0,0,1) !important;
  font-weight: 900 !important;
  font-size: 1.15rem !important;
}
.industry-img-card-overlay p {
  color: #e5e7eb !important;
  text-shadow: 0 1px 6px rgba(0,0,0,0.95) !important;
}

/* ── 6. White/light card backgrounds: dark text ─────────────────── */
.de-service-card .de-svc-title,
.de-trust-card h4,
.de-step h3,
.value-card h3,
.de-ep-title,
.plan-card .plan-name,
.scan-card-body h3,
.book-section-title,
.form-section-title,
.bic-title {
  color: #111827 !important;
  text-shadow: none !important;
}
.de-service-card .de-svc-desc,
.de-trust-card p,
.de-step p,
.value-card p,
.de-ep-excerpt,
.plan-card .plan-desc,
.bic-text,
.tactic-text {
  color: #374151 !important;
  text-shadow: none !important;
}

/* ── 7. Dark navy sections: ensure white text ───────────────────── */
.de-section-dark *:not(.de-trust-card):not(.de-trust-card *) {
  /* handled per-element below */
}
.de-metrics-row .de-metric-num { color: #4ade80 !important; }
.de-metrics-row .de-metric-lbl { color: #d1d5db !important; }
.de-section-dark h2            { color: #ffffff !important; text-shadow: 0 1px 6px rgba(0,0,0,0.7); }
.de-section-dark > .de-container > div > div > p { color: #d1d5db !important; }

/* ── 8. Stats bars ────────────────────────────────────────────────  */
.de-stat-num   { color: #f87171 !important; text-shadow: 0 0 20px rgba(248,113,113,0.4); }
.de-stat-lbl   { color: #d1d5db !important; }
.about-stat-num   { color: #f87171 !important; }
.about-stat-label { color: #ffffff !important; }
.about-stat-sub   { color: #d1d5db !important; }

/* ── 9. Hero ROI calc card ──────────────────────────────────────── */
.de-savings-title  { color: #ffffff !important; }
.de-savings-label  { color: #9ca3af !important; }
.de-roi-lbl        { color: #9ca3af !important; }
.de-roi-num        { color: #4ade80 !important; }
.de-roi-num.amber  { color: #fbbf24 !important; }
.de-roi-num.dim    { color: #9ca3af !important; }
.de-roi-field label { color: #9ca3af !important; }

/* ── 10. Stat floating badges ───────────────────────────────────── */
.stat-badge-3d .num { color: #4ade80 !important; }
.stat-badge-3d .lbl { color: #d1d5db !important; }

/* ── 11. Hero trust items ───────────────────────────────────────── */
.de-trust-item { color: #e5e7eb !important; background: rgba(255,255,255,0.10) !important; }
.de-live-badge { color: #fca5a5 !important; }
.de-hero-headline, .de-hero-headline span { color: #ffffff !important; }
.de-hero-sub { color: #e5e7eb !important; opacity: 1 !important; }

/* ── 12. Ticker ─────────────────────────────────────────────────── */
.de-ticker { background: #ffffff !important; }
.de-ticker-item { color: #111827 !important; font-weight: 700 !important; }

/* ── 13. Section labels ─────────────────────────────────────────── */
.de-section-label,
.section-pill { color: #c0392b !important; }
.de-section-head h2 { color: #111827 !important; }
.de-section-head p  { color: #4b5563 !important; }

/* ── 14. Episode cards ──────────────────────────────────────────── */
.de-ep-title   { color: #111827 !important; }
.de-ep-excerpt { color: #4b5563 !important; }
.de-ep-date    { color: #6b7280 !important; }

/* ── 15. Contact page ───────────────────────────────────────────── */
.contact-right-overlay {
  background: linear-gradient(135deg,rgba(8,10,16,0.75) 0%,rgba(8,10,16,0.80) 100%) !important;
}
.contact-right-content h3 { color: #ffffff !important; text-shadow: 0 2px 8px rgba(0,0,0,0.9) !important; }
.cic-label { color: #9ca3af !important; font-weight: 700 !important; }
.cic-value,
.cic-value a { color: #ffffff !important; font-weight: 700 !important; text-shadow: 0 1px 4px rgba(0,0,0,0.7); }

/* ── 16. Book/scan card headers ─────────────────────────────────── */
.book-card-header h2,
.scan-card-header h1 { color: #ffffff !important; text-shadow: 0 2px 8px rgba(0,0,0,0.8) !important; }
.book-card-header p,
.scan-card-header p  { color: #e5e7eb !important; text-shadow: 0 1px 4px rgba(0,0,0,0.7) !important; }

/* ── 17. Auth panel text ────────────────────────────────────────── */
.auth-bg-img,
.auth-panel-bg-img { opacity: 0.15 !important; }
.auth-brand-panel h2 { color: #ffffff !important; text-shadow: 0 2px 16px rgba(0,0,0,0.9) !important; }
.auth-brand-panel p  { color: #e5e7eb !important; text-shadow: 0 1px 6px rgba(0,0,0,0.8) !important; }
.auth-proof-text-main { color: #ffffff !important; font-weight: 800 !important; }
.auth-proof-text-sub  { color: #d1d5db !important; }
.auth-title { color: #111827 !important; }
.auth-sub   { color: #4b5563 !important; }
.abi-text   { color: #e5e7eb !important; font-weight: 700 !important; }

/* ── 18. Forms: dark text on white ─────────────────────────────── */
.form-label    { color: #111827 !important; font-weight: 600 !important; }
.form-text     { color: #6b7280 !important; }
.form-control  { color: #111827 !important; background: #ffffff !important; }

/* ── 19. Buttons: always readable ──────────────────────────────── */
.btn-primary     { color: #ffffff !important; }
.btn-outline     { color: #111827 !important; }
.btn-outline-white { color: #ffffff !important; }
.de-btn-primary  { color: #ffffff !important; }
.de-btn-ghost    { color: #ffffff !important; }
.de-roi-cta      { color: #ffffff !important; }

/* ── 20. Pricing page ───────────────────────────────────────────── */
.plan-price   { color: #111827 !important; }
.plan-period  { color: #6b7280 !important; }
.plan-features li { color: #374151 !important; }
.model-label  { color: #111827 !important; }
.model-desc   { color: #4b5563 !important; }
.model-num    { color: #c0392b !important; }
.calc-val     { color: #ffffff !important; }
.calc-lbl     { color: #9ca3af !important; }

/* ── 21. Svc-img-badge on split panels ─────────────────────────── */
.svc-img-badge {
  background: rgba(8,10,16,0.72) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255,255,255,0.25) !important;
  font-weight: 800 !important;
}

/* ── 22. Footer ─────────────────────────────────────────────────── */
.footer-description { color: #d1d5db !important; }
.footer-links a     { color: #d1d5db !important; }
.footer-links a:hover { color: #ffffff !important; }
.footer-contact li  { color: #d1d5db !important; }
.footer-section h4  { color: #9ca3af !important; }

/* ── 23. Flash messages ─────────────────────────────────────────── */
.flash-success { background: #f0fdf4 !important; color: #14532d !important; border-color: #86efac !important; }
.flash-error   { background: #fef2f2 !important; color: #7f1d1d !important; border-color: #fca5a5 !important; }

/* ── 24. Nav ────────────────────────────────────────────────────── */
.nav-link               { color: #1f2937 !important; }
.nav-link:hover         { color: #c0392b !important; }
.nav-link.active        { color: #c0392b !important; }
.navbar-brand a         { color: #1a1a2e !important; }

/* ── 25. Process timeline text ─────────────────────────────────── */
.timeline-item-3d h3 { color: #111827 !important; }
.timeline-item-3d p  { color: #4b5563 !important; }
.pt-step h3 { color: #111827 !important; }
.pt-step p  { color: #4b5563 !important; }

/* ── 26. Score/category items on scan report ────────────────────── */
.qw-item span      { color: #111827 !important; font-weight: 500 !important; }
.next-step-item div { color: #374151 !important; }
.trust-badge       { color: #374151 !important; }
.rmg-label         { color: #4b5563 !important; font-weight: 700 !important; }

/* ── 27. Final safety net: no white text on white bg ────────────── */
.card, .plan-card, .book-info-card, .value-card,
.contact-form-card, .scan-card {
  color: #111827;
}

/* ── 28. Marquee strip label ─────────────────────────────────────── */
.marquee-strip { background: #0d1117 !important; }

/* ── 29. How-it-works steps on light bg ────────────────────────── */
.de-step h3 { color: #111827 !important; text-shadow: none !important; }
.de-step p  { color: #4b5563 !important; text-shadow: none !important; }
