/* ========== KEYFRAMES ========== */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-left {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fade-right {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes scale-in {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slide-in-up {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) translateX(0);
  }
  50% {
    transform: translateY(-20px) translateX(10px);
  }
}

@keyframes float-sphere {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    transform: translate(30px, 30px) rotate(180deg);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(44, 110, 44, 0.4);
  }
  50% {
    box-shadow: 0 0 0 20px rgba(44, 110, 44, 0);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes rotate-slow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes bounce {
  0%, 80%, 100% {
    transform: scale(0);
  }
  40% {
    transform: scale(1);
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

@keyframes lineFlow {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes blink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

/* ========== ANIMATION CLASSES ========== */
[data-animate] {
  opacity: 0;
}

[data-animate="fade-up"] {
  animation: fade-up 0.8s cubic-bezier(0.2, 0.9, 0.4, 1.1) forwards;
}

[data-animate="fade-left"] {
  animation: fade-left 0.8s cubic-bezier(0.2, 0.9, 0.4, 1.1) forwards;
}

[data-animate="fade-right"] {
  animation: fade-right 0.8s cubic-bezier(0.2, 0.9, 0.4, 1.1) forwards;
}

[data-animate="fade-in"] {
  animation: fade-in 0.6s ease forwards;
}

[data-animate="scale-in"] {
  animation: scale-in 0.6s cubic-bezier(0.2, 0.9, 0.4, 1.1) forwards;
}

[data-animate="slide-up"] {
  animation: slide-in-up 0.6s cubic-bezier(0.2, 0.9, 0.4, 1.1) forwards;
}

/* ========== SCROLL TRIGGERED ANIMATIONS ========== */
.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== HOVER ANIMATIONS ========== */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.hover-grow {
  transition: transform 0.3s ease;
}

.hover-grow:hover {
  transform: scale(1.05);
}

.hover-glow {
  transition: box-shadow 0.3s ease;
}

.hover-glow:hover {
  box-shadow: 0 0 20px rgba(44, 110, 44, 0.3);
}

/* ========== LOADING ANIMATIONS ========== */
.skeleton {
  background: linear-gradient(90deg, var(--border-light) 25%, var(--bg-primary) 50%, var(--border-light) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--border-radius-md);
}

/* ========== PAGE TRANSITIONS ========== */
.page-transition {
  animation: fade-in 0.5s ease;
}

/* ========== SCROLL INDICATOR ========== */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 10;
}

.mouse {
  width: 30px;
  height: 50px;
  border: 2px solid var(--text-secondary);
  border-radius: 20px;
  position: relative;
}

.mouse::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--text-secondary);
  border-radius: 2px;
  animation: bounce-mouse 2s infinite;
}

@keyframes bounce-mouse {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateX(-50%) translateY(10px);
    opacity: 0.5;
  }
}

.arrow-down {
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--text-secondary);
  border-bottom: 2px solid var(--text-secondary);
  transform: rotate(45deg);
  animation: bounce-arrow 2s infinite;
}

@keyframes bounce-arrow {
  0%, 100% {
    transform: rotate(45deg) translateY(0);
  }
  50% {
    transform: rotate(45deg) translateY(10px);
  }
}

/* ========== PARALLAX EFFECT ========== */
.parallax {
  transform: translateZ(0);
  will-change: transform;
}

/* ========== GLASS MORPHISM EFFECT ========== */
.glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ========== TEXT ANIMATIONS ========== */
.text-reveal {
  overflow: hidden;
}

.text-reveal span {
  display: inline-block;
  animation: slide-up 0.5s cubic-bezier(0.2, 0.9, 0.4, 1.1) forwards;
}

/* ========== CARD HOVER EFFECTS ========== */
.card-3d {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-3d:hover {
  transform: translateY(-8px) rotateX(5deg);
  box-shadow: var(--shadow-xl);
}