/* ============================================================
   MGProTech — Shared Stylesheet
   ============================================================ */

/* Google Fonts are loaded by each page's <head> */

/* -----------------------------------------------
   CSS Variables
----------------------------------------------- */
:root {
  --bg-deep:      #0a121a;
  --bg-main:      #121d27;
  --bg-card:      #0f1c2a;
  --bg-section:   #0d1820;
  --border:       #223242;
  --border-soft:  rgba(34,50,66,0.6);
  --accent:       #3aa0ff;
  --accent-light: #6bbcff;
  --teal:         #00d2a8;
  --teal-dim:     rgba(0,210,168,0.12);
  --body:         #a8b2bf;
  --white:        #f7f7f7;
  --white-dim:    rgba(247,247,247,0.72);
  --font-head:    'Cabin', Arial, sans-serif;
  --font-body:    'Lato', Arial, sans-serif;
  --grad-primary: linear-gradient(135deg, #3aa0ff 0%, #00d2a8 100%);
  --grad-soft:    linear-gradient(180deg, rgba(58,160,255,0.08), rgba(0,210,168,0.04));
}

/* -----------------------------------------------
   Reset & Base
----------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-main);
  color: var(--body);
  line-height: 1.6;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(58,160,255,0.06), transparent 30%),
    radial-gradient(circle at 85% 30%, rgba(0,210,168,0.06), transparent 28%);
  z-index: 0;
}
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--white); }
p, li { color: var(--body); }
a { color: inherit; }

/* -----------------------------------------------
   Navigation
----------------------------------------------- */
.mgpt-nav {
  position: sticky;
  top: 0;
  z-index: 9999;
  width: 100%;
  background: rgba(10,18,26,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-body);
  box-shadow: 0 8px 28px rgba(0,0,0,0.32);
}
.mgpt-nav *, .mgpt-nav *::before, .mgpt-nav *::after {
  box-sizing: border-box; margin: 0; padding: 0;
}

.mgpt-nav-inner {
  width: 100%;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 72px;
  gap: 0;
}

.mgpt-nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
}
.mgpt-nav-brand-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 12px rgba(0,210,168,0.6);
}
.mgpt-nav-logo {
  height: 52px;
  width: auto;
  display: block;
}

.mgpt-nav-links {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  list-style: none;
}
.mgpt-nav-links a {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--white-dim);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.18s, background 0.18s;
}
.mgpt-nav-links a:hover { color: var(--white); background: rgba(255,255,255,0.05); }
.mgpt-nav-links a.active { color: var(--teal); }

.mgpt-nav-links .mgpt-nav-xentrio a {
  background: rgba(0,210,168,0.07);
  border: 1px solid rgba(0,210,168,0.2);
  color: var(--teal);
  border-radius: 999px;
  padding: 6px 16px;
}
.mgpt-nav-links .mgpt-nav-xentrio a:hover {
  background: rgba(0,210,168,0.14);
  border-color: rgba(0,210,168,0.4);
}

.mgpt-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.74rem;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--grad-primary);
  color: #f7f7f7;
  white-space: nowrap;
  transition: all 0.22s ease;
  flex-shrink: 0;
}
.mgpt-nav-cta:hover { filter: brightness(1.08); transform: translateY(-1px); }

.mgpt-nav-lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7b8d;
  background: rgba(255,255,255,0.02);
  text-decoration: none;
  transition: border-color 0.18s, color 0.18s;
  flex-shrink: 0;
}
.mgpt-nav-lang:hover { border-color: rgba(58,160,255,0.35); color: var(--white); }

.mgpt-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.mgpt-nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--white-dim);
  border-radius: 2px;
  transition: 0.25s ease;
}

.mgpt-nav-drawer {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 14px 0 18px;
  border-top: 1px solid var(--border);
  background: rgba(10,18,26,0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.mgpt-nav-drawer a {
  padding: 11px 16px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white-dim);
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}
.mgpt-nav-drawer a:hover { background: rgba(255,255,255,0.05); color: var(--white); }
.mgpt-nav-drawer .mgpt-nav-cta { margin: 8px 16px 0; justify-content: center; font-size: 0.82rem; }

/* Language Switcher — desktop pill */
.mgpt-nav-langs {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,0.02);
  flex-shrink: 0;
  overflow: hidden;
}
.mgpt-nav-langs a {
  padding: 5px 12px;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7b8d;
  text-decoration: none;
  transition: color 0.18s, background 0.18s;
}
.mgpt-nav-langs a:hover { color: var(--white); background: rgba(255,255,255,0.05); }
.mgpt-nav-langs a.current { color: var(--teal); background: rgba(0,210,168,0.1); }
.mgpt-nav-langs a + a { border-left: 1px solid var(--border); }

