/* 
 * Semay Premium Agency - Animasyonlar ve Mikro-Etkileşimler
 * Fütüristik WebGL hissi, Pulse, Kayan Yazılar ve Scroll Tetikleyicileri
 */

/* ==========================================================================
   1. Keyframes
   ========================================================================== */

/* Hero Scroll Line Animation */
@keyframes scrollLine {
    0% {
        transform: scaleY(0);
        transform-origin: top;
        opacity: 0;
    }
    50% {
        transform: scaleY(1);
        transform-origin: top;
        opacity: 1;
    }
    50.1% {
        transform: scaleY(1);
        transform-origin: bottom;
    }
    100% {
        transform: scaleY(0);
        transform-origin: bottom;
        opacity: 0;
    }
}

/* 3D Model Floating Effect */
@keyframes floatModel {
    0%, 100% {
        transform: translateY(0) rotateX(0deg) rotateY(0deg);
    }
    50% {
        transform: translateY(-15px) rotateX(5deg) rotateY(10deg);
    }
}

/* Global / Ambient Canvas Pulse */
@keyframes ambientPulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

/* Infinite Marquee Scroll */
@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

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

/* Node Glowing Pulse (Process Stepper) */
@keyframes nodePulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 15px rgba(0, 240, 255, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 240, 255, 0);
    }
}

/* ==========================================================================
   2. Animation Utilities
   ========================================================================== */

.animate-fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

.node-pulse {
    position: absolute;
    width: 100%; height: 100%;
    border-radius: inherit;
    animation: nodePulse 2s infinite;
    z-index: -1;
}

/* Scroll Transition Initial State */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

.hover-glow:hover {
    box-shadow: 0 0 25px var(--secondary, #00F0FF);
}
