/* ========================================
   WAJAHNI CREATIVE ANIMATIONS & LAYOUTS
   ======================================== */

/* ===== FADE ANIMATIONS ===== */
@keyframes fade-in {
  0% {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fade-in-up {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in-down {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== SLIDE ANIMATIONS ===== */
@keyframes slide-in-left {
  0% {
    opacity: 0;
    transform: translate(-30px);
  }
  to {
    opacity: 1;
    transform: translate(0);
  }
}

@keyframes slide-in-right {
  0% {
    opacity: 0;
    transform: translate(30px);
  }
  to {
    opacity: 1;
    transform: translate(0);
  }
}

/* ===== MARQUEE ANIMATIONS ===== */
@keyframes marquee {
  0% {
    transform: translate(0);
  }
  to {
    transform: translate(-50%);
  }
}

@keyframes marquee-left {
  0% {
    transform: translate(0);
  }
  to {
    transform: translate(-50%);
  }
}

@keyframes marquee-right {
  0% {
    transform: translate(-50%);
  }
  to {
    transform: translate(0);
  }
}

/* ===== PARTICLE & FLOAT ANIMATIONS ===== */
@keyframes particle-float {
  0%,
  to {
    opacity: var(--particle-opacity, 0.3);
    transform: translate(0) scale(1);
  }
  25% {
    opacity: calc(var(--particle-opacity, 0.3) * 1.5);
    transform: translate(30px, -50px) scale(1.2);
  }
  50% {
    opacity: var(--particle-opacity, 0.3);
    transform: translate(-20px, -100px) scale(0.8);
  }
  75% {
    opacity: calc(var(--particle-opacity, 0.3) * 0.7);
    transform: translate(-40px, -50px) scale(1.1);
  }
}

@keyframes float-slow {
  0%,
  to {
    transform: translate(0) scale(1);
  }
  25% {
    transform: translate(-30px, 20px) scale(1.05);
  }
  50% {
    transform: translate(-20px, 40px) scale(0.95);
  }
  75% {
    transform: translate(20px, 20px) scale(1.02);
  }
}

@keyframes float-medium {
  0%,
  to {
    transform: translate(0) scale(1);
  }
  33% {
    transform: translate(40px, -30px) scale(1.08);
  }
  66% {
    transform: translate(-20px, -20px) scale(0.92);
  }
}

@keyframes float-fast {
  0%,
  to {
    transform: translate(0) scale(1) rotate(0);
  }
  25% {
    transform: translate(20px, -20px) scale(1.1) rotate(2deg);
  }
  50% {
    transform: translate(-10px, 30px) scale(0.9) rotate(-1deg);
  }
  75% {
    transform: translate(-30px, -10px) scale(1.05) rotate(1deg);
  }
}

@keyframes float-gentle {
  0%,
  to {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

/* ===== PULSE & RING ANIMATIONS ===== */
@keyframes pulse-slow {
  0%,
  to {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.1);
  }
}

@keyframes pulse-ring {
  0% {
    opacity: 0.6;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(1.8);
  }
}

/* ===== ROTATE ANIMATIONS ===== */
@keyframes text-rotate-in {
  0% {
    opacity: 0;
    transform: translateY(20px) rotateX(-30deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotateX(0);
  }
}

@keyframes text-rotate-out {
  0% {
    opacity: 1;
    transform: translateY(0) rotateX(0);
  }
  to {
    opacity: 0;
    transform: translateY(-20px) rotateX(30deg);
  }
}

/* ===== SHIMMER ANIMATION ===== */
@keyframes anima-shimmer {
  0%,
  90%,
  to {
    background-position: calc(-100% - var(--shimmer-width)) 0;
  }
  30%,
  60% {
    background-position: calc(100% + var(--shimmer-width)) 0;
  }
}

/* ===== IMAGE GLOW ANIMATION ===== */
@keyframes anima-image-glow {
  0% {
    opacity: 0;
    animation-timing-function: cubic-bezier(0.74, 0.2, 0.76, 1);
  }
  10% {
    opacity: 0.7;
    animation-timing-function: cubic-bezier(0.12, 0.01, 0.08, 0.99);
  }
  to {
    opacity: 0.4;
  }
}

/* ===== UTILITY ANIMATION CLASSES ===== */
.animate-fade-in {
  animation: fade-in 0.4s ease-out forwards;
}

.animate-fade-in-up {
  animation: fade-in-up 0.6s ease-out forwards;
}

.animate-fade-in-down {
  animation: fade-in-down 0.6s ease-out forwards;
}

.animate-slide-in-left {
  animation: slide-in-left 0.5s ease-out forwards;
}

.animate-slide-in-right {
  animation: slide-in-right 0.5s ease-out forwards;
}

.animate-marquee {
  animation: marquee 25s linear infinite;
}

.animate-marquee-slow {
  animation: marquee 40s linear infinite;
}

.animate-marquee-left {
  animation: marquee-left linear infinite;
}

.animate-marquee-right {
  animation: marquee-right linear infinite;
}

.animate-particle {
  animation: particle-float linear infinite;
}

.animate-pulse-slow {
  animation: pulse-slow 8s ease-in-out infinite;
}

.animate-float-slow {
  animation: float-slow 4s ease-in-out infinite;
}

.animate-float-medium {
  animation: float-medium 3s ease-in-out infinite;
}

.animate-float-fast {
  animation: float-fast 2s ease-in-out infinite;
}

.animate-float-gentle {
  animation: float-gentle 4s ease-in-out infinite;
}

.animate-pulse-ring {
  animation: pulse-ring 2s ease-out infinite;
}

.animate-text-rotate-in {
  animation: text-rotate-in 0.6s ease-out forwards;
}

.animate-shimmer {
  animation: anima-shimmer 8s infinite;
}

.animate-image-glow {
  animation: anima-image-glow 1s forwards;
}

/* ===== STAGGER ANIMATIONS ===== */
.animate-stagger > * {
  opacity: 0;
}

.animate-stagger.animated > :first-child {
  animation: fade-in-up 0.5s ease-out 0.1s forwards;
}

.animate-stagger.animated > :nth-child(2) {
  animation: fade-in-up 0.5s ease-out 0.2s forwards;
}

.animate-stagger.animated > :nth-child(3) {
  animation: fade-in-up 0.5s ease-out 0.3s forwards;
}

.animate-stagger.animated > :nth-child(4) {
  animation: fade-in-up 0.5s ease-out 0.4s forwards;
}

.animate-stagger.animated > :nth-child(5) {
  animation: fade-in-up 0.5s ease-out 0.5s forwards;
}

/* ===== HOVER LIFT EFFECT ===== */
.hover-lift {
  transition: transform 0.2s, box-shadow 0.2s;
}

.hover-lift:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ===== GLASS EFFECT ===== */
.glass {
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.99);
}

.dark .glass {
  background: rgba(20, 20, 20, 0.8);
}

/* ===== GRADIENT ANIMATIONS ===== */
.gradient-orange {
  background: linear-gradient(135deg, #f3652f, #d9541f);
}

.gradient-text-orange {
  -webkit-text-fill-color: transparent;
  background: linear-gradient(135deg, #f3652f, #f78a5f);
  -webkit-background-clip: text;
  background-clip: text;
}

/* ===== SMOOTH SCROLL ===== */
html {
  scroll-behavior: smooth;
}

/* ===== SCROLLBAR STYLING ===== */
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

.scrollbar-none {
  scrollbar-width: none;
}

.scrollbar-none::-webkit-scrollbar {
  display: none;
}

/* ===== FOCUS RING ===== */
.focus-ring:focus-visible {
  outline: 2px solid #f3652f;
  outline-offset: 2px;
}

/* ===== BACKFACE HIDDEN ===== */
.backface-hidden {
  backface-visibility: hidden;
}

/* ===== TRANSITION UTILITIES ===== */
.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 0.15s;
}

.transition-transform {
  transition-property: transform, translate, scale, rotate;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 0.15s;
}

.transition-colors {
  transition-property: color, background-color, border-color;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 0.15s;
}

/* ===== ANIMATION DELAY UTILITIES ===== */
.delay-100 {
  animation-delay: 0.1s;
}

.delay-200 {
  animation-delay: 0.2s;
}

.delay-300 {
  animation-delay: 0.3s;
}

.delay-500 {
  animation-delay: 0.5s;
}

.delay-1000 {
  animation-delay: 1s;
}
