:root {
  --bg-top: #a983ff;
  --bg-mid: #7c5de6;
  --bg-deep: #3c2fa3;
  --bg-night: #0e0a24;

  --panel-bg: rgba(255, 255, 255, 0.12);
  --panel-border: rgba(255, 255, 255, 0.25);

  --text-main: #f6fbff;
  --text-soft: rgba(246, 251, 255, 0.86);
  --text-dim: rgba(246, 251, 255, 0.68);

  --cyan: #78ecff;
  --cyan-strong: #55e5ff;
  --pink: #ff66d4;
  --purple: #8f73ff;
  --white: #ffffff;

  --shadow-soft: 0 16px 40px rgba(6, 15, 60, 0.22);
  --shadow-glow: 0 0 30px rgba(120, 236, 255, 0.18);
  --shadow-pink: 0 0 28px rgba(255, 102, 212, 0.12);

  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --radius-pill: 999px;

  --site-width: 1240px;
  --nav-height: 78px;
  --topbar-offset: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text-main);
  font-family: "Rajdhani", sans-serif;
  background: #0e0a24;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.13) 0 3px, transparent 4px),
    radial-gradient(circle at 85% 18%, rgba(255, 255, 255, 0.11) 0 5px, transparent 6px),
    radial-gradient(circle at 78% 68%, rgba(255, 255, 255, 0.08) 0 4px, transparent 5px),
    radial-gradient(circle at 22% 75%, rgba(255, 255, 255, 0.08) 0 6px, transparent 7px);
  opacity: 0.9;
}

body::after {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 34vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.65;
  transform: perspective(900px) rotateX(76deg);
  transform-origin: bottom center;
  background:
    linear-gradient(to top, rgba(5, 8, 28, 0.85), transparent 70%),
    repeating-linear-gradient(
      to right,
      rgba(105, 237, 255, 0.1) 0 1px,
      transparent 1px 64px
    ),
    repeating-linear-gradient(
      to top,
      rgba(255, 102, 212, 0.08) 0 1px,
      transparent 1px 48px
    );
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

.site-bg-orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(12px);
  opacity: 0.2;
  z-index: 0;
}

.orb-1 {
  width: 260px;
  height: 260px;
  top: 10%;
  left: -60px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.85), rgba(120, 236, 255, 0.2) 55%, transparent 75%);
}

.orb-2 {
  width: 220px;
  height: 220px;
  top: 50%;
  right: -40px;
  background: radial-gradient(circle, rgba(255, 110, 214, 0.6), rgba(143, 115, 255, 0.15) 55%, transparent 75%);
}

.orb-3 {
  width: 180px;
  height: 180px;
  bottom: 12%;
  left: 12%;
  background: radial-gradient(circle, rgba(120, 236, 255, 0.55), rgba(255, 255, 255, 0.08) 55%, transparent 75%);
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(var(--site-width), calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 40px;
}

.topbar {
  position: sticky;
  top: var(--topbar-offset);
  z-index: 100;
  min-height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 24px;
  background: rgba(16, 26, 76, 0.28);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow-soft);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-family: "Orbitron", sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
}

.brand-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(120, 236, 255, 0.4));
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: white;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-menu a {
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  color: var(--text-soft);
  font-size: 1rem;
  font-weight: 700;
  transition: 0.2s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.14),
    0 0 18px rgba(120, 236, 255, 0.14);
}

main {
  display: flex;
  flex-direction: column;
  gap: 38px;
}

.glass-panel {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.16) 0%,
    rgba(255, 255, 255, 0.08) 100%
  );
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow-soft), var(--shadow-glow);
}

/* =========================
   HOMEPAGE
   ========================= */

.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  padding: 40px 18px;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(8, 18, 70, 0.28);
  background:
    linear-gradient(rgba(10, 20, 60, 0.42), rgba(18, 8, 42, 0.52)),
    url("assets/backgrounds/home-hero.png") center center / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  left: 8%;
  bottom: 12%;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.75), rgba(120, 236, 255, 0.16) 60%, transparent 72%);
  opacity: 0.9;
}

.hero::after {
  content: "";
  position: absolute;
  right: 9%;
  top: 14%;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.65), rgba(255, 102, 212, 0.2) 60%, transparent 72%);
  opacity: 0.9;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(120deg, rgba(120, 236, 255, 0.08), transparent 36%, rgba(255, 102, 212, 0.08)),
    linear-gradient(to top, rgba(7, 10, 32, 0.5), rgba(255, 255, 255, 0.03));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(720px, 100%);
  padding: 32px 30px;
}

.eyebrow,
.section-tag {
  margin: 0 0 10px;
  font-family: "Orbitron", sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #e2fbff;
  opacity: 0.92;
}

