/* Custom Styles for Vogue Vision Talent */

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}

/* Fade In Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 1s ease-out;
}

/* Video Background Responsive Handling */
@media (max-aspect-ratio: 16/9) {
  .hero-video {
    width: auto;
    height: 100%;
  }
}

@media (min-aspect-ratio: 16/9) {
  .hero-video {
    width: 100%;
    height: auto;
  }
}

/* Mobile Video Optimization - Reduce opacity on small screens */
@media (max-width: 768px) {
  video {
    opacity: 0.8;
  }
}

/* Ensure video doesn't cause horizontal scroll */
body {
  overflow-x: hidden;
}

/* Hero Section Height Adjustments */
@media (max-width: 640px) {
  .hero-section {
    min-height: 100vh;
    min-height: -webkit-fill-available;
  }
}

/* Improve button touch targets on mobile */
@media (max-width: 640px) {
  .cta-button {
    min-height: 48px;
    font-size: 16px;
  }
}

/* Fix iOS video background issues */
video::-webkit-media-controls {
  display: none !important;
}

video::-webkit-media-controls-enclosure {
  display: none !important;
}

/* Prevent text selection on video overlay */
.hero-section {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Featured Models Grid Responsive */
@media (max-width: 640px) {
  .model-grid {
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem;
  }
}

@media (min-width: 641px) and (max-width: 1024px) {
  .model-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

/* Aspect Ratio Support for older browsers */
.aspect-3-4 {
  position: relative;
  padding-bottom: 133.33%; /* 4/3 * 100 */
}

.aspect-3-4 > img,
.aspect-3-4 > video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Loading State for Video */
.video-loading {
  background: linear-gradient(
    45deg,
    #f3f4f6 25%,
    #e5e7eb 25%,
    #e5e7eb 50%,
    #f3f4f6 50%,
    #f3f4f6 75%,
    #e5e7eb 75%,
    #e5e7eb
  );
  background-size: 40px 40px;
  animation: loading 1s linear infinite;
}

@keyframes loading {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 40px 40px;
  }
}

/* Smooth transitions for hover effects */
.transition-smooth {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mobile Menu Slide Animation */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#mobileMenu {
  animation: slideDown 0.3s ease-out;
}
