:root {
  --black: #02030d;
  --black-soft: #07111f;
  --black-panel: #0a1424;
  --green: #1c6dff;
  --green-light: #5ce1ff;
  --amber: #ffb45c;
  --violet: #7c5cff;
  --silver: #eef7ff;
  --silver-soft: #b8cbe0;
  --silver-dim: rgba(238, 247, 255, 0.7);
  --line: rgba(155, 220, 255, 0.2);
  --shadow-4d: 0 26px 0 rgba(0, 0, 0, 0.34), 0 42px 90px rgba(0, 0, 0, 0.56);
  --edge: inset 0 1px 0 rgba(255, 255, 255, 0.2), inset 0 -1px 0 rgba(0, 0, 0, 0.65);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  padding-top: 78px;
  background:
    radial-gradient(circle at 78% 18%, rgba(92, 225, 255, 0.18), transparent 28%),
    radial-gradient(circle at 18% 76%, rgba(255, 180, 92, 0.12), transparent 28%),
    linear-gradient(145deg, #02030d 0%, #07111f 46%, #120817 100%);
  color: var(--silver);
  font-family: "Nirmala UI", "Mangal", "Kohinoor Devanagari", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.65;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(155, 220, 255, 0.045), transparent 18% 82%, rgba(255, 180, 92, 0.04)),
    linear-gradient(180deg, transparent, rgba(28, 109, 255, 0.12) 48%, transparent);
  pointer-events: none;
}

main,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-starfield,
.starfield-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100vw;
  height: 100vh;
  opacity: 0.72;
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  left: var(--mouse-x, 50%);
  top: var(--mouse-y, 45%);
  z-index: 0;
  width: 420px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 205, 105, 0.36), rgba(255, 159, 64, 0.16) 42%, transparent 70%);
  filter: blur(14px);
  opacity: var(--mouse-glow-opacity, 0.7);
  pointer-events: none;
  translate: -50% -50%;
  transition: opacity 0.25s ease;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

svg {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: rgba(5, 7, 6, 0.72);
  backdrop-filter: blur(18px);
  transition: border-color 0.25s ease, background 0.25s ease;
}

.site-header.scrolled {
  border-color: var(--line);
  background: rgba(5, 7, 6, 0.92);
}

.navbar {
  width: min(var(--max), calc(100% - 32px));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 900;
}

.brand-logo,
.hero-logo-space {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(238, 247, 255, 0.14), rgba(28, 109, 255, 0.34));
  box-shadow: var(--edge), 0 12px 28px rgba(0, 0, 0, 0.35);
  color: var(--silver);
}

.brand-logo {
  width: 46px;
  aspect-ratio: 1;
  border-radius: 50%;
  flex: 0 0 46px;
  font-size: 12px;
  overflow: hidden;
}

.brand-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-logo img,
.hero-logo-space img,
.address-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 8px 12px;
  color: var(--silver-dim);
  font-size: 0.95rem;
  font-weight: 800;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  border-color: rgba(215, 221, 217, 0.22);
  background: rgba(28, 109, 255, 0.32);
  color: var(--silver);
  transform: translateY(-1px);
}

.nav-links .nav-cta {
  border-color: rgba(215, 221, 217, 0.28);
  background: linear-gradient(145deg, var(--green), #102d74);
  color: var(--silver);
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.34), 0 18px 30px rgba(0, 0, 0, 0.3);
}

