/* ===== VIDEO GALLERY SECTION STYLES – REDUCED HEIGHT (MASTRIQ GREEN) ===== */
:root {
  --primary: #76b900;
  --primary-dark: #5a8c00;
  --primary-light: rgba(118, 185, 0, 0.15);
  --primary-glow: rgba(118, 185, 0, 0.3);
}

.video-gallery-section {
  padding: 2rem 0;
  background: #0a0a0a;
  scroll-margin-top: 80px;
  position: relative;
}

.video-gallery-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

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

.gallery-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.gallery-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary);
  background: rgba(118, 185, 0, 0.15);
  padding: 0.4rem 1.2rem;
  border-radius: 60px;
  margin-bottom: 0.8rem;
  backdrop-filter: blur(4px);
}

.gallery-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.1rem;
  letter-spacing: -0.02em;
  color: white;
  animation: slideFromLeft 0.6s cubic-bezier(0.2, 0.9, 0.4, 1.1) forwards;
  opacity: 0;
  transform: translateX(-40px);
}

.gallery-title .highlight {
  color: var(--primary);
  position: relative;
  display: inline-block;
}

.gallery-title .highlight::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 6px;
  background: var(--primary);
  border-radius: 3px;
  z-index: -1;
  display: none;
}

.gallery-subtitle {
  font-size: 1rem;
  color: #b0b0b0;
  max-width: 700px;
  margin: 0 auto;
  animation: fadeInUp 0.5s ease 0.2s forwards;
  opacity: 0;
  transform: translateY(10px);
}

.video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 0 auto;
  width: 100%;
  max-width: 1000px;   /* slightly smaller to reduce overall footprint */
}

.video-card {
  background: #111111;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid #2a2a2a;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  width: 100%;
}

.video-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 20px 40px rgba(118, 185, 0, 0.15);
}

/* Video Wrapper – reduced height on desktop */
.video-wrapper {
  position: relative;
  background: #000000;
  cursor: pointer;
  overflow: hidden;
  width: 100%;
}

/* Desktop: reduce video height */
@media (min-width: 1024px) {
  .video-wrapper {
    max-height: 380px;          /* limits vertical space */
    aspect-ratio: 21 / 9;       /* wider, shorter height */
  }
  .video-wrapper video {
    height: 100%;
    width: 100%;
    object-fit: contain;
  }
}

/* Tablet: still 16:9 (good balance) */
@media (min-width: 768px) and (max-width: 1023px) {
  .video-wrapper {
    aspect-ratio: 16 / 9;
  }
}

/* Mobile: use 4:3 */
@media (max-width: 767px) {
  .video-wrapper {
    aspect-ratio: 4 / 3;
  }
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

video::-webkit-media-controls {
  display: none !important;
}

video {
  background-color: #000;
}

.video-play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: all 0.3s ease;
  cursor: pointer;
  z-index: 10;
  pointer-events: auto;
}

.video-card:hover .video-play-overlay {
  background: rgba(0, 0, 0, 0.5);
}

.video-wrapper.playing .video-play-overlay {
  opacity: 0;
  pointer-events: none;
}

/* Play button – slightly smaller to match reduced video */
.play-btn {
  width: 65px;
  height: 65px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
  box-shadow: 0 0 20px rgba(118, 185, 0, 0.5);
  z-index: 11;
}

.play-btn i {
  color: white;
  font-size: 1.8rem;
  margin-left: 6px;
}

.video-card:hover .play-btn {
  transform: scale(1.1);
  background: var(--primary-dark);
  box-shadow: 0 0 30px rgba(118, 185, 0, 0.7);
}

.video-enlarge-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 15;
  opacity: 0;
  transform: scale(0.8);
  color: white;
}

.video-wrapper:hover .video-enlarge-btn {
  opacity: 1;
  transform: scale(1);
}

.video-enlarge-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #0a0c12;
  transform: scale(1.1);
}

.video-info {
  padding: 1rem 1.2rem;
}

.video-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
  background: rgba(118, 185, 0, 0.15);
  padding: 0.25rem 0.8rem;
  border-radius: 40px;
  margin-bottom: 0.4rem;
}

.video-info p {
  font-size: 0.9rem;
  color: #b0b0b0;
  line-height: 1.5;
  margin-bottom: 0.4rem;
}

.video-specs {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.2rem;
}

.video-spec {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: #9a9a9a;
}

.video-spec i {
  color: var(--primary);
  font-size: 0.8rem;
}

/* Modal styles unchanged */
.video-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.98);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
}

.video-modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  width: 100%;
}

.video-modal-content video {
  width: 100%;
  height: auto;
  max-height: 85vh;
  border-radius: 20px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(118, 185, 0, 0.3);
}

.modal-close {
  position: absolute;
  top: -45px;
  right: -45px;
  background: var(--primary);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.modal-close i {
  color: white;
  font-size: 1.3rem;
}

.modal-close:hover {
  background: var(--primary-dark);
  transform: scale(1.1);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideFromLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(118, 185, 0, 0.5);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(118, 185, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(118, 185, 0, 0);
  }
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .video-gallery-container {
    padding: 0 1.5rem;
  }
  .gallery-title {
    font-size: 2rem;
  }
  .play-btn {
    width: 60px;
    height: 60px;
  }
  .play-btn i {
    font-size: 1.6rem;
  }
}

@media (max-width: 768px) {
  .video-gallery-section {
    padding: 1.5rem 0;
  }
  .video-gallery-container {
    padding: 0 1rem;
  }
  .gallery-header {
    margin-bottom: 1.2rem;
  }
  .gallery-title {
    font-size: 1.8rem;
  }
  .gallery-subtitle {
    font-size: 0.9rem;
  }
  .video-info {
    padding: 1rem;
  }
  .video-info p {
    font-size: 0.85rem;
  }
  .video-specs {
    gap: 0.8rem;
  }
  .video-spec {
    font-size: 0.75rem;
  }
  .play-btn {
    width: 50px;
    height: 50px;
  }
  .play-btn i {
    font-size: 1.2rem;
  }
  .modal-close {
    top: -35px;
    right: 0;
  }
}

@media (max-width: 480px) {
  .video-gallery-section {
    padding: 1rem 0;
  }
  .video-gallery-container {
    padding: 0 0.8rem;
  }
  .gallery-title {
    font-size: 1.5rem;
  }
  .video-specs {
    gap: 0.6rem;
  }
  .play-btn {
    width: 44px;
    height: 44px;
  }
  .play-btn i {
    font-size: 1rem;
  }
  .video-enlarge-btn {
    width: 30px;
    height: 30px;
    font-size: 0.8rem;
  }
}