.video-pin-stage {
    position: relative;
    /* Extra scroll room: the section stays pinned in place while the
       user scrolls through this distance, scrubbing the animation, then
       releases and the page continues normally. Applies at every size. */
    height: 220vh;
}

.intro-container {
    position: sticky;
    top: 0;
    height: 100vh;
    min-height: 0; /* .half sets min-height:100vh, which would otherwise win */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 90%; /* Optional: controls max width */
    margin: 0 auto; /* This centers the container horizontally */
    width: 100%;
    padding: 0 1rem; /* Optional: horizontal padding */
}

@media (min-width: 901px) {
  /* Text overlays on top of the full-bleed video instead of sharing a
     flex row with it, so it reads clearly as "left side" regardless of
     how wide the video's own letterboxed frame is. */
  .intro-container {
    display: block;
  }

  .introduction-text {
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    z-index: 2;
  }

  .video-container {
    width: 100%;
    height: 100%;
  }
}

.title-highlight {
  color: #FFD700;
}

.title-highlight p{
    padding-top: 3rem;
}

.introduction-text {
    max-width: 30rem;
    width: 100%;
    flex: 1 1 300px; /* shrink gracefully instead of overflowing */
}

.introduction-text h1{
    font-size: 4rem;
}

.battery-change {
    max-width: 1100px;
    margin: 4rem auto 0;
    padding: 0 1.5rem;
    text-align: center;
}

@media (max-width: 900px) {
  .introduction-text h1 {
    font-size: 2.5rem;
  }
}

.specs-section {
    max-width: 800px;
    margin: 4rem auto;
    padding: 1rem;
    color: #fff;
}

.specs-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
}

.specs-table th,
.specs-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #333;
}

.specs-table th {
    background-color: #111;
    width: 40%;
    font-weight: 600;
}

.specs-table td {
    background-color: #222;
}

.specs-table tr:last-child td,
.specs-table tr:last-child th {
    border-bottom: none;
}

@media (max-width: 480px) {
  .specs-table th,
  .specs-table td {
    padding: 0.6rem;
    font-size: 0.85rem;
  }

  .specs-table th {
    width: 45%;
  }
}


.contact-section {
    max-width: 600px;
    margin: 4rem auto;
    padding: 2rem;
    color: #fff;
}

.contact-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    padding: 0.8rem;
    border: 1px solid #444;
    border-radius: 6px;
    background-color: #222;
    color: #fff;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0af;
}

button[type="submit"] {
    padding: 0.9rem;
    background-color: #0af;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
    background-color: #08c;
}


.battery-change h2{
    text-align: center;
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.battery-change > p {
    max-width: 640px;
    margin: 0 auto 1.5rem;
    color: #ccc;
}

.battery-change-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    max-width: 300px;
    margin: 0 auto 2.5rem;
    color: #FFD700;
    font-size: 0.85rem;
    letter-spacing: 0.2em;
}

.battery-change-divider::before,
.battery-change-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background-color: #333;
}

.fullbody-stage {
    position: relative;
    height: 190vh;
}

.fullbody-pin {
    position: sticky;
    top: var(--header-height, 90px);
    height: calc(100vh - var(--header-height, 90px));
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 0 1rem;
}

.fullbody-pin-text {
    margin: 1rem 0 !important;
    flex-shrink: 0;
}

.fullbody-pin-text .Spec-text,
.fullbody-pin-text > p {
    margin-bottom: 0 !important;
}

.laser-fullbody-shot {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.laser-fullbody-shot img {
    max-width: min(1300px, 92vw);
    max-height: 100%;
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
}

.dimension-mark {
    position: absolute;
    pointer-events: none;
}

.dimension-label {
    position: absolute;
    transform: translate(-50%, -50%) rotate(17.3deg) scale(0.85);
    font-family: 'RobotoMono', monospace;
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
    opacity: 0;
    transition: none;
    white-space: nowrap;
}

.dimension-label span {
    font-size: 1rem;
    font-weight: normal;
    color: #999;
    margin-left: 0.4rem;
}

@media (max-width: 700px) {
  .fullbody-stage {
    height: 160vh;
  }

  .dimension-label {
    font-size: 1.2rem;
  }

  .dimension-label span {
    font-size: 0.75rem;
  }
}

.battery-modules {
    max-width: 1100px;
    margin: 4rem auto;
    padding: 0 1.5rem;
    text-align: center;
}

.battery-modules h2 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.Spec-text {
    max-width: 640px;
    margin: 0 auto 2.5rem;
    color: #ccc;
}

.video-container {
    width: 100%;
    height: 60vh; /* mobile default: leaves room above for the stacked text */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-color: black; /* Optional: avoids white bars */
}

.video-container img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

@media (min-width: 901px) {
  .video-container {
    height: 100%; /* full-bleed behind the overlaid text */
  }
}

@media (min-width: 901px) {
  .intro-container {
    overflow: hidden; /* safety clip in case of any future size mismatch */
  }

  .video-container,
  .video-container img {
    height: 100%; /* match the sticky parent's constrained height exactly,
                     instead of a flat 100vh that overflows past it */
  }
}


/* Slideshow container */
.slideshow-container {
    padding-top: 2rem;
  max-width: 1000px;
  position: relative;
  margin: auto;
}

/* Hide the images by default */
.mySlides {
  display: none;
}

.slide-image-wrap {
  position: relative;
}

/* Next & previous buttons */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  z-index: 2;
}

/* Position the "prev" button to the left */
.prev {
  left: 0;
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.8);
}

/* Caption text */
.text {
  color: #f2f2f2;
  font-size: 15px;
  padding: 8px 20px;
  position: absolute;
  bottom: 8px;
  width: 100%;
  text-align: center;
}

/* The dots/bullets/indicators */
.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.dot.active{
    background-color: #FFD700;
}

.dot:hover {
  background-color: #717171;
}

/* Fading animation */
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

.small-space{
    margin-bottom: 0px;
}


@keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}

/* === Programmable mode demo === */

.mode-demo {
    max-width: 1150px;
    margin: 4rem auto;
    padding: 0 1.5rem;
    text-align: center;
}

.mode-demo h2 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.mode-demo > p {
    max-width: 640px;
    margin: 0 auto 2rem;
    color: #ccc;
}

.mode-demo-visual {
    position: relative;
    max-width: 1100px;
    margin: 0 auto 2rem;
    background-color: #000;
    border-radius: 8px;
    overflow: hidden;
}

.mode-demo-visual img {
    width: 100%;
    height: auto;
    display: block;
}

/* Directional light beam shooting out from the lens; JS toggles its
   opacity/animation per mode */
.mode-beam {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0;
}

.mode-beam.is-full {
    opacity: 1;
}

.mode-beam.is-half {
    opacity: 0.4;
}

#beamRays {
    opacity: 0.65;
}

.mode-toggle-btn {
    background-color: #1a1a1a;
    border: 1px solid #333;
    color: white;
    font-family: 'RobotoMono', monospace;
    font-size: 1rem;
    padding: 0.75rem 2.25rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.mode-toggle-btn:hover {
    background-color: #262626;
    border-color: #FFD700;
}

.mode-toggle-btn:active {
    background-color: #303030;
}

.mode-demo-caption {
    margin-top: 1rem;
    color: #888;
    font-size: 0.85rem;
}

@media (max-width: 700px) {
  .mode-demo-visual {
    max-width: 100%;
  }

  .mode-toggle-btn {
    padding: 0.65rem 1.75rem;
    font-size: 0.9rem;
  }
}