@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Space+Grotesk:wght@300..700&display=swap');

:root {
  --navy-950: #0f1b3d;
  --navy-900: #1e3a5f;
  --navy-700: #3b6fa0;
  --navy-100: #e8edf3;
  --accent: #e85d3a;
  --accent-light: #ff8a6c;
  --font-display: "Space Grotesk", sans-serif;
  --font-body: "DM Sans", sans-serif;
  --glass-bg: rgba(15, 27, 61, 0.45);
  --glass-border: rgba(255, 255, 255, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Override old nav/header for glassmorphism */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  padding: 1rem 0;
  background: transparent;
}

.header-main {
  width: 92%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid var(--glass-border);
  border-radius: 1.25rem;
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.35);
}

.header .logo {
  margin: 0;
  padding: 0;
}

.header .logo img {
  height: 52px;
  width: auto;
  filter: brightness(0) invert(1);
}

.header .nav-menu {
  padding: 0;
}

.header .menu > .menu-item {
  margin-left: 1.5rem;
}

.header .menu > .menu-item > a {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  padding: 0.5rem 0;
  transition: color 0.25s ease;
}

.header .menu > .menu-item:hover > a,
.header .menu > .menu-item > a:hover {
  color: #ffffff;
}

.header .menu > .menu-item > a .plus:before,
.header .menu > .menu-item > a .plus:after {
  background-color: rgba(255, 255, 255, 0.75);
}

.header .menu > .menu-item:hover > a .plus:before,
.header .menu > .menu-item:hover > a .plus:after {
  background-color: #ffffff;
}

.header .menu > .menu-item > .sub-menu {
  background: rgba(15, 27, 61, 0.92);
  backdrop-filter: blur(16px);
  border-top: 2px solid var(--accent);
  border-radius: 0.75rem;
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.45);
}

.header .menu > .menu-item > .sub-menu > .menu-item > a {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  padding: 0.75rem 1.25rem;
}

.header .menu > .menu-item > .sub-menu > .menu-item > a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.header .open-nav-menu span,
.header .open-nav-menu span:before,
.header .open-nav-menu span:after {
  background-color: #ffffff;
}

@media (max-width: 1103px) {
  .header-main {
    width: 95%;
    padding: 0.75rem 1rem;
  }

  .header .nav-menu {
    background: rgba(15, 27, 61, 0.98);
  }

  .header .menu > .menu-item > a {
    color: rgba(255, 255, 255, 0.9);
    border-bottom-color: rgba(255, 255, 255, 0.1);
  }

  .header .menu > .menu-item:first-child > a {
    border-top-color: rgba(255, 255, 255, 0.1);
  }

  .header .menu > .menu-item > .sub-menu > .menu-item > a {
    color: rgba(255, 255, 255, 0.75);
    border-bottom-color: rgba(255, 255, 255, 0.08);
  }
}

/* New glassmorphism hero */
.hero-glass {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 8rem 1rem 4rem;
}

.hero-glass .hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-glass .hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(15, 27, 61, 0.82) 0%,
    rgba(15, 27, 61, 0.38) 45%,
    rgba(15, 27, 61, 0.68) 100%
  );
}

.hero-glass .hero-content {
  position: relative;
  z-index: 2;
  width: 92%;
  max-width: 1100px;
  text-align: center;
}

.glass-card {
  background: rgba(15, 27, 61, 0.42);
  backdrop-filter: blur(28px) saturate(150%);
  -webkit-backdrop-filter: blur(28px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 2.5rem;
  padding: 3.5rem 2rem;
  box-shadow: 0 35px 70px -20px rgba(0, 0, 0, 0.55);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1rem;
  background: rgba(15, 27, 61, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  margin-bottom: 2rem;
}

.hero-badge .pulse {
  position: relative;
  width: 0.5rem;
  height: 0.5rem;
}

.hero-badge .pulse::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--accent);
  animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.hero-badge .pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--accent);
}

@keyframes ping {
  75%, 100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

.hero-badge span {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 1.5rem;
}

.hero-title span {
  display: block;
  background: linear-gradient(135deg, var(--accent-light) 0%, #ffffff 50%, var(--navy-700) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  font-weight: 400;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 3.5rem;
  padding: 0 2rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy-950);
  background: #ffffff;
  border: none;
  border-radius: 0.875rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.25);
}

.btn-primary:hover {
  background: var(--accent);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 14px 36px -10px rgba(232, 93, 58, 0.35);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 3.5rem;
  padding: 0 2rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.875rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.hero-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}

.hero-specs .spec-label {
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 0.35rem;
}

