/* ===================================
   MERCAN YOL YARDIM - ANIMATIONS
   =================================== */

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

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

/* Float Card Animation - Different timing for each card */
@keyframes floatCard1 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(1deg); }
}

@keyframes floatCard2 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(-1deg); }
}

@keyframes floatCard3 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
}

@keyframes floatCard4 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(-2deg); }
}

/* Apply different animations to each card */
.card-response {
    animation: floatCard1 4s ease-in-out infinite;
}

.card-customers {
    animation: floatCard2 5s ease-in-out infinite;
    animation-delay: 0.5s;
}

.card-service {
    animation: floatCard3 4.5s ease-in-out infinite;
    animation-delay: 1s;
}

.card-experience {
    animation: floatCard4 5.5s ease-in-out infinite;
    animation-delay: 1.5s;
}

/* Hero Image Pulse */
@keyframes imagePulse {
    0%, 100% { box-shadow: 0 25px 80px -20px rgba(37, 211, 102, 0.3); }
    50% { box-shadow: 0 30px 100px -20px rgba(37, 211, 102, 0.5); }
}

.hero-image-wrapper {
    animation: imagePulse 3s ease-in-out infinite;
}

/* 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.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

/* Glow Pulse */
@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(30, 64, 175, 0.3); }
    50% { box-shadow: 0 0 40px rgba(30, 64, 175, 0.6); }
}

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

/* Shimmer */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Ring Pulse */
@keyframes ringPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

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

/* Visibility Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Fade Animations */
.fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

.fade-in-down {
    animation: fadeInDown 0.6s ease forwards;
}

.fade-in-left {
    animation: fadeInLeft 0.6s ease forwards;
}

.fade-in-right {
    animation: fadeInRight 0.6s ease forwards;
}

/* Delay Classes */
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }
.delay-600 { animation-delay: 600ms; }
.delay-700 { animation-delay: 700ms; }
.delay-800 { animation-delay: 800ms; }

/* Float Effect */
.float {
    animation: float 3s ease-in-out infinite;
}

/* Bounce Effect */
.bounce {
    animation: bounce 2s infinite;
}

/* Glow Effect */
.glow {
    animation: glowPulse 2s ease-in-out infinite;
}

/* Shimmer Effect */
.shimmer {
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.4) 50%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

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

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

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px 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);
}

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

.hover-glow:hover {
    box-shadow: 0 0 30px rgba(30, 64, 175, 0.4);
}

/* ===================================
   BUTTON ANIMATIONS
   =================================== */

/* Button Ripple Effect */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-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;
}

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

/* Icon Slide */
.btn-icon-slide {
    overflow: hidden;
}

.btn-icon-slide svg {
    transition: transform 0.3s ease;
}

.btn-icon-slide:hover svg {
    transform: translateX(4px);
}

/* ===================================
   CARD ANIMATIONS
   =================================== */

/* Card Hover Effect */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

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

/* Card Image Zoom */
.card-zoom-img {
    overflow: hidden;
}

.card-zoom-img img {
    transition: transform 0.5s ease;
}

.card-zoom-img:hover img {
    transform: scale(1.1);
}

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

/* Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-light);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: rotate 1s linear infinite;
}

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

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

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

/* ===================================
   SPECIAL EFFECTS
   =================================== */

/* Phone Ring Effect */
.phone-ring {
    position: relative;
}

.phone-ring::before,
.phone-ring::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    border: 2px solid currentColor;
    animation: ringPulse 1.5s infinite;
}

.phone-ring::after {
    animation-delay: 0.5s;
}

/* Text Gradient Animation */
.text-gradient-animate {
    background: linear-gradient(
        90deg,
        var(--primary) 0%,
        var(--primary-light) 25%,
        var(--whatsapp) 50%,
        var(--primary-light) 75%,
        var(--primary) 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
}

/* Border Glow */
.border-glow {
    position: relative;
}

.border-glow::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary), var(--whatsapp), var(--danger), var(--primary));
    background-size: 400% 400%;
    border-radius: inherit;
    z-index: -1;
    animation: shimmer 3s ease infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.border-glow:hover::before {
    opacity: 1;
}

/* ===================================
   SCROLL TRIGGERED STYLES
   =================================== */

/* Stagger Children Animation */
.stagger-children > * {
    opacity: 0;
    transform: translateY(20px);
}

.stagger-children.animated > * {
    animation: fadeInUp 0.5s ease forwards;
}

.stagger-children.animated > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-children.animated > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-children.animated > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-children.animated > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-children.animated > *:nth-child(5) { animation-delay: 0.5s; }
.stagger-children.animated > *:nth-child(6) { animation-delay: 0.6s; }

/* Counter Animation Placeholder */
.counter-animate {
    transition: all 0.3s ease;
}

/* ===================================
   PREFERS REDUCED MOTION
   =================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .animate-on-scroll {
        opacity: 1;
        transform: none;
    }
}

