:root {
  --bg: #07111f;
  --card: rgba(8, 20, 38, .70);
  --card-2: rgba(13, 30, 53, .74);
  --line: rgba(130, 173, 255, 0.18);
  --text: #eaf4ff;
  --muted: #a8c0de;
  --blue: #2f8cff;
  --blue-2: #6ca7ff;
  --cyan: #5ee4ff;
  --shadow: 0 30px 80px rgba(0,0,0,.42);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  font: 400 16px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: #050d19;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; border: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
main, .site-header, .footer { position: relative; z-index: 2; }

.bg-slideshow {
  position: fixed; inset: 0; z-index: 0; overflow: hidden;
}
.bg-slide {
  position: absolute; inset: -6%; background-size: cover; background-position: center; filter: blur(2px) saturate(1.05); opacity: 0; transform: scale(1.08);
  animation: bgCycle 24s ease-in-out infinite;
}
.slide-one { background-image: url('/assets/service-images/hero-office.png'); opacity: .72; animation-delay: 0s; }
.slide-two { background-image: url('/assets/service-images/taxes-business.png'); animation-delay: 8s; }
.slide-three { background-image: url('/assets/service-images/immigration-consular.png'); animation-delay: 16s; }
.bg-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 10% 15%, rgba(47, 140, 255, .30), transparent 28%),
    radial-gradient(circle at 85% 10%, rgba(94, 228, 255, .18), transparent 25%),
    linear-gradient(180deg, rgba(2, 7, 18, .30), rgba(2, 7, 18, .78) 35%, rgba(2, 7, 18, .92));
}
@keyframes bgCycle {
  0%, 26% { opacity: .12; transform: scale(1.06); }
  8%, 24% { opacity: .72; transform: scale(1); }
  33%, 100% { opacity: 0; transform: scale(1.09); }
}

.bg-grid {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, rgba(255,255,255,.55), transparent 70%);
}
.cursor-glow {
  position: fixed; z-index: 1; width: 280px; height: 280px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(94,228,255,.18), rgba(47,140,255,.08) 35%, transparent 65%);
  transform: translate(-50%, -50%);
  filter: blur(10px);
}
.glass {
  background: linear-gradient(180deg, rgba(12, 26, 48, .68), rgba(7, 17, 31, .78));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px) saturate(1.06);
}

.site-header {
  position: sticky; top: 0; z-index: 20; margin: 16px; padding: 12px 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  border-radius: 22px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 62px; }
