@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@600;700;800&display=swap");

:root {
  --mf-sky: #0ea5e9;
  --mf-aqua: #14b8a6;
  --mf-sun: #f59e0b;
  --mf-coral: #fb7185;
  --mf-ink: #0c4a6e;
  --mf-text: #334155;
  --mf-muted: #64748b;
  --mf-white: #ffffff;
  --mf-mist: #f0f9ff;
  --mf-mint: #f0fdfa;
  --mf-peach: #fff7ed;
  --mf-line: rgba(14, 165, 233, 0.16);
  --mf-radius: 18px;
  --mf-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --mf-shadow: 0 18px 40px rgba(14, 165, 233, 0.12);
}

.mf-home {
  font-family: "Outfit", sans-serif;
  color: var(--mf-text);
  overflow-x: hidden;
  background:
    radial-gradient(900px 420px at 10% -10%, rgba(14,165,233,0.16), transparent 60%),
    radial-gradient(700px 380px at 100% 20%, rgba(20,184,166,0.14), transparent 55%),
    radial-gradient(600px 360px at 50% 100%, rgba(245,158,11,0.1), transparent 50%),
    #f8fbff;
}

.mf-home h1,
.mf-home h2,
.mf-home h3 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 700;
  color: var(--mf-ink);
  margin: 0;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

/* ========== HERO ========== */
.mf-hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}

.mf-hero__media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  animation: mfKen 20s var(--mf-ease) infinite alternate;
  z-index: 0;
}

.mf-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(120deg, rgba(12,74,110,0.88) 0%, rgba(14,165,233,0.55) 48%, rgba(20,184,166,0.42) 100%),
    linear-gradient(0deg, rgba(12,74,110,0.55), transparent 40%);
}

.mf-hero__glow {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.45;
  z-index: 1;
  pointer-events: none;
  animation: mfFloat 8s ease-in-out infinite;
}
.mf-hero__glow--1 { background: #0ea5e9; top: 10%; right: 8%; }
.mf-hero__glow--2 { background: #14b8a6; bottom: 5%; left: 12%; animation-delay: -3s; width: 280px; height: 280px; }

.mf-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 90px 0 80px;
}

.mf-hero__brand {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: clamp(2.6rem, 8vw, 5.2rem);
  font-weight: 700;
  line-height: 0.95;
  color: #fff;
  margin: 0 0 18px;
  max-width: 12ch;
  text-shadow: 0 10px 30px rgba(0,0,0,0.25);
  opacity: 0;
  animation: mfRise 0.85s var(--mf-ease) 0.1s forwards;
}

.mf-hero__line {
  display: inline-block;
  font-size: clamp(1.25rem, 2.8vw, 1.85rem);
  font-weight: 700;
  color: #fff;
  margin: 0 0 14px;
  padding: 8px 0;
  background: linear-gradient(90deg, #fbbf24, #34d399, #38bdf8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 0 rgba(255,255,255,0.15));
  opacity: 0;
  animation: mfRise 0.85s var(--mf-ease) 0.28s forwards;
}

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .mf-hero__line { color: #fde68a; -webkit-text-fill-color: unset; background: none; }
}

.mf-hero__sub {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.9);
  max-width: 40ch;
  margin: 0 0 30px;
  opacity: 0;
  animation: mfRise 0.85s var(--mf-ease) 0.42s forwards;
}

.mf-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  opacity: 0;
  animation: mfRise 0.85s var(--mf-ease) 0.55s forwards;
}

.mf-hero__orbit {
  position: absolute;
  right: 6%;
  bottom: 14%;
  z-index: 2;
  width: min(280px, 34vw);
  aspect-ratio: 1;
  border-radius: 28px;
  overflow: hidden;
  border: 4px solid rgba(255,255,255,0.55);
  box-shadow: 0 25px 50px rgba(0,0,0,0.28);
  animation: mfFloat 6s ease-in-out infinite;
  display: none;
}
.mf-hero__orbit img { width: 100%; height: 100%; object-fit: cover; }

@keyframes mfKen {
  from { transform: scale(1.02); }
  to { transform: scale(1.12); }
}
@keyframes mfFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}
@keyframes mfRise {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes mfShine {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}
@keyframes mfPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245,158,11,0.45); }
  50% { box-shadow: 0 0 0 14px rgba(245,158,11,0); }
}

