/* ════════════════════════════════════════════
   XENTRA GLOBAL – Brand Stylesheet v1.0
   ════════════════════════════════════════════ */

:root {
  --red:       #e31e24;
  --red-dark:  #b01519;
  --red-glow:  rgba(227,30,36,0.15);
  --black:     #0a0a0a;
  --dark:      #111111;
  --dark2:     #1a1a1a;
  --dark3:     #222222;
  --grey:      #888888;
  --light:     #f0f0f0;
  --white:     #ffffff;
  --ff-display:'Bebas Neue', sans-serif;
  --ff-cond:   'Barlow Condensed', sans-serif;
  --ff-body:   'Barlow', sans-serif;
}

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

body.xentra-page {
  background: var(--black);
  color: var(--white);
  font-family: var(--ff-body);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--red); }

/* ── TYPOGRAPHY ── */
.xg-display    { font-family: var(--ff-display); line-height: 0.95; letter-spacing: 0.02em; }
.xg-cond       { font-family: var(--ff-cond); }
.xg-accent     { color: var(--red); }
.xg-muted      { color: rgba(255,255,255,0.45); }

/* ── NAV ── */
.xg-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%; height: 72px;
  background: rgba(10,10,10,0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(227,30,36,0.12);
  transition: height 0.3s, background 0.3s;
}
.xg-nav.scrolled { height: 58px; background: rgba(10,10,10,0.98); }
.xg-nav-logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; flex-shrink: 0;
}
.xg-nav-logo svg { width: 36px; height: 36px; flex-shrink: 0; }
.xg-nav-logo-text {
  font-family: var(--ff-cond); font-weight: 800; font-size: 1.3rem;
  letter-spacing: 0.14em; color: var(--white); text-transform: uppercase;
}
.xg-nav-logo-text span { color: var(--red); }
.xg-nav-menu { display: flex; align-items: center; gap: 0; list-style: none; }
.xg-nav-menu li { position: relative; }
.xg-nav-menu > li > a {
  display: block; padding: 0 16px; height: 72px; line-height: 72px;
  color: rgba(255,255,255,0.62); text-decoration: none;
  font-family: var(--ff-cond); font-weight: 600; font-size: 0.82rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  transition: color 0.25s, background 0.25s;
  white-space: nowrap;
}
.xg-nav-menu > li > a:hover,
.xg-nav-menu > li.current > a { color: var(--white); background: rgba(255,255,255,0.04); }
.xg-nav-menu > li.current > a::after {
  content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 28px; height: 2px; background: var(--red);
}

/* Dropdown */
.xg-nav-menu .xg-dropdown {
  position: absolute; top: 100%; left: 0; min-width: 220px;
  background: var(--dark2); border: 1px solid rgba(255,255,255,0.08);
  border-top: 2px solid var(--red);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all 0.25s; list-style: none; padding: 8px 0; z-index: 100;
}
.xg-nav-menu li:hover .xg-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.xg-dropdown li a {
  display: block; padding: 10px 20px;
  color: rgba(255,255,255,0.55); text-decoration: none;
  font-family: var(--ff-cond); font-weight: 600; font-size: 0.82rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  transition: color 0.2s, padding-left 0.2s;
}
.xg-dropdown li a:hover { color: var(--red); padding-left: 28px; }
.xg-dropdown li a::before { content: '→ '; color: var(--red); opacity: 0; transition: opacity 0.2s; }
.xg-dropdown li a:hover::before { opacity: 1; }

.xg-nav-cta {
  margin-left: 16px; padding: 9px 22px;
  background: var(--red); color: var(--white) !important;
  font-family: var(--ff-cond) !important; font-weight: 700 !important;
  font-size: 0.8rem !important; letter-spacing: 0.18em !important;
  text-transform: uppercase; text-decoration: none;
  border: 2px solid var(--red); transition: background 0.25s, color 0.25s;
  white-space: nowrap; display: inline-block; line-height: normal !important;
  height: auto !important;
}
.xg-nav-cta:hover { background: transparent !important; color: var(--red) !important; }

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

/* Mobile menu overlay */
.xg-mobile-menu {
  position: fixed; inset: 0; z-index: 9998;
  background: var(--black); display: flex; flex-direction: column;
  justify-content: center; align-items: center; gap: 4px;
  transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.77,0,0.175,1);
}
.xg-mobile-menu.open { transform: translateX(0); }
.xg-mobile-menu a {
  font-family: var(--ff-display); font-size: 2.4rem; letter-spacing: 0.06em;
  color: var(--white); text-decoration: none; padding: 8px 0; transition: color 0.2s;
}
.xg-mobile-menu a:hover { color: var(--red); }
.xg-mobile-close {
  position: absolute; top: 22px; right: 5%;
  background: none; border: none; color: var(--white); font-size: 1.6rem;
  cursor: pointer; line-height: 1; padding: 8px;
}

/* ── BUTTONS ── */
.xg-btn {
  display: inline-block; padding: 14px 34px;
  font-family: var(--ff-cond); font-weight: 700; font-size: 0.88rem;
  letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none;
  border: 2px solid var(--red); cursor: pointer; transition: all 0.28s;
}
.xg-btn-solid   { background: var(--red); color: var(--white); }
.xg-btn-solid:hover   { background: transparent; color: var(--red); }
.xg-btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.25); }
.xg-btn-outline:hover { border-color: var(--red); color: var(--red); }
.xg-btn-sm { padding: 9px 22px; font-size: 0.78rem; }

/* ── SECTION SHARED ── */
.xg-section { padding: 100px 5%; }
.xg-section-sm { padding: 64px 5%; }
.xg-container { max-width: 1320px; margin: 0 auto; }

.xg-sec-label {
  font-family: var(--ff-cond); font-weight: 600; font-size: 0.72rem;
  letter-spacing: 0.38em; color: var(--red); text-transform: uppercase;
  margin-bottom: 1rem; display: flex; align-items: center; gap: 12px;
}
.xg-sec-label::before { content: ''; width: 28px; height: 2px; background: var(--red); flex-shrink: 0; }