.hero-specs .spec-value {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.hero-footer {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 2;
  display: none;
  align-items: center;
  gap: 0.75rem;
}

.hero-footer .lines {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.hero-footer .lines div {
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.hero-footer .lines div:first-child {
  width: 3rem;
  opacity: 0.7;
}

.hero-footer .lines div:last-child {
  width: 1.5rem;
  opacity: 0.45;
}

.hero-footer span {
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}

@media (min-width: 1024px) {
  .hero-footer {
    display: flex;
  }
}

@media (min-width: 768px) {
  .glass-card {
    padding: 4rem 3.5rem;
  }

  .hero-specs {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 480px) {
  .hero-glass {
    padding: 7rem 0.75rem 3rem;
  }

  .glass-card {
    padding: 2rem 1.25rem;
    border-radius: 1.75rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }
}

/* Typography improvements for existing content */
#page2,
#page3,
#page4,
#page5,
#page6,
#page7,
#page8 {
  font-family: var(--font-body);
}

.txttt h1,
.heading {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

/* Fix inconsistent uppercase shouting */
.carousel .list .item .introduce .topic,
.carousel .list .item .detail .title {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
}

footer h2 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* Smooth focus states */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------------- PAN India interactive map ---------------- */
#page3 {
  background:
    radial-gradient(1200px 600px at 20% 0%, rgba(77, 163, 255, 0.14), transparent 60%),
    linear-gradient(180deg, #0a1626 0%, #0e1a2b 55%, #0a1626 100%);
  color: #e6eefb;
  padding: 4rem 1.25rem 5rem;
  height: auto;
  min-height: 0;
}

#page3 .txttt,
#page3 .txttt h1 {
  color: #f2f7ff;
}

.map-wrap {
  max-width: 1200px;
  margin: 2.5rem auto 0;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 1.25rem;
  align-items: stretch;
}

.map-panel,
.map-canvas {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 24px 60px rgba(3, 10, 20, 0.45);
  overflow: hidden;
}

.map-panel {
  display: flex;
  flex-direction: column;
  padding: 1.1rem;
}

.map-panel-head h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0 0 0.25rem;
  color: #ffffff;
}

.map-panel-head p {
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
  color: rgba(230, 238, 251, 0.65);
}

.map-search {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: #e6eefb;
  font-family: var(--font-body);
  font-size: 0.85rem;
  outline: none;
}

.map-search::placeholder {
  color: rgba(230, 238, 251, 0.45);
}

.map-search:focus {
  border-color: rgba(77, 163, 255, 0.6);
}

.map-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.6rem 0 0.35rem;
}

.map-chip {
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(230, 238, 251, 0.8);
  font-size: 0.72rem;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.2s ease;
}

.map-chip:hover,
.map-chip.is-active {
  background: rgba(77, 163, 255, 0.22);
  border-color: rgba(77, 163, 255, 0.55);
  color: #ffffff;
}

.map-count {
  margin: 0 0 0.6rem !important;
  font-size: 0.72rem;
  color: rgba(230, 238, 251, 0.5);
}

.map-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  overflow-y: auto;
  max-height: 420px;
  padding-right: 0.25rem;
}


.map-loc {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  text-align: left;
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #e6eefb;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.map-loc:hover {
  background: rgba(77, 163, 255, 0.18);
  border-color: rgba(77, 163, 255, 0.5);
  transform: translateX(3px);
}

.map-loc strong {
  font-size: 0.88rem;
  font-weight: 600;
}

.map-loc span {
  font-size: 0.76rem;
  color: rgba(230, 238, 251, 0.6);
}

.map-loc.is-hq {
  border-color: rgba(240, 180, 41, 0.5);
}

.map-loc.is-target {
  border-color: rgba(92, 225, 166, 0.35);
}

.map-loc.is-regional {
  border-color: rgba(181, 140, 255, 0.35);
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  margin-top: 0.9rem;
  font-size: 0.75rem;
  color: rgba(230, 238, 251, 0.7);
}

.map-legend .dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #4da3ff;
  margin-right: 5px;
}

.map-legend .dot.hq {
  background: #f0b429;
}

.map-legend .dot.target {
  background: #5ce1a6;
}

.map-legend .dot.regional {
  background: #b58cff;
}

.map-canvas {
  min-height: 480px;
  padding: 0;
}

#vijas-map {
  width: 100%;
  height: 100%;
  min-height: 480px;
}

.map-fallback {
  display: grid;
  place-items: center;
  height: 100%;
  min-height: 480px;
  color: rgba(230, 238, 251, 0.7);
}

.map-iw {
  color: #0e1a2b;
  font-family: var(--font-body);
  font-size: 0.85rem;
}

@media screen and (max-width: 900px) {
  .map-wrap {
    grid-template-columns: 1fr;
  }
  .map-list {
    max-height: 220px;
  }
  .map-canvas,
  #vijas-map {
    min-height: 360px;
  }
}
