/* Smooth Page Load Animations for LSB Extreme */

/* Define keyframe animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Hero heading lines - staggered fade in from bottom */
.hero-line {
  display: inline-block;
  opacity: 0;
  animation: fadeInUp 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.hero-line-1 {
  animation-delay: 0.3s;
}

.hero-line-2 {
  animation-delay: 0.5s;
}

.hero-line-3 {
  animation-delay: 0.7s;
}

.hero-line-4 {
  animation-delay: 0.9s;
}

/* Logo fade in */
.logo-wrappper {
  opacity: 0;
  animation: fadeIn 0.8s ease-out 0.1s forwards;
}

/* Menu button fade in */
.menu-btn {
  opacity: 0;
  animation: fadeIn 0.8s ease-out 0.2s forwards;
}

/* Video wrapper fade in */
.video-wrapper {
  opacity: 0;
  animation: fadeInScale 1.2s ease-out 0.2s forwards;
}

/* Background hero fade in */
.bg-hero {
  opacity: 0;
  animation: fadeIn 1s ease-out forwards;
}

/* Scroll indicator fade in */
.scroll-wrapper {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 1.3s forwards;
}

/* Social icons fade in */
.social-icon-container {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 1.4s forwards;
}

/* Project link wrapper fade in */
.project-link-wrapper {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 1.2s forwards;
}

/* Ensure smooth transitions */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Prevent flash of unstyled content */
.hero-section {
  visibility: visible;
}

/* Images should be visible immediately - no fade animations on images */
.background-image,
.project-image,
.project-image-left,
.project-image-right,
.logo-img {
  opacity: 1 !important;
  animation: none !important;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-line,
  .logo-wrappper,
  .menu-btn,
  .video-wrapper,
  .bg-hero,
  .scroll-wrapper,
  .social-icon-container,
  .project-link-wrapper {
    opacity: 1;
    animation: none;
  }
}

/* Smooth hover transitions */
a,
button,
.w-tab-link {
  transition: all 0.3s ease;
}

/* Add subtle animation to tabs */
.tab {
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Smooth transitions for project images */
.project-image,
.project-image-left,
.project-image-right {
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              filter 0.4s ease;
}

.project-1-wrapper:hover .project-image,
.project-1-wrapper:hover .project-image-left,
.project-2-wrapper:hover .project-image,
.project-2-wrapper:hover .project-image-right {
  transform: scale(1.02);
}

/* Smooth background video overlay */
.bg-video-overlay {
  transition: opacity 0.8s ease;
}
