/* Enhanced Mobile-First Design with Animations */

/* Smooth scrolling for all elements */
* {
  scroll-behavior: smooth;
}

/* 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);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes slideInFromTop {
  from {
    opacity: 0;
    transform: translateY(-100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animation classes */
.animate-fadeInUp {
  animation: fadeInUp 0.6s ease-out forwards;
}

.animate-fadeInLeft {
  animation: fadeInLeft 0.6s ease-out forwards;
}

.animate-fadeInRight {
  animation: fadeInRight 0.6s ease-out forwards;
}

.animate-scaleIn {
  animation: scaleIn 0.5s ease-out forwards;
}

.animate-pulse-custom {
  animation: pulse 2s ease-in-out infinite;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

.animate-slideInFromTop {
  animation: slideInFromTop 0.5s ease-out forwards;
}

/* Staggered animation delays */
.animate-delay-100 {
  animation-delay: 0.1s;
}

.animate-delay-200 {
  animation-delay: 0.2s;
}

.animate-delay-300 {
  animation-delay: 0.3s;
}

.animate-delay-400 {
  animation-delay: 0.4s;
}

.animate-delay-500 {
  animation-delay: 0.5s;
}

/* Enhanced card shadows */
.shadow-card { 
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.06), 0 4px 8px rgba(2, 6, 23, 0.04);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.shadow-hover {
  box-shadow: 0 20px 50px rgba(2, 6, 23, 0.15), 0 10px 20px rgba(2, 6, 23, 0.08);
}

/* Enhanced gradient card with better mobile support */
.bg-gradient-card {
  background: linear-gradient(145deg, hsl(0 0% 100%), hsl(240 5% 98%));
  backdrop-filter: blur(10px);
}

/* Mobile-first responsive utilities */
.mobile-padding {
  padding: 1rem;
}

@media (min-width: 640px) {
  .mobile-padding {
    padding: 1.5rem;
  }
}

@media (min-width: 768px) {
  .mobile-padding {
    padding: 2rem;
  }
}

/* Enhanced button styles */
.btn-primary {
  background: linear-gradient(135deg, #584599 0%, #6b5bb3 100%);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(0);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(88, 69, 153, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
}

/* Icon animations */
.icon-bounce {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.icon-bounce:hover {
  transform: scale(1.1) rotate(5deg);
}

/* Mobile navigation */
.mobile-menu {
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.open {
  transform: translateX(0);
}

/* Hamburger menu animation */
.hamburger {
  cursor: pointer;
  transition: all 0.3s ease;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background: #584599;
  margin: 5px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Scroll reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Enhanced mobile typography */
@media (max-width: 640px) {
  .mobile-title {
    font-size: 2.5rem;
    line-height: 1.1;
  }
  
  .mobile-subtitle {
    font-size: 1.125rem;
    line-height: 1.4;
  }
}

/* Loading animation */
.loading-dots {
  display: inline-block;
}

.loading-dots::after {
  content: '';
  animation: dots 1.5s infinite;
}

@keyframes dots {
  0%, 20% {
    content: '';
  }
  40% {
    content: '.';
  }
  60% {
    content: '..';
  }
  80%, 100% {
    content: '...';
  }
}

/* Enhanced focus states for accessibility */
.focus-ring:focus {
  outline: 2px solid #584599;
  outline-offset: 2px;
  border-radius: 0.375rem;
}

/* Glassmorphism effect */
.glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Enhanced mobile card layout */
@media (max-width: 768px) {
  .mobile-card {
    margin-bottom: 1rem;
    padding: 1.5rem;
    border-radius: 1rem;
  }
}

/* Smooth transitions for all interactive elements */
.interactive {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.interactive:hover {
  transform: translateY(-2px);
}