.xg-sec-title {
  font-family: var(--ff-display); font-size: clamp(2.5rem, 5vw, 4.8rem);
  line-height: 0.94; letter-spacing: 0.02em; margin-bottom: 1.4rem;
}
.xg-sec-body {
  font-size: 1rem; color: rgba(255,255,255,0.5); max-width: 580px;
  line-height: 1.85; font-weight: 300;
}

/* ── PAGE HERO ── */
.xg-hero {
  min-height: 100vh; display: flex; align-items: flex-end;
  padding: 120px 5% 8%; position: relative; overflow: hidden;
  background: var(--black);
}
.xg-hero-bg { position: absolute; inset: 0; }
.xg-hero-content { position: relative; z-index: 2; max-width: 700px; }
.xg-hero-tag {
  font-family: var(--ff-cond); font-weight: 600; font-size: 0.72rem;
  letter-spacing: 0.38em; color: var(--red); text-transform: uppercase;
  margin-bottom: 1.5rem; display: flex; align-items: center; gap: 12px;
}
.xg-hero-tag::before { content: ''; width: 28px; height: 2px; background: var(--red); }
.xg-hero-h1 {
  font-family: var(--ff-display); font-size: clamp(3.5rem, 8vw, 8rem);
  line-height: 0.92; letter-spacing: 0.02em; color: var(--white); margin-bottom: 2rem;
}
.xg-hero-sub {
  font-size: 1.05rem; color: rgba(255,255,255,0.52);
  max-width: 480px; margin-bottom: 3rem; font-weight: 300; line-height: 1.8;
}
.xg-hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Inner page hero (shorter) */
.xg-hero-inner { min-height: 52vh; padding: 160px 5% 6%; }

/* Scroll indicator */
.xg-scroll-hint {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 2;
  font-family: var(--ff-cond); font-size: 0.68rem; letter-spacing: 0.25em;
  color: rgba(255,255,255,0.28); text-transform: uppercase;
}
.xg-scroll-line { width: 1px; height: 38px; background: rgba(255,255,255,0.12); overflow: hidden; position: relative; }
.xg-scroll-line::after {
  content: ''; position: absolute; top: -100%; left: 0; width: 100%; height: 100%;
  background: var(--red); animation: xgScrollAnim 2s ease-in-out infinite;
}
@keyframes xgScrollAnim { 0% { top: -100%; } 100% { top: 100%; } }

/* Decorative arrows (home hero) */
.xg-hero-arrows {
  position: absolute; right: -3%; top: 50%; transform: translateY(-50%);
  width: 58%; height: 100%; display: flex; align-items: center; pointer-events: none;
}
.xg-hero-arrows svg { width: 100%; height: 85%; }

