/* =========================================
   URGEERP.COM - Animasyonlar
   ========================================= */

/* =========================================
   KEYFRAME ANIMATIONS
   ========================================= */

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

/* Pulse Animation */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.05;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.1;
    }
}

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

/* Fade In Down */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade In Left */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Fade In Right */
@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Rotate In */
@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-180deg);
    }
    to {
        opacity: 1;
        transform: rotate(0);
    }
}

/* Bounce */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-15px);
    }
    60% {
        transform: translateY(-7px);
    }
}

/* Shake */
@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

/* Gradient Shift */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Glow */
@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(255, 147, 30, 0.5);
    }
    50% {
        box-shadow: 0 0 25px rgba(255, 147, 30, 0.8);
    }
}

/* Spin Slow */
@keyframes spinSlow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Wave */
@keyframes wave {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(20deg);
    }
    75% {
        transform: rotate(-20deg);
    }
}

/* Typing Cursor */
@keyframes blink {
    0%, 50% {
        border-color: transparent;
    }
    51%, 100% {
        border-color: var(--primary-red);
    }
}

/* =========================================
   ANIMATION CLASSES
   ========================================= */

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

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

.animate-bounce {
    animation: bounce 2s ease infinite;
}

.animate-shake {
    animation: shake 0.5s ease;
}

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

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

.animate-wave {
    animation: wave 1s ease infinite;
}

/* On Scroll Animations (JS triggered) */
.animate-on-scroll {
    opacity: 0;
    transition: all 0.8s ease;
}

.animate-on-scroll.animate-fade-up {
    transform: translateY(50px);
}

.animate-on-scroll.animate-fade-down {
    transform: translateY(-50px);
}

.animate-on-scroll.animate-fade-left {
    transform: translateX(-50px);
}

.animate-on-scroll.animate-fade-right {
    transform: translateX(50px);
}

.animate-on-scroll.animate-scale {
    transform: scale(0.8);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* Stagger Animation Delays */
.delay-100 { animation-delay: 100ms; transition-delay: 100ms; }
.delay-200 { animation-delay: 200ms; transition-delay: 200ms; }
.delay-300 { animation-delay: 300ms; transition-delay: 300ms; }
.delay-400 { animation-delay: 400ms; transition-delay: 400ms; }
.delay-500 { animation-delay: 500ms; transition-delay: 500ms; }
.delay-600 { animation-delay: 600ms; transition-delay: 600ms; }
.delay-700 { animation-delay: 700ms; transition-delay: 700ms; }
.delay-800 { animation-delay: 800ms; transition-delay: 800ms; }

/* =========================================
   HOVER ANIMATIONS
   ========================================= */

/* Lift on Hover */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Scale on Hover */
.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* Rotate on Hover */
.hover-rotate {
    transition: transform 0.3s ease;
}

.hover-rotate:hover {
    transform: rotate(5deg);
}

/* Shine Effect */
.hover-shine {
    position: relative;
    overflow: hidden;
}

.hover-shine::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s ease;
}

.hover-shine:hover::before {
    left: 100%;
}

/* Border Glow */
.hover-border-glow {
    transition: box-shadow 0.3s ease;
}

.hover-border-glow:hover {
    box-shadow: 0 0 0 4px rgba(255, 147, 30, 0.3);
}

/* Icon Pop */
.hover-icon-pop .icon {
    transition: transform 0.3s ease;
}

.hover-icon-pop:hover .icon {
    transform: scale(1.2);
}

/* Underline Expand */
.hover-underline {
    position: relative;
}

.hover-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.hover-underline:hover::after {
    width: 100%;
}

/* =========================================
   LOADING ANIMATIONS
   ========================================= */

/* Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(184, 68, 0, 0.2);
    border-top-color: var(--primary-bordo);
    border-radius: 50%;
    animation: spinSlow 1s linear infinite;
}

/* Dots Loading */
.loading-dots {
    display: flex;
    gap: 8px;
}

.loading-dots span {
    width: 12px;
    height: 12px;
    background: var(--primary-red);
    border-radius: 50%;
    animation: bounce 1.4s ease-in-out infinite;
}

.loading-dots span:nth-child(1) { animation-delay: 0s; }
.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: gradientShift 1.5s ease infinite;
    border-radius: var(--radius-sm);
}

/* =========================================
   PARTICLE BACKGROUND
   ========================================= */
.particles-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--gold);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 8s ease-in-out infinite;
}

.particle:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; }
.particle:nth-child(2) { left: 20%; top: 60%; animation-delay: 1s; }
.particle:nth-child(3) { left: 30%; top: 30%; animation-delay: 2s; }
.particle:nth-child(4) { left: 50%; top: 70%; animation-delay: 3s; }
.particle:nth-child(5) { left: 70%; top: 40%; animation-delay: 4s; }
.particle:nth-child(6) { left: 80%; top: 80%; animation-delay: 5s; }
.particle:nth-child(7) { left: 90%; top: 25%; animation-delay: 6s; }

/* =========================================
   COUNTER ANIMATION
   ========================================= */
.counter {
    display: inline-block;
}

/* =========================================
   TYPING EFFECT
   ========================================= */
.typing-text {
    display: inline-block;
    border-right: 3px solid var(--primary-red);
    animation: blink 0.7s step-end infinite;
    white-space: nowrap;
    overflow: hidden;
}

/* =========================================
   IMAGE REVEAL
   ========================================= */
.image-reveal {
    position: relative;
    overflow: hidden;
}

.image-reveal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-bordo);
    transform: scaleX(1);
    transform-origin: right;
    transition: transform 0.8s ease;
    z-index: 1;
}

.image-reveal.revealed::before {
    transform: scaleX(0);
}

/* =========================================
   TILT EFFECT (JS Required)
   ========================================= */
.tilt-card {
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.tilt-card-inner {
    transform: translateZ(30px);
}

/* =========================================
   MORPH SHAPES
   ========================================= */
.morph-shape {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: morph 8s ease-in-out infinite;
}

@keyframes morph {
    0%, 100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }
}

/* =========================================
   GRADIENT TEXT ANIMATION
   ========================================= */
.gradient-text-animated {
    background: linear-gradient(
        90deg,
        var(--primary-bordo),
        var(--primary-red),
        var(--gold),
        var(--primary-red),
        var(--primary-bordo)
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s linear infinite;
}

/* =========================================
   RIPPLE EFFECT
   ========================================= */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.ripple:active::after {
    width: 300px;
    height: 300px;
}

/* =========================================
   PAGE TRANSITION
   ========================================= */
.page-transition {
    animation: fadeInUp 0.5s ease;
}

/* =========================================
   RESPONSIVE ANIMATIONS
   ========================================= */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (max-width: 768px) {
    .animate-on-scroll {
        transform: none !important;
        opacity: 1 !important;
    }
}