/* Buttons */
.mf-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: 999px;
  font-family: "Outfit", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none !important;
  border: 0;
  overflow: hidden;
  transition: transform 0.25s var(--mf-ease), box-shadow 0.25s ease;
}
.mf-btn:hover { transform: translateY(-3px); text-decoration: none !important; }
.mf-btn--primary {
  color: #0c4a6e !important;
  background: linear-gradient(120deg, #fbbf24, #34d399, #38bdf8, #fbbf24);
  background-size: 280% 280%;
  animation: mfShine 4s linear infinite, mfPulse 2.4s ease-in-out infinite;
}
.mf-btn--ghost {
  color: #fff !important;
  background: rgba(255,255,255,0.12);
  border: 1.5px solid rgba(255,255,255,0.65);
  backdrop-filter: blur(8px);
}
.mf-btn--ghost:hover { background: #fff; color: var(--mf-ink) !important; }
.mf-btn--solid {
  color: #fff !important;
  background: linear-gradient(135deg, var(--mf-sky), var(--mf-aqua));
  box-shadow: 0 12px 28px rgba(14,165,233,0.28);
}
.mf-btn--solid:hover { box-shadow: 0 16px 34px rgba(20,184,166,0.35); color: #fff !important; }
.mf-btn--soft {
  color: var(--mf-ink) !important;
  background: #fff;
  border: 1.5px solid var(--mf-line);
}
.mf-btn--soft:hover { border-color: var(--mf-sky); color: var(--mf-sky) !important; }

/* Strip */
.mf-strip {
  margin-top: -28px;
  position: relative;
  z-index: 5;
  padding: 0 0 10px;
}
.mf-strip__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  background: #fff;
  border-radius: 24px;
  padding: 22px;
  box-shadow: var(--mf-shadow);
  border: 1px solid var(--mf-line);
}
.mf-strip__item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 8px;
  border-radius: 14px;
  min-width: 0;
  transition: background 0.25s ease, transform 0.25s var(--mf-ease);
}
.mf-strip__item > div {
  min-width: 0;
  flex: 1;
}
.mf-strip__item:hover {
  background: var(--mf-mist);
  transform: translateY(-2px);
}
.mf-strip__icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  flex-shrink: 0;
  background: linear-gradient(135deg, #0ea5e9, #38bdf8);
}
.mf-strip__item:nth-child(2) .mf-strip__icon { background: linear-gradient(135deg, #14b8a6, #34d399); }
.mf-strip__item:nth-child(3) .mf-strip__icon { background: linear-gradient(135deg, #f59e0b, #fbbf24); }
.mf-strip__item:nth-child(4) .mf-strip__icon { background: linear-gradient(135deg, #fb7185, #f472b6); }
.mf-strip__item strong {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mf-muted);
  margin-bottom: 3px;
}
.mf-strip__item span,
.mf-strip__item a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--mf-ink);
  text-decoration: none;
}
.mf-strip__phones {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mf-strip__phones a,
.mf-strip__email,
.mf-strip__item span {
  overflow-wrap: anywhere;
  word-break: normal;
}
.mf-strip__item a:hover { color: var(--mf-sky); }

/* Sections */
.mf-section { padding: 92px 0; position: relative; }
.mf-section--soft {
  background:
    linear-gradient(180deg, rgba(240,249,255,0.9), rgba(240,253,250,0.9));
}
.mf-section--peach {
  background:
    radial-gradient(600px 280px at 80% 0%, rgba(251,113,133,0.12), transparent 60%),
    linear-gradient(180deg, #fff7ed, #fff);
}
.mf-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mf-sky);
  margin-bottom: 12px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(14,165,233,0.1);
}
.mf-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--mf-sky), var(--mf-aqua));
  animation: mfBlink 1.6s ease-in-out infinite;
}
@keyframes mfBlink {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.7); opacity: 0.55; }
}
.mf-title {
  font-size: clamp(2rem, 4.4vw, 3.15rem);
  line-height: 1.05;
  margin-bottom: 14px;
}
.mf-title span {
  background: linear-gradient(120deg, var(--mf-sky), var(--mf-aqua));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.mf-lead {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--mf-muted);
  max-width: 52ch;
  margin: 0;
}
.mf-head { margin-bottom: 42px; max-width: 640px; }
.mf-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.mf-head--center .mf-lead { margin-left: auto; margin-right: auto; }
.mf-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* About */
.mf-about {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.mf-about__visual {
  position: relative;
  min-height: 440px;
  border-radius: 28px;
  background: center/cover no-repeat;
  box-shadow: var(--mf-shadow);
  overflow: hidden;
}
.mf-about__visual::before {
  content: "";
  position: absolute;
  inset: auto -20% -20% auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(14,165,233,0.5), rgba(20,184,166,0.35));
  filter: blur(8px);
  animation: mfFloat 5s ease-in-out infinite;
}
.mf-about__badge {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 2;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 12px 30px rgba(12,74,110,0.15);
  animation: mfFloat 5.5s ease-in-out infinite;
}
.mf-about__badge strong {
  display: block;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.6rem;
  color: var(--mf-sky);
  line-height: 1;
}
.mf-about__badge span {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--mf-muted);
}
.mf-about__copy p {
  font-size: 1.02rem;
  line-height: 1.75;
  margin: 0 0 14px;
}
.mf-about__sectors {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 24px;
  padding: 0;
  list-style: none;
}
.mf-about__sectors li {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--mf-ink);
  padding: 9px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--mf-line);
  box-shadow: 0 6px 16px rgba(14,165,233,0.08);
  transition: transform 0.25s var(--mf-ease), background 0.25s ease;
}
.mf-about__sectors li:nth-child(1) { background: #e0f2fe; }
.mf-about__sectors li:nth-child(2) { background: #ccfbf1; }
.mf-about__sectors li:nth-child(3) { background: #fef3c7; }
.mf-about__sectors li:hover { transform: translateY(-3px) scale(1.03); }

/* Services */
.mf-services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.mf-service {
  display: block;
  text-decoration: none !important;
  color: inherit;
  background: #fff;
  border-radius: var(--mf-radius);
  overflow: hidden;
  border: 1px solid rgba(14,165,233,0.1);
  box-shadow: 0 10px 28px rgba(12,74,110,0.06);
  transition: transform 0.35s var(--mf-ease), box-shadow 0.35s ease;
  height: 100%;
}
.mf-service:hover {
  transform: translateY(-10px) scale(1.01);
  box-shadow: 0 24px 48px rgba(14,165,233,0.18);
  text-decoration: none !important;
}
.mf-service__img {
  height: 190px;
  background: center/cover no-repeat;
  position: relative;
  overflow: hidden;
}
.mf-service__img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(12,74,110,0.45));
  transition: opacity 0.3s ease;
}
.mf-service:hover .mf-service__img { background-size: 112% 112%; }
.mf-service__body { padding: 22px 22px 26px; }
.mf-service__body h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}
.mf-service__body p {
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--mf-muted);
  margin: 0 0 14px;
}
.mf-service__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--mf-sky);
  transition: gap 0.25s ease, color 0.25s ease;
}
.mf-service:hover .mf-service__more { gap: 10px; color: var(--mf-aqua); }

