/* ════════════════════════════════
   SHELL
════════════════════════════════ */
.khali{
  height:50px;
}
.mff-footer {
  width: 100%;
  position: relative;
  overflow: hidden;
  background: #8c8c8c4f;
  backdrop-filter: blur(4px);
  /* border-top: 1px solid #181818; */
}

/* Deep layered gradient overlay */
.mff-bg-layer {
  position: absolute;
  inset: 0;
  /* background:
    radial-gradient(ellipse 80% 50% at 10% 0%,   rgba(255,255,255,0.028) 0%, transparent 60%),
    radial-gradient(ellipse 60% 70% at 90% 100%,  rgba(255,255,255,0.018) 0%, transparent 55%),
    radial-gradient(ellipse 40% 40% at 50% 50%,   rgba(255,255,255,0.008) 0%, transparent 60%),
    linear-gradient(175deg, #0e0e0e 0%, #080808 50%, #060606 100%); */
  pointer-events: none;
  z-index: 0;
}

/* Animated dot-grid texture */
.mff-dotgrid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  animation: mffGridDrift 40s linear infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes mffGridDrift {
  to { background-position: 28px 28px; }
}

/* Top shimmer line */
.mff-shimmer-line {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%, #222 15%, #888 35%, #fff 50%, #888 65%, #222 85%, transparent 100%);
  animation: mffShimmer 5s ease-in-out infinite;
  z-index: 2;
}

@keyframes mffShimmer {
  0%,100% { opacity: 0.15; }
  50%      { opacity: 1; }
}

/* Vertical decorative lines */
.mff-vline {
  position: absolute;
  top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom,
    transparent 0%, rgba(255,255,255,0.04) 30%,
    rgba(255,255,255,0.08) 50%,
    rgba(255,255,255,0.04) 70%, transparent 100%);
  pointer-events: none;
  z-index: 0;
  animation: mffVline 8s ease-in-out infinite;
}

.mff-vline:nth-child(1) { left: 20%; animation-delay: 0s; }
.mff-vline:nth-child(2) { left: 40%; animation-delay: 1.5s; }
.mff-vline:nth-child(3) { left: 60%; animation-delay: 3s; }
.mff-vline:nth-child(4) { left: 80%; animation-delay: 4.5s; }

@keyframes mffVline {
  0%,100% { opacity: 0.3; }
  50%      { opacity: 0.7; }
}

/* Canvas particles */
#mffCanvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

/* ════════════════════════════════
   STATS BAR  (top of footer)
════════════════════════════════ */
.mff-stats-bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid #141414;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.mff-stats-bar.mff-in { opacity: 1; transform: translateY(0); }

.mff-stat-item {
  flex: 1;
  padding: 28px 32px;
  border-right: 1px solid #141414;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  position: relative;
  overflow: hidden;
  transition: background 0.3s ease;
}

.mff-stat-item:last-child { border-right: none; }

.mff-stat-item::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.mff-stat-item:hover { background: rgba(255,255,255,0.018); }
.mff-stat-item:hover::before { transform: scaleX(1); }

.mff-stat-num {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #fff;
  line-height: 1;
}

.mff-stat-label {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #333;
}

/* ════════════════════════════════
   MAIN GRID
════════════════════════════════ */
.mff-grid {
  display: grid;
  grid-template-columns: 1.8fr 0.9fr 1.4fr 1.5fr 1.35fr;
  /* border-bottom: 1px solid #141414; */
  position: relative;
  z-index: 2;
}

.mff-col {
  padding: 58px 40px;
  /* border-right: 1px solid #141414; */
  position: relative;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.mff-col:last-child { border-right: none; }
.mff-col:nth-child(1) { transition-delay: 0.06s; }
.mff-col:nth-child(2) { transition-delay: 0.16s; }
.mff-col:nth-child(3) { transition-delay: 0.26s; }
.mff-col:nth-child(4) { transition-delay: 0.36s; }
.mff-col:nth-child(5) { transition-delay: 0.46s; }
.mff-col.mff-in { opacity: 1; transform: translateY(0); }

/* Col hover lift */
.mff-col::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(170deg, rgba(255,255,255,0.015) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.mff-col:hover::after { opacity: 1; }

/* Top accent line per col */
.mff-col-accent {
  position: absolute;
  top: 0; left: 40px; right: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s ease;
}
.mff-col:hover .mff-col-accent { transform: scaleX(1); }

/* ════════════════════════════════
   BRAND COLUMN
════════════════════════════════ */
.mff-logo {
  height: 180px; width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.85;
  display: block;
  margin-bottom: 20px;
  transition: opacity 0.3s ease;
}
.mff-col:hover .mff-logo { opacity: 1; }

.mff-brand-name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 6px;
}

.mff-brand-tag {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #2e2e2e;
  margin-bottom: 14px;
}

.mff-brand-desc {
  font-size: 12.5px;
  color: #000000;
  line-height: 2;
  max-width: 235px;
  margin-bottom: 24px;
}

/* Service tags chips */
.mff-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 26px;
}