.name-hindi {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2.35rem);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.96);
}

.name-english {
  margin: 8px 0 10px;
  font-family: "Orbitron", sans-serif;
  font-size: clamp(2.2rem, 5.5vw, 4.8rem);
  line-height: 0.97;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  text-shadow:
    0 0 12px rgba(120, 236, 255, 0.25),
    0 0 24px rgba(255, 102, 212, 0.1);
}

.motto {
  margin: 0 0 10px;
  font-size: clamp(1rem, 2.3vw, 1.28rem);
  font-weight: 700;
  color: #ebfbff;
}

.identity-statement {
  margin: 0;
  max-width: 620px;
  color: var(--text-soft);
  font-size: clamp(1.04rem, 2.2vw, 1.34rem);
  line-height: 1.35;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #e3fcff 0%, #7aeeff 55%, #89a8ff 100%);
  color: #081426;
  font-size: 1rem;
  font-weight: 800;
  box-shadow:
    0 10px 24px rgba(120, 236, 255, 0.22),
    0 0 20px rgba(120, 236, 255, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 14px 28px rgba(120, 236, 255, 0.24),
    0 0 24px rgba(255, 102, 212, 0.16);
}

.domains-section,
.contact-section,
.projects-section,
.page-intro-section {
  padding: 6px 4px;
}

.section-heading {
  margin-bottom: 18px;
}

.section-heading h2 {
  margin: 0;
  font-family: "Orbitron", sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  letter-spacing: 0.05em;
  color: var(--white);
}

.section-heading p {
  margin-top: 8px;
  margin-bottom: 0;
  color: var(--text-soft);
  font-size: 1.08rem;
  line-height: 1.45;
  max-width: 840px;
}

.domains-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.domain-card {
  grid-column: span 4;
  overflow: hidden;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.07));
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.domain-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.32);
  box-shadow:
    0 18px 46px rgba(8, 19, 75, 0.26),
    0 0 26px rgba(120, 236, 255, 0.16),
    0 0 30px rgba(255, 102, 212, 0.12);
}

.card-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1247 / 2000;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}

.card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-image-tint {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to top, rgba(10, 16, 52, 0.72), transparent 38%),
    linear-gradient(135deg, rgba(120, 236, 255, 0.08), transparent 48%, rgba(255, 102, 212, 0.08));
}

.card-body {
  padding: 18px 18px 16px;
}

.card-icon-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.card-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(120, 236, 255, 0.35));
}

.card-body h3 {
  margin: 0;
  font-family: "Orbitron", sans-serif;
  font-size: 1.02rem;
  letter-spacing: 0.05em;
  color: var(--white);
}

.card-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--cyan);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

/* =========================
   UNIVERSAL INNER PAGE SYSTEM
   ========================= */

.page-hero {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: flex-end;
  padding: 28px;
  border-radius: 34px;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 24px 60px rgba(8, 18, 70, 0.28);
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(8, 18, 70, 0.18) 0%, rgba(10, 16, 48, 0.76) 100%),
    linear-gradient(120deg, rgba(120, 236, 255, 0.08), transparent 42%, rgba(255, 102, 212, 0.08));
}

.page-hero::after {
  content: "";
  position: absolute;
  right: 6%;
  top: 10%;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  z-index: 0;
  background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.55), rgba(120, 236, 255, 0.14) 58%, transparent 74%);
  filter: blur(2px);
  opacity: 0.9;
}

.page-hero-content {
  position: relative;
  z-index: 1;
  width: min(840px, 100%);
  padding: 28px 30px;
}

.page-title {
  margin: 0 0 8px;
  font-family: "Orbitron", sans-serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--white);
  text-shadow:
    0 0 12px rgba(120, 236, 255, 0.18),
    0 0 24px rgba(255, 102, 212, 0.08);
}

.page-subtitle {
  margin: 0;
  max-width: 760px;
  color: var(--text-soft);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.5;
}

.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.page-chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.page-intro-panel {
  padding: 24px 24px 22px;
}

.page-intro-panel p {
  margin: 0;
  color: var(--text-soft);
  font-size: 1.08rem;
  line-height: 1.6;
}

.section-heading p,
.page-subtitle,
.project-description,
.page-intro-panel p {
  text-shadow:
    0 1px 6px rgba(0, 0, 0, 0.75),
    0 0 6px rgba(0, 0, 0, 0.5);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 22px;
}

.project-card {
  grid-column: span 12;
  display: grid;
  grid-template-columns: minmax(260px, 380px) minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.07));
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.32);
  box-shadow:
    0 18px 46px rgba(8, 19, 75, 0.26),
    0 0 26px rgba(120, 236, 255, 0.16),
    0 0 30px rgba(255, 102, 212, 0.12);
}