/* Why */
.mf-why {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 36px;
  align-items: stretch;
  background: linear-gradient(135deg, #0c4a6e 0%, #0369a1 45%, #0d9488 100%);
  border-radius: 32px;
  padding: 36px;
  color: rgba(255,255,255,0.88);
  box-shadow: 0 30px 60px rgba(12,74,110,0.25);
  overflow: hidden;
  position: relative;
}
.mf-why::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -60px;
  top: -60px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  animation: mfFloat 7s ease-in-out infinite;
}
.mf-why h2,
.mf-why h3 { color: #fff; }
.mf-why .mf-kicker {
  color: #ecfeff;
  background: rgba(255,255,255,0.12);
}
.mf-why .mf-kicker::before { background: #fbbf24; }
.mf-why .mf-lead { color: rgba(255,255,255,0.78); }
.mf-why__visual {
  min-height: 420px;
  border-radius: 24px;
  background: center/cover no-repeat;
  box-shadow: 0 18px 40px rgba(0,0,0,0.22);
}
.mf-why__list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.mf-why__list li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(6px);
  transition: transform 0.25s var(--mf-ease), background 0.25s ease;
}
.mf-why__list li:hover {
  transform: translateX(6px);
  background: rgba(255,255,255,0.14);
}
.mf-why__num {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: #0c4a6e;
  background: linear-gradient(135deg, #fbbf24, #34d399);
}
.mf-why__list h3 { font-size: 1.05rem; margin-bottom: 4px; }
.mf-why__list p { margin: 0; font-size: 0.9rem; line-height: 1.55; color: rgba(255,255,255,0.75); }

/* Industries */
.mf-industries {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.mf-industry {
  min-height: 110px;
  padding: 20px 18px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--mf-ink);
  line-height: 1.4;
  background: #fff;
  border: 1px solid transparent;
  box-shadow: 0 10px 24px rgba(12,74,110,0.06);
  transition: transform 0.3s var(--mf-ease), box-shadow 0.3s ease, border-color 0.3s ease;
}
.mf-industry:nth-child(4n+1) { background: linear-gradient(160deg, #e0f2fe, #fff); }
.mf-industry:nth-child(4n+2) { background: linear-gradient(160deg, #ccfbf1, #fff); }
.mf-industry:nth-child(4n+3) { background: linear-gradient(160deg, #fef3c7, #fff); }
.mf-industry:nth-child(4n) { background: linear-gradient(160deg, #ffe4e6, #fff); }
.mf-industry:hover {
  transform: translateY(-6px) rotate(-0.4deg);
  box-shadow: 0 18px 36px rgba(14,165,233,0.16);
  border-color: rgba(14,165,233,0.25);
}
.mf-industries-visual { margin-top: 36px; text-align: center; }
.mf-industries-visual img {
  max-width: min(680px, 100%);
  height: auto;
  border-radius: 24px;
  box-shadow: var(--mf-shadow);
  animation: mfFloat 8s ease-in-out infinite;
}

/* Projects */
.mf-projects {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.mf-project {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 20px;
  text-decoration: none !important;
  box-shadow: 0 12px 28px rgba(12,74,110,0.1);
}
.mf-project img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--mf-ease);
}
.mf-project::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(12,74,110,0.88), transparent 55%);
  opacity: 0.8;
  transition: opacity 0.3s ease;
}
.mf-project span {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 1;
  color: #fff;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
}
.mf-project:hover img { transform: scale(1.12) rotate(1deg); }
.mf-project:hover::after { opacity: 1; }

/* CTA */
.mf-cta {
  margin: 20px 0 70px;
  padding: 84px 28px;
  border-radius: 32px;
  text-align: center;
  color: #fff;
  background:
    linear-gradient(125deg, rgba(12,74,110,0.88), rgba(14,165,233,0.72), rgba(20,184,166,0.75)),
    url("../img/brochure/project-industrial.jpg") center/cover no-repeat;
  box-shadow: 0 28px 60px rgba(14,165,233,0.25);
  position: relative;
  overflow: hidden;
}
.mf-cta::before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(251,191,36,0.25);
  top: -40px;
  left: -30px;
  filter: blur(10px);
  animation: mfFloat 6s ease-in-out infinite;
}
.mf-cta h2 {
  position: relative;
  color: #fff;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  max-width: 16ch;
  margin: 0 auto 14px;
  line-height: 1.05;
}
.mf-cta p {
  position: relative;
  max-width: 42ch;
  margin: 0 auto 28px;
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.9);
}
.mf-cta .mf-actions { position: relative; justify-content: center; }

/* Reveal */
.mf-reveal {
  opacity: 0;
  transform: translateY(36px) scale(0.98);
  transition: opacity 0.75s var(--mf-ease), transform 0.75s var(--mf-ease);
}
.mf-reveal.is-in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (min-width: 1100px) {
  .mf-hero__orbit { display: block; }
}

@media (max-width: 991px) {
  .mf-hero { min-height: 78vh; }
  .mf-strip { margin-top: -18px; padding: 0 12px 10px; }
  .mf-strip__grid { grid-template-columns: 1fr; }
  .mf-about, .mf-why { grid-template-columns: 1fr; gap: 24px; }
  .mf-why { padding: 24px; }
  .mf-about__visual, .mf-why__visual { min-height: 300px; }
  .mf-services { grid-template-columns: 1fr 1fr; }
  .mf-industries { grid-template-columns: 1fr 1fr; }
  .mf-projects { grid-template-columns: 1fr 1fr; }
  .mf-section { padding: 70px 0; }
  .mf-cta { margin: 10px 12px 50px; }
}

@media (max-width: 767px) {
  .mf-hero { min-height: 74vh; }
  .mf-strip__grid {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 16px;
  }
  .mf-strip__item {
    align-items: center;
    padding: 10px 8px;
  }
  .mf-services,
  .mf-industries { grid-template-columns: 1fr; }
  .mf-projects { grid-template-columns: 1fr 1fr; gap: 10px; }
  .mf-hero__inner { padding: 70px 0 60px; }
}

@media (prefers-reduced-motion: reduce) {
  .mf-hero__media,
  .mf-hero__brand,
  .mf-hero__line,
  .mf-hero__sub,
  .mf-hero__actions,
  .mf-hero__glow,
  .mf-hero__orbit,
  .mf-about__badge,
  .mf-industries-visual img,
  .mf-btn--primary,
  .mf-reveal,
  .mf-project img {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}