:root {
  --about-bg: #efefef;
  --about-ink: #0b1f33;
  --about-blue: #0b3558;
  --about-muted: #6b7280;
  --about-line: #e5e7eb;
  --green: #10b981;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--about-bg);
  color: #000000;
  font-family: "IBM Plex Serif", Georgia, "Times New Roman", serif;
  font-size: 16px;
}

a {
  color: inherit;
}

.wrapper {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

/* ---- Floating glass header, layered over the cosmic scene ---- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: 68px;
  display: flex;
  align-items: center;
  background: rgba(5, 8, 18, 0.35);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transform: translateY(-100%);
  opacity: 0;
  animation: headerIn 0.7s cubic-bezier(0.23, 1, 0.32, 1) 0.1s forwards;
  transition: height 0.35s ease, background 0.35s ease,
    backdrop-filter 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
@keyframes headerIn { to { transform: none; opacity: 1; } }

.header.scrolled {
  height: 60px;
  background: rgba(4, 7, 16, 0.62);
  backdrop-filter: blur(26px) saturate(160%);
  -webkit-backdrop-filter: blur(26px) saturate(160%);
  border-bottom-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: transform 0.25s ease, filter 0.25s ease;
}
.brand img { height: 46px; width: auto; display: block; }
.brand:hover { transform: translateY(-1px); filter: drop-shadow(0 4px 14px rgba(56, 189, 248, 0.45)); }

.main-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.main-nav a {
  position: relative;
  color: rgba(255, 255, 255, 0.8);
  font: 600 0.88rem/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  transition: color 0.25s ease, text-shadow 0.25s ease;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 15px; right: 15px; bottom: 4px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #38bdf8, transparent);
  opacity: 0;
  transform: scaleX(0.4);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.main-nav a:hover,
.main-nav a.active {
  color: #ffffff;
  text-shadow: 0 0 14px rgba(56, 189, 248, 0.55);
}
.main-nav a:hover::after,
.main-nav a.active::after { opacity: 1; transform: scaleX(1); }

/* burger (mobile) */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 10px;
  cursor: pointer;
}
.burger span { width: 18px; height: 2px; background: #fff; border-radius: 2px; transition: transform 0.3s ease, opacity 0.2s ease; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile glass panel */
.mobile-nav {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 70px; left: 12px; right: 12px;
  z-index: 49;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(6, 10, 22, 0.85);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  opacity: 0; transform: translateY(-10px);
  visibility: hidden; pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s 0.3s;
}
.mobile-nav.open {
  opacity: 1; transform: none;
  visibility: visible; pointer-events: auto;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s 0s;
}
.mobile-nav a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font: 500 1rem/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  padding: 14px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  transition: color 0.2s ease;
}
.mobile-nav a:hover { color: #fff; }

@media (max-width: 900px) {
  .main-nav { display: none; }
  .burger { display: flex; }
}

.about-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0;
  isolation: isolate;
  background:
    radial-gradient(circle at 74% 36%, rgba(92, 182, 255, 0.16), transparent 26%),
    radial-gradient(circle at 28% 18%, rgba(216, 181, 102, 0.08), transparent 22%),
    radial-gradient(circle at 62% 45%, #05070d 0%, #02030a 45%, #000000 100%);
  overflow: hidden;
}

.about-hero::before,
.about-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.about-hero::before {
  background-image:
    radial-gradient(circle at 9% 19%, rgba(255, 255, 255, 0.78) 0 1px, transparent 1.8px),
    radial-gradient(circle at 18% 73%, rgba(142, 213, 255, 0.62) 0 1px, transparent 1.7px),
    radial-gradient(circle at 33% 35%, rgba(255, 255, 255, 0.48) 0 1px, transparent 1.6px),
    radial-gradient(circle at 47% 14%, rgba(224, 186, 106, 0.62) 0 1px, transparent 1.8px),
    radial-gradient(circle at 66% 67%, rgba(255, 255, 255, 0.52) 0 1px, transparent 1.6px),
    radial-gradient(circle at 78% 26%, rgba(121, 222, 255, 0.7) 0 1px, transparent 1.7px),
    radial-gradient(circle at 88% 82%, rgba(255, 255, 255, 0.44) 0 1px, transparent 1.6px);
  background-size: 340px 260px, 420px 320px, 520px 380px, 460px 360px, 390px 290px, 560px 410px, 610px 450px;
  opacity: 0.64;
  filter: drop-shadow(0 0 6px rgba(130, 215, 255, 0.3));
}

.about-hero::after {
  background:
    radial-gradient(circle at 16% 28%, rgba(255, 255, 255, 0.9) 0 1px, transparent 2px),
    radial-gradient(circle at 58% 20%, rgba(229, 190, 111, 0.82) 0 1px, transparent 2px),
    radial-gradient(circle at 84% 38%, rgba(121, 226, 255, 0.9) 0 1px, transparent 2px),
    radial-gradient(circle at 72% 74%, rgba(255, 255, 255, 0.72) 0 1px, transparent 2px),
    linear-gradient(115deg, transparent 0 46%, rgba(126, 212, 255, 0.12) 49%, transparent 53% 100%);
  opacity: 0.52;
  filter: drop-shadow(0 0 10px rgba(120, 224, 255, 0.28));
  animation: premiumStars 8s ease-in-out infinite alternate;
}

@keyframes premiumStars {
  from {
    opacity: 0.42;
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    opacity: 0.68;
    transform: translate3d(-8px, 5px, 0) scale(1.01);
  }
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 70px;
  align-items: center;
}

.about-text {
  position: relative;
  z-index: 2;
  color: #e6edf3;
  opacity: 0;
  transform: translateX(40px);
  animation: aboutTextIn 0.8s ease forwards;
  animation-delay: 0.2s;
}

@keyframes aboutTextIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.about-text h1 {
  margin: 0 0 20px;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.1;
  color: #ffffff;
}

.about-text p {
  margin: 0 0 16px;
  max-width: 620px;
  color: #cbd5e1;
  font-size: 17px;
  line-height: 1.6;
}

/* Full-bleed hero globe: the canvas covers the entire hero, no frame/box.
   The Earth itself is pushed to the right inside the canvas (camera viewOffset). */
.abstract-anim {
  position: absolute !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100% !important;
  z-index: 1;
  display: block !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  max-width: none !important;
  border-radius: 0 !important;
  pointer-events: none;          /* only the canvas captures input */
}

.abstract-anim::before {
  display: none;                 /* removed framed halo */
}

#globe {
  position: relative;
  z-index: 2;
  width: min(420px, 100%);
  height: min(420px, 80vw);
  border-radius: 50%;
  overflow: visible;
}

