.horizontal-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #111;
  color: #fff;
  padding: 100px;
  
}

.tech-title {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 30px;
  padding-top: 50px;
  margin: 50px 0;
  color: #fff;
  text-transform: uppercase;
}

.scroll-wrapper {
  position: relative;
  height: 100vh; /* pinning effect */
}

.scroll-container {
  display: flex;
  align-items: center;
  height: 100%;
}

/* --- TECH CARD --- */
.tech-card {
  position: relative;
  min-width: calc(70vw - 60px);
  max-width: 800px;
  flex: 0 0 auto;
  margin: 0 30px;
  border-radius: 24px;
  overflow: hidden; /* ensures video + overlay stay inside */
  transform: scale(0.9);
  transition: transform 0.3s ease;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.4);
}

.tech-card video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover; /* fills the card neatly */
  border-radius: 24px;
}

.tech-card:hover {
  transform: scale(1);
  box-shadow: 0 0 50px rgba(255, 255, 255, 0.2);
}

/* --- VIDEO --- */
.video-card video {
  width: 100%;
  height: 100%;
  object-fit: cover; /* fills card */
  display: block;
}

/* --- CONTENT OVERLAY --- */
.tech-content {
  position: absolute;
  top: 20px;
  right: 20px;
  text-align: left;
  padding: 16px 20px;
  border-radius: 12px;
  max-width: 60%;
}

.tech-content h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: #fff;
}

.tech-content p {
  font-size: 0.95rem;
  color: #ccc;
}

.glow {
  color: white;
  text-shadow: 0 0 0px rgba(255, 180, 100, 0.8);
  transition: text-shadow 0.2s;
}

/* --- MOBILE --- */
@media (max-width: 768px) {
  .scroll-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .scroll-container {
    display: flex;
    flex-wrap: nowrap;
    width: auto;
  }

  .tech-card {
    flex: 0 0 80%;
    scroll-snap-align: center;
    margin: 0 10px;
    transform: scale(1) !important;
  }

  .tech-content {
    padding: 20px;
  }

  .tech-content h3 {
    font-size: 1.2rem;
  }

  .tech-content p {
    font-size: 0.9rem;
  }
}