/* Page-specific hero bg patterns */
.xg-hero-adv    .xg-hero-bg { background: linear-gradient(135deg, #0a0a0a 0%, #1a0505 50%, #0a0a0a 100%); }
.xg-hero-events .xg-hero-bg { background: linear-gradient(135deg, #0a0a0a 0%, #0d0a1a 50%, #0a0a0a 100%); }
.xg-hero-fm     .xg-hero-bg { background: linear-gradient(135deg, #0a0a0a 0%, #0a140a 50%, #0a0a0a 100%); }
.xg-hero-trade  .xg-hero-bg { background: linear-gradient(135deg, #0a0a0a 0%, #0a0f1a 50%, #0a0a0a 100%); }
.xg-hero-invest .xg-hero-bg { background: linear-gradient(135deg, #0a0a0a 0%, #0f100a 50%, #0a0a0a 100%); }
.xg-hero-edu    .xg-hero-bg { background: linear-gradient(135deg, #0a0a0a 0%, #0f0a0f 50%, #0a0a0a 100%); }
.xg-hero-about  .xg-hero-bg { background: linear-gradient(135deg, #0a0a0a 0%, #1a0505 60%, #0a0a0a 100%); }
.xg-hero-contact .xg-hero-bg { background: linear-gradient(135deg, #0a0a0a 0%, #100a0a 100%); }

/* Geometric hero decoration */
.xg-hero-geo {
  position: absolute; right: 0; top: 0; bottom: 0; width: 50%; pointer-events: none;
  display: flex; align-items: center; justify-content: flex-end;
}
.xg-hero-geo svg { width: 90%; height: 90%; opacity: 0.7; }

/* ── STATS STRIP ── */
.xg-stats-strip { background: var(--red); }
.xg-stats-grid  { display: grid; grid-template-columns: repeat(4, 1fr); }
.xg-stat {
  padding: 40px 5%; border-right: 1px solid rgba(0,0,0,0.12); text-align: center;
}
.xg-stat:last-child { border-right: none; }
.xg-stat-num { font-family: var(--ff-display); font-size: 3.8rem; color: var(--white); line-height: 1; }
.xg-stat-lbl { font-family: var(--ff-cond); font-weight: 600; font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.68); margin-top: 6px; }

/* ── FEATURE GRID ── */
.xg-feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,0.06); }
.xg-feature-card {
  background: var(--dark); padding: 40px 32px; position: relative; overflow: hidden;
  transition: background 0.3s;
}
.xg-feature-card::before {
  content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 3px;
  background: var(--red); transition: width 0.45s ease;
}
.xg-feature-card:hover { background: var(--dark2); }
.xg-feature-card:hover::before { width: 100%; }
.xg-feature-icon {
  width: 50px; height: 50px; background: var(--red-glow);
  border: 1px solid rgba(227,30,36,0.22); display: flex; align-items: center;
  justify-content: center; margin-bottom: 1.5rem; transition: background 0.3s;
}
.xg-feature-card:hover .xg-feature-icon { background: rgba(227,30,36,0.2); }
.xg-feature-icon svg { width: 22px; height: 22px; stroke: var(--red); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.xg-feature-num { position: absolute; top: 12px; right: 16px; font-family: var(--ff-display); font-size: 5rem; color: rgba(255,255,255,0.03); line-height: 1; }
.xg-feature-title { font-family: var(--ff-cond); font-weight: 700; font-size: 1.2rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 1rem; }
.xg-feature-desc { font-size: 0.88rem; color: rgba(255,255,255,0.44); line-height: 1.75; }

/* ── TWO COL LAYOUT ── */
.xg-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: center; }
.xg-two-col-rev { grid-template-columns: 1fr 1fr; direction: rtl; }
.xg-two-col-rev > * { direction: ltr; }

/* Visual block */
.xg-vis-block {
  aspect-ratio: 4/5; background: var(--dark2);
  position: relative; overflow: hidden;
}
.xg-vis-block-inner { display: flex; align-items: center; justify-content: center; height: 100%; }
.xg-vis-x { font-family: var(--ff-display); font-size: 18rem; color: rgba(227,30,36,0.05); line-height: 1; user-select: none; }
.xg-vis-badge {
  position: absolute; bottom: 0; right: 0;
  background: var(--red); padding: 22px 26px;
}
.xg-vis-badge-num { font-family: var(--ff-display); font-size: 2.6rem; color: var(--white); line-height: 1; }
.xg-vis-badge-txt { font-family: var(--ff-cond); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.7); }
.xg-vis-line { position: absolute; top: 24px; left: -20px; width: 40px; height: 2px; background: var(--red); }

/* ── CHECKLIST ── */
.xg-checklist { list-style: none; margin: 2rem 0; }
.xg-checklist li {
  padding: 10px 0 10px 32px; position: relative;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.65); font-size: 0.95rem; line-height: 1.5;
}
.xg-checklist li:last-child { border-bottom: none; }
.xg-checklist li::before { content: '→'; position: absolute; left: 0; color: var(--red); font-weight: 700; }

/* ── PROCESS STEPS ── */
.xg-process { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; position: relative; margin-top: 4rem; }
.xg-process::before { content: ''; position: absolute; top: 28px; left: 10%; right: 10%; height: 1px; background: rgba(255,255,255,0.08); z-index: 0; }
.xg-step { padding: 0 16px; text-align: center; z-index: 1; }
.xg-step-dot { width: 14px; height: 14px; background: var(--red); border-radius: 50%; margin: 0 auto 1.5rem; box-shadow: 0 0 0 4px rgba(227,30,36,0.15); }
.xg-step-title { font-family: var(--ff-cond); font-weight: 700; font-size: 0.88rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--white); margin-bottom: 8px; }
.xg-step-desc { font-size: 0.8rem; color: rgba(255,255,255,0.38); line-height: 1.6; }

/* ── WHY CARDS ── */
.xg-why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: rgba(255,255,255,0.06); margin-top: 3rem; }
.xg-why-card {
  background: var(--dark); padding: 32px 28px; position: relative;
  overflow: hidden; border-left: 3px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.xg-why-card:hover { border-left-color: var(--red); background: var(--dark2); }
.xg-why-card h4 { font-family: var(--ff-cond); font-weight: 700; font-size: 1rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--white); margin-bottom: 10px; }
.xg-why-card p { font-size: 0.875rem; color: rgba(255,255,255,0.42); line-height: 1.7; }

/* ── TIMELINE ── */
.xg-timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; margin-top: 5rem; }
.xg-timeline::before { content: ''; position: absolute; top: 28px; left: 12.5%; right: 12.5%; height: 1px; background: rgba(255,255,255,0.08); }
.xg-tl-item { padding: 0 20px 0 0; position: relative; z-index: 1; }
.xg-tl-dot { width: 14px; height: 14px; background: var(--red); border: 3px solid var(--dark); box-shadow: 0 0 0 2px var(--red); border-radius: 50%; margin-bottom: 1.5rem; }
.xg-tl-year { font-family: var(--ff-display); font-size: 2.4rem; color: var(--red); line-height: 1; margin-bottom: 6px; }
.xg-tl-title { font-family: var(--ff-cond); font-weight: 700; font-size: 0.9rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--white); margin-bottom: 8px; }
.xg-tl-desc { font-size: 0.82rem; color: rgba(255,255,255,0.4); line-height: 1.65; }

/* ── BRAND CARDS ── */
.xg-brand-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 4rem; }
.xg-brand-card {
  background: var(--dark2); padding: 32px 28px;
  border: 1px solid rgba(255,255,255,0.04);
  transition: border-color 0.3s, transform 0.3s; text-decoration: none; display: block;
}
.xg-brand-card:hover { border-color: rgba(227,30,36,0.3); transform: translateY(-5px); }
.xg-brand-letter { font-family: var(--ff-display); font-size: 3.5rem; color: var(--red); line-height: 1; margin-bottom: 0.75rem; }
.xg-brand-name { font-family: var(--ff-cond); font-weight: 700; font-size: 1.1rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--white); margin-bottom: 0.75rem; }
.xg-brand-desc { font-size: 0.85rem; color: rgba(255,255,255,0.4); line-height: 1.7; margin-bottom: 1rem; }
.xg-brand-link { font-family: var(--ff-cond); font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--red); }

/* ── RED BAND (CTA) ── */
.xg-red-band { background: var(--red); padding: 80px 5%; }
.xg-red-band-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 2rem; max-width: 1100px; margin: 0 auto; }
.xg-red-band h2 { font-family: var(--ff-display); font-size: clamp(2rem, 4vw, 3.8rem); color: var(--white); line-height: 1; }
.xg-red-band p { color: rgba(255,255,255,0.72); font-size: 1rem; margin-top: 8px; }
.xg-btn-white { background: var(--white); color: var(--red); border-color: var(--white); }
.xg-btn-white:hover { background: var(--black); color: var(--white); border-color: var(--black); }

/* ── GOVERNANCE BAND ── */
.xg-gov-band { background: var(--dark); padding: 100px 5%; }
.xg-gov-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: center; margin-top: 4rem; }
.xg-pillar-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(255,255,255,0.06); }
.xg-pillar { background: var(--dark2); padding: 28px 24px; border-left: 3px solid var(--red); }
.xg-pillar h4 { font-family: var(--ff-cond); font-weight: 700; font-size: 0.88rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--white); margin-bottom: 8px; }
.xg-pillar p { font-size: 0.85rem; color: rgba(255,255,255,0.45); line-height: 1.65; }