.menu-toggle {
  display: none;
  width: 44px;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(215, 221, 217, 0.07);
  color: var(--silver);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.hero,
.inner-hero,
.section {
  position: relative;
  isolation: isolate;
}

.hero {
  min-height: calc(100vh - 78px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
  align-items: center;
  gap: 54px;
  padding: 46px max(24px, calc((100vw - var(--max)) / 2)) 64px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(115deg, rgba(5, 7, 6, 0.98), rgba(5, 7, 6, 0.74) 52%, rgba(5, 7, 6, 0.96)),
    repeating-linear-gradient(90deg, rgba(215, 221, 217, 0.055) 0 1px, transparent 1px 90px),
    repeating-linear-gradient(0deg, rgba(215, 221, 217, 0.045) 0 1px, transparent 1px 90px),
    linear-gradient(145deg, var(--black), var(--green));
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 12% 5% 10% auto;
  width: min(42vw, 520px);
  border: 1px solid rgba(215, 221, 217, 0.15);
  transform: perspective(900px) rotateY(-22deg) rotateX(8deg);
  background:
    linear-gradient(145deg, rgba(238, 247, 255, 0.08), rgba(28, 109, 255, 0.18)),
    repeating-linear-gradient(135deg, rgba(215, 221, 217, 0.08) 0 1px, transparent 1px 26px);
  box-shadow: var(--shadow-4d);
}

body[data-page="home"] {
  background:
    radial-gradient(circle at 78% 18%, rgba(92, 225, 230, 0.2), transparent 28%),
    radial-gradient(circle at 20% 80%, rgba(245, 176, 65, 0.12), transparent 30%),
    linear-gradient(145deg, #02030d 0%, #07111f 46%, #120817 100%);
}

body[data-page="home"]::before {
  background:
    radial-gradient(circle at 50% 15%, rgba(255, 255, 255, 0.12), transparent 2px),
    radial-gradient(circle at 15% 28%, rgba(255, 255, 255, 0.14), transparent 1px),
    radial-gradient(circle at 78% 62%, rgba(255, 255, 255, 0.16), transparent 1px),
    linear-gradient(180deg, rgba(8, 18, 34, 0.35), rgba(3, 4, 14, 0.92));
}

body[data-page="home"] .site-header {
  background: rgba(2, 3, 13, 0.72);
}

body[data-page="home"] .site-header.scrolled,
body[data-page="home"] .site-footer {
  background: rgba(2, 3, 13, 0.94);
}

body[data-page="home"] .hero {
  grid-template-rows: auto;
  perspective: 1200px;
  min-height: calc(100vh - 78px);
}

body[data-page="home"] .hero-content {
  grid-column: 1;
  grid-row: 1;
}

body[data-page="home"] .hero-bg {
  background:
    linear-gradient(105deg, rgba(2, 3, 13, 0.96), rgba(3, 9, 25, 0.72) 47%, rgba(2, 3, 13, 0.9)),
    radial-gradient(circle at 72% 36%, rgba(54, 190, 255, 0.24), transparent 28%),
    radial-gradient(circle at 86% 68%, rgba(244, 156, 63, 0.14), transparent 24%),
    linear-gradient(145deg, #02030d, #071827 58%, #16071d);
}

body[data-page="home"] .hero-bg::after {
  inset: 8% 2% auto auto;
  width: min(48vw, 620px);
  height: min(48vw, 620px);
  border-radius: 50%;
  border-color: rgba(113, 220, 255, 0.2);
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.34), transparent 8%),
    radial-gradient(circle at 42% 38%, #3fc8ff 0 7%, transparent 8%),
    radial-gradient(circle at 52% 60%, rgba(255, 160, 88, 0.56), transparent 13%),
    linear-gradient(145deg, #12365b, #071323 56%, #02030d);
  filter: blur(0.2px);
  opacity: 0.74;
  transform: perspective(1000px) rotateY(-24deg) rotateX(12deg);
  box-shadow:
    inset -42px -38px 80px rgba(0, 0, 0, 0.72),
    inset 18px 14px 38px rgba(255, 255, 255, 0.12),
    0 0 80px rgba(54, 190, 255, 0.26),
    var(--shadow-4d);
}

.starfield-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  opacity: 0.88;
}

.space-scene {
  position: absolute;
  right: max(24px, calc((100vw - var(--max)) / 2));
  top: 70px;
  grid-column: 2;
  grid-row: 1;
  width: min(40vw, 500px);
  height: min(48vw, 520px);
  min-height: 360px;
  transform-style: preserve-3d;
  animation: sceneFloat 7s ease-in-out infinite;
  pointer-events: none;
}

.planet-3d,
.orbit-ring,
.spacecraft-3d,
.meteor {
  position: absolute;
  transform-style: preserve-3d;
}

.planet-3d {
  right: 6%;
  top: 8%;
  width: min(30vw, 330px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.78), transparent 9%),
    radial-gradient(circle at 38% 42%, #67d6ff 0 13%, transparent 14%),
    radial-gradient(circle at 62% 68%, rgba(255, 181, 90, 0.82), transparent 18%),
    linear-gradient(145deg, #46bff2 0%, #173d76 42%, #080b24 76%);
  box-shadow:
    inset -36px -44px 68px rgba(0, 0, 0, 0.72),
    inset 18px 16px 36px rgba(255, 255, 255, 0.2),
    0 0 72px rgba(83, 214, 255, 0.42),
    0 30px 0 rgba(0, 0, 0, 0.22),
    0 58px 95px rgba(0, 0, 0, 0.52);
  transform: rotateX(12deg) rotateY(-24deg);
  overflow: hidden;
}

.planet-glow {
  position: absolute;
  inset: -18%;
  border-radius: inherit;
  background: radial-gradient(circle, rgba(93, 211, 255, 0.3), transparent 62%);
  transform: translateZ(-30px);
}

.planet-band {
  position: absolute;
  left: -34%;
  top: 46%;
  width: 168%;
  height: 18%;
  border: 1px solid rgba(255, 218, 155, 0.52);
  border-radius: 50%;
  background: linear-gradient(90deg, transparent, rgba(255, 183, 96, 0.36), transparent);
  transform: rotateZ(-12deg) rotateX(68deg);
  box-shadow: 0 0 28px rgba(255, 174, 76, 0.32);
}

.orbit-ring {
  right: -2%;
  top: 5%;
  width: min(40vw, 460px);
  aspect-ratio: 1;
  border: 1px solid rgba(118, 219, 255, 0.26);
  border-radius: 50%;
  transform: rotateX(66deg) rotateZ(-18deg);
}

.orbit-ring-two {
  right: 8%;
  top: 18%;
  width: min(32vw, 370px);
  border-color: rgba(255, 184, 100, 0.24);
  transform: rotateX(70deg) rotateZ(22deg);
}

.spacecraft-3d {
  left: 3%;
  bottom: 22%;
  width: 168px;
  height: 92px;
  transform: perspective(700px) rotateZ(-18deg) rotateY(24deg);
  animation: shipDrift 4.8s ease-in-out infinite;
  filter: drop-shadow(0 24px 26px rgba(0, 0, 0, 0.48));
}

.ship-body {
  position: absolute;
  inset: 22px 34px 24px 26px;
  border-radius: 50% 58% 58% 50%;
  background: linear-gradient(135deg, #f5f8ff, #8fb7d4 52%, #283b60);
  box-shadow: inset -14px -12px 20px rgba(0, 0, 0, 0.36), inset 8px 7px 18px rgba(255, 255, 255, 0.72);
}

.ship-window {
  position: absolute;
  right: 42px;
  top: 31px;
  width: 26px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #ffffff, #68d9ff 38%, #0d4d83 72%);
  box-shadow: 0 0 18px rgba(96, 216, 255, 0.62);
}

.ship-wing {
  position: absolute;
  left: 46px;
  width: 54px;
  height: 24px;
  background: linear-gradient(145deg, #f49a48, #74315c);
  clip-path: polygon(0 0, 100% 42%, 18% 100%);
}

.ship-wing-left {
  top: 9px;
  transform: rotate(-10deg);
}

.ship-wing-right {
  bottom: 7px;
  transform: scaleY(-1) rotate(-10deg);
}

.ship-flame {
  position: absolute;
  left: 2px;
  top: 34px;
  width: 42px;
  height: 20px;
  border-radius: 50% 0 0 50%;
  background: linear-gradient(90deg, rgba(84, 220, 255, 0), #5ce8ff 42%, #fff2a8 72%, #ff8d46);
  filter: blur(0.2px);
  animation: flamePulse 0.32s ease-in-out infinite alternate;
}

.meteor {
  width: 94px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9));
  box-shadow: 0 0 16px rgba(92, 225, 230, 0.58);
}

.meteor-one {
  right: 8%;
  top: 14%;
  transform: rotate(-28deg);
  animation: meteorSlide 4.8s linear infinite;
}

.meteor-two {
  left: 20%;
  top: 64%;
  opacity: 0.62;
  transform: rotate(-28deg) scale(0.72);
  animation: meteorSlide 6.2s 1.3s linear infinite;
}

@keyframes sceneFloat {
  0%,
  100% {
    transform: translateY(0) rotateX(0deg);
  }
  50% {
    transform: translateY(-14px) rotateX(2deg);
  }
}

@keyframes shipDrift {
  0%,
  100% {
    transform: perspective(700px) rotateZ(-18deg) rotateY(24deg) translate3d(0, 0, 26px);
  }
  50% {
    transform: perspective(700px) rotateZ(-15deg) rotateY(18deg) translate3d(18px, -14px, 54px);
  }
}

@keyframes flamePulse {
  from {
    transform: scaleX(0.78);
    opacity: 0.72;
  }
  to {
    transform: scaleX(1.12);
    opacity: 1;
  }
}

@keyframes meteorSlide {
  from {
    translate: 90px -90px;
    opacity: 0;
  }
  18%,
  62% {
    opacity: 1;
  }
  to {
    translate: -280px 210px;
    opacity: 0;
  }
}

.inner-hero {
  min-height: calc(100vh - 78px);
  padding: 92px 0;
}

.inner-hero::before,
.section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(120deg, rgba(28, 109, 255, 0.2), transparent 32%),
    repeating-linear-gradient(135deg, rgba(215, 221, 217, 0.03) 0 1px, transparent 1px 42px);
}

.section {
  padding: 86px 0;
}

.hero-content,
.section-copy,
.section-heading {
  max-width: 790px;
}

.hero-logo-space {
  width: 112px;
  aspect-ratio: 1;
  border-radius: 50%;
  margin-bottom: 28px;
  font-size: 0.9rem;
  font-weight: 800;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green-light);
  font-weight: 900;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--silver);
  letter-spacing: 0;
  line-height: 1.16;
}

h1 {
  font-size: clamp(2.8rem, 7vw, 6.6rem);
  text-shadow: 0 6px 0 rgba(0, 0, 0, 0.34), 0 26px 52px rgba(0, 0, 0, 0.5);
}

h2 {
  font-size: clamp(2rem, 4.2vw, 3.7rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  color: var(--silver-dim);
}

.hero-subtitle {
  max-width: 720px;
  margin: 22px 0 0;
  font-size: clamp(1.18rem, 2.5vw, 1.85rem);
  font-weight: 700;
}

.hero-actions,
.contact-actions,
.center-action {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.center-action {
  justify-content: center;
}

.btn {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(215, 221, 217, 0.22);
  border-radius: var(--radius);
  padding: 12px 22px;
  color: var(--silver);
  font-weight: 900;
  cursor: pointer;
  transform: translateY(0);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-4px);
}

.btn-primary {
  background: linear-gradient(145deg, var(--green-light), var(--green) 58%, #102d74);
  box-shadow: 0 9px 0 rgba(0, 0, 0, 0.42), 0 22px 38px rgba(0, 0, 0, 0.34);
}

.btn-primary:hover {
  box-shadow: 0 13px 0 rgba(0, 0, 0, 0.42), 0 30px 52px rgba(0, 0, 0, 0.42);
}

.btn-secondary {
  background: linear-gradient(145deg, rgba(215, 221, 217, 0.12), rgba(16, 22, 19, 0.72));
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.32), 0 20px 34px rgba(0, 0, 0, 0.28);
}

.depth-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(238, 247, 255, 0.13), rgba(7, 17, 31, 0.78) 42%, rgba(28, 109, 255, 0.2)),
    var(--black-panel);
  box-shadow: var(--edge), var(--shadow-4d);
  backdrop-filter: blur(18px);
  transform-style: preserve-3d;
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.depth-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(238, 247, 255, 0.2), transparent 32%, rgba(255, 180, 92, 0.18));
  opacity: 0.42;
  pointer-events: none;
}