#globe canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.hero-visual {
  display: block !important;
  align-items: initial;
  justify-content: initial;
  overflow: visible !important;
}

.globe-wrap {
  position: absolute;
  inset: 0;
  width: 100vw;
  height: 100%;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.globe-wrap:active {
  cursor: grabbing;
}

#globe-canvas {
  position: absolute;
  inset: 0;
  width: 100vw !important;
  height: 100% !important;
  display: block;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  pointer-events: auto;          /* transparent canvas, captures drag/zoom */
}

.globe-glow {
  display: none;                 /* atmosphere comes from the 3D fresnel rim */
}

.globe-tooltip {
  position: fixed;
  z-index: 9999;
  display: none;
  padding: 11px 14px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(22, 26, 34, 0.94), rgba(12, 15, 20, 0.94));
  border: 1px solid rgba(210, 170, 95, 0.55);
  color: #e9eef6;
  font: 500 13px/1.2 Inter, system-ui, sans-serif;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  transform: translate(14px, 14px);
}

@media (max-width: 900px) {
  .about-hero {
    padding: 80px 0;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-text {
    order: 1;
    text-align: center;
  }

  .about-text p {
    margin-inline: auto;
  }

  .abstract-anim {
    position: absolute !important;
    inset: 0 !important;
    order: initial;
    width: 100vw !important;
    height: 100% !important;
    margin: 0;
    z-index: 1;
  }

  .globe-wrap {
    position: absolute;
    inset: 0;
    width: 100vw;
    height: 100%;
    margin: 0;
  }
}

@media (max-width: 620px) {
  .wrapper {
    width: min(100% - 24px, 1200px);
  }

  .about-hero {
    min-height: 100vh;
    padding: 96px 0 64px;
  }
}