.brand span { font-size: 1.08rem; color: #dcebff; letter-spacing: .02em; }
.brand strong { color: white; }
.main-nav { display: flex; align-items: center; gap: 10px; }
.nav-link {
  color: var(--muted); padding: 12px 16px; border-radius: 999px; transition: .25s ease;
}
.nav-link:hover, .nav-link.active { color: white; background: rgba(255,255,255,.08); transform: translateY(-2px); }
.nav-cta { color: #04111f; font-weight: 700; background: linear-gradient(135deg, var(--cyan), var(--blue)); box-shadow: 0 10px 35px rgba(47,140,255,.25); }
.mobile-toggle { display: none; background: transparent; padding: 8px; }
.mobile-toggle span { display: block; width: 28px; height: 3px; margin: 5px 0; border-radius: 999px; background: #fff; }

.section { padding: 96px 24px; }
.hero {
  min-height: calc(100vh - 120px); max-width: 1280px; margin: 0 auto; padding-top: 42px;
  display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 36px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 8px 14px; border-radius: 999px;
  color: #d7eeff; font-size: .86rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.10);
}
h1, h2, h3, h4, p { margin-top: 0; }
h1 { font-size: clamp(3rem, 7vw, 5.4rem); line-height: .95; margin-bottom: 18px; }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.05; margin-bottom: 14px; }
h3 { font-size: clamp(1.35rem, 2.5vw, 1.9rem); line-height: 1.15; margin-bottom: 8px; }
h4 { font-size: 1.18rem; margin-bottom: 8px; }
.hero-text, .section-heading p, .photo-band-copy p { color: var(--muted); max-width: 760px; }
.hero-actions, .trust-row { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-actions { margin: 28px 0 22px; }
.trust-row span {
  padding: 10px 16px; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); color: #dcebff;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 22px;
  border-radius: 999px; font-weight: 700; letter-spacing: .01em; transition: .25s ease;
}
.btn:hover { transform: translateY(-4px) scale(1.01); }
.btn-primary { color: #04111f; background: linear-gradient(135deg, var(--cyan), var(--blue)); box-shadow: 0 14px 38px rgba(47,140,255,.32); }
.btn-ghost { color: white; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); }
.btn-small { min-height: 44px; padding: 0 18px; }

.logo-stage { position: relative; min-height: 520px; display: grid; place-items: center; perspective: 1200px; }
.logo-plate {
  position: relative; width: min(520px, 90vw); aspect-ratio: 1 / 1; border-radius: 38px; display: grid; place-items: center;
  transform-style: preserve-3d; animation: floatPlate 5.8s ease-in-out infinite;
}
.logo-plate img { width: 72%; filter: drop-shadow(0 16px 40px rgba(0,0,0,.38)); }
.plate-shine { position: absolute; inset: 12px; border-radius: 28px; background: linear-gradient(125deg, rgba(255,255,255,.18), transparent 30%, transparent 70%, rgba(255,255,255,.08)); pointer-events: none; }
@keyframes floatPlate { 50% { transform: translateY(-18px) rotateX(9deg) rotateY(-10deg); } }
.cube {
  position: absolute; width: 86px; height: 86px; transform-style: preserve-3d; animation: spinCube 9s linear infinite;
}
.cube span { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(94,228,255,.32), rgba(47,140,255,.22)); border: 1px solid rgba(255,255,255,.14); border-radius: 18px; }
.cube span:nth-child(1) { transform: rotateY(0deg) translateZ(43px); }
.cube span:nth-child(2) { transform: rotateY(90deg) translateZ(43px); }
.cube span:nth-child(3) { transform: rotateX(90deg) translateZ(43px); }
.cube-left { left: 5%; top: 14%; }
.cube-right { right: 5%; bottom: 10%; animation-duration: 11s; }
@keyframes spinCube { from { transform: rotateX(0deg) rotateY(0deg); } to { transform: rotateX(360deg) rotateY(360deg); } }

.photo-band { padding-top: 12px; }
.photo-band-card {
  max-width: 1240px; margin: 0 auto; overflow: hidden; border-radius: 30px; display: grid; grid-template-columns: 1.2fr .8fr;
}
.photo-band-image { min-height: 320px; background-size: cover; background-position: center; }
.photo-band-copy { padding: 34px; display: grid; align-content: center; }

.section-heading { max-width: 1100px; margin: 0 auto 28px; }
.service-tabs { max-width: 1100px; margin: 0 auto 22px; display: flex; flex-wrap: wrap; gap: 12px; }
.tab-btn {
  padding: 14px 18px; color: var(--muted); border-radius: 18px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); transition: .25s ease;
}
.tab-btn:hover, .tab-btn.active { color: white; background: rgba(47,140,255,.2); border-color: rgba(94,228,255,.28); transform: translateY(-2px); }
.service-panel { display: none; max-width: 1100px; margin: 0 auto; padding: 28px; border-radius: 28px; }
.service-panel.active { display: block; animation: fadeUp .45s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.panel-header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px;
}
.category-banner {
  position: relative; overflow: hidden; border-radius: 24px; min-height: 240px; margin-bottom: 22px; border: 1px solid rgba(255,255,255,.08);
}
.category-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.category-banner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,13,25,.82), rgba(5,13,25,.18)); }
.category-banner-copy { position: relative; z-index: 1; padding: 28px; max-width: 520px; }
.category-banner-copy p { color: #d8e9ff; margin: 0; }
.cards-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.service-card {
  overflow: hidden; border-radius: 26px; transform-style: preserve-3d; background: linear-gradient(180deg, rgba(13,30,53,.84), rgba(7,17,31,.90));
  border: 1px solid rgba(255,255,255,.10); box-shadow: var(--shadow); transition: .32s ease;
}
.service-card:hover { transform: translateY(-8px); }
.service-image-wrap { position: relative; height: 210px; overflow: hidden; }
.service-image-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.service-card:hover .service-image-wrap img { transform: scale(1.08); }
.service-image-wrap::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent, rgba(5,13,25,.16) 45%, rgba(5,13,25,.78)); }
.service-icon {
  position: absolute; top: 14px; right: 14px; z-index: 1; width: 52px; height: 52px; border-radius: 18px; display: grid; place-items: center; font-size: 1.55rem;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(10px);
}
.service-content { padding: 18px 18px 20px; }
.service-content p { color: var(--muted); min-height: 96px; }
.card-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.card-meta span { padding: 7px 10px; border-radius: 999px; background: rgba(255,255,255,.07); color: #dff2ff; font-size: .84rem; }
.card-cta {
  display: inline-flex; margin-top: 16px; font-weight: 700; color: #7ddfff; align-items: center; gap: 6px;
}
.card-cta::after { content: '→'; }

.steps, .pricing-grid, .review-grid { max-width: 1100px; margin: 0 auto; display: grid; gap: 18px; }
.steps { grid-template-columns: repeat(4, minmax(0,1fr)); }
.pricing-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
.review-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
.step-card, .price-card, .review-card, .contact-card { border-radius: 28px; }
.step-card, .price-card, .review-card { padding: 22px; }
.step-card b {
  display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; margin-bottom: 16px; font-size: 1rem;
  background: linear-gradient(135deg, rgba(94,228,255,.26), rgba(47,140,255,.24)); border: 1px solid rgba(255,255,255,.14);
}
.price-card span:first-child {
  display: inline-block; padding: 8px 12px; border-radius: 999px; margin-bottom: 16px; color: #e7f7ff; background: rgba(255,255,255,.08);
}
.price-card.featured { outline: 2px solid rgba(94,228,255,.28); transform: translateY(-8px); }
.review-card .stars { color: #ffe082; letter-spacing: .18em; margin-bottom: 12px; }

.contact-card {
  max-width: 1120px; margin: 0 auto; padding: 34px; display: grid; grid-template-columns: .85fr 1.15fr; gap: 28px;
}
.contact-points { display: grid; gap: 10px; }
.contact-points span { color: var(--muted); }
.contact-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.contact-form label { display: grid; gap: 8px; color: var(--muted); }
.contact-form label.full, .contact-form .full { grid-column: 1 / -1; }
input, select, textarea {
  width: 100%; color: var(--text); background: rgba(3, 10, 22, .66); border: 1px solid var(--line); border-radius: 16px; padding: 15px 16px; outline: none; transition: .25s ease;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(103,232,249,.12); transform: translateY(-2px); }

.faq-list { max-width: 1100px; margin: 0 auto; display: grid; gap: 14px; }
.faq-item {
  width: 100%; text-align: left; padding: 22px 24px; border-radius: 22px; color: #fff; transition: .25s ease;
}
.faq-item span { display: block; font-weight: 700; padding-right: 26px; }
.faq-item b { position: absolute; right: 22px; margin-top: -2px; font-size: 1.6rem; transition: transform .35s ease; }
.faq-item { position: relative; }
.faq-item p { max-height: 0; overflow: hidden; margin: 0; color: var(--muted); transition: max-height .35s ease, margin .35s ease; }
.faq-item.open { transform: translateY(-4px); background: linear-gradient(180deg, rgba(18,39,67,.88), rgba(7,17,31,.92)); }
.faq-item.open b { transform: rotate(45deg); }
.faq-item.open p { max-height: 180px; margin-top: 12px; }

.floating-action {
  position: fixed; right: 24px; bottom: 24px; z-index: 12; width: 62px; height: 62px; display: grid; place-items: center;
  border-radius: 22px; color: #04111f; font-size: 1.7rem; font-weight: 900; background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 18px 48px rgba(47,140,255,.42); animation: pulseFab 2.4s ease-in-out infinite;
}
@keyframes pulseFab { 50% { transform: translateY(-8px) scale(1.04); } }
.footer {
  padding: 36px; display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--muted);
  border-top: 1px solid rgba(255,255,255,.08); background: rgba(4, 13, 27, .65); backdrop-filter: blur(12px);
}
.footer img { width: 88px; }

.offcanvas { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.58); backdrop-filter: blur(10px); opacity: 0; visibility: hidden; transition: .25s ease; }
.offcanvas.open { opacity: 1; visibility: visible; }
.offcanvas-card { position: absolute; right: 14px; top: 14px; bottom: 14px; width: min(360px, calc(100vw - 28px)); border-radius: 28px; padding: 26px; display: grid; align-content: start; gap: 12px; transform: translateX(120%) rotateY(-18deg); transform-origin: right; transition: .3s ease; }
.offcanvas.open .offcanvas-card { transform: none; }
.offcanvas-card img { width: 90px; }
.offcanvas-card a { padding: 15px 16px; border-radius: 16px; background: rgba(255,255,255,.06); color: var(--muted); }
.close-menu { position: absolute; right: 18px; top: 18px; width: 44px; height: 44px; border-radius: 15px; color: #fff; background: rgba(255,255,255,.08); border: 1px solid var(--line); font-size: 1.4rem; }

.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
.reveal.show { opacity: 1; transform: none; }
.delay-1 { transition-delay: .14s; }

@media (max-width: 1080px) {
  .main-nav { display: none; }
  .mobile-toggle { display: block; }
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero-actions, .trust-row { justify-content: center; }
  .cards-grid, .steps, .pricing-grid, .review-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .contact-card, .photo-band-card { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .section { padding: 72px 16px; }
  .site-header { margin: 10px; padding: 10px 14px; }
  .brand span { display: none; }
  h1 { font-size: clamp(2.7rem, 15vw, 4.3rem); }
  .cards-grid, .steps, .pricing-grid, .review-grid, .contact-form { grid-template-columns: 1fr; }
  .panel-header { align-items: flex-start; flex-direction: column; }
  .service-panel, .contact-card { padding: 18px; }
  .logo-stage { min-height: 380px; }
  .cube { display: none; }
  .hero-actions .btn, .contact-form .btn { width: 100%; }
  .category-banner { min-height: 220px; }
  .service-content p { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}


/* ===== M&J serious company content additions ===== */
.company-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.company-card {
  padding: 24px;
  border-radius: 28px;
}
.company-card p,
.contact-points a {
  color: var(--muted);
}
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.more-info-section {
  perspective: 1200px;
}
.info-cube-layout {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}
.info-cube-menu {
  padding: 16px;
  border-radius: 26px;
  display: grid;
  gap: 10px;
}
.info-cube-btn {
  min-height: 52px;
  border-radius: 16px;
  color: var(--text);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.035));
  border: 1px solid rgba(255,255,255,.10);
  font-weight: 800;
  letter-spacing: .02em;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.info-cube-btn:hover,
.info-cube-btn.active {
  transform: translateX(5px);
  border-color: rgba(94,228,255,.42);
  background: linear-gradient(135deg, rgba(94,228,255,.18), rgba(47,140,255,.15));
}
.scene-3d {
  min-height: 520px;
  display: grid;
  place-items: center;
  perspective: 1300px;
}
.info-cube {
  position: relative;
  width: min(620px, 82vw);
  height: min(430px, 72vw);
  transform-style: preserve-3d;
  transition: transform .9s cubic-bezier(.2,.7,.12,1);
}
.info-cube.show-front { transform: translateZ(-215px) rotateY(0deg); }
.info-cube.show-right { transform: translateZ(-215px) rotateY(-90deg); }
.info-cube.show-back { transform: translateZ(-215px) rotateY(-180deg); }
.info-cube.show-left { transform: translateZ(-215px) rotateY(90deg); }
.info-cube.show-top { transform: translateZ(-215px) rotateX(-90deg); }
.info-cube.show-bottom { transform: translateZ(-215px) rotateX(90deg); }
.cube-face {
  position: absolute;
  inset: 0;
  padding: clamp(22px, 4vw, 40px);
  border-radius: 32px;
  background: linear-gradient(160deg, rgba(13,30,53,.92), rgba(4,13,27,.96));
  border: 1px solid rgba(125,211,252,.25);
  box-shadow: 0 34px 90px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter: blur(14px);
  display: grid;
  align-content: center;
  overflow: hidden;
}
.cube-face::before {
  content: '';
  position: absolute;
  inset: -50%;
  background: conic-gradient(from 90deg, transparent, rgba(94,228,255,.10), transparent, rgba(47,140,255,.12), transparent);
  animation: cubeFaceGlow 10s linear infinite;
  pointer-events: none;
}
.cube-face > * {
  position: relative;
  z-index: 1;
}
@keyframes cubeFaceGlow {
  to { transform: rotate(360deg); }
}
.cube-face-front { transform: rotateY(0deg) translateZ(215px); }
.cube-face-right { transform: rotateY(90deg) translateZ(215px); }
.cube-face-back { transform: rotateY(180deg) translateZ(215px); }
.cube-face-left { transform: rotateY(-90deg) translateZ(215px); }
.cube-face-top { transform: rotateX(90deg) translateZ(215px); }
.cube-face-bottom { transform: rotateX(-90deg) translateZ(215px); }
.cube-face ul {
  margin: 10px 0 0;
  padding-left: 20px;
  color: var(--muted);
}
.cube-face li + li {
  margin-top: 8px;
}
.mini-note {
  margin-top: 14px;
  font-size: .9rem;
  color: var(--muted);
}

.contact-points a,
.contact-points span {
  display: block;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
}
.booking-link {
  cursor: pointer;
}
.floating-action {
  text-transform: uppercase;
}
.contact-form a.full {
  grid-column: 1 / -1;
}

@media (max-width: 1080px) {
  .company-grid { grid-template-columns: 1fr; }
  .info-cube-layout { grid-template-columns: 1fr; }
  .info-cube-menu {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  .info-cube-menu { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scene-3d { min-height: 560px; overflow: hidden; }
  .info-cube {
    width: min(92vw, 520px);
    height: 470px;
  }
  .info-cube.show-front { transform: translateZ(-235px) rotateY(0deg); }
  .info-cube.show-right { transform: translateZ(-235px) rotateY(-90deg); }
  .info-cube.show-back { transform: translateZ(-235px) rotateY(-180deg); }
  .info-cube.show-left { transform: translateZ(-235px) rotateY(90deg); }
  .info-cube.show-top { transform: translateZ(-235px) rotateX(-90deg); }
  .info-cube.show-bottom { transform: translateZ(-235px) rotateX(90deg); }
  .cube-face-front { transform: rotateY(0deg) translateZ(235px); }
  .cube-face-right { transform: rotateY(90deg) translateZ(235px); }
  .cube-face-back { transform: rotateY(180deg) translateZ(235px); }
  .cube-face-left { transform: rotateY(-90deg) translateZ(235px); }
  .cube-face-top { transform: rotateX(90deg) translateZ(235px); }
  .cube-face-bottom { transform: rotateX(-90deg) translateZ(235px); }
}

/* Portal guidance and repaired information animation */
.portal-steps-mini {
  display: grid;
  gap: 10px;
  margin: 18px 0 20px;
}
.portal-steps-mini div {
  padding: 13px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,.065);
  border: 1px solid rgba(255,255,255,.10);
}
.portal-steps-mini strong {
  display: block;
  color: #eef7ff;
  margin-bottom: 4px;
}
.portal-steps-mini span {
  display: block;
  color: var(--muted);
  line-height: 1.45;
}
.portal-steps-list {
  position: relative;
  z-index: 1;
  margin: 10px 0 18px;
  padding-left: 20px;
  color: var(--muted);
}
.portal-steps-list li + li { margin-top: 7px; }

/* The previous full cube rotation could visually overlap on some screens. This keeps the 3D feel but displays one polished panel at a time. */
.scene-3d {
  min-height: 500px;
  perspective: 1200px;
  overflow: visible;
}
.info-cube {
  width: min(700px, 86vw);
  height: min(470px, 74vw);
  transform-style: preserve-3d;
  transition: transform .55s cubic-bezier(.2,.7,.12,1);
  transform: perspective(1200px) rotateX(0deg) rotateY(0deg) !important;
}
.info-cube::before,
.info-cube::after {
  content: '';
  position: absolute;
  inset: 18px;
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(94,228,255,.12), rgba(47,140,255,.08));
  border: 1px solid rgba(125,211,252,.14);
  transform: translateZ(-55px) translate(26px, 24px) rotateZ(1deg);
  filter: blur(.2px);
  pointer-events: none;
}
.info-cube::after {
  inset: 34px;
  transform: translateZ(-85px) translate(-28px, 30px) rotateZ(-1deg);
  opacity: .62;
}
.cube-face {
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px) rotateX(8deg) scale(.975) !important;
  transition: opacity .36s ease, transform .5s cubic-bezier(.2,.7,.12,1), box-shadow .3s ease;
  min-height: 100%;
  overflow: auto;
}
.info-cube.show-front .cube-face-front,
.info-cube.show-right .cube-face-right,
.info-cube.show-back .cube-face-back,
.info-cube.show-left .cube-face-left,
.info-cube.show-top .cube-face-top,
.info-cube.show-bottom .cube-face-bottom {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) rotateX(0deg) scale(1) !important;
  box-shadow: 0 34px 100px rgba(0,0,0,.48), 0 0 0 1px rgba(94,228,255,.14), inset 0 1px 0 rgba(255,255,255,.10);
}
.cube-face h3 { font-size: clamp(1.65rem, 3.4vw, 2.35rem); }
.info-cube-btn.active { transform: translateX(0) scale(1.02); }
@media (max-width: 700px) {
  .scene-3d { min-height: 600px; }
  .info-cube { width: 100%; height: 540px; }
  .cube-face { padding: 22px; }
}