.depth-card:hover {
  border-color: rgba(215, 221, 217, 0.32);
  transform: perspective(1000px) rotateX(2deg) rotateY(-2deg) translateY(-8px);
  box-shadow: var(--edge), 0 30px 0 rgba(0, 0, 0, 0.38), 0 56px 105px rgba(0, 0, 0, 0.62);
}

.hero-card {
  align-self: end;
  padding: 30px;
}

body[data-page="home"] .hero-card {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  max-width: 390px;
  justify-self: end;
  margin-top: 0;
}

.hero-card h2 {
  margin-top: 18px;
  font-size: 1.65rem;
}

.hero-card p {
  margin-bottom: 0;
}

.icon-wrap {
  display: inline-grid;
  place-items: center;
  width: 54px;
  aspect-ratio: 1;
  border: 1px solid rgba(215, 221, 217, 0.18);
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--green), rgba(16, 22, 19, 0.88));
  color: var(--silver);
  font-size: 1.65rem;
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.28), 0 18px 24px rgba(0, 0, 0, 0.24);
}

.icon-wrap.small {
  width: 44px;
  flex: 0 0 44px;
  font-size: 1.3rem;
}

.split,
.contact-layout,
.appointment-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 44px;
}

.appointment-layout {
  grid-template-columns: 0.86fr 1.14fr;
}

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

