@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&display=swap');

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

:root {
  --primary: hsl(216, 54%, 20%);
  --primary-foreground: hsl(0, 0%, 100%);
  --secondary: hsl(216, 54%, 35%);
  --background: hsl(0, 0%, 100%);
  --foreground: hsl(216, 33%, 17%);
  --muted: hsl(210, 20%, 96%);
  --muted-foreground: hsl(216, 20%, 46%);
  --accent: hsl(45, 100%, 50%);
  --border: hsl(216, 20%, 88%);
  --section-bg: hsl(210, 20%, 97%);
  --highlight: hsl(220, 80%, 55%);
}

body {
  font-family: 'Roboto', sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.header {
  background-color: var(--primary);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-top {
  background-color: rgba(28, 47, 71, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.5rem 0;
}

.header-top .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-circle {
  width: 2rem;
  height: 2rem;
  background-color: var(--primary-foreground);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-circle span {
  color: var(--primary);
  font-weight: bold;
  font-size: 0.75rem;
}

.logo-text {
  color: var(--primary-foreground);
}

.logo-text .brand {
  font-weight: bold;
  font-size: 0.875rem;
}

.logo-text .tagline {
  font-size: 0.625rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: -0.25rem;
}

.header-title {
  color: var(--primary-foreground);
  font-size: 0.875rem;
}

.header-title span {
  font-weight: bold;
}

/* Navigation */
.nav {
  padding: 0.75rem 0;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--primary-foreground);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--primary-foreground);
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu {
  display: none;
  padding-bottom: 1rem;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu .nav-list {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

/* Hero Section */
.hero {
  background-color: var(--section-bg);
}

.hero .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hero-content h1 {
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary);
}

.hero-content p {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.feature-tag {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--foreground);
  opacity: 0.8;
}

.feature-tag svg {
  width: 1rem;
  height: 1rem;
  color: var(--primary);
}

.hero-image {
  display: flex;
  justify-content: center;
}

.hero-image img {
  width: 633px;
  height: 633px;
  object-fit: contain;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.2));
}

/* Sections */
.section {
  padding: 3rem 0;
}

.section-bg {
  background-color: var(--section-bg);
}

.section-title {
  font-size: 1.125rem;
  font-weight: bold;
  margin-bottom: 0.75rem;
}

/* Safety Section */
.safety-section {
  background-color: #023671;
  color: white !important;
}

.safety-content {
  max-width: 56rem;
}

.safety-intro {
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.bullet-list {
  color: white;
  margin-bottom: 2rem;
  padding-left: 8px;

}

.bullet-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.bullet-list li::before {
  content: "•";
  color: white;
  font-weight: bold;
}

.info-text {
  font-size: 0.875rem;
  margin-bottom: 2rem;
}

/* Legend Section */
.legend-section {
  background-color: var(--background);
}

.diagram-carousel {
  background-color: white;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.carousel-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.carousel-btn {
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.carousel-btn:hover {
  background-color: var(--muted);
}

.carousel-btn svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--muted-foreground);
}

.diagram-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.diagram-image img {
  max-height: 16rem;
  object-fit: contain;
}

.diagram-caption {
  text-align: center;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  margin-top: 1rem;
}

.thumbnail-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.thumbnail-btn {
  width: 50px;
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: 0.25rem;
  background: none;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}

.thumbnail-btn:hover {
  border-color: rgba(28, 47, 71, 0.5);
}

.thumbnail-btn.active {
  border-color: var(--primary);
  background-color: rgba(28, 47, 71, 0.05);
}

.thumbnail-btn svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--primary);
}

.thumbnail-placeholder {
  width: 1.5rem;
  height: 1.5rem;
  background-color: var(--muted);
  border-radius: 0.25rem;
}

/* Preview Section */
.preview-section {
  background-color: var(--section-bg);
}

.view-tabs {
  background-color: var(--primary);
  border-radius: 0.5rem 0.5rem 0 0;
  display: flex;
  flex-wrap: wrap;
}

.view-tab {
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s, background-color 0.2s;
}

.view-tab:hover {
  color: var(--primary-foreground);
  background-color: rgba(255, 255, 255, 0.1);
}

.view-tab.active {
  background-color: var(--highlight);
  color: var(--primary-foreground);
}

.preview-viewer {
  background-color: white;
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 0.5rem 0.5rem;
  height: 500px;
}

.expand-btn {
  display: flex;
  justify-content: center;
  padding: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.expand-btn button {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted-foreground);
  transition: color 0.2s;
}

.expand-btn button:hover {
  color: var(--foreground);
}

.model-display {
  height: 100%;
}

.glb-viewer,.iframe-container{
  width: 100%;
  height: 100%;
}
.model-display img {
  max-height: 16rem;
  object-fit: contain;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.15));
}

.fullscreen-btn {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  padding: 0.5rem;
  background-color: white;
  border: 1px solid var(--border);
  border-radius: 0.25rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.fullscreen-btn:hover {
  background-color: var(--muted);
}

.fullscreen-btn svg {
  width: 1rem;
  height: 1rem;
  color: var(--muted-foreground);
}

.preview-caption {
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  padding: 0.75rem;
  border-top: 1px solid var(--border);
}

/* Contact Section */
.contact-section {
  background-color: var(--primary);
  color: var(--primary-foreground);
  padding: 3rem 0;
}

.contact-section h2 {
  font-size: 1.125rem;
  font-weight: bold;
  margin-bottom: 2rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.contact-item h3 {
  font-size: 0.75rem;
  font-weight: bold;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.5rem;
}

.contact-item p {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
}

/* Footer */
.footer {
  background-color: hsl(216, 33%, 10%);
  color: rgba(255, 255, 255, 0.6);
  padding: 1rem 0;
  text-align: center;
}

.footer p {
  font-size: 0.75rem;
}

/* Responsive */
@media (max-width: 768px) {
  .header-title {
    display: none;
  }

  .nav-list {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero .container {
    grid-template-columns: 1fr;
  }

  .hero-image {
    order: -1;
  }

  .hero-content h1 {
    font-size: 1.5rem;
  }

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

@media (max-width: 1024px) {
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}



#legendImage {
    /* Crucial rules for scaling the image */
    max-width: 100%;
    max-height: 100%;
    height: auto; /* Maintain aspect ratio */
    width: auto;  /* Maintain aspect ratio */
    
    /* Best practice for images within containers: */
    object-fit: contain; 
}

.badge-title{
  border-radius: 50px;
  background-color: #023671;
  color: white !important;
  padding-left: 10px;
  padding-right: 10px;
  width: fit-content;
  margin-top: 8px;

}

.lg-hero p{
  font-size: 14px;
  color: #000;
}

#glb-viewer-button {
  /* position: absolute; */
  bottom: 20px;
  right: 20px;
  padding: 12px 20px;
  background: rgba(28, 47, 71, 0.95);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

#glb-viewer-button::before {
  content: "";
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 3H5a2 2 0 0 0-2 2v3m18 0V5a2 2 0 0 0-2-2h-3m0 18h3a2 2 0 0 0 2-2v-3M3 16v3a2 2 0 0 0 2 2h3'%3E%3C/path%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

#glb-viewer-button:hover {
  background: rgba(31, 122, 224, 0.95);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(31, 122, 224, 0.4);
}

#glb-viewer-button:active {
  transform: translateY(0);
}

