/* ============================================================
   MDG DESIGN SYSTEM — Custom layer on top of Tailwind
   Only things Tailwind utilities can't handle cleanly
   ============================================================ */

/* ── Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;900&family=Inter:wght@300;400;500;600&display=swap');

/* ── CSS Custom Properties ── */
:root {
  --mdg-dark:       #0D1B2A;
  --mdg-primary:    #00557e;
  --mdg-accent:     #00A3C4;
  --mdg-cta:        #FF5C35;
  --mdg-cta-dark:   #D94520;
  --mdg-offwhite:   #F8F9FA;
  --mdg-text:       #1A1A2E;
  --mdg-muted:      #6B7280;
  --mdg-border:     #E5E7EB;
}

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--mdg-text);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.15;
}

/* ── Navigation ── */
.mdg-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(13, 27, 42, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.3s ease;
}
.mdg-nav.scrolled {
  background: rgba(13, 27, 42, 0.99);
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}
.mdg-nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ── Logo — always white on dark nav ── */
.mdg-logo { display: flex; align-items: center; text-decoration: none; }
.mdg-logo img {
  height: 44px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.92;
  transition: opacity 0.2s;
}
.mdg-logo:hover img { opacity: 1; }

.mdg-nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.mdg-nav-links a {
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s;
  position: relative;
}
.mdg-nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--mdg-cta);
  transition: width 0.25s ease;
}
.mdg-nav-links a:hover,
.mdg-nav-links a.active { color: #fff; }
.mdg-nav-links a:hover::after,
.mdg-nav-links a.active::after { width: 100%; }

/* Portal nav link — subtle, distinct from main nav */
.portal-nav-link,
.mdg-nav-links .portal-nav-link {
  font-size: 0.8rem !important;
  color: rgba(255,255,255,0.45) !important;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  padding: 0.3rem 0.75rem !important;
  letter-spacing: 0.02em;
  transition: color .2s, border-color .2s !important;
}
.portal-nav-link:hover { color: #fff !important; border-color: rgba(255,255,255,0.3) !important; }
.portal-nav-link::after { display: none !important; }

/* ── Buttons ── */
.btn-cta,
.btn-amber {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  background: var(--mdg-cta);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(255,92,53,0.3);
}
.btn-cta:hover,
.btn-amber:hover {
  background: var(--mdg-cta-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,92,53,0.4);
}
.btn-outline-white {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  background: transparent;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  border-radius: 50px;
  border: 2px solid rgba(255,255,255,0.5);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-outline-white:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.08);
  transform: translateY(-2px);
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: var(--mdg-primary);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-primary:hover {
  background: var(--mdg-accent);
  transform: translateY(-2px);
}

/* ── Hero ── */
.mdg-hero {
  min-height: 100vh;
  background: var(--mdg-dark);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 72px;
  padding-bottom: 130px; /* clear the absolute stat strip */
}
.mdg-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(0,85,126,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(0,163,196,0.1) 0%, transparent 60%);
  pointer-events: none;
}
#globe-container {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: 52%;
  height: 90%;
  pointer-events: none;
}
#globe-container.use-css-fallback {
  background: radial-gradient(ellipse at center,
    rgba(0,163,196,0.15) 0%,
    rgba(0,85,126,0.08) 50%,
    transparent 75%
  );
  border-radius: 50%;
  animation: pulse-glow 4s ease-in-out infinite;
}
@keyframes pulse-glow {
  0%, 100% { opacity: 0.6; transform: translateY(-50%) scale(1); }
  50% { opacity: 1; transform: translateY(-50%) scale(1.04); }
}