.feature-strip article,
.service-card,
.contact-panel,
.contact-form,
.map-placeholder {
  padding: 28px;
}

.feature-strip span {
  color: var(--green-light);
  font-weight: 900;
}

.about-visual {
  min-height: 470px;
  position: relative;
  display: grid;
  place-items: center;
}

.mandala {
  width: min(100%, 430px);
  aspect-ratio: 1;
  border: 1px solid rgba(215, 221, 217, 0.22);
  border-radius: 50%;
  background:
    repeating-conic-gradient(from 12deg, rgba(215, 221, 217, 0.11) 0 8deg, transparent 8deg 18deg),
    radial-gradient(circle, rgba(92, 225, 255, 0.28), rgba(2, 3, 13, 0.1) 62%);
  box-shadow: var(--edge), 0 26px 0 rgba(0, 0, 0, 0.3), 0 52px 95px rgba(0, 0, 0, 0.58);
  transform: perspective(900px) rotateX(64deg) rotateZ(-12deg);
}

.stat-card {
  position: absolute;
  right: 0;
  bottom: 36px;
  padding: 22px 26px;
}

.stat-card strong,
.stat-card span {
  display: block;
}

.stat-card strong {
  font-size: 2rem;
}

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

.service-card {
  min-height: 190px;
}