/* ── QUOTE ── */
.xg-quote-section { max-width: 860px; margin: 0 auto; text-align: center; padding: 100px 5%; }
.xg-quote-mark { font-family: var(--ff-display); font-size: 9rem; color: var(--red); line-height: 0.4; display: block; margin-bottom: 2rem; opacity: 0.5; }
.xg-quote-text { font-size: 1.12rem; color: rgba(255,255,255,0.68); line-height: 1.9; font-style: italic; font-weight: 300; margin-bottom: 2.5rem; }
.xg-quote-divider { width: 56px; height: 2px; background: var(--red); margin: 0 auto 1rem; }
.xg-quote-author { font-family: var(--ff-cond); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--red); }

/* ── VM CARDS ── */
.xg-vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 3rem; }
.xg-vm-card { background: var(--dark2); padding: 24px; border-top: 2px solid var(--red); }
.xg-vm-card h4 { font-family: var(--ff-cond); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--red); margin-bottom: 10px; }
.xg-vm-card p { font-size: 0.875rem; color: rgba(255,255,255,0.5); line-height: 1.7; }

/* ── CONTACT ── */
.xg-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; }
.xg-contact-item { display: flex; gap: 1.5rem; align-items: flex-start; margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,0.06); }
.xg-contact-item:last-child { border-bottom: none; }
.xg-contact-icon { width: 44px; height: 44px; flex-shrink: 0; background: var(--red-glow); border: 1px solid rgba(227,30,36,0.22); display: flex; align-items: center; justify-content: center; }
.xg-contact-icon svg { width: 18px; height: 18px; stroke: var(--red); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.xg-contact-lbl { font-family: var(--ff-cond); font-weight: 600; font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--grey); margin-bottom: 4px; }
.xg-contact-val { color: var(--white); font-size: 1rem; text-decoration: none; transition: color 0.25s; }
.xg-contact-val:hover { color: var(--red); }

/* FORM */
.xg-form-group { margin-bottom: 1.2rem; }
.xg-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.xg-form-group input,
.xg-form-group textarea,
.xg-form-group select {
  width: 100%; background: var(--dark2); border: 1px solid rgba(255,255,255,0.08);
  color: var(--white); padding: 14px 18px; font-family: var(--ff-body); font-size: 0.9rem;
  outline: none; transition: border-color 0.25s; -webkit-appearance: none; appearance: none;
  font-weight: 300;
}
.xg-form-group input:focus,
.xg-form-group textarea:focus,
.xg-form-group select:focus { border-color: var(--red); }
.xg-form-group textarea { min-height: 140px; resize: vertical; }
.xg-form-group select option { background: var(--dark2); color: var(--white); }
.xg-form-title { font-family: var(--ff-cond); font-weight: 700; font-size: 1.4rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 1.5rem; }
.xg-form-msg { margin-top: 1rem; padding: 14px 18px; font-family: var(--ff-cond); font-size: 0.88rem; letter-spacing: 0.08em; display: none; }
.xg-form-msg.success { background: rgba(34,197,94,0.08); border: 1px solid rgba(34,197,94,0.3); color: #22c55e; }
.xg-form-msg.error   { background: rgba(227,30,36,0.08); border: 1px solid rgba(227,30,36,0.3); color: var(--red); }
#xg-submit { width: 100%; margin-top: 8px; cursor: pointer; border: 2px solid var(--red); }

/* ── FOOTER ── */
.xg-footer { background: var(--dark); border-top: 1px solid rgba(255,255,255,0.05); padding: 72px 5% 32px; }
.xg-footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3.5rem; }
.xg-footer-brand-txt { font-family: var(--ff-cond); font-weight: 800; font-size: 1.2rem; letter-spacing: 0.14em; color: var(--white); text-transform: uppercase; }
.xg-footer-brand-txt span { color: var(--red); }
.xg-footer-tagline { font-size: 0.82rem; color: rgba(255,255,255,0.3); line-height: 1.75; max-width: 220px; margin-top: 12px; }
.xg-footer-col h5 { font-family: var(--ff-cond); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--white); margin-bottom: 1.25rem; padding-bottom: 0.75rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
.xg-footer-col ul { list-style: none; }
.xg-footer-col ul li { margin-bottom: 0.6rem; }
.xg-footer-col ul li a { color: rgba(255,255,255,0.35); text-decoration: none; font-size: 0.85rem; transition: color 0.25s; }
.xg-footer-col ul li a:hover { color: var(--red); }
.xg-footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.05); font-size: 0.76rem; color: rgba(255,255,255,0.22); flex-wrap: wrap; gap: 1rem; }
.xg-footer-logo-link { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-bottom: 12px; }

/* ── SERVICE DETAIL SECTIONS ── */
.xg-service-intro { padding: 100px 5%; background: var(--dark); }
.xg-service-intro-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 5rem; align-items: start; }
.xg-service-offerings { padding: 100px 5%; background: var(--black); }
.xg-offerings-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-top: 3.5rem; }
.xg-offering-card { background: var(--dark2); padding: 32px 28px; border-top: 2px solid rgba(227,30,36,0.3); transition: border-color 0.3s; }
.xg-offering-card:hover { border-top-color: var(--red); }
.xg-offering-num { font-family: var(--ff-display); font-size: 2.8rem; color: rgba(227,30,36,0.2); line-height: 1; margin-bottom: 12px; }
.xg-offering-title { font-family: var(--ff-cond); font-weight: 700; font-size: 1rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--white); margin-bottom: 10px; }
.xg-offering-desc { font-size: 0.875rem; color: rgba(255,255,255,0.42); line-height: 1.75; }
.xg-offering-list { list-style: none; margin-top: 12px; }
.xg-offering-list li { font-size: 0.82rem; color: rgba(255,255,255,0.38); padding: 4px 0 4px 16px; position: relative; }
.xg-offering-list li::before { content: '•'; color: var(--red); position: absolute; left: 0; }

/* ── FULL-WIDTH DARK SECTION ── */
.xg-dark-section  { background: var(--dark2); padding: 100px 5%; }
.xg-black-section { background: var(--black); padding: 100px 5%; }
.xg-red-section   { background: var(--red); padding: 100px 5%; }