/* Bilingual top banner + clean contact card update */
.site-header { align-items: center; }
.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  font-weight: 800;
  letter-spacing: .04em;
  transition: .24s ease;
}
.lang-btn .flag { font-size: 1.15rem; line-height: 1; }
.lang-btn:hover,
.lang-btn.active {
  color: white;
  background: linear-gradient(135deg, rgba(94,228,255,.22), rgba(47,140,255,.20));
  border-color: rgba(94,228,255,.28);
  transform: translateY(-1px);
}
.contact-card-clean {
  grid-template-columns: .92fr 1.08fr;
  align-items: stretch;
}
.contact-action-panel {
  border-radius: 26px;
  padding: 26px;
  display: grid;
  align-content: center;
  gap: 12px;
  background: linear-gradient(180deg, rgba(12, 26, 48, .50), rgba(7, 17, 31, .70));
}
.contact-action-panel .btn.full { width: 100%; margin-top: 8px; }
.contact-portal-steps { margin: 8px 0 6px; }
.contact-portal-steps div { background: rgba(255,255,255,.055); }
.contact-card-clean .contact-points { margin-top: 18px; }
.contact-card-clean .contact-points a,
.contact-card-clean .contact-points span {
  display: block;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.09);
  color: var(--muted);
}
@media (max-width: 1260px) {
  .main-nav { gap: 5px; }
  .nav-link { padding: 10px 11px; }
  .language-switcher { margin-left: auto; }
}
@media (max-width: 1080px) {
  .language-switcher { margin-left: 0; }
  .site-header { flex-wrap: nowrap; }
}
@media (max-width: 700px) {
  .language-switcher { transform: scale(.95); transform-origin: right center; }
  .lang-btn span:not(.flag) { display: none; }
  .contact-card-clean { grid-template-columns: 1fr; }
}


