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

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

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

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

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

@keyframes progress {
  from {
    width: 0%;
  }
  to {
    width: 100%;
  }
}

/* Animation classes - elements start hidden */
.animate-on-scroll {
  opacity: 0;
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-fade-in-up.animated {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.animate-fade-in {
  opacity: 0;
  transition: opacity 0.8s ease-out;
}

.animate-fade-in.animated {
  opacity: 1 !important;
}

.animate-slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-slide-in-left.animated {
  opacity: 1 !important;
  transform: translateX(0) !important;
}

.animate-slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-slide-in-right.animated {
  opacity: 1 !important;
  transform: translateX(0) !important;
}

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

.animate-progress {
  animation: progress 2s ease-out forwards;
}

/* Immediate animations (for hero section) */
.animate-immediate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Animation delay support */
[style*="animation-delay"] {
  animation-delay: inherit;
}

/* Stagger delays for scroll animations */
.animate-fade-in-up[style*="animation-delay: 0.1s"],
.animate-fade-in-up[style*="animation-delay: 0.2s"],
.animate-fade-in-up[style*="animation-delay: 0.3s"],
.animate-fade-in-up[style*="animation-delay: 0.4s"],
.animate-fade-in-up[style*="animation-delay: 0.5s"] {
  transition-delay: var(--delay, 0s);
}

/* Smooth transitions */
* {
  transition-property: color, background-color, border-color, transform, opacity;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 200ms;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #010a74;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #db7800;
}

/* Hover effects */
.hover-lift {
  transition: transform 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, #db7800 0%, #9aa4e0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

/* Pulse animation for stats */
@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(219, 120, 0, 0.7);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(219, 120, 0, 0);
  }
}

.pulse-glow {
  animation: pulse-glow 2s infinite;
}

/* Loading animation */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.animate-spin-slow {
  animation: spin 20s linear infinite;
}

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

/* Form input focus effects */
input:focus,
textarea:focus {
  outline: none;
  border-color: #db7800;
  box-shadow: 0 0 0 3px rgba(219, 120, 0, 0.1);
}

/* Button hover effects */
button:hover,
a[role="button"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Card hover effects */
.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Text selection */
::selection {
  background-color: #db7800;
  color: white;
}

::-moz-selection {
  background-color: #db7800;
  color: white;
}

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

/* Image loading animation */
img {
  transition: opacity 0.3s ease;
}

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

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

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

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

/* Navbar scroll effect */
.navbar-scrolled {
  background-color: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Number counter animation */
@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.count-up {
  animation: countUp 0.6s ease-out;
}