/* ── PAGE BREADCRUMB ── */
.xg-breadcrumb { padding: 92px 5% 0; background: var(--black); }
.xg-breadcrumb-inner { display: flex; align-items: center; gap: 8px; font-family: var(--ff-cond); font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(255,255,255,0.3); }
.xg-breadcrumb-inner a { color: rgba(255,255,255,0.3); text-decoration: none; transition: color 0.2s; }
.xg-breadcrumb-inner a:hover { color: var(--red); }
.xg-breadcrumb-inner span { color: var(--red); }

/* ── HOME SERVICES STRIP ── */
.xg-home-services { background: var(--dark); padding: 100px 5%; }
.xg-home-svc-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 4rem; flex-wrap: wrap; gap: 2rem; }

/* ── ANIMATIONS ── */
.xg-fade { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.xg-fade.xg-visible { opacity: 1; transform: translateY(0); }
.xg-fade-d1 { transition-delay: 0.1s; }
.xg-fade-d2 { transition-delay: 0.2s; }
.xg-fade-d3 { transition-delay: 0.3s; }
.xg-fade-d4 { transition-delay: 0.4s; }
.xg-fade-d5 { transition-delay: 0.5s; }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .xg-feature-grid   { grid-template-columns: repeat(2, 1fr); }
  .xg-brand-grid     { grid-template-columns: repeat(2, 1fr); }
  .xg-footer-top     { grid-template-columns: 1fr 1fr; }
  .xg-stats-grid     { grid-template-columns: repeat(2, 1fr); }
  .xg-process        { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .xg-process::before { display: none; }
}
@media (max-width: 900px) {
  .xg-two-col, .xg-two-col-rev { grid-template-columns: 1fr; gap: 3rem; }
  .xg-gov-grid { grid-template-columns: 1fr; gap: 3rem; }
  .xg-contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .xg-service-intro-grid { grid-template-columns: 1fr; gap: 3rem; }
  .xg-timeline { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .xg-timeline::before { display: none; }
  .xg-why-grid { grid-template-columns: 1fr; }
  .xg-offerings-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .xg-nav-menu   { display: none; }
  .xg-hamburger  { display: flex; }
  .xg-section    { padding: 72px 5%; }
  .xg-feature-grid { grid-template-columns: 1fr; }
  .xg-brand-grid { grid-template-columns: 1fr; }
  .xg-footer-top { grid-template-columns: 1fr; }
  .xg-stats-grid { grid-template-columns: 1fr 1fr; }
  .xg-vm-grid    { grid-template-columns: 1fr; }
  .xg-timeline   { grid-template-columns: 1fr; }
  .xg-process    { grid-template-columns: 1fr 1fr; }
  .xg-pillar-grid { grid-template-columns: 1fr; }
  .xg-form-row   { grid-template-columns: 1fr; }
  .xg-hero-arrows { opacity: 0.2; }
  .xg-red-band-inner { flex-direction: column; }
}

/* ═══════════════════════════════════════════
   SOCIAL MEDIA FLOATING BAR
═══════════════════════════════════════════ */
.xg-social-bar {
  position: fixed; right: 0; top: 50%; transform: translateY(-50%);
  z-index: 500; display: flex; flex-direction: column;
  background: var(--dark2); border: 1px solid rgba(255,255,255,0.07);
  border-right: none; border-radius: 6px 0 0 6px;
  overflow: hidden; box-shadow: -4px 0 24px rgba(0,0,0,0.4);
}
.xg-social-bar .xg-si {
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; color: rgba(255,255,255,0.4);
  text-decoration: none; transition: all 0.25s;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.xg-social-bar .xg-si:last-child { border-bottom: none; }
.xg-social-bar .xg-si:hover { background: var(--red); color: #fff; transform: translateX(-3px); }
.xg-social-bar .xg-si svg { flex-shrink: 0; }

/* Footer inline social icons */
.xg-social-inline {
  display: flex; align-items: center; gap: 8px;
}
.xg-social-inline .xg-si {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.4); text-decoration: none;
  border-radius: 2px; transition: all 0.25s;
}
.xg-social-inline .xg-si:hover { background: var(--red); color: #fff; border-color: var(--red); }

/* ═══════════════════════════════════════════
   TEAM SECTION (Front-end)
═══════════════════════════════════════════ */
.xg-team-section { background: var(--black); }

.xg-team-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: rgba(255,255,255,0.05);
  margin-top: 4rem;
}

.xg-team-card {
  background: var(--dark); position: relative;
  overflow: hidden; transition: background 0.3s;
}
.xg-team-card:hover { background: var(--dark2); }

.xg-tm-photo-wrap {
  position: relative; aspect-ratio: 4/5; overflow: hidden;
  background: var(--dark2);
}
.xg-tm-photo {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: grayscale(20%); transition: filter 0.4s, transform 0.4s;
}
.xg-team-card:hover .xg-tm-photo { filter: grayscale(0%); transform: scale(1.03); }

.xg-tm-photo--fallback {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--dark2), var(--dark3));
  font-family: var(--ff-display); font-size: 5rem; color: rgba(227,30,36,0.12);
  aspect-ratio: 4/5;
}
.xg-tm-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.85) 0%, transparent 50%);
}

.xg-tm-info {
  padding: 28px 24px;
  border-top: 2px solid var(--red);
}
.xg-tm-name {
  font-family: var(--ff-cond); font-weight: 700; font-size: 1.15rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--white);
  margin-bottom: 4px;
}
.xg-tm-position {
  font-family: var(--ff-cond); font-weight: 600; font-size: 0.72rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--red);
  margin-bottom: 12px;
}
.xg-tm-bio {
  font-size: 0.82rem; color: rgba(255,255,255,0.38); line-height: 1.65; margin-bottom: 16px;
}
.xg-tm-socials {
  display: flex; gap: 8px; align-items: center;
}
.xg-tm-social {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.4); text-decoration: none; transition: all 0.25s;
}
.xg-tm-social:hover { background: var(--red); color: var(--white); border-color: var(--red); }
.xg-tm-social svg { flex-shrink: 0; }

/* Responsive team grid */
@media (max-width: 1200px) { .xg-team-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px)  { .xg-team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .xg-team-grid { grid-template-columns: 1fr; } }
@media (max-width: 768px)  {
  .xg-social-bar { display: none !important; }
}