.mff-chip {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e8dada;
  /* border: 1px solid #1c1c1c; */
  padding: 4px 10px;
  transition: all 0.3s ease;
}

.mff-col:hover .mff-chip {
  border-color: #2e2e2e;
  /* color: #4a4a4a; */
}

.mff-chip:hover {
  border-color: #555 !important;
  color: #cfc3c3 !important;
  background: rgba(255,255,255,0.03);
}

/* Socials */
.mff-socials { display: flex; gap: 7px; flex-wrap: wrap; }

.mff-soc {
  width: 34px; height: 34px;
  border: 1px solid #1c1c1c;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  position: relative; overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.mff-soc::before {
  content: '';
  position: absolute; inset: 0;
  background: #fff;
  transform: scaleY(0); transform-origin: bottom;
  transition: transform 0.3s ease;
}

.mff-soc:hover { border-color: #fff; transform: translateY(-2px); }
.mff-soc:hover::before { transform: scaleY(1); }

.mff-soc svg {
  width: 13px; height: 13px; fill: #555;
  position: relative; z-index: 1;
  transition: fill 0.3s ease;
}
.mff-soc:hover svg { fill: #000; }

/* ════════════════════════════════
   COLUMN TITLE
════════════════════════════════ */
.mff-col-title {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 22px;
  padding-bottom: 12px;
  border-bottom: 1px solid #181818;
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.mff-col-title::before {
  content: '';
  width: 3px; height: 3px;
  background: #fff;
  flex-shrink: 0;
}

.mff-col-title::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0;
  height: 1px; width: 20px;
  background: #fff;
  transition: width 0.5s cubic-bezier(0.22,1,0.36,1);
}

.mff-col:hover .mff-col-title::after { width: 60px; }

/* ════════════════════════════════
   SERVICE GROUP LABEL
════════════════════════════════ */
.mff-grp { margin-bottom: 18px; }

.mff-grp-lbl {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #242424;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mff-grp-lbl::before { content: '◆'; font-size: 4px; color: #2a2a2a; }

.mff-grp-lbl::after {
  content: '';
  flex: 1; height: 1px;
  background: linear-gradient(90deg, #1e1e1e, transparent);
}

/* ════════════════════════════════
   NAV LINKS
════════════════════════════════ */
.mff-links { list-style: none; }

.mff-links li {
  position: relative;
  overflow: hidden;
}

.mff-links li::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.04), transparent);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.mff-links li:hover::after { transform: scaleX(1); }

.mff-links li a {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font-size: 12.5px;
  color: #000000;
  padding: 5.5px 0;
  transition: color 0.26s ease, padding-left 0.26s ease, letter-spacing 0.26s ease;
  position: relative;
}

.mff-links li a::before {
  content: '—';
  font-size: 7px;
  color: #222;
  flex-shrink: 0;
  letter-spacing: -0.1em;
  transition: color 0.26s ease, transform 0.26s ease;
}

/* Arrow that appears on hover */
.mff-links li a::after {
  content: '→';
  font-size: 10px;
  color: #555;
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.26s ease;
  margin-left: auto;
}

.mff-links li a:hover {
  color: #c8c8c8;
  padding-left: 5px;
  letter-spacing: 0.01em;
}

.mff-links li a:hover::before { color: #666; transform: scaleX(1.5); }
.mff-links li a:hover::after  { opacity: 1; transform: translateX(0); }

/* ════════════════════════════════
   CONTACT LIST
════════════════════════════════ */
.mff-contact { list-style: none; display: flex; flex-direction: column; gap: 2px; }

.mff-contact li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  font-size: 12px;
  color: #000000;
  border-left: 2px solid transparent;
  position: relative;
  overflow: hidden;
  transition:
    color 0.28s ease,
    border-color 0.28s ease,
    padding-left 0.28s ease,
    background 0.28s ease;
}

/* sweep on hover */
.mff-contact li::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgb(58, 58, 58), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
  pointer-events: none;
}

.mff-contact li:hover {
  color: #ffffff;
  border-left-color: #3a3a3a;
  padding-left: 16px;
}

.mff-contact li:hover::before { transform: scaleX(1); }

.mff-contact li svg {
  width: 14px; height: 14px;
  fill: none;
  stroke: #282828;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  transition: stroke 0.28s ease, transform 0.28s ease;
}

.mff-contact li:hover svg { stroke: #666; transform: scale(1.1); }

.mff-contact li span { line-height: 1.5; }

/* ════════════════════════════════
   NEWSLETTER BAR
════════════════════════════════ */
.mff-newsletter {
  position: relative;
  z-index: 2;
  border-bottom: 1px solid #141414;
  padding: 36px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease 0.2s, transform 0.7s ease 0.2s;
}

.mff-newsletter.mff-in { opacity: 1; transform: translateY(0); }

.mff-nl-text { flex: 1; min-width: 220px; }

.mff-nl-eyebrow {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #2e2e2e;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mff-nl-eyebrow::before {
  content: '';
  width: 16px; height: 1px;
  background: #2e2e2e;
}

.mff-nl-heading {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.mff-nl-heading span { color: #555; font-weight: 400; }

.mff-nl-form {
  display: flex;
  gap: 0;
  flex: 1;
  max-width: 440px;
  min-width: 260px;
}

.mff-nl-input {
  flex: 1;
  background: #0e0e0e;
  border: 1px solid #1e1e1e;
  border-right: none;
  color: #aaa;
  font-size: 12px;
  font-family: 'Inter', sans-serif;
  padding: 12px 18px;
  outline: none;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.mff-nl-input::placeholder { color: #2e2e2e; }
.mff-nl-input:focus { border-color: #333; background: #111; }

.mff-nl-btn {
  width: 150px;
  background: #fff;
  border: 1px solid #fff;
  color: #000;
  font-size: 10px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 12px 22px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.mff-nl-btn::before {
  content: '';
  position: absolute; inset: 0;
  background: #1a1a1a;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
  z-index: 0;
}

.mff-nl-btn:hover { color: #fff; border-color: #333; }
.mff-nl-btn:hover::before { transform: scaleX(1); }
.mff-nl-btn span { position: relative; z-index: 1; }

/* ════════════════════════════════
   BOTTOM BAR
════════════════════════════════ */
.mff-bottom {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  flex-wrap: wrap;
  gap: 12px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease 0.5s, transform 0.6s ease 0.5s;
}

.mff-bottom.mff-in { opacity: 1; transform: translateY(0); }

.mff-copy { font-size: 10.5px; color: #252525; letter-spacing: 0.06em; }
.mff-copy b { color: #3c3c3c; font-weight: 600; }

.mff-bot-links { list-style: none; display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }

.mff-bot-links li { position: relative; }
.mff-bot-links li:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -10px; top: 50%;
  transform: translateY(-50%);
  width: 1px; height: 10px;
  background: #1e1e1e;
}

.mff-bot-links a {
  font-size: 10px;
  color: #252525;
  text-decoration: none;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.28s ease;
}
.mff-bot-links a:hover { color: #666; }

.mff-status {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  color: #252525;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mff-dot {
  width: 5px; height: 5px;
  background: #3a3a3a;
  border-radius: 50%;
  animation: mffDot 2.4s ease-in-out infinite;
}

@keyframes mffDot {
  0%,100% { opacity:1; box-shadow:0 0 5px #444; }
  50%      { opacity:0.2; box-shadow:none; }
}

/* Made with line */
.mff-made {
  font-size: 9.5px;
  color: #1e1e1e;
  letter-spacing: 0.08em;
}
.mff-made span { color: #2e2e2e; }

/* ════════════════════════════════
   RESPONSIVE
════════════════════════════════ */

@media (max-width: 1200px) {
  .mff-grid { grid-template-columns: 1.6fr 1fr 1.3fr 1.4fr; }
  .mff-col:nth-child(5) {
    grid-column: 1 / -1;
    border-right: none;
    border-top: 1px solid #141414;
  }
  .mff-col { padding: 48px 34px; }
}

@media (max-width: 900px) {
  .mff-grid { grid-template-columns: 1fr 1fr; }
  .mff-col  {
    padding: 40px 28px;
    border-right: none;
    border-bottom: 1px solid #141414;
  }
  .mff-col:nth-child(odd) { border-right: 1px solid #141414; }
  .mff-col:nth-child(5)   { grid-column: 1/-1; border-right: none; }
  .mff-col:last-child     { border-bottom: none; }
  .mff-stats-bar          { flex-wrap: wrap; }
  .mff-stat-item          { min-width: 50%; border-bottom: 1px solid #141414; }
  .mff-newsletter, .mff-bottom { padding: 24px 28px; }
}

@media (max-width: 600px) {
  .mff-grid { grid-template-columns: 1fr; }
  .mff-col  {
    padding: 34px 22px;
    border-right: none !important;
    border-bottom: 1px solid #141414;
  }
  .mff-col:last-child  { border-bottom: none; }
  .mff-brand-desc      { max-width: 100%; }
  .mff-stat-item       { min-width: 50%; }
  .mff-nl-form         { flex-direction: column; }
  .mff-nl-input        { border-right: 1px solid #1e1e1e; border-bottom: none; }
  .mff-bottom          { flex-direction: column; align-items: flex-start; padding: 18px 22px; }
  .mff-bot-links       { gap: 14px; }
  .mff-newsletter      { flex-direction: column; padding: 26px 22px; gap: 20px; }
}

@media (max-width: 380px) {
  .mff-col     { padding: 26px 16px; }
  .mff-bottom  { padding: 16px; }
  .mff-newsletter { padding: 20px 16px; }
  .mff-stat-num { font-size: 20px; }
}