.service-card h3 {
  margin-top: 22px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.large-gallery {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gallery-item {
  position: relative;
  min-height: 310px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--black-panel);
  box-shadow: 0 18px 0 rgba(0, 0, 0, 0.32), 0 38px 70px rgba(0, 0, 0, 0.46);
  transition: transform 0.28s ease, border-color 0.28s ease;
}

.gallery-item:hover {
  border-color: rgba(215, 221, 217, 0.32);
  transform: perspective(900px) rotateX(2deg) rotateY(-2deg) translateY(-8px);
}

.gallery-placeholder {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(215, 221, 217, 0.1), transparent 24%),
    repeating-linear-gradient(135deg, rgba(215, 221, 217, 0.08) 0 1px, transparent 1px 30px),
    linear-gradient(145deg, #0b2850, var(--black) 72%);
}

.gallery-placeholder::before,
.gallery-placeholder::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(215, 221, 217, 0.2);
  background: rgba(28, 109, 255, 0.24);
  box-shadow: 0 16px 0 rgba(0, 0, 0, 0.22), 0 30px 44px rgba(0, 0, 0, 0.36);
}

.gallery-placeholder::before {
  width: 56%;
  aspect-ratio: 1.5;
  transform: perspective(700px) rotateX(58deg) rotateZ(-18deg);
}

.gallery-placeholder::after {
  width: 28%;
  aspect-ratio: 0.7;
  border-radius: 50% 0 50% 0;
  transform: rotate(38deg) translateY(-12px);
}

