/* ============================================
   UFK Soft - Animasyonlar
   ============================================ */

/* Floating orbs arka plan */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-15px) rotate(1deg); }
    66% { transform: translateY(10px) rotate(-1deg); }
}

@keyframes floatReverse {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(15px) rotate(-1deg); }
    66% { transform: translateY(-10px) rotate(1deg); }
}

/* Glow pulse */
@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 212, 255, 0.15); }
    50% { box-shadow: 0 0 40px rgba(0, 212, 255, 0.3); }
}

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

/* Rotate gradient border */
@keyframes rotateBorder {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Typing cursor */
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

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

/* Slide up */
@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Fade in */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Counter animation helper */
.counter-animated {
    display: inline-block;
}

/* Stagger children animation */
.stagger-children > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.stagger-children.revealed > *:nth-child(1) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.stagger-children.revealed > *:nth-child(2) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.stagger-children.revealed > *:nth-child(3) { transition-delay: 0.25s; opacity: 1; transform: translateY(0); }
.stagger-children.revealed > *:nth-child(4) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.stagger-children.revealed > *:nth-child(5) { transition-delay: 0.35s; opacity: 1; transform: translateY(0); }
.stagger-children.revealed > *:nth-child(6) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }
.stagger-children.revealed > *:nth-child(7) { transition-delay: 0.45s; opacity: 1; transform: translateY(0); }
.stagger-children.revealed > *:nth-child(8) { transition-delay: 0.5s; opacity: 1; transform: translateY(0); }

/* Parallax */
.parallax-element {
    will-change: transform;
}

/* Magnetic hover */
.magnetic-hover {
    transition: transform 0.3s ease;
}

/* Hero text animation */
.hero-text-animate {
    animation: slideUp 0.8s ease forwards;
    opacity: 0;
}

.hero-text-animate:nth-child(1) { animation-delay: 0.2s; }
.hero-text-animate:nth-child(2) { animation-delay: 0.4s; }
.hero-text-animate:nth-child(3) { animation-delay: 0.6s; }
.hero-text-animate:nth-child(4) { animation-delay: 0.8s; }

/* Hover lift */
.hover-lift {
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.hover-lift:hover {
    transform: translateY(-8px);
}

/* Loading spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-subtle);
    border-top-color: var(--accent-cyan);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Page transition */
.page-transition {
    animation: fadeIn 0.5s ease;
}

/* Navbar mobile menu animation */
.nav-links a {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

@media (max-width: 768px) {
    .nav-links.open a {
        animation: slideUp 0.4s ease forwards;
    }
    .nav-links.open a:nth-child(1) { animation-delay: 0.1s; }
    .nav-links.open a:nth-child(2) { animation-delay: 0.15s; }
    .nav-links.open a:nth-child(3) { animation-delay: 0.2s; }
    .nav-links.open a:nth-child(4) { animation-delay: 0.25s; }
    .nav-links.open a:nth-child(5) { animation-delay: 0.3s; }
    .nav-links.open a:nth-child(6) { animation-delay: 0.35s; }
}