/* ═══════════════════════════════════════════
   PORTFOLIO SECTION (front-end)
═══════════════════════════════════════════ */
.xg-portfolio-section { background: var(--dark); }

.xg-pf-filters {
  display: flex; gap: 8px; flex-wrap: wrap; margin: 2rem 0 2.5rem;
}
.xg-pf-filter {
  padding: 8px 20px; background: transparent;
  border: 1px solid rgba(255,255,255,0.12); color: rgba(255,255,255,0.5);
  font-family: var(--ff-cond); font-weight: 600; font-size: 0.78rem;
  letter-spacing: 0.15em; text-transform: uppercase; cursor: pointer;
  transition: all 0.25s;
}
.xg-pf-filter:hover { border-color: var(--red); color: var(--white); }
.xg-pf-filter.active { background: var(--red); border-color: var(--red); color: var(--white); }

.xg-pf-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.xg-pf-card {
  background: var(--dark2); position: relative; overflow: hidden;
  transition: transform 0.3s, border-color 0.3s;
  border: 1px solid rgba(255,255,255,0.05);
}
.xg-pf-card:hover { transform: translateY(-4px); border-color: rgba(227,30,36,0.25); }

.xg-pf-thumb {
  height: 240px; background-size: cover; background-position: center;
  background-color: var(--dark3); cursor: pointer; position: relative; overflow: hidden;
  transition: transform 0.4s;
}
.xg-pf-card:hover .xg-pf-thumb { transform: scale(1.03); }
.xg-pf-thumb--empty {
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-display); font-size: 4rem; color: rgba(227,30,36,0.1);
}

.xg-pf-info { padding: 20px 22px; }
.xg-pf-cat {
  font-family: var(--ff-cond); font-weight: 600; font-size: 0.68rem;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--red);
  display: block; margin-bottom: 6px;
}
.xg-pf-title {
  font-family: var(--ff-cond); font-weight: 700; font-size: 1.05rem;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--white); margin-bottom: 8px;
}
.xg-pf-desc { font-size: 0.82rem; color: rgba(255,255,255,0.38); line-height: 1.65; }

.xg-pf-gallery-btn {
  display: block; width: 100%; padding: 10px 22px;
  background: rgba(227,30,36,0.08); border: none; border-top: 1px solid rgba(227,30,36,0.15);
  color: var(--red); font-family: var(--ff-cond); font-weight: 700; font-size: 0.75rem;
  letter-spacing: 0.18em; text-transform: uppercase; cursor: pointer; transition: background 0.25s;
}
.xg-pf-gallery-btn:hover { background: rgba(227,30,36,0.18); }

/* Responsive portfolio */
@media (max-width: 1100px) { .xg-pf-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .xg-pf-grid { grid-template-columns: 1fr; } }

/* ═══════════════════════════════════════════
   LIGHTBOX
═══════════════════════════════════════════ */
#xg-lightbox {
  position: fixed; inset: 0; z-index: 99999;
  display: none; align-items: center; justify-content: center;
}
#xg-lightbox.open { display: flex; }
.xg-lb-bg {
  position: absolute; inset: 0; background: rgba(0,0,0,0.94); cursor: pointer;
}
.xg-lb-inner {
  position: relative; z-index: 1; display: flex; align-items: center;
  justify-content: center; width: 100%; height: 100%; padding: 60px 80px;
  flex-direction: column;
}
.xg-lb-img {
  max-width: 100%; max-height: calc(100vh - 160px); object-fit: contain;
  box-shadow: 0 20px 80px rgba(0,0,0,0.8); border: 1px solid rgba(255,255,255,0.08);
}
.xg-lb-close {
  position: fixed; top: 20px; right: 24px; background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15); color: #fff; width: 40px; height: 40px;
  border-radius: 50%; font-size: 1.1rem; cursor: pointer; transition: background 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.xg-lb-close:hover { background: var(--red); }
.xg-lb-prev, .xg-lb-next {
  position: fixed; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
  color: #fff; width: 50px; height: 50px; border-radius: 50%;
  font-size: 1.6rem; cursor: pointer; transition: background 0.2s;
  display: flex; align-items: center; justify-content: center; line-height: 1;
}
.xg-lb-prev { left: 20px; }
.xg-lb-next { right: 20px; }
.xg-lb-prev:hover, .xg-lb-next:hover { background: var(--red); }
.xg-lb-counter {
  position: fixed; bottom: 40px; left: 50%; transform: translateX(-50%);
  font-family: var(--ff-cond); font-size: 0.8rem; letter-spacing: 0.2em;
  color: rgba(255,255,255,0.4); text-transform: uppercase;
}
.xg-lb-dots {
  display: flex; gap: 8px; position: fixed; bottom: 64px; left: 50%; transform: translateX(-50%);
}
.xg-lb-dot {
  width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.2);
  cursor: pointer; transition: background 0.2s;
}
.xg-lb-dot.active { background: var(--red); }