/* =========================================================
   MOBILE WEBSITE RESPONSIVE FIXES - PC VIEW PRESERVED
   These overrides only apply to tablets/phones and keep the
   desktop layout unchanged.
   ========================================================= */
@media (max-width: 900px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  body {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  .site-header {
    left: 0;
    right: 0;
    width: auto;
    max-width: calc(100vw - 20px);
    margin: 10px;
    padding: 10px 12px;
    gap: 8px;
    border-radius: 20px;
  }

  .brand {
    min-width: 0;
    flex: 1 1 auto;
  }

  .brand img {
    width: 48px;
    flex: 0 0 auto;
  }

  .brand span {
    display: inline-block;
    max-width: 34vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: .95rem;
  }

  .language-switcher {
    flex: 0 0 auto;
    gap: 4px;
    padding: 4px;
  }

  .lang-btn {
    min-height: 34px;
    padding: 0 8px;
  }

  .mobile-toggle {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    border-radius: 15px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.10);
  }

  .mobile-toggle span {
    width: 24px;
    height: 2px;
    margin: 3px 0;
  }

  .section {
    width: 100%;
    padding-left: clamp(14px, 4vw, 22px);
    padding-right: clamp(14px, 4vw, 22px);
  }

  .hero {
    max-width: 100%;
    min-height: auto;
    padding-top: 48px;
    gap: 20px;
  }

  .hero-copy,
  .section-heading,
  .photo-band-card,
  .service-panel,
  .contact-card,
  .company-grid,
  .steps,
  .pricing-grid,
  .review-grid {
    max-width: 100%;
  }

  .hero-actions,
  .trust-row,
  .inline-actions,
  .service-tabs {
    width: 100%;
  }

  .photo-band-card,
  .contact-card,
  .contact-card-clean,
  .company-grid,
  .cards-grid,
  .steps,
  .pricing-grid,
  .review-grid {
    grid-template-columns: 1fr !important;
  }

  .photo-band-image {
    min-height: 220px;
  }

  .photo-band-copy,
  .contact-card,
  .service-panel,
  .contact-action-panel {
    padding: 22px;
  }

  .service-tabs {
    display: grid;
    grid-template-columns: 1fr;
  }

  .tab-btn {
    width: 100%;
  }

  .panel-header {
    align-items: stretch;
  }

  .panel-header .btn,
  .inline-actions .btn,
  .hero-actions .btn,
  .contact-action-panel .btn {
    width: 100%;
  }

  .category-banner {
    min-height: 210px;
  }

  .category-banner::after {
    background: linear-gradient(180deg, rgba(5,13,25,.62), rgba(5,13,25,.88));
  }

  .category-banner-copy {
    max-width: 100%;
    padding: 22px;
  }

  .service-image-wrap {
    height: 190px;
  }

  .service-content p {
    min-height: 0;
  }

  .offcanvas-card {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 700px) {
  .cursor-glow {
    display: none;
  }

  .bg-grid {
    background-size: 28px 28px;
  }

  .section {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  h1 {
    font-size: clamp(2.25rem, 12vw, 3.4rem);
    line-height: 1;
  }

  h2 {
    font-size: clamp(1.75rem, 8vw, 2.35rem);
  }

  h3 {
    font-size: clamp(1.25rem, 6vw, 1.65rem);
  }

  .hero-text,
  .section-heading p,
  .photo-band-copy p,
  .service-content p,
  .contact-points span,
  .contact-points a {
    font-size: .98rem;
    overflow-wrap: anywhere;
  }

  .logo-stage {
    min-height: 300px;
  }

  .logo-plate {
    width: min(320px, 82vw);
    border-radius: 28px;
  }

  .trust-row span,
  .card-meta span {
    width: 100%;
    text-align: center;
  }

  .portal-steps-mini div,
  .contact-card-clean .contact-points a,
  .contact-card-clean .contact-points span {
    padding: 12px;
  }

  .info-cube-layout {
    display: block;
  }

  .info-cube-menu {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
    padding: 12px;
  }

  .info-cube-btn {
    min-height: 46px;
    padding: 0 10px;
    font-size: .9rem;
    transform: none !important;
  }

  /* On phones the 3D cube becomes one clean responsive card at a time.
     This prevents clipping/distortion without changing the desktop cube. */
  .scene-3d {
    min-height: 0 !important;
    display: block;
    perspective: none;
  }

  .info-cube {
    width: 100% !important;
    height: auto !important;
    min-height: 0;
    transform: none !important;
    transform-style: flat;
  }

  .info-cube::before,
  .info-cube::after {
    display: none;
  }

  .cube-face {
    position: relative !important;
    inset: auto !important;
    display: none;
    width: 100%;
    min-height: 0 !important;
    max-height: none;
    padding: 20px;
    border-radius: 24px;
    overflow: visible !important;
    opacity: 1;
    pointer-events: auto;
    transform: none !important;
  }

  .info-cube.show-front .cube-face-front,
  .info-cube.show-right .cube-face-right,
  .info-cube.show-back .cube-face-back,
  .info-cube.show-left .cube-face-left,
  .info-cube.show-top .cube-face-top,
  .info-cube.show-bottom .cube-face-bottom {
    display: grid;
    transform: none !important;
  }

  .portal-steps-list {
    padding-left: 18px;
  }

  .floating-action {
    right: 14px;
    bottom: 14px;
    width: 54px;
    height: 54px;
    border-radius: 18px;
  }

  .footer {
    padding: 28px 16px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .site-header {
    max-width: calc(100vw - 14px);
    margin: 7px;
    padding: 8px;
  }

  .brand img {
    width: 42px;
  }

  .brand span {
    display: none;
  }

  .language-switcher {
    margin-left: auto;
  }

  .lang-btn span:not(.flag) {
    display: none;
  }

  .lang-btn {
    width: 34px;
    padding: 0;
  }

  .mobile-toggle {
    width: 40px;
    height: 40px;
  }

  .hero {
    padding-top: 34px;
  }

  .btn {
    min-height: 48px;
    padding: 0 16px;
    font-size: .95rem;
    white-space: normal;
    text-align: center;
  }

  .eyebrow {
    max-width: 100%;
    white-space: normal;
    line-height: 1.35;
    font-size: .76rem;
  }

  .photo-band-image {
    min-height: 190px;
  }

  .photo-band-copy,
  .service-panel,
  .contact-card,
  .contact-action-panel,
  .company-card,
  .step-card,
  .price-card,
  .review-card {
    padding: 18px;
    border-radius: 22px;
  }

  .service-image-wrap {
    height: 165px;
  }

  .service-icon {
    width: 46px;
    height: 46px;
    border-radius: 15px;
    font-size: 1.3rem;
  }

  .offcanvas-card {
    width: calc(100vw - 18px);
    right: 9px;
    top: 9px;
    bottom: 9px;
    padding: 20px;
    border-radius: 24px;
  }
}


/* ===== Mobile fixed top banner only ===== */
@media (max-width: 700px) {
  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 120;
  }

  main {
    padding-top: 78px;
  }

  .offcanvas {
    z-index: 160;
  }
}

@media (max-width: 480px) {
  main {
    padding-top: 70px;
  }
}


/* =========================================================
   DESKTOP LANGUAGE FLAG FIX
   Windows/Chrome can render emoji flags as country letters.
   These CSS flags keep the PC header showing real flag icons
   without changing the desktop layout.
   ========================================================= */
.lang-btn .flag {
  display: inline-block;
  width: 22px;
  height: 15px;
  min-width: 22px;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255,255,255,.34), 0 1px 4px rgba(0,0,0,.22);
  font-size: 0 !important;
  line-height: 0 !important;
  vertical-align: middle;
  position: relative;
  flex: 0 0 auto;
}
.lang-btn .flag::before,
.lang-btn .flag::after {
  content: '';
  position: absolute;
  display: block;
}
.lang-btn .flag-us {
  background: repeating-linear-gradient(
    to bottom,
    #b22234 0,
    #b22234 1.15px,
    #ffffff 1.15px,
    #ffffff 2.3px
  );
}
.lang-btn .flag-us::before {
  left: 0;
  top: 0;
  width: 9.4px;
  height: 8.05px;
  background: #3c3b6e;
}
.lang-btn .flag-us::after {
  left: 1.1px;
  top: 1px;
  width: 7px;
  height: 6px;
  opacity: .95;
  background-image: radial-gradient(circle, #fff 0 0.65px, transparent .7px);
  background-size: 2.2px 2px;
}
.lang-btn .flag-es {
  background: linear-gradient(
    to bottom,
    #aa151b 0 25%,
    #f1bf00 25% 75%,
    #aa151b 75% 100%
  );
}
.lang-btn .flag-es::before {
  left: 5px;
  top: 5px;
  width: 3.4px;
  height: 5px;
  border-radius: 1px;
  background: rgba(170,21,27,.92);
  box-shadow: 0 0 0 1px rgba(255,255,255,.22);
}


/* ===== Final hero cleanup + stronger intro text animation =====
   Removes duplicated hero buttons/chips only in the opening section and adds
   an original premium neon/glass title effect without changing the desktop layout. */
.hero .hero-actions,
.hero .trust-row {
  display: none !important;
}

.hero-title-fx {
  position: relative;
  display: inline-block;
  isolation: isolate;
  color: transparent;
  background: linear-gradient(90deg, #ffffff 0%, #dff2ff 20%, #5ee4ff 42%, #2f8cff 56%, #ffffff 78%, #b9ddff 100%);
  background-size: 320% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow:
    0 0 18px rgba(94, 228, 255, .20),
    0 0 42px rgba(47, 140, 255, .18),
    0 22px 55px rgba(0, 0, 0, .52);
  filter: drop-shadow(0 0 16px rgba(94, 228, 255, .14));
  animation: heroTitleGradient 4.8s linear infinite, heroTitleEntrance .95s cubic-bezier(.16, 1, .3, 1) both, heroTitlePulse 3.4s ease-in-out infinite;
}

.hero-title-fx::before {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  z-index: -1;
  color: transparent;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 2px rgba(94, 228, 255, .16);
  text-shadow: 7px 8px 0 rgba(47, 140, 255, .10), -5px -4px 0 rgba(94, 228, 255, .06);
  transform: translate3d(5px, 5px, 0);
  opacity: .78;
  pointer-events: none;
}

.hero-title-fx::after {
  content: '';
  position: absolute;
  inset: -6% -10%;
  z-index: 1;
  background: linear-gradient(110deg, transparent 0%, transparent 42%, rgba(255,255,255,.24) 48%, rgba(94,228,255,.30) 50%, transparent 58%, transparent 100%);
  transform: translateX(-130%) skewX(-18deg);
  mix-blend-mode: screen;
  pointer-events: none;
  animation: heroTitleSweep 3.6s ease-in-out infinite 1s;
}

@keyframes heroTitleGradient {
  0% { background-position: 0% 50%; }
  100% { background-position: 320% 50%; }
}

@keyframes heroTitleEntrance {
  0% { opacity: 0; transform: translateY(18px) scale(.975); letter-spacing: -.055em; filter: blur(10px) drop-shadow(0 0 0 rgba(94,228,255,0)); }
  65% { opacity: 1; filter: blur(0) drop-shadow(0 0 20px rgba(94,228,255,.18)); }
  100% { opacity: 1; transform: none; letter-spacing: normal; }
}

@keyframes heroTitlePulse {
  0%, 100% { text-shadow: 0 0 18px rgba(94,228,255,.18), 0 0 42px rgba(47,140,255,.16), 0 22px 55px rgba(0,0,0,.52); }
  50% { text-shadow: 0 0 26px rgba(94,228,255,.34), 0 0 70px rgba(47,140,255,.26), 0 26px 65px rgba(0,0,0,.56); }
}

@keyframes heroTitleSweep {
  0%, 18% { transform: translateX(-135%) skewX(-18deg); opacity: 0; }
  38% { opacity: .85; }
  58%, 100% { transform: translateX(135%) skewX(-18deg); opacity: 0; }
}

@media (max-width: 700px) {
  .hero-title-fx {
    animation: heroTitleGradient 5.8s linear infinite, heroTitleEntrance .75s cubic-bezier(.16,1,.3,1) both, heroTitlePulse 4.2s ease-in-out infinite;
  }
  .hero-title-fx::before {
    -webkit-text-stroke: 1px rgba(94, 228, 255, .13);
    transform: translate3d(3px, 3px, 0);
  }
}
