/* ==================== SCROLL VELOCITY BASED - PROMPT 9 ==================== */

/* ===== VELOCITY STATES ===== */
body {
    --velocity: 0;
}

/* ===== YAVAŞ SCROLL - Smooth Fade ===== */
body[data-scroll-velocity="slow"] section {
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

body[data-scroll-velocity="slow"] .velocity-element {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== ORTA HIZ - Normal Transition ===== */
body[data-scroll-velocity="medium"] section {
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

body[data-scroll-velocity="medium"] .velocity-element {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== HIZLI SCROLL - Quick Transition ===== */
body[data-scroll-velocity="fast"] section {
    transition: all 0.3s cubic-bezier(0.4, 0, 1, 1);
}

body[data-scroll-velocity="fast"] .velocity-element {
    transition: all 0.2s ease-out;
}

/* Background blur on fast scroll */
body[data-scroll-velocity="fast"] section:not(.active) {
    filter: blur(2px);
    opacity: 0.8;
}

/* ===== VELOCITY INDICATOR ===== */
.velocity-indicator {
    position: fixed;
    bottom: 80px;
    right: 20px;
    background: rgba(30, 58, 138, 0.9);
    color: #eab308;
    padding: 0.75rem 1.25rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    z-index: 999;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(234, 179, 8, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.velocity-indicator.show {
    opacity: 1;
    transform: translateY(0);
}

.velocity-indicator .speed-emoji {
    font-size: 1.25rem;
    margin-right: 0.5rem;
}

/* ===== DYNAMIC ANIMATION SPEED ===== */

/* Cards adapt to scroll speed */
.velocity-card {
    transition: all var(--velocity-duration, 0.6s) cubic-bezier(0.4, 0, 0.2, 1);
}

/* Slow scroll - extra smooth */
body[data-scroll-velocity="slow"] .velocity-card {
    --velocity-duration: 1s;
}

/* Fast scroll - quick */
body[data-scroll-velocity="fast"] .velocity-card {
    --velocity-duration: 0.2s;
}

/* ===== VELOCITY EFFECTS ===== */

/* Slow scroll - add extra effects */
body[data-scroll-velocity="slow"] .feature-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 30px 60px rgba(234, 179, 8, 0.4);
}

/* Fast scroll - minimal effects */
body[data-scroll-velocity="fast"] .feature-card:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 10px 20px rgba(234, 179, 8, 0.2);
}

/* ===== MOMENTUM INDICATOR ===== */

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

body[data-scroll-velocity="fast"] .velocity-indicator {
    animation: pulse 0.5s ease-in-out infinite;
}

/* ===== PERFORMANCE ===== */
.velocity-element {
    will-change: transform, opacity;
    backface-visibility: hidden;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .velocity-indicator {
        display: none;
    }
    
    body[data-scroll-velocity] section {
        transition: all 0.4s ease !important;
    }
}