.project-image-wrap {
  position: relative;
  min-height: 100%;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.project-image-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to top, rgba(10, 16, 52, 0.56), transparent 36%),
    linear-gradient(135deg, rgba(120, 236, 255, 0.08), transparent 48%, rgba(255, 102, 212, 0.08));
}

.project-image-wrap img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
}

.project-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 24px 22px;
}

.project-topline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.project-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(120, 236, 255, 0.35));
}

.project-title {
  margin: 0;
  font-family: "Orbitron", sans-serif;
  font-size: clamp(1.1rem, 2vw, 1.55rem);
  letter-spacing: 0.04em;
  color: var(--white);
}

.project-description {
  margin: 0;
  color: var(--text-soft);
  font-size: 1.05rem;
  line-height: 1.58;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.project-tag {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-soft);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.project-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin-top: 18px;
  color: var(--cyan);
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.project-cta::after {
  content: "↗";
  font-size: 1rem;
  line-height: 1;
}

.project-card.project-card-compact {
  grid-template-columns: 1fr;
}

.project-card.project-card-compact .project-image-wrap {
  aspect-ratio: 2048 / 1365;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 96px;
  padding: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-card:hover {
  transform: translateY(-3px);
}

.contact-icon {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(120, 236, 255, 0.3));
}

.contact-card h3 {
  margin: 0;
  font-family: "Orbitron", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.05em;
  color: var(--white);
}

.footer {
  padding: 24px 0 6px;
  text-align: center;
}

.footer p {
  margin: 0;
  color: rgba(245, 251, 255, 0.76);
  font-size: 0.98rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* =========================
   PAGE-SPECIFIC HERO HELPERS
   Use these body classes later if needed
   ========================= */

body.autonomy-page .page-hero {
  background-image:
    linear-gradient(rgba(10, 20, 60, 0.28), rgba(18, 8, 42, 0.5)),
    url("assets/backgrounds/autonomy-hero.png");
}

body.controls-page .page-hero {
  background-image:
    linear-gradient(rgba(10, 20, 60, 0.28), rgba(18, 8, 42, 0.5)),
    url("assets/backgrounds/controls-hero.png");
}

body.ml-page .page-hero {
  background-image:
    linear-gradient(rgba(10, 20, 60, 0.28), rgba(18, 8, 42, 0.5)),
    url("assets/backgrounds/ml-hero.png");
}

body.perception-page .page-hero {
  background-image:
    linear-gradient(rgba(10, 20, 60, 0.28), rgba(18, 8, 42, 0.5)),
    url("assets/backgrounds/perception-hero.png");
}

body.platforms-page .page-hero {
  background-image:
    linear-gradient(rgba(10, 20, 60, 0.28), rgba(18, 8, 42, 0.5)),
    url("assets/backgrounds/platforms-hero.png");
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 1100px) {
  .domain-card {
    grid-column: span 6;
  }

  .hero {
    min-height: 70vh;
  }

  .project-card {
    grid-template-columns: 320px minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  .project-card {
    grid-template-columns: 1fr;
  }

  .project-image-wrap {
    aspect-ratio: 2048 / 1365;
  }
}

@media (max-width: 820px) {
  .page-shell {
    width: min(100% - 20px, var(--site-width));
    padding-top: 14px;
  }

  .topbar {
    position: relative;
    top: 0;
    align-items: center;
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .nav-menu {
    display: none;
    width: 100%;
    padding-top: 10px;
    flex-direction: column;
    align-items: stretch;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-menu a {
    text-align: center;
  }

  .hero {
    min-height: auto;
    padding: 28px 14px;
    border-radius: 24px;
    background-position: center center;
  }

  .hero-content {
    padding: 24px 20px;
  }

  .page-hero {
    min-height: 280px;
    padding: 18px;
    border-radius: 24px;
  }

  .page-hero-content {
    padding: 22px 20px;
  }

  .domain-card {
    grid-column: span 12;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  body::after {
    height: 24vh;
    opacity: 0.45;
  }
}

@media (max-width: 560px) {
  .brand {
    font-size: 0.75rem;
    letter-spacing: 0.09em;
  }

  .section-heading h2,
  .page-title {
    font-size: 1.4rem;
  }

  .card-body {
    padding: 16px;
  }

  .contact-card {
    min-height: 82px;
    padding: 16px;
  }

  .project-content {
    padding: 18px 16px 18px;
  }

  .project-description,
  .page-intro-panel p,
  .section-heading p {
    font-size: 1rem;
  }

  .page-meta,
  .project-tags {
    gap: 8px;
  }
}