/* Home Page Styles */

.home-page {
  width: 100%;
  overflow-x: hidden;
}

/* Video Section */
.video-section-home {
  padding: var(--spacing-xl) 0;
  background: linear-gradient(to bottom, var(--color-white) 0%, var(--color-grey-light) 100%);
  position: relative;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

.single-video-container {
  display: flex;
  justify-content: center;
  align-items: stretch;
  margin-top: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
  margin-left: auto;
  margin-right: auto;
  width: 92%;
  max-width: 1200px;
}

.single-video-container.expanded {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  z-index: 9999;
  background-color: rgba(0, 0, 0, 0.9);
  margin: 0;
  padding: var(--spacing-xl);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

.single-video-wrapper {
  position: relative;
  flex: 1;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  background-color: #000;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
}

.single-video-wrapper:hover:not(.expanded) {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 60px rgba(0, 47, 95, 0.25);
}

.single-video-container.expanded .single-video-wrapper {
  max-width: 1200px;
  width: 100%;
  aspect-ratio: 16 / 9;
  flex: none;
}

.single-video-player {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  transition: transform 0.4s ease;
}

.single-video-wrapper:hover:not(.expanded) .single-video-player {
  transform: scale(1.05);
}


@media (max-width: 768px) {
  .single-video-container {
    padding: 0 var(--spacing-md);
  }

  .single-video-player {
    width: 100%;
  }
}

.video-section-home::before {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 100%;
  background: radial-gradient(circle, rgba(0, 47, 95, 0.05) 0%, transparent 70%);
  animation: float 20s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(25%, -20px, 0);
  }
}

/* Product Categories Section */
.product-categories-home {
  padding: var(--spacing-xl) 0;
  background: linear-gradient(to bottom, var(--color-white) 0%, var(--color-grey-light) 100%);
  position: relative;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

.product-categories-home::before {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 100%;
  background: radial-gradient(circle, rgba(0, 47, 95, 0.05) 0%, transparent 70%);
  animation: float 20s ease-in-out infinite;
}

/* Partners Section */
.partners-section {
  padding: var(--spacing-xl) 0;
  background-color: var(--color-white);
}

@media (max-width: 768px) {

  .video-section-home,
  .product-categories-home {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
  }

}

/* Video Modal Overlay */
.video-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: fadeIn 0.3s ease forwards;
}

.video-modal-content {
  position: relative;
  width: auto;
  max-width: 90vw;
  height: auto;
  max-height: 90vh;
  background-color: transparent;
  /* Changed to transparent so black bars aren't forced if video has its own aspect */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
}

.video-modal-player {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  display: block;
}

.video-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
}

.video-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

@media (max-width: 768px) {
  .video-modal-content {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    border-radius: 0;
  }

  .video-modal-close {
    top: 20px;
    right: 20px;
  }
}