/* ═══════════════════════════════════════════
   SOCIAL BAR + TEAM (copied from v3 if missing)
═══════════════════════════════════════════ */
.xg-social-bar {
  position: fixed; right: 0; top: 50%; transform: translateY(-50%);
  z-index: 500; display: flex; flex-direction: column;
  background: var(--dark2); border: 1px solid rgba(255,255,255,0.07);
  border-right: none; border-radius: 6px 0 0 6px; overflow: hidden;
  box-shadow: -4px 0 24px rgba(0,0,0,0.4);
}
.xg-social-bar .xg-si {
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; color: rgba(255,255,255,0.4);
  text-decoration: none; transition: all 0.25s;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.xg-social-bar .xg-si:last-child { border-bottom: none; }
.xg-social-bar .xg-si:hover { background: var(--red); color: #fff; transform: translateX(-3px); }
.xg-social-inline { display: flex; align-items: center; gap: 8px; }
.xg-social-inline .xg-si {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08); color: rgba(255,255,255,0.4);
  text-decoration: none; border-radius: 2px; transition: all 0.25s;
}
.xg-social-inline .xg-si:hover { background: var(--red); color: #fff; border-color: var(--red); }
@media (max-width: 768px) { .xg-social-bar { display: none !important; } }

.xg-team-section { background: var(--black); }
.xg-team-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: rgba(255,255,255,0.05); margin-top: 4rem;
}
.xg-team-card { background: var(--dark); position: relative; overflow: hidden; transition: background 0.3s; }
.xg-team-card:hover { background: var(--dark2); }
.xg-tm-photo-wrap { position: relative; aspect-ratio: 4/5; overflow: hidden; background: var(--dark2); }
.xg-tm-photo { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(15%); transition: filter 0.4s, transform 0.4s; }
.xg-team-card:hover .xg-tm-photo { filter: grayscale(0%); transform: scale(1.03); }
.xg-tm-photo--fallback { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--dark2), var(--dark3)); font-family: var(--ff-display); font-size: 5rem; color: rgba(227,30,36,0.1); aspect-ratio: 4/5; }
.xg-tm-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,10,10,0.85) 0%, transparent 50%); }
.xg-tm-info { padding: 24px 20px; border-top: 2px solid var(--red); }
.xg-tm-name { font-family: var(--ff-cond); font-weight: 700; font-size: 1.1rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--white); margin-bottom: 3px; }
.xg-tm-position { font-family: var(--ff-cond); font-weight: 600; font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--red); margin-bottom: 10px; }
.xg-tm-bio { font-size: 0.8rem; color: rgba(255,255,255,0.38); line-height: 1.65; margin-bottom: 14px; }
.xg-tm-socials { display: flex; gap: 7px; }
.xg-tm-social { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); color: rgba(255,255,255,0.4); text-decoration: none; transition: all 0.25s; }
.xg-tm-social:hover { background: var(--red); color: var(--white); border-color: var(--red); }
@media (max-width: 1200px) { .xg-team-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px)  { .xg-team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .xg-team-grid { grid-template-columns: 1fr; } }

/* ═══════════════════════════════════════
   MOBILE DROPDOWN FIX v4
═══════════════════════════════════════ */
.xg-dd-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,0.4); padding: 4px 8px;
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  transition: transform 0.2s, color 0.2s;
}
.xg-dd-toggle.xg-dd-active { transform: translateY(-50%) rotate(180deg); color: var(--red); }
.xg-has-dropdown { position: relative; }

/* Mobile dropdown open state */
.xg-has-dropdown.xg-dd-open .xg-dropdown {
  opacity: 1 !important; visibility: visible !important; transform: translateY(0) !important;
}

/* Mobile sub-menu in overlay */
.xg-mob-sub {
  display: flex; flex-direction: column; gap: 2px;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 8px 0; margin: 4px 0;
  width: 100%;
}
.xg-mob-sub a {
  font-family: var(--ff-cond) !important;
  font-size: 1.1rem !important;
  color: rgba(255,255,255,0.45) !important;
  padding: 6px 20px !important;
  text-decoration: none;
  transition: color 0.2s, padding-left 0.2s;
  display: block;
}
.xg-mob-sub a::before { content: '→ '; color: var(--red); opacity: 0.6; }
.xg-mob-sub a:hover { color: var(--red) !important; padding-left: 28px !important; }

@media (max-width: 768px) {
  .xg-dd-toggle { display: block; }
}

/* ═══════════════════════════════════════
   PORTFOLIO SECTION (Front-end)
═══════════════════════════════════════ */
.xg-portfolio-section { background: var(--dark); }

.xg-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: rgba(255,255,255,0.04);
  margin-top: 3.5rem;
}

.xg-pf-card {
  aspect-ratio: 4/3;
  position: relative; overflow: hidden;
  cursor: pointer;
  background: var(--dark2);
}

.xg-pf-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
  z-index: 1;
  transition: opacity 0.4s;
  opacity: 0.7;
}
.xg-pf-card:hover::before { opacity: 1; }
.xg-pf-card:hover { transform: scale(1.01); z-index: 2; }

.xg-pf-overlay {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 28px 24px;
  transform: translateY(8px);
  transition: transform 0.35s ease;
}
.xg-pf-card:hover .xg-pf-overlay { transform: translateY(0); }

.xg-pf-tag {
  display: inline-block; margin-bottom: 8px;
  font-family: var(--ff-cond); font-weight: 700;
  font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--white); background: var(--red); padding: 3px 10px;
  align-self: flex-start;
}
.xg-pf-title {
  font-family: var(--ff-cond); font-weight: 700;
  font-size: 1.15rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--white); margin-bottom: 6px; line-height: 1.2;
}
.xg-pf-desc {
  font-size: 0.82rem; color: rgba(255,255,255,0.6); line-height: 1.55;
  margin-bottom: 12px;
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.35s 0.05s, transform 0.35s 0.05s;
}
.xg-pf-card:hover .xg-pf-desc { opacity: 1; transform: translateY(0); }
.xg-pf-btn {
  display: inline-block; font-family: var(--ff-cond); font-weight: 700;
  font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--red); text-decoration: none; border: 1px solid rgba(227,30,36,0.4);
  padding: 6px 16px; transition: all 0.25s; align-self: flex-start;
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.35s 0.1s, transform 0.35s 0.1s, background 0.25s, color 0.25s;
}
.xg-pf-card:hover .xg-pf-btn { opacity: 1; transform: translateY(0); }
.xg-pf-btn:hover { background: var(--red); color: var(--white); }

/* Placeholder card (no image) */
.xg-pf-card-empty {
  display: flex; align-items: center; justify-content: center;
  background: var(--dark2); font-size: 3rem; color: rgba(255,255,255,0.06);
}

/* Responsive portfolio */
@media (max-width: 1100px) { .xg-portfolio-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .xg-portfolio-grid { grid-template-columns: 1fr; } }


/* ═══════════════════════════════════════════
   MOBILE DROPDOWN FIX v4
═══════════════════════════════════════════ */
.xg-dd-toggle {
  display: none;
  background: none; border: none; color: rgba(255,255,255,0.5);
  cursor: pointer; padding: 4px 6px; line-height: 1; vertical-align: middle;
  margin-left: 2px;
}
@media (max-width: 768px) {
  .xg-dd-toggle { display: inline-flex; align-items: center; }
  .xg-nav-menu > li.xg-dd-open .xg-dropdown {
    opacity: 1 !important; visibility: visible !important;
    transform: translateY(0) !important;
    position: static !important; border-top: 2px solid var(--red) !important;
    background: var(--dark2) !important; width: 100% !important;
    box-shadow: none !important; display: block !important;
  }
  .xg-nav-menu > li.xg-dd-open .xg-dd-toggle svg {
    transform: rotate(180deg);
  }
  .xg-nav-menu { display: none !important; }
}

