/* =============================================================
   LAYOUT  —  navbar · footer · background canvas · z-stacking
   ============================================================= */

/* ── Background canvas (shared across all pages) ── */
#mr-tech-bg,
#web3-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: var(--z-bg);
  pointer-events: none;
  background: transparent;
}
#mr-tech-bg {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
}


html, body {
  background: var(--bg);
}

/* All content sits above canvas */
.navbar, section, footer, main {
  position: relative;
  z-index: var(--z-base);
}

canvas,
.bg-animation {
  z-index: var(--z-bg) !important;
  pointer-events: none;
}

section {
  background: transparent;
}

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: var(--z-nav);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
  background: rgba(5, 10, 25, 0.8);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
  width: 100%;
  padding: 18px 40px;   /* control side breathing here */
  display: flex;
  align-items: center;
  justify-content: space-between;
}


.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 22px;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo img {
  width: 130px;
  height: 130px;
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
  position: relative;
  transition: color 0.3s;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--grad-brand);
  transition: width 0.3s;
}

.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { width: 100%; }

.menu-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

/* ── Footer ── */
.footer {
  background: #000;
  color: #fff;
  padding: 40px 8% 30px;
  position: relative;
  z-index: var(--z-base);
}

.footer-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 60px;
}

.footer-logo img { width: 130px; }

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 80px;
  margin-bottom: 50px;
}

.footer-links h4,
.footer-links-right h4,
.footer-social h4,
.footer-subscribe h4 {
  font-size: 14px;
  margin-bottom: 14px;
  letter-spacing: 1px;
}

.footer-links p,
.footer-links-right p {
  font-size: 14px;
  opacity: 0.75;
  margin-bottom: 10px;
}

.footer-links-right p {
  cursor: pointer;
  transition: opacity 0.2s;
}

.footer-links-right p:hover { opacity: 1; }

.footer-bottom {
  display: grid;
  grid-template-columns: 1.2fr 1.6fr 1fr;
  gap: 40px;
  align-items: start;
}

.footer-subscribe label {
  font-size: 13px;
  opacity: 0.8;
}

.footer-subscribe input {
  width: 100%;
  padding: 14px;
  margin-top: 8px;
  border: none;
  background: #e6ddd6;
  color: #000;
}

.footer-subscribe button {
  margin-top: 16px;
  padding: 12px 24px;
  background: #d9d9d9;
  border: none;
  font-weight: 500;
}

.footer-legal {
  font-size: 13px;
  line-height: 1.6;
  opacity: 0.65;
  margin-top: 10px;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-right: 12px;
  border-radius: 50%;
  color: #fff;
  opacity: 0.7;
  transition: opacity 0.25s, transform 0.25s;
}

.social-icons a:hover {
  opacity: 1;
  transform: translateY(-3px);
}

.social-icons svg {
  width: 18px;
  height: 18px;
}

.footer-copyright {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 13px;
  opacity: 0.6;
}