/* ── Hero Badge ── */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(0,163,196,0.12);
  border: 1px solid rgba(0,163,196,0.3);
  border-radius: 50px;
  color: var(--mdg-accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

/* ── Stat strip ── */
.stat-strip {
  background: rgba(255,255,255,0.04);
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.stat-number {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 2.5rem;
  color: var(--mdg-cta);
  line-height: 1;
}
.stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.25rem;
}

/* ── Logo Carousel ── */
.carousel-wrapper {
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}
.carousel-track {
  display: flex;
  gap: 3rem;
  animation: carousel-scroll 30s linear infinite;
  width: max-content;
  align-items: center;
}
.carousel-track:hover { animation-play-state: paused; }
.carousel-track img {
  height: 44px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%) brightness(2);
  opacity: 0.5;
  transition: all 0.3s;
  flex-shrink: 0;
}
.carousel-track img:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.08);
}
@keyframes carousel-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Section Rhythm ── */
.section-dark    { background: var(--mdg-dark); color: #fff; }
.section-white   { background: #fff; color: var(--mdg-text); }
.section-offwhite{ background: var(--mdg-offwhite); color: var(--mdg-text); }
.section-teal    { background: var(--mdg-primary); color: #fff; }
.section-pad     { padding: 6rem 0; }
.section-pad-sm  { padding: 4rem 0; }
.container       { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }

/* ── Section Headers ── */
.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mdg-accent);
  margin-bottom: 0.75rem;
}
.section-tag.cta { color: var(--mdg-cta); }
.section-h2 {
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  font-weight: 900;
  margin-bottom: 1rem;
  line-height: 1.1;
}
.section-sub {
  font-size: 1.1rem;
  color: var(--mdg-muted);
  max-width: 560px;
  line-height: 1.7;
}
.section-sub.light { color: rgba(255,255,255,0.7); }

/* ── Service Cards ── */
.service-card {
  background: #fff;
  border: 1px solid var(--mdg-border);
  border-radius: 16px;
  padding: 2.25rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s;
  cursor: default;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--mdg-primary), var(--mdg-accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(0,85,126,0.12);
  border-color: rgba(0,85,126,0.2);
}
.service-card:hover::before { transform: scaleX(1); }
.service-icon-wrap {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, rgba(0,85,126,0.1), rgba(0,163,196,0.1));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--mdg-primary);
}
.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
  color: var(--mdg-dark);
}
.service-card p {
  font-size: 0.92rem;
  color: var(--mdg-muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}
.service-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--mdg-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: gap 0.2s, color 0.2s;
}
.service-link:hover { gap: 0.6rem; color: var(--mdg-accent); }

/* ── Portfolio Cards ── */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}
.portfolio-card {
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  cursor: pointer;
}
.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.4);
  border-color: rgba(0,163,196,0.3);
}
.portfolio-thumb {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  background: linear-gradient(135deg, rgba(0,85,126,0.4), rgba(0,163,196,0.2));
  position: relative;
}
.portfolio-thumb-placeholder {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  color: rgba(255,255,255,0.15);
  background: linear-gradient(135deg, rgba(0,85,126,0.5), rgba(0,27,42,0.8));
  letter-spacing: -0.02em;
}
.portfolio-body { padding: 1.5rem; }
.portfolio-sector {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.65rem;
  border-radius: 50px;
  margin-bottom: 0.6rem;
}
.sector-fintech    { background: rgba(16,185,129,0.15); color: #10b981; }
.sector-proptech   { background: rgba(99,102,241,0.15); color: #818cf8; }
.sector-civic      { background: rgba(255,92,53,0.12);  color: var(--mdg-cta); }
.sector-corporate  { background: rgba(0,163,196,0.15);  color: var(--mdg-accent); }
.sector-events     { background: rgba(236,72,153,0.15); color: #f472b6; }
.sector-engineering{ background: rgba(251,146,60,0.15); color: #fb923c; }
.sector-ecommerce  { background: rgba(52,211,153,0.15); color: #34d399; }
.portfolio-card h3 {
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 0.4rem;
}
.portfolio-card p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.55;
  margin-bottom: 1rem;
}
.portfolio-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
}
.status-live { color: #34d399; }
.status-wip  { color: var(--mdg-cta); }
.status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  display: inline-block;
}
.status-live .status-dot { background: #34d399; animation: blink 1.5s infinite; }
.status-wip .status-dot  { background: var(--mdg-cta); }
@keyframes blink {
  0%, 100% { opacity: 1; } 50% { opacity: 0.3; }
}

/* ── Filter Tabs ── */
.filter-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.filter-tab {
  padding: 0.45rem 1.1rem;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.12);
  background: transparent;
  color: rgba(255,255,255,0.5);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 0.03em;
}
.filter-tab:hover {
  border-color: rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.8);
}
.filter-tab.active {
  background: var(--mdg-accent);
  border-color: var(--mdg-accent);
  color: #fff;
}

/* work.html filter strip — light background tabs */
.filter-strip .filter-tab {
  border-color: #E5E7EB;
  color: #6B7280;
  background: #fff;
}
.filter-strip .filter-tab:hover {
  border-color: var(--mdg-primary);
  color: var(--mdg-primary);
}
.filter-strip .filter-tab.active {
  background: var(--mdg-primary);
  border-color: var(--mdg-primary);
  color: #fff;
}

/* ── Process Steps ── */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.process-grid::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: linear-gradient(90deg, var(--mdg-primary), var(--mdg-accent));
  z-index: 0;
}
.process-step {
  text-align: center;
  padding: 0 1rem;
  position: relative;
  z-index: 1;
}
.process-num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--mdg-primary), var(--mdg-accent));
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  box-shadow: 0 4px 16px rgba(0,85,126,0.3);
  position: relative;
}
.process-step h3 {
  font-size: 1rem;
  color: var(--mdg-dark);
  margin-bottom: 0.5rem;
}
.process-step p {
  font-size: 0.85rem;
  color: var(--mdg-muted);
  line-height: 1.6;
}

