body {
  margin: 0;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  background: radial-gradient(ellipse at 60% 40%, #304860 0%, #181c28 100%);
  color: #fff;
}

/* ... (styles from #container to #css-renderer are unchanged) ... */
#container {
  position: relative;
  width: 100vw;
  height: 100vh;
}
#hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}
#css-renderer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
/* === END UNCHANGED === */

.content-panel {
  width: 800px;
  max-width: 90vw;
  padding: 10px;
  background: rgba(30, 30, 45, 0.9);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  pointer-events: auto;
  color: #eee;
  z-index: 99;
  position: relative; /* Must be relative for the overlay */
}

.reveal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  display: flex;
  pointer-events: none; /* Allows clicks to pass through */
}

.reveal-tile {
  flex: 1; /* Each tile takes equal width */
  height: 100%;
  /* A solid, slightly darker version of the panel BG */
  background: #1e1e2d;
  transform: scaleY(1); /* Default state is visible */
  transform-origin: top; /* Animate from the top down */
}

.content-panel h2 {
  margin-top: 0;
  color: #667eea;
  margin-bottom: 10px;
  font-size: 30px;
}

.content-panel h3 {
  margin: 0;
  font-size: 24px;
}
.content-panel p {
  font-size: 14px;
  line-height: 1.3;
}
.content-panel ul {
  list-style: none;
  padding-left: 0;
}
.content-panel li {
  position: relative;
  padding-left: 1.5em;
  margin-bottom: 0.5em;
  font-size: 1.05em;
}
.content-panel li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #667eea;
  font-weight: bold;
}
#back-button {
  position: fixed;
  top: 30px;
  left: 30px;
  padding: 12px 24px;
  background: #667eea;
  color: white;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  z-index: 1000;
  opacity: 0;
  transform: translateY(-100px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}
#back-button.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.hero-text {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 10;
  transition: opacity 0.5s ease;
}
.hero-text h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  margin: 0;
  color: white;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}
.hero-text p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin-top: 10px;
  color: #aaa;
}
.specs-flex {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  font-size: 13px;
}
.specs-image {
  flex: 2;
}
.specs-image img {
  flex: 1;
  width: 100%;
}
.specs-text {
  flex: 1;
}
.cases-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0px, 1fr));
}
.case-images {
  grid-template-columns: repeat(2, minmax(0px, 1fr));
  display: grid;
  gap: 1rem;
}
.case-images img {
  flex: 1;
  width: 100%;
}
.case-study {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: flex-start;
}
.case-study h4 {
  margin: 0;
}
#contactForm {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
#contactForm textarea,
#contactForm input {
  background-color: white;
}

#contactForm label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}
#contactForm textarea {
  width: -webkit-fill-available;
  width: -moz-available;
}
#contactForm input {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  padding-left: 1rem;
  width: -webkit-fill-available;
  padding-right: 1rem;
  width: -moz-available;
  border: unset;
  outline-style: none;
  transition-property: background-color, border-color, color, fill, stroke,
    opacity, box-shadow, transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 300ms;
}
#contactForm .btn-primary {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  padding-left: 2rem;
  padding-right: 2rem;
  border: unset;
  font-weight: 700;
  color: #ffffff;
  background-color: #2563eb;
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 300ms;
  transition-duration: 300ms;
}

.btn-primary:hover {
  background-color: #1d4ed8;
  --transform-scale-x: 1.05;
  --transform-scale-y: 1.05;
}
.hidden {
  display: none;
}

.property-list-text {
  display: flex;
  flex: 2;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1rem;
}

.property-list {
  height: max-content;
  max-width: 80px;
}

.property-item {
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
}

.property-image {
  padding: 0.625rem;
  flex: 1 1 0%;
}
.property-image img {
  width: 100%;
}
.property-text {
  height: -webkit-fill-available;
  height: -moz-available;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.property-item.reverse {
  flex-direction: row-reverse;
}

.features-grid {
  margin-top: 0.75rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.overflow {
  overflow-y: auto;
  max-height: 50vh;
}
.feature-card {
  border-radius: 0.5rem;
  padding: 0.5rem;
  box-shadow: 0 0 #0000, 0 0 #0000, 0 4px 6px -1px rgb(0, 0, 0, 0.1),
    0 2px 4px -2px rgb(0, 0, 0, 0.1);
}

.feature-card p {
  padding: 0;
  margin: 0;
  margin-top: 0.5rem;
}

.feature-card img {
  margin-bottom: 1rem;
  width: -moz-available;
  width: -webkit-fill-available;
}
.exc-mark {
  max-height: fit-content;
  max-width: 5px;
  height: -webkit-fill-available;
  height: -moz-available;
  margin-bottom: 0 !important;
}
.text-flex {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
}
.text-flex h3 {
  font-size: 16px;
}

@media (max-width: 768px) {
  .property-item {
    flex-direction: column;
  }
  #features-section {
    overflow: scroll;
    max-height: 700px;
  }
  .property-list-text {
    flex: 1;
  }
  .property-list {
    display: none;
  }
  .cases-grid {
    gap: 0.5rem;
  }
  .specs-flex {
    flex-direction: column;
  }
  .hero-text {
    top: 38%;
    white-space: nowrap;
  }
  .content-panel {
    width: 90vw;
    padding: 10px;
  }
  .content-panel h2 {
    font-size: 18px;
  }
  .content-panel h3 {
    font-size: 16px;
  }
  .content-panel p,
  .content-panel li {
    font-size: 12px;
  }

  #back-button {
    top: 15px;
    left: 15px;
    padding: 10px 18px;
    font-size: 14px;
  }
}