.gallery-placeholder.clinic {
  background:
    linear-gradient(90deg, transparent 0 42%, rgba(215, 221, 217, 0.1) 42% 44%, transparent 44%),
    linear-gradient(145deg, #102d74, var(--black) 72%);
}

.gallery-placeholder.wellness {
  background:
    repeating-linear-gradient(90deg, rgba(215, 221, 217, 0.06) 0 1px, transparent 1px 34px),
    linear-gradient(145deg, #071d3d, var(--black) 72%);
}

.gallery-placeholder.care {
  background:
    repeating-conic-gradient(from 8deg, rgba(215, 221, 217, 0.08) 0 8deg, transparent 8deg 18deg),
    linear-gradient(145deg, #1b1749, var(--black) 72%);
}

.info-line,
.contact-number {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin: 24px 0;
}

address {
  color: var(--silver-dim);
  font-style: normal;
}

.map-placeholder {
  min-height: 360px;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
}

.address-media-stack {
  display: grid;
  gap: 18px;
}

.address-photo {
  min-height: 230px;
  display: grid;
  place-items: center;
  align-content: center;
  padding: 28px;
  overflow: hidden;
  text-align: center;
  background:
    linear-gradient(145deg, rgba(238, 247, 255, 0.11), rgba(28, 109, 255, 0.2)),
    repeating-linear-gradient(135deg, rgba(215, 221, 217, 0.07) 0 1px, transparent 1px 30px),
    var(--black-panel);
}

.address-photo span {
  color: var(--silver);
  font-size: 1.25rem;
  font-weight: 900;
}

.address-photo p {
  max-width: 320px;
  margin: 8px auto 0;
}

.map-placeholder p {
  max-width: 360px;
  margin: 8px auto 0;
}

.contact-panel p {
  max-width: 560px;
}

.contact-number a {
  color: var(--silver);
  font-size: 1.6rem;
  font-weight: 900;
}

.contact-form {
  display: grid;
  gap: 12px;
}

.contact-form label {
  color: var(--silver);
  font-weight: 900;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  border: 1px solid rgba(215, 221, 217, 0.2);
  border-radius: var(--radius);
  background: rgba(5, 7, 6, 0.74);
  color: var(--silver);
  outline: none;
  padding: 14px 16px;
  box-shadow: inset 0 3px 0 rgba(0, 0, 0, 0.24);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: rgba(92, 225, 255, 0.92);
  box-shadow: 0 0 0 4px rgba(28, 109, 255, 0.28), inset 0 3px 0 rgba(0, 0, 0, 0.24);
}

.contact-form option {
  background: var(--black);
  color: var(--silver);
}

.form-status {
  min-height: 28px;
  margin: 0;
  color: var(--green-light);
  font-weight: 900;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(5, 7, 6, 0.92);
  color: var(--silver-dim);
}

.footer-inner {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-inner a {
  color: var(--silver);
  font-weight: 900;
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 48px;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--green-light), var(--green));
  color: var(--silver);
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.34), 0 20px 34px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.welcome-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(5, 7, 6, 0.82);
  backdrop-filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.welcome-modal.show {
  opacity: 1;
  pointer-events: auto;
}

.modal-panel {
  width: min(540px, 100%);
  padding: 38px;
  text-align: center;
  transform: perspective(900px) rotateX(5deg) translateY(16px) scale(0.98);
  transition: transform 0.25s ease;
}

.welcome-modal.show .modal-panel {
  transform: perspective(900px) rotateX(0) translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 38px;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(215, 221, 217, 0.08);
  color: var(--silver);
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
}

.modal-icon {
  display: inline-grid;
  place-items: center;
  width: 74px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(28, 109, 255, 0.34);
  color: var(--silver);
  font-size: 2.1rem;
}

.modal-panel h2 {
  margin-top: 18px;
  font-size: 2.1rem;
}

.modal-action {
  margin-top: 10px;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.inner-hero::after,
.section::after {
  content: "";
  position: absolute;
  inset: 10% -12% auto auto;
  z-index: -1;
  width: min(54vw, 620px);
  aspect-ratio: 1;
  border: 1px solid rgba(92, 225, 255, 0.14);
  border-radius: 50%;
  background:
    repeating-conic-gradient(from 22deg, rgba(92, 225, 255, 0.1) 0 5deg, transparent 5deg 18deg),
    radial-gradient(circle, rgba(28, 109, 255, 0.18), transparent 62%);
  box-shadow: 0 0 80px rgba(92, 225, 255, 0.12);
  transform: perspective(900px) rotateX(68deg) rotateZ(-18deg);
  animation: orbitSweep 18s linear infinite;
  pointer-events: none;
}

.section::after {
  inset: auto auto 8% -18%;
  width: min(46vw, 520px);
  animation-duration: 24s;
  animation-direction: reverse;
}

.depth-card,
.gallery-item,
.address-photo {
  animation: panelFloat 7s ease-in-out infinite;
}

.feature-strip article:nth-child(2),
.service-card:nth-child(2n),
.gallery-item:nth-child(2) {
  animation-delay: -1.4s;
}

.feature-strip article:nth-child(3),
.service-card:nth-child(3n),
.gallery-item:nth-child(3) {
  animation-delay: -2.6s;
}

.icon-wrap {
  animation: iconPulse 3.8s ease-in-out infinite;
}

@keyframes orbitSweep {
  from {
    transform: perspective(900px) rotateX(68deg) rotateZ(-18deg);
  }
  to {
    transform: perspective(900px) rotateX(68deg) rotateZ(342deg);
  }
}

@keyframes panelFloat {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -7px;
  }
}

@keyframes iconPulse {
  0%,
  100% {
    box-shadow: 0 8px 0 rgba(0, 0, 0, 0.28), 0 18px 24px rgba(0, 0, 0, 0.24), 0 0 0 rgba(92, 225, 255, 0);
  }
  50% {
    box-shadow: 0 8px 0 rgba(0, 0, 0, 0.28), 0 18px 24px rgba(0, 0, 0, 0.24), 0 0 28px rgba(92, 225, 255, 0.32);
  }
}

@media (max-width: 1100px) {
  .nav-links a {
    padding-inline: 9px;
  }
}

@media (max-width: 980px) {
  .hero,
  .split,
  .contact-layout,
  .appointment-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-card {
    align-self: auto;
  }

  body[data-page="home"] .hero {
    grid-template-rows: auto;
  }

  body[data-page="home"] .hero-content,
  body[data-page="home"] .space-scene,
  body[data-page="home"] .hero-card {
    grid-column: auto;
    grid-row: auto;
  }

  .space-scene {
    position: relative;
    right: auto;
    top: auto;
    width: 100%;
    height: auto;
    min-height: 360px;
    order: 2;
  }

  body[data-page="home"] .hero-card {
    order: 3;
  }

  .planet-3d {
    right: 14%;
    width: min(58vw, 330px);
  }

  .orbit-ring {
    right: 7%;
    width: min(72vw, 440px);
  }

  .orbit-ring-two {
    right: 18%;
    width: min(56vw, 340px);
  }

  .feature-strip,
  .service-grid,
  .large-gallery,
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body {
    padding-top: 68px;
    font-size: 16px;
    line-height: 1.58;
  }

  .container {
    width: min(100% - 24px, var(--max));
  }

  .site-header {
    background: rgba(5, 7, 6, 0.94);
  }

  .navbar {
    width: min(100% - 24px, var(--max));
    min-height: 68px;
    gap: 10px;
  }

  .brand {
    gap: 9px;
  }

  .brand-logo {
    width: 40px;
    flex-basis: 40px;
    font-size: 10px;
  }

  .brand-text {
    max-width: min(52vw, 205px);
    font-size: 0.94rem;
  }

  .menu-toggle {
    display: block;
    width: 42px;
    flex: 0 0 42px;
  }

  .nav-links {
    position: fixed;
    top: 68px;
    left: 12px;
    right: 12px;
    display: grid;
    gap: 6px;
    max-height: calc(100dvh - 84px);
    overflow-y: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(5, 7, 6, 0.96);
    padding: 12px;
    box-shadow: var(--shadow-4d);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    padding: 12px 14px;
    text-align: center;
  }

  h1 {
    font-size: clamp(2.15rem, 11vw, 3.15rem);
    line-height: 1.12;
    text-shadow: 0 4px 0 rgba(0, 0, 0, 0.32), 0 18px 32px rgba(0, 0, 0, 0.45);
  }

  h2 {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

  h3 {
    font-size: 1.12rem;
  }

  .hero,
  .inner-hero,
  .section {
    padding-inline: 14px;
  }

  .hero {
    gap: 32px;
    min-height: auto;
    padding-top: 46px;
    padding-bottom: 58px;
  }

  .hero-bg::after {
    display: none;
  }

  body[data-page="home"] .hero-bg::after {
    display: block;
    inset: 12% -28% auto auto;
    width: 82vw;
    height: 82vw;
    opacity: 0.34;
  }

  .starfield-canvas {
    opacity: 0.7;
  }

  .space-scene {
    min-height: 220px;
    margin-top: -8px;
  }

  .planet-3d {
    right: 7%;
    top: 0;
    width: min(66vw, 250px);
  }

  .orbit-ring {
    right: -4%;
    top: -4%;
    width: min(88vw, 330px);
  }

  .orbit-ring-two {
    right: 10%;
    top: 10%;
    width: min(68vw, 260px);
  }

  .spacecraft-3d {
    left: 2%;
    bottom: 18%;
    width: 128px;
    height: 72px;
  }

  .ship-body {
    inset: 17px 27px 19px 21px;
  }

  .ship-window {
    right: 33px;
    top: 24px;
    width: 20px;
  }

  .ship-wing {
    left: 36px;
    width: 42px;
    height: 19px;
  }

  .ship-flame {
    top: 27px;
    width: 34px;
    height: 16px;
  }

  .inner-hero {
    min-height: auto;
    padding-top: 48px;
    padding-bottom: 64px;
  }

  .hero-logo-space {
    width: 82px;
    margin-bottom: 20px;
    font-size: 0.78rem;
  }

  .hero-subtitle {
    margin-top: 16px;
    font-size: 1.12rem;
  }

  .hero-actions,
  .contact-actions,
  .center-action {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    min-height: 50px;
    padding: 11px 18px;
  }

  .feature-strip,
  .service-grid,
  .large-gallery,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .about-visual {
    min-height: 280px;
  }

  .stat-card {
    right: 10px;
    bottom: 12px;
  }

  .gallery-item {
    min-height: 220px;
    box-shadow: 0 10px 0 rgba(0, 0, 0, 0.28), 0 24px 48px rgba(0, 0, 0, 0.42);
  }

  .feature-strip article,
  .service-card,
  .contact-panel,
  .contact-form,
  .map-placeholder,
  .address-photo,
  .modal-panel {
    padding: 20px;
  }

  .hero-card,
  .depth-card {
    box-shadow: var(--edge), 0 12px 0 rgba(0, 0, 0, 0.28), 0 28px 54px rgba(0, 0, 0, 0.48);
  }

  .depth-card:hover,
  .gallery-item:hover {
    transform: none;
  }

  .icon-wrap {
    width: 48px;
    font-size: 1.42rem;
  }

  .icon-wrap.small {
    width: 40px;
    flex-basis: 40px;
    font-size: 1.15rem;
  }

  .info-line,
  .contact-number {
    gap: 12px;
  }

  .contact-number a {
    font-size: 1.35rem;
  }

  .contact-form input,
  .contact-form textarea,
  .contact-form select {
    padding: 13px 14px;
  }

  .map-placeholder {
    min-height: 270px;
  }

  .address-photo {
    min-height: 190px;
  }

  .back-to-top {
    right: 14px;
    bottom: 14px;
    width: 44px;
  }

  .modal-panel {
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
  }

  .footer-inner {
    padding: 22px 0;
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .brand-text {
    max-width: 48vw;
  }

  h1 {
    font-size: clamp(2rem, 10vw, 2.7rem);
  }

  .hero,
  .inner-hero,
  .section {
    padding-inline: 12px;
  }

  .feature-strip article,
  .service-card,
  .contact-panel,
  .contact-form,
  .map-placeholder,
  .address-photo,
  .modal-panel {
    padding: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