/* ── Testimonials ── */
.testimonial-card {
  background: var(--mdg-offwhite);
  border-radius: 16px;
  padding: 2rem;
  border-left: 4px solid var(--mdg-primary);
  position: relative;
}
.testimonial-quote {
  font-size: 3rem;
  color: var(--mdg-primary);
  opacity: 0.2;
  font-family: Georgia, serif;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.testimonial-text {
  font-size: 0.95rem;
  color: var(--mdg-text);
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 1.25rem;
}
.testimonial-author {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--mdg-dark);
}
.testimonial-role {
  font-size: 0.8rem;
  color: var(--mdg-muted);
}

/* ── WhatsApp Float ── */
.whatsapp-float {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 990;
  width: 56px; height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  animation: wa-bounce 3s ease-in-out infinite;
  color: #fff;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 32px rgba(37,211,102,0.5);
  animation: none;
}
@keyframes wa-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ── Hamburger ── */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; background: none; border: none; }
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: #fff; border-radius: 2px;
  transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile Nav ── */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--mdg-dark);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  opacity: 0;
  transition: opacity 0.3s;
}
.mobile-nav.open { display: flex; opacity: 1; }
.mobile-nav ul { list-style: none; padding: 0; text-align: center; }
.mobile-nav ul li { margin-bottom: 1.5rem; }
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s;
}
.mobile-nav a:hover { color: var(--mdg-accent); }

/* ── Footer ── */
.mdg-footer {
  background: #060e17;
  color: rgba(255,255,255,0.55);
  padding: 4.5rem 0 0;
}

/* Footer inner grid */
.mdg-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr 1fr;
  gap: 3rem;
}
@media (max-width: 960px) {
  .mdg-footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 560px) {
  .mdg-footer-inner { grid-template-columns: 1fr; gap: 2rem; }
}

/* footer-grid alias used in index.html */
.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr 1fr;
  gap: 3rem;
}
@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr !important; }
}

.footer-brand {}
.footer-brand p {
  font-size: 0.87rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.75;
  max-width: 280px;
  margin-bottom: 1.5rem;
}

.footer-col {}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col ul li {
  margin-bottom: 0.1rem;
}
.footer-col p {
  font-size: 0.87rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.75;
}

.footer-social {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

/* Footer bottom bar */
.mdg-footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.28);
}
.mdg-footer-bottom p { font-size: 0.78rem; color: rgba(255,255,255,0.28); margin: 0; }
.mdg-footer-bottom a {
  color: rgba(255,255,255,0.28);
  text-decoration: none;
  font-size: 0.78rem;
  transition: color 0.2s;
}
.mdg-footer-bottom a:hover { color: var(--mdg-accent); }

/* Footer headings */
.mdg-footer h4 {
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
}
.mdg-footer a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
  display: block;
  margin-bottom: 0.5rem;
  line-height: 1.6;
}
.mdg-footer a:hover { color: var(--mdg-accent); }
.mdg-footer p { font-size: 0.875rem; line-height: 1.7; }
.footer-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin: 0 0 1.5rem;
}

/* Social icons */
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.5);
  transition: all 0.2s;
  text-decoration: none;
  flex-shrink: 0;
}
.social-icon:hover {
  border-color: var(--mdg-accent);
  color: var(--mdg-accent);
  background: rgba(0,163,196,0.08);
}
.footer-social .social-icon {
  display: inline-flex !important;
  margin-bottom: 0 !important;
}

/* ── Animations on Scroll ── */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up-delay-1 { transition-delay: 0.1s; }
.fade-up-delay-2 { transition-delay: 0.2s; }
.fade-up-delay-3 { transition-delay: 0.3s; }
.fade-up-delay-4 { transition-delay: 0.4s; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .process-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .process-grid::before { display: none; }
  #globe-container { width: 45%; opacity: 0.6; }
}

@media (max-width: 768px) {
  .mdg-nav-links { display: none; }
  .hamburger { display: flex; }
  .mdg-hero { padding-bottom: 150px; } /* stat strip taller on mobile due to stacked buttons */
  .mdg-hero .hero-content { text-align: center; }
  .mdg-hero .hero-buttons { justify-content: center; }
  #globe-container { display: none; }
  .section-pad { padding: 4rem 0; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .stat-number { font-size: 2rem; }
  .btn-cta, .btn-amber, .btn-outline-white, .btn-primary {
    width: 100%;
    justify-content: center;
    padding: 1rem;
  }
  .hero-buttons { flex-direction: column; width: 100%; max-width: 320px; margin: 0 auto; }
}

@media (max-width: 640px) {
  .portfolio-grid { grid-template-columns: 1fr; }
  .filter-tabs { gap: 0.35rem; }
  .filter-tab { font-size: 0.75rem; padding: 0.35rem 0.85rem; min-height: 44px; }
}

/* ── Landscape mobile — prevent UI overlap ── */
@media (max-height: 500px) and (max-width: 900px) {
  .mdg-hero { min-height: 100vw; }
}
