/* Prototype Single Page Layout Styles */

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Scroll padding to account for fixed nav */
html {
  scroll-padding-top: 5rem;
}

/* Active nav item styling */
.nav-item.active {
  @apply text-pro2blue-600 font-bold;
}

/* Rotate animation for accordion icons */
.rotate-180 {
  transform: rotate(180deg);
}

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

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

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Fallback animations for when AOS is not loaded */
[data-aos] {
  animation-duration: 0.8s;
  animation-fill-mode: both;
}

[data-aos="fade-up"] {
  animation-name: fadeInUp;
}

[data-aos="fade-left"] {
  animation-name: fadeInLeft;
}

[data-aos="fade-right"] {
  animation-name: fadeInRight;
}

/* Transition classes */
.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 300ms;
}

/* Shadow on scroll for navigation */
#scroll-nav {
  transition: box-shadow 0.3s ease-in-out;
}

/* Hover effects for cards */
.hover\:shadow-2xl:hover {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Responsive spacing */
@media (max-width: 768px) {
  section {
    scroll-margin-top: 4rem;
  }
}

/* Better focus states for accessibility */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #667eea;
  outline-offset: 2px;
}

/* Loading state for images */
img {
  transition: opacity 0.3s ease-in-out;
}

img[loading="lazy"] {
  opacity: 0;
}

img[loading="lazy"].loaded {
  opacity: 1;
}

/* Smooth accordion transitions */
[data-accordion-target="content"] {
  transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

[data-accordion-target="icon"] {
  transition: transform 0.3s ease-in-out;
}
