/* Micro-interactions & Keyframes */

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

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

@keyframes float-delay {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.animate-float-delay {
    animation: float-delay 7s ease-in-out infinite 2s;
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 0 0 rgba(255, 91, 31, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(255, 91, 31, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 91, 31, 0); }
}

.animate-pulse-glow {
    animation: pulse-glow 2s infinite;
}

@keyframes svg-line-draw {
    to {
        stroke-dashoffset: 0;
    }
}

.svg-trace {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: svg-line-draw 3s ease forwards;
}

/* Hover Utilities */
.hover-lift {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}

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

.icon-rotate-hover .icon-inner {
    transition: transform 0.5s ease;
}

.icon-rotate-hover:hover .icon-inner {
    transform: rotate(360deg);
}

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

.arrow-slide:hover .arrow-icon {
    transform: translateX(5px);
}

/* Background Patterns */
.bg-grid-pattern {
    background-image: linear-gradient(to right, rgba(0,0,0,0.03) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(0,0,0,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

.bg-grid-pattern-dark {
    background-image: linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* Magnetic Button helper */
.magnetic-btn {
    display: inline-block;
    transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Custom Cursor Tracker (Optional but premium) */
.cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: rgba(255, 91, 31, 0.3);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background-color 0.3s;
}

.cursor-follower.active {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 91, 31, 0.1);
    border: 1px solid var(--primary);
}