/* Language Switcher — mobile drawer row */
.mgpt-drawer-langs {
  display: flex;
  gap: 6px;
  padding: 10px 16px 8px;
  border-bottom: 1px solid rgba(34,50,66,0.5);
  margin-bottom: 4px;
}
.mgpt-drawer-langs a {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: #6b7b8d;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: color 0.18s, background 0.18s, border-color 0.18s;
}
.mgpt-drawer-langs a:hover { color: var(--white); background: rgba(255,255,255,0.05); }
.mgpt-drawer-langs a.current { color: var(--teal); background: rgba(0,210,168,0.08); border-color: rgba(0,210,168,0.3); }

@media (max-width: 820px) {
  .mgpt-nav-links, .mgpt-nav-cta, .mgpt-nav-langs { display: none; }
  .mgpt-nav-toggle { display: flex; }
}
.mgpt-nav-drawer.open { display: flex; }

/* -----------------------------------------------
   Buttons
----------------------------------------------- */
.btn-primary, .btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.83rem;
  padding: 14px 28px;
  border-radius: 999px;
  transition: 0.24s ease;
}
.btn-primary {
  background: var(--grad-primary);
  color: var(--white);
  box-shadow: 0 18px 40px rgba(0,210,168,0.14);
}
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.04); }
.btn-outline {
  border: 1px solid var(--border);
  color: var(--white);
  background: rgba(255,255,255,0.02);
}
.btn-outline:hover { border-color: rgba(58,160,255,0.35); background: rgba(58,160,255,0.08); }

/* Larger gradient CTA button used on page sections */
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.9rem;
  padding: 16px 40px;
  border-radius: 999px;
  background: var(--grad-primary);
  color: #f7f7f7;
  box-shadow: 0 20px 50px rgba(0,210,168,0.18);
  transition: all 0.24s ease;
}
.btn-cta::after { content: "→"; font-size: 1rem; }
.btn-cta:hover {
  transform: translateY(-3px);
  filter: brightness(1.08);
  box-shadow: 0 28px 60px rgba(0,210,168,0.26);
  color: #f7f7f7;
}

/* -----------------------------------------------
   Page Hero
----------------------------------------------- */
.page-hero {
  position: relative;
  min-height: 440px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10,18,26,0.74);
}
.page-hero-inner {
  position: relative;
  z-index: 1;
  padding: 90px 5%;
  max-width: 860px;
}
.page-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.74rem;
  font-weight: 800;
  margin-bottom: 18px;
}
.page-hero-eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 18px rgba(0,210,168,0.6);
  flex-shrink: 0;
}
.page-hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.page-hero p {
  font-size: 1.05rem;
  color: var(--white-dim);
  margin-bottom: 34px;
  line-height: 1.8;
  max-width: 640px;
}
.page-hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

@media (max-width: 560px) {
  .page-hero { min-height: 340px; }
  .page-hero-inner { padding: 64px 4%; }
  .page-hero-actions { flex-direction: column; }
  .page-hero-actions .btn-primary,
  .page-hero-actions .btn-outline { width: 100%; justify-content: center; }
}

/* -----------------------------------------------
   Section Eyebrow
----------------------------------------------- */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.74rem;
  font-weight: 800;
  font-family: var(--font-body);
  margin-bottom: 14px;
}
.section-eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 18px rgba(0,210,168,0.45);
  flex-shrink: 0;
}

/* -----------------------------------------------
   Footer
----------------------------------------------- */
footer {
  padding: 28px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--white-dim);
}
.footer-right { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.footer-right a { text-decoration: none; color: inherit; }
.footer-right a:hover { color: var(--accent-light); }
.footer-social {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 14px;
  margin-left: 4px;
  border-left: 1px solid var(--border);
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: #6b7b8d;
  text-decoration: none;
  transition: color 0.18s, border-color 0.18s, background 0.18s;
}
.footer-social a:hover { color: var(--white); border-color: rgba(58,160,255,0.35); background: rgba(58,160,255,0.08); }
.footer-social svg { display: block; }
