/* Custom styles for English Writing Skills Center */

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

/* Focus styles for accessibility */
*:focus-visible {
  outline: 2px solid #F59E0B;
  outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Scroll reveal animations — progressive enhancement, content visible by default */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .reveal.revealed {
    opacity: 0;
    transform: translateY(30px);
  }
  .reveal.revealed.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Custom select arrow */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235B2C6F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

/* Mobile menu animation */
#mobile-menu {
  animation: slideDown 0.2s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Floating stat card animations */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.floating-card-1 {
  animation: float 4s ease-in-out infinite;
}

.floating-card-2 {
  animation: float 4s ease-in-out infinite 1s;
}

/* Navbar scroll state */
.nav-scrolled {
  box-shadow: 0 4px 20px rgba(91, 44, 111, 0.12) !important;
}

/* Selection color */
::selection {
  background-color: rgba(245, 158, 11, 0.3);
  color: #5B2C6F;
}

/* Subtle gradient border on cards */
.group:hover .card-accent {
  opacity: 1;
}
