.video-section {
  position: relative;
  width: 100%;
  padding: 80px 0;
  background: radial-gradient(75% 120% at 90% 90%, rgba(37, 211, 102, 0.25) 0%, rgba(255, 255, 255, 0) 60%);
  overflow: hidden;
}

.video-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(30px, 5vw, 60px);
}

/* Header */
.video-header {
  margin-bottom: 90px;
}

.video-subtitle {
  color: rgba(0, 0, 0, 0.50);
  font-family: Lexend;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  display: block;
}

.video-title-row {
  display: flex;
  align-items: center;
  gap: 40px;
}

.video-main-title {
  color: #000;
  font-family: Lexend;
  font-size: 36px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  margin: 0;
  flex-shrink: 1;
  display: block;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.video-main-title span {
  display: inline-block;
  white-space: normal;
}

.video-title-line {
  --c-section-line-margin-right: -9999px;
  --c-section-line-gradient: linear-gradient(90deg, #0000 0%, #2dcb71 1.60016%);
  --c-section-line-mask: #ffffff;
  --c-section-line-after-width: 90%;
  --c-section-line-before-width: 100%;
  --c-section-line-after-right: 0;
  --c-section-line-before-right: 0;
}

.video-section.animated .video-title-line::after {
  animation: lineExpand 0.5s ease-out forwards;
  animation-delay: 0.2s;
}

.video-section.animated .video-title-line::before {
  animation: whiteOverlayFade 0.5s ease-out forwards;
  animation-delay: 0.2s;
}

@keyframes lineExpand {
  0% {
    width: 90%;
  }
  100% {
    width: 100%;
  }
}

@keyframes whiteOverlayFade {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes slideUpFade {
  0% {
    opacity: 0;
    filter: blur(4px);
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    filter: blur(0px);
    transform: translateY(0);
  }
}

/* Video Display */
.video-display {
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 500px;
}

/* Tablet Frame */
.tablet-frame {
  position: relative;
  width: 752px;
  height: 439px;
  margin: 0 auto;
  transform-style: preserve-3d;
  will-change: transform;
  opacity: 1;
}

.tablet-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.tablet-screen {
  position: absolute;
  top: 4.6%;
  left: 2.7%;
  width: 94.7%;
  height: 91.3%;
  background: #000;
  overflow: hidden;
  border-radius: 10px;
  z-index: 5;
}

.video-player,
.video-iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 10px;
  position: relative;
  z-index: 5;
}

.video-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a1a1a;
  color: rgba(255, 255, 255, 0.5);
  font-family: Lexend;
  font-size: 16px;
}

/* Responsive */
@media (max-width: 1024px) {
  .video-title-row {
    flex-direction: row;
    align-items: center;
    gap: 20px;
    width: 100%;
  }
  
  .video-main-title {
    flex-shrink: 0;
    min-width: 0;
    width: 70%;
  }
  
  .video-title-line {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    height: 1px;
    margin-right: calc(-1 * clamp(30px, 5vw, 60px));
    margin-top: 0;
    --c-section-line-margin-right: calc(-1 * clamp(30px, 5vw, 60px));
  }
  
  .video-title-line::after {
    width: 100%;
  }
  
  .tablet-frame {
    width: 100%;
    height: auto;
    aspect-ratio: 752 / 439;
  }
  
  .tablet-image {
    height: auto;
  }
}

@media (max-width: 768px) {
  .video-section {
    padding: 60px 0;
  }
  
  .video-header {
    margin-bottom: 60px;
  }
  
  .video-main-title {
    font-size: 28px;
  }
  
  .video-display {
    padding: 0;
  }
  
  .tablet-screen {
    border-radius: 6px;
  }
  
  .video-player,
  .video-iframe {
    border-radius: 6px;
  }
}

/* CTA Button */
.video-cta {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 60px;
  padding: 0 clamp(30px, 5vw, 60px);
}

@media (max-width: 768px) {
  .video-cta {
    margin-top: 40px;
  }
}