/* Mobile sub-links (Services links in overlay) */
.xg-mob-sub {
  display: flex; flex-direction: column; gap: 2px;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 8px 0; margin: 4px 0;
}
.xg-mob-sub a {
  font-family: var(--ff-cond) !important; font-size: 1.4rem !important;
  color: rgba(255,255,255,0.55) !important; letter-spacing: 0.06em;
  padding: 6px 20px; transition: color 0.2s;
  text-decoration: none; display: block;
}
.xg-mob-sub a:hover { color: var(--red) !important; }
.xg-mobile-menu.open { display: flex !important; }

/* ═══════════════════════════════════════════
   SOCIAL BAR v4
═══════════════════════════════════════════ */
.xg-social-bar {
  position: fixed; right: 0; top: 50%; transform: translateY(-50%);
  z-index: 500; display: flex; flex-direction: column;
  background: var(--dark2); border: 1px solid rgba(255,255,255,0.07);
  border-right: none; border-radius: 6px 0 0 6px;
  overflow: hidden; box-shadow: -4px 0 24px rgba(0,0,0,0.4);
}
.xg-social-bar .xg-si {
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; color: rgba(255,255,255,0.4);
  text-decoration: none; transition: all 0.25s;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.xg-social-bar .xg-si:last-child { border-bottom: none; }
.xg-social-bar .xg-si:hover { background: var(--red); color: #fff; transform: translateX(-3px); }
.xg-social-inline { display: flex; align-items: center; gap: 8px; }
.xg-social-inline .xg-si {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08); color: rgba(255,255,255,0.4);
  text-decoration: none; border-radius: 2px; transition: all 0.25s;
}
.xg-social-inline .xg-si:hover { background: var(--red); color: #fff; border-color: var(--red); }
@media (max-width: 768px) { .xg-social-bar { display: none !important; } }

/* ═══════════════════════════════════════════
   TEAM SECTION v4
═══════════════════════════════════════════ */
.xg-team-section { background: var(--black); }
.xg-team-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: rgba(255,255,255,0.05); margin-top: 4rem;
}
.xg-team-card { background: var(--dark); position: relative; overflow: hidden; transition: background 0.3s; }
.xg-team-card:hover { background: var(--dark2); }
.xg-tm-photo-wrap { position: relative; aspect-ratio: 4/5; overflow: hidden; background: var(--dark2); }
.xg-tm-photo { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(15%); transition: filter 0.4s, transform 0.4s; }
.xg-team-card:hover .xg-tm-photo { filter: grayscale(0%); transform: scale(1.03); }
.xg-tm-photo--fallback {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--dark2), var(--dark3));
  font-family: var(--ff-display); font-size: 5rem; color: rgba(227,30,36,0.1);
  aspect-ratio: 4/5;
}
.xg-tm-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.8) 0%, transparent 55%);
}
.xg-tm-info { padding: 24px 22px; border-top: 2px solid var(--red); }
.xg-tm-name { font-family: var(--ff-cond); font-weight: 700; font-size: 1.1rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--white); margin-bottom: 4px; }
.xg-tm-position { font-family: var(--ff-cond); font-weight: 600; font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--red); margin-bottom: 12px; }
.xg-tm-bio { font-size: 0.82rem; color: rgba(255,255,255,0.35); line-height: 1.65; margin-bottom: 14px; }
.xg-tm-socials { display: flex; gap: 8px; }
.xg-tm-social { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); color: rgba(255,255,255,0.4); text-decoration: none; transition: all 0.25s; }
.xg-tm-social:hover { background: var(--red); color: var(--white); border-color: var(--red); }
.xg-tm-social svg { flex-shrink: 0; }
@media (max-width: 1200px) { .xg-team-grid { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 900px)  { .xg-team-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px)  { .xg-team-grid { grid-template-columns: 1fr; } }

/* ═══════════════════════════════════════════
   PORTFOLIO SECTION v4
═══════════════════════════════════════════ */
.xg-portfolio-section { background: var(--dark); }
.xg-portfolio-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2px; background: rgba(255,255,255,0.05); margin-top: 4rem;
}
.xg-pf-card {
  aspect-ratio: 4/3; position: relative; overflow: hidden;
  background: var(--dark2); cursor: pointer;
  transition: transform 0.35s;
}
.xg-pf-card:hover { transform: scale(1.02); z-index: 2; }
.xg-pf-overlay {
  position: absolute; inset: 0; padding: 28px 24px;
  background: linear-gradient(to top, rgba(10,10,10,0.92) 0%, rgba(10,10,10,0.3) 50%, transparent 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  opacity: 0; transition: opacity 0.35s;
}
.xg-pf-card:hover .xg-pf-overlay { opacity: 1; }
.xg-pf-tag {
  display: inline-block; font-family: var(--ff-cond); font-weight: 600;
  font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--red); border: 1px solid rgba(227,30,36,0.4); padding: 3px 10px;
  margin-bottom: 10px; width: fit-content;
}
.xg-pf-title { font-family: var(--ff-cond); font-weight: 700; font-size: 1.1rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--white); margin-bottom: 6px; }
.xg-pf-desc { font-size: 0.8rem; color: rgba(255,255,255,0.55); line-height: 1.5; margin-bottom: 14px; }
.xg-pf-btn { display: inline-block; font-family: var(--ff-cond); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--white); border: 1px solid rgba(255,255,255,0.3); padding: 7px 18px; text-decoration: none; transition: all 0.25s; }
.xg-pf-btn:hover { background: var(--red); border-color: var(--red); color: var(--white); }
/* Show overlay on mobile (no hover) */
@media (max-width: 768px) {
  .xg-pf-overlay { opacity: 1; background: linear-gradient(to top, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0.2) 60%, transparent 100%); }
  .xg-portfolio-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 480px) { .xg-portfolio-grid { grid-template-columns: 1fr; } }
