* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #5b3df5;
  --secondary: #7a36e8;
  --accent: #16c7d9;
  --dark: #17132b;
  --light: #f7f6ff;
  --white: #ffffff;
  --text: #37324a;
  --shadow: 0 18px 45px rgba(40, 25, 110, 0.18);
}

body {
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(22, 199, 217, 0.22), transparent 34%),
    radial-gradient(circle at top right, rgba(122, 54, 232, 0.25), transparent 38%),
    linear-gradient(145deg, #f9f7ff, #eef7ff);
}

.page {
  width: min(100% - 28px, 900px);
  margin: 0 auto;
  padding: 36px 0 24px;
}

.hero {
  text-align: center;
  padding: 24px 10px 30px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 20px;
  color: var(--white);
  font-size: 34px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: var(--shadow);
}

.eyebrow {
  margin-bottom: 10px;
  color: var(--secondary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}

h1 {
  color: var(--dark);
  font-size: clamp(38px, 8vw, 68px);
  line-height: 1;
}

.hero h2 {
  max-width: 700px;
  margin: 16px auto 0;
  color: var(--primary);
  font-size: clamp(20px, 4vw, 31px);
  line-height: 1.25;
}

.intro {
  max-width: 690px;
  margin: 18px auto 0;
  font-size: clamp(16px, 3vw, 19px);
  line-height: 1.65;
}

.experience-card,
.about-card {
  border: 1px solid rgba(91, 61, 245, 0.12);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.experience-card {
  padding: 28px 20px;
  text-align: center;
}

.experience-card h3,
.about-card h3 {
  color: var(--dark);
  font-size: 25px;
}

.experience-card > p {
  margin-top: 8px;
  line-height: 1.5;
}

.experience-options {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.experience-button {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 18px;
  border: 0;
  border-radius: 20px;
  color: var(--white);
  text-align: left;
  cursor: pointer;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 12px 28px rgba(91, 61, 245, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.experience-button:nth-child(2) {
  background: linear-gradient(135deg, #0e9fb2, var(--accent));
}

.experience-button:hover,
.experience-button:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(91, 61, 245, 0.3);
}

.button-icon {
  font-size: 34px;
}

.button-text {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.button-text strong {
  font-size: 18px;
}

.button-text small {
  font-size: 14px;
  opacity: 0.9;
}

.about-card {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 22px;
  padding: 24px;
}

.assistant-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 22px;
  font-size: 35px;
  background: linear-gradient(135deg, #efeaff, #dcf9fc);
}

.about-card p {
  margin-top: 8px;
  line-height: 1.55;
}

.coming-next {
  margin-top: 20px;
  padding: 16px;
  border-radius: 16px;
  color: #554f68;
  text-align: center;
  background: rgba(255, 255, 255, 0.62);
}

footer {
  padding: 20px 14px 30px;
  color: #6c6680;
  text-align: center;
  font-size: 13px;
}

@media (min-width: 700px) {
  .experience-options {
    grid-template-columns: 1fr 1fr;
  }

  .page {
    padding-top: 50px;
  }

  .experience-card {
    padding: 34px;
  }
}

@media (max-width: 520px) {
  .page {
    width: min(100% - 20px, 900px);
    padding-top: 20px;
  }

  .hero {
    padding-top: 12px;
  }

  .about-card {
    align-items: flex-start;
    padding: 20px;
  }

  .assistant-icon {
    width: 56px;
    height: 56px;
    font-size: 29px;
  }
}
.assistant-icon {
  overflow: hidden;
  padding: 0;
}

.assistant-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.chat-page {
  width: min(100% - 24px, 820px);
  margin: 0 auto;
  padding: 24px 0 36px;
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.back-link {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

.chat-avatar {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  object-fit: cover;
  object-position: center top;
}

.chat-header h1 {
  font-size: 25px;
}

.chat-header p {
  margin-top: 4px;
  color: #6c6680;
}

.chat-window {
  min-height: 420px;
  margin-top: 18px;
  padding: 18px;
  overflow-y: auto;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.message {
  max-width: 80%;
  margin-bottom: 14px;
  padding: 13px 16px;
  border-radius: 18px;
  line-height: 1.5;
}

.assistant-message {
  margin-right: auto;
  background: #eeeaff;
}

.user-message {
  margin-left: auto;
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.chat-form {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.chat-form textarea {
  flex: 1;
  resize: none;
  padding: 14px;
  border: 1px solid rgba(91, 61, 245, 0.22);
  border-radius: 16px;
  font: inherit;
}

.chat-form button {
  padding: 0 22px;
  border: 0;
  border-radius: 16px;
  color: white;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.chat-note {
  margin-top: 12px;
  color: #6c6680;
  text-align: center;
  font-size: 12px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.image-message {
  padding: 8px;
  background: #ffffff;
}

.image-message img {
  display: block;
  width: 100%;
  max-width: 280px;
  max-height: 320px;
  object-fit: contain;
  border-radius: 14px;
}

.tablet-mode .chat-page {
  width: min(100% - 40px, 1100px);
  padding-top: 30px;
}

.tablet-mode .chat-header {
  padding: 22px 26px;
}

.tablet-mode .chat-avatar {
  width: 78px;
  height: 78px;
}

.tablet-mode .chat-header h1 {
  font-size: 32px;
}

.tablet-mode .chat-header p {
  font-size: 17px;
}

.tablet-mode .chat-window {
  min-height: 560px;
  padding: 26px;
}

.tablet-mode .message {
  font-size: 18px;
  max-width: 72%;
}

.tablet-mode .chat-form textarea {
  min-height: 76px;
  font-size: 18px;
}

.tablet-mode .chat-form button {
  min-width: 76px;
  font-size: 18px;
}

.tablet-mode .image-message img {
  max-width: 420px;
  max-height: 420px;
}

.fullscreen-button {
  padding: 10px 14px;
  border: 0;
  border-radius: 12px;
  color: white;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(
    135deg,
    var(--primary),
    var(--secondary)
  );
}

.tablet-mode .fullscreen-button {
  padding: 12px 18px;
  font-size: 16px;
}

.chat-header {
  position: relative;
}

.fullscreen-button {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

@media (max-width: 700px) {
  .fullscreen-button {
    position: static;
    transform: none;
    margin-left: auto;
  }
}

.chat-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

.header-left {
  justify-self: start;
}

.assistant-profile {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-self: center;
}

.assistant-title {
  text-align: left;
}

.header-right {
  justify-self: end;
}

.fullscreen-button {
  position: static;
  transform: none;
}

@media (max-width: 700px) {
  .chat-header {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .header-left,
  .assistant-profile,
  .header-right {
    justify-self: center;
  }

  .assistant-profile {
    flex-direction: column;
  }

  .assistant-title {
    text-align: center;
  }
}

.fullscreen-button {
  display: none;
}

.tablet-mode .fullscreen-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.voice-controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
}

.voice-controls button {
  padding: 9px 14px;
  border: 1px solid rgba(91, 61, 245, 0.22);
  border-radius: 12px;
  background: white;
  color: var(--primary);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.voice-controls button:hover {
  background: #f3f0ff;
}

.welcome-message {
  margin-top: 8px;
  color: var(--primary);
  font-weight: 700;
}

.assistant-icon {
  position: relative;
  overflow: visible;
}

.assistant-icon::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(111, 76, 255, 0.28),
    transparent 70%
  );
  animation: avatarGlow 3s ease-in-out infinite;
  z-index: -1;
}

.assistant-icon img {
  animation: prakathiFloat 4s ease-in-out infinite;
  transform-origin: center bottom;
}

@keyframes prakathiFloat {
  0%,
  100% {
    transform: translateY(0) rotate(0deg) scale(1);
  }

  25% {
    transform: translateY(-4px) rotate(-1.5deg) scale(1.02);
  }

  50% {
    transform: translateY(-7px) rotate(1deg) scale(1.03);
  }

  75% {
    transform: translateY(-3px) rotate(-1deg) scale(1.01);
  }
}

@keyframes avatarGlow {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.95);
  }

  50% {
    opacity: 0.8;
    transform: scale(1.08);
  }
}

.assistant-icon {
  width: 82px;
  height: 82px;
  flex-shrink: 0;
}

.assistant-icon img {
  width: 100%;
  height: 100%;
  border-radius: 22px;
  object-fit: cover;
  object-position: center 18%;
}

.assistant-icon {
  width: 86px !important;
  height: 86px !important;
  flex: 0 0 86px;
  position: relative;
  overflow: hidden !important;
  padding: 0 !important;
  border-radius: 22px;
  animation: prakathiFloat 4s ease-in-out infinite;
  transform-origin: center bottom;
}

.assistant-icon img {
  width: 100% !important;
  height: 100% !important;
  display: block;
  object-fit: cover !important;
  object-position: center 12% !important;
  border-radius: 22px;
  animation: none !important;
}

.assistant-icon::after {
  display: none;
}

@media (max-width: 700px) {
  .assistant-icon {
    width: 86px !important;
    height: 86px !important;
    flex-basis: 86px;
  }
}

.tool-button {
  min-width: 74px;
  min-height: 58px;
  padding: 8px 12px;
  border: 1px solid rgba(91, 61, 245, 0.18);
  border-radius: 16px;
  background: white;
  color: var(--primary);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  box-shadow: 0 6px 16px rgba(67, 44, 140, 0.08);
}

.tool-button:hover {
  transform: translateY(-1px);
  background: #f6f3ff;
}

.tool-icon {
  font-size: 22px;
  line-height: 1;
}

.tool-label {
  font-size: 12px;
  line-height: 1;
}

.send-tool-button {
  color: white;
  border: 0;
  background: linear-gradient(
    135deg,
    var(--primary),
    var(--secondary)
  );
}

.voice-control-button {
  min-width: 82px;
  padding: 9px 14px;
  border: 1px solid rgba(91, 61, 245, 0.18);
  border-radius: 14px;
  background: white;
  color: var(--primary);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 5px 14px rgba(67, 44, 140, 0.07);
}

.voice-control-button:hover {
  transform: translateY(-1px);
  background: #f6f3ff;
}

.control-icon {
  font-size: 17px;
  line-height: 1;
}

.control-label {
  font-size: 13px;
  line-height: 1;
}

.science-background {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}

.science-shape {
  position: absolute;
  opacity: 0.24;
  font-size: 56px;
  filter: drop-shadow(0 0 10px rgba(91, 61, 245, 0.18));
  animation: scienceFloat 14s ease-in-out infinite;
}

.science-shape.atom {
  top: 12%;
  left: 7%;
}

.science-shape.planet {
  top: 18%;
  right: 8%;
  animation-delay: -3s;
}

.science-shape.leaf {
  bottom: 16%;
  left: 10%;
  animation-delay: -6s;
}

.science-shape.gear {
  bottom: 10%;
  right: 9%;
  animation-delay: -9s;
}

.science-shape.molecule {
  top: 54%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 46px;
  animation-delay: -12s;
}

@keyframes scienceFloat {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-18px) rotate(6deg);
  }
}

.thinking-message {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.typing-dots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.typing-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  animation: typingBounce 1.2s infinite ease-in-out;
}

.typing-dots span:nth-child(2) {
  animation-delay: 0.15s;
}

.typing-dots span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes typingBounce {
  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.45;
  }

  30% {
    transform: translateY(-5px);
    opacity: 1;
  }
}

.exhibition-page {
  min-height: 100vh;
  padding: 24px;
  position: relative;
  overflow-x: hidden;
  background:
    radial-gradient(
      circle at 12% 18%,
      rgba(0, 229, 255, 0.42),
      transparent 24%
    ),
    radial-gradient(
      circle at 88% 14%,
      rgba(124, 58, 237, 0.46),
      transparent 28%
    ),
    radial-gradient(
      circle at 82% 82%,
      rgba(255, 72, 176, 0.34),
      transparent 30%
    ),
    radial-gradient(
      circle at 18% 84%,
      rgba(34, 197, 94, 0.28),
      transparent 28%
    ),
    linear-gradient(
      135deg,
      #06172e 0%,
      #132a63 34%,
      #4b1f8f 68%,
      #0d7490 100%
    );
  background-attachment: fixed;
}

.exhibition-page::before,
.exhibition-page::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(10px);
  opacity: 0.7;
  animation: exhibitionOrbFloat 12s ease-in-out infinite;
}

.exhibition-page::before {
  width: 260px;
  height: 260px;
  top: 8%;
  left: -70px;
  background: linear-gradient(
    135deg,
    rgba(0, 229, 255, 0.7),
    rgba(59, 130, 246, 0.1)
  );
}

.exhibition-page::after {
  width: 320px;
  height: 320px;
  right: -90px;
  bottom: 5%;
  background: linear-gradient(
    135deg,
    rgba(255, 72, 176, 0.65),
    rgba(124, 58, 237, 0.12)
  );
  animation-delay: -5s;
}

@keyframes exhibitionOrbFloat {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-28px) scale(1.08);
  }
}

.exhibition-shell {
  width: min(100%, 1180px);
  margin: 0 auto;
  display: grid;
  gap: 22px;
}

.exhibition-hero,
.exhibition-team,
.exhibition-footer {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    0 24px 70px rgba(3, 10, 35, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.exhibition-hero {
  position: relative;
  min-height: 540px;
  padding: 56px 42px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;

  background:
    linear-gradient(
      rgba(2, 10, 30, 0.28),
      rgba(2, 10, 30, 0.58)
    ),
    url("images/sciencevision-space-hero.png");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.exhibition-eyebrow {
  color: var(--primary);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.exhibition-hero h1 {
  margin-top: 8px;
  font-size: clamp(42px, 6vw, 74px);
  line-height: 1;
}

.exhibition-tagline {
  margin-top: 14px;
  color: var(--primary);
  font-size: 24px;
  font-weight: 800;
}

.exhibition-intro {
  max-width: 760px;
  margin: 18px auto 0;
  color: #625c74;
  font-size: 18px;
  line-height: 1.6;
}

.exhibition-actions {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.exhibition-start-button,
.exhibition-home-link {
  padding: 14px 22px;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 800;
}

.exhibition-start-button {
  color: white;
  background: linear-gradient(
    135deg,
    var(--primary),
    var(--secondary)
  );
}

.exhibition-home-link {
  color: var(--primary);
  background: #f2efff;
}

.exhibition-team {
  padding: 30px;
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) 1.2fr;
  gap: 30px;
  align-items: center;
}

.exhibition-image-placeholder {
  min-height: 360px;
  border: 2px dashed rgba(91, 61, 245, 0.24);
  border-radius: 24px;
  display: grid;
  place-items: center;
  color: #777086;
  text-align: center;
  padding: 24px;
  background: linear-gradient(
    135deg,
    #f3f0ff,
    #effcff
  );
}

.exhibition-team-details h2 {
  font-size: 34px;
}

.team-names {
  margin-top: 10px;
  color: var(--primary);
  font-size: 21px;
  font-weight: 800;
}

.exhibition-team-details > p:last-of-type {
  margin-top: 14px;
  color: #625c74;
  font-size: 17px;
  line-height: 1.6;
}

.project-highlights {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.project-highlights article {
  padding: 18px;
  border-radius: 18px;
  background: #f7f5ff;
  text-align: center;
}

.project-highlights h3 {
  color: var(--primary);
  font-size: 21px;
}

.project-highlights p {
  margin-top: 7px;
  color: #625c74;
  line-height: 1.45;
}

.exhibition-footer {
  padding: 24px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.exhibition-footer h2 {
  font-size: 27px;
}

.exhibition-footer p {
  margin-top: 8px;
  color: #625c74;
}

.qr-placeholder {
  width: 150px;
  height: 150px;
  flex: 0 0 150px;
  border: 2px dashed rgba(91, 61, 245, 0.28);
  border-radius: 20px;
  display: grid;
  place-items: center;
  color: var(--primary);
  font-weight: 800;
  background: #f7f5ff;
}

@media (max-width: 820px) {
  .exhibition-team {
    grid-template-columns: 1fr;
  }

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

  .exhibition-footer {
    flex-direction: column;
    text-align: center;
  }
}

.exhibition-team-image {
  min-height: 360px;
  overflow: hidden;
  border-radius: 24px;
  background: #f4f0ff;
  box-shadow:
    0 18px 40px rgba(20, 16, 60, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.6);
}

.exhibition-team-image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  object-position: center top;
}

.qr-code-card {
  width: 170px;
  height: 170px;
  flex: 0 0 170px;
  padding: 10px;
  border-radius: 22px;
  background: white;
  box-shadow:
    0 14px 30px rgba(20, 16, 60, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.7);
}

.qr-code-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 14px;
}

.exhibition-hero h1 {
  color: white;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.55);
}

.exhibition-hero .exhibition-eyebrow,
.exhibition-hero .exhibition-tagline {
  color: #a78bfa;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.65);
}

.exhibition-hero .exhibition-intro {
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.65);
}
