/**
 * OSK Łuczak - Animations
 */

/* ===================================
   LOADER - Premium Design
=================================== */
.loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0f172a 100%);
    background-size: 200% 200%;
    animation: loaderGradient 3s ease infinite;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
        visibility 0.6s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.loader::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 40%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(250, 204, 21, 0.1) 0%, transparent 40%);
    pointer-events: none;
}

@keyframes loaderGradient {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.02);
}

.loader__content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    z-index: 1;
}

/* Glowing logo circle */
.loader__logo {
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader__logo-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: var(--osk-yellow);
    border-right-color: var(--osk-blue);
    animation: loaderSpin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.loader__logo-ring--outer {
    inset: -8px;
    border-width: 2px;
    opacity: 0.3;
    animation-duration: 2s;
    animation-direction: reverse;
}

.loader__logo-ring--inner {
    inset: 8px;
    border-width: 2px;
    opacity: 0.5;
    animation-duration: 0.8s;
}

@keyframes loaderSpin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loader__logo-icon {
    width: 48px;
    height: 48px;
    color: white;
    animation: loaderPulse 2s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(250, 204, 21, 0.3));
}

@keyframes loaderPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

/* Brand name with gradient */
.loader__brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.loader__title {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.8) 50%, var(--osk-yellow) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: loaderTextShimmer 2s ease-in-out infinite;
}

@keyframes loaderTextShimmer {

    0%,
    100% {
        background-position: 0% center;
    }

    50% {
        background-position: 100% center;
    }
}

.loader__subtitle {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

/* Progress bar */
.loader__progress {
    width: 200px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.loader__progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 40%;
    background: linear-gradient(90deg, var(--osk-blue), var(--osk-yellow), var(--osk-blue));
    background-size: 200% 100%;
    border-radius: 3px;
    animation: loaderProgress 1.5s ease-in-out infinite;
}

@keyframes loaderProgress {
    0% {
        left: -40%;
        background-position: 0% 0;
    }

    100% {
        left: 100%;
        background-position: 100% 0;
    }
}

/* Floating particles */
.loader__particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.loader__particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--osk-yellow);
    border-radius: 50%;
    opacity: 0;
    animation: loaderFloat 4s ease-in-out infinite;
}

.loader__particle:nth-child(1) {
    left: 20%;
    animation-delay: 0s;
}

.loader__particle:nth-child(2) {
    left: 40%;
    animation-delay: 0.5s;
}

.loader__particle:nth-child(3) {
    left: 60%;
    animation-delay: 1s;
}

.loader__particle:nth-child(4) {
    left: 80%;
    animation-delay: 1.5s;
}

@keyframes loaderFloat {
    0% {
        bottom: -10px;
        opacity: 0;
        transform: translateX(0) scale(0);
    }

    10% {
        opacity: 0.6;
        transform: scale(1);
    }

    90% {
        opacity: 0.6;
    }

    100% {
        bottom: 100%;
        opacity: 0;
        transform: translateX(20px) scale(0.5);
    }
}

/* ===================================
   SECTION DIVIDERS WITH ANIMATED LINES
=================================== */
.section-divider {
    position: relative;
    height: 60px;
    overflow: hidden;
    pointer-events: none;
    background: transparent;
}

.section-divider__line {
    position: absolute;
    height: 3px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(90deg,
            transparent 0%,
            var(--osk-blue) 30%,
            var(--osk-blue) 70%,
            transparent 100%);
    opacity: 0.2;
    filter: blur(1px);
    animation: flowMove 12s linear infinite;
}

.section-divider__line--1 {
    width: 250px;
    top: 30%;
    animation-delay: 0s;
}

.section-divider__line--2 {
    width: 300px;
    top: 50%;
    background: linear-gradient(90deg,
            transparent 0%,
            var(--osk-yellow) 30%,
            var(--osk-yellow) 70%,
            transparent 100%);
    opacity: 0.3;
    animation-delay: -4s;
    animation-duration: 10s;
}

.section-divider__line--3 {
    width: 200px;
    top: 70%;
    animation-delay: -8s;
    animation-duration: 14s;
}

/* Individual road line */
.road-line {
    position: absolute;
    width: 4px;
    background: linear-gradient(180deg,
            transparent 0%,
            var(--osk-blue) 20%,
            var(--osk-blue) 80%,
            transparent 100%);
    opacity: 0.25;
    filter: blur(1px);
    box-shadow: 0 0 10px currentColor;
    animation: roadLineMove 8s linear infinite;
}

/* Road line variations - different positions and speeds */
.road-line--1 {
    left: 5%;
    height: 150px;
    animation-duration: 7s;
    animation-delay: 0s;
}

.road-line--2 {
    left: 15%;
    height: 100px;
    background: linear-gradient(180deg,
            transparent 0%,
            var(--osk-yellow) 20%,
            var(--osk-yellow) 80%,
            transparent 100%);
    opacity: 0.35;
    animation-duration: 9s;
    animation-delay: -2s;
}

.road-line--3 {
    left: 25%;
    height: 180px;
    animation-duration: 6s;
    animation-delay: -4s;
}

.road-line--4 {
    left: 40%;
    height: 120px;
    background: linear-gradient(180deg,
            transparent 0%,
            var(--osk-yellow) 20%,
            var(--osk-yellow) 80%,
            transparent 100%);
    opacity: 0.3;
    animation-duration: 10s;
    animation-delay: -1s;
}

.road-line--5 {
    left: 55%;
    height: 160px;
    animation-duration: 8s;
    animation-delay: -3s;
}

.road-line--6 {
    left: 70%;
    height: 110px;
    background: linear-gradient(180deg,
            transparent 0%,
            var(--osk-yellow) 20%,
            var(--osk-yellow) 80%,
            transparent 100%);
    opacity: 0.3;
    animation-duration: 7s;
    animation-delay: -5s;
}

.road-line--7 {
    left: 85%;
    height: 140px;
    animation-duration: 9s;
    animation-delay: -2s;
}

.road-line--8 {
    left: 95%;
    height: 90px;
    animation-duration: 6s;
    animation-delay: -4s;
}

/* Dashed road marking style lines */
.road-dash {
    position: absolute;
    width: 6px;
    height: 40px;
    background: var(--osk-yellow);
    opacity: 0.4;
    border-radius: 3px;
    box-shadow: 0 0 15px rgba(249, 204, 24, 0.5);
    animation: dashMove 5s linear infinite;
}

.road-dash--1 {
    left: 10%;
    animation-delay: 0s;
}

.road-dash--2 {
    left: 30%;
    animation-delay: -1.5s;
}

.road-dash--3 {
    left: 50%;
    animation-delay: -3s;
}

.road-dash--4 {
    left: 75%;
    animation-delay: -2s;
}

.road-dash--5 {
    left: 90%;
    animation-delay: -4s;
}

/* Horizontal flowing lines */
.road-flow {
    position: absolute;
    height: 3px;
    background: linear-gradient(90deg,
            transparent 0%,
            var(--osk-blue) 30%,
            var(--osk-blue) 70%,
            transparent 100%);
    opacity: 0.2;
    filter: blur(1px);
    animation: flowMove 12s linear infinite;
}

.road-flow--1 {
    top: 20%;
    width: 250px;
    animation-delay: 0s;
}

.road-flow--2 {
    top: 40%;
    width: 350px;
    background: linear-gradient(90deg,
            transparent 0%,
            var(--osk-yellow) 30%,
            var(--osk-yellow) 70%,
            transparent 100%);
    opacity: 0.25;
    animation-delay: -4s;
    animation-duration: 15s;
}

.road-flow--3 {
    top: 60%;
    width: 300px;
    animation-delay: -8s;
}

.road-flow--4 {
    top: 80%;
    width: 220px;
    background: linear-gradient(90deg,
            transparent 0%,
            var(--osk-yellow) 30%,
            var(--osk-yellow) 70%,
            transparent 100%);
    opacity: 0.25;
    animation-delay: -2s;
    animation-duration: 10s;
}

.road-flow--5 {
    top: 35%;
    width: 280px;
    animation-delay: -6s;
    animation-duration: 14s;
}

.road-flow--6 {
    top: 70%;
    width: 200px;
    background: linear-gradient(90deg,
            transparent 0%,
            var(--osk-yellow) 30%,
            var(--osk-yellow) 70%,
            transparent 100%);
    opacity: 0.25;
    animation-delay: -10s;
    animation-duration: 11s;
}

/* Additional lines for scrollable page */
.road-flow--7 {
    top: 90%;
    width: 320px;
    animation-delay: -3s;
    animation-duration: 13s;
}

.road-flow--8 {
    top: 110%;
    width: 240px;
    background: linear-gradient(90deg,
            transparent 0%,
            var(--osk-yellow) 30%,
            var(--osk-yellow) 70%,
            transparent 100%);
    opacity: 0.25;
    animation-delay: -7s;
    animation-duration: 12s;
}

.road-flow--9 {
    top: 130%;
    width: 290px;
    animation-delay: -5s;
    animation-duration: 14s;
}

.road-flow--10 {
    top: 150%;
    width: 180px;
    background: linear-gradient(90deg,
            transparent 0%,
            var(--osk-yellow) 30%,
            var(--osk-yellow) 70%,
            transparent 100%);
    opacity: 0.25;
    animation-delay: -9s;
    animation-duration: 10s;
}

.road-flow--11 {
    top: 170%;
    width: 260px;
    animation-delay: -2s;
    animation-duration: 15s;
}

.road-flow--12 {
    top: 190%;
    width: 220px;
    background: linear-gradient(90deg,
            transparent 0%,
            var(--osk-yellow) 30%,
            var(--osk-yellow) 70%,
            transparent 100%);
    opacity: 0.25;
    animation-delay: -11s;
    animation-duration: 13s;
}

/* Keyframe animations */
@keyframes roadLineMove {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }

    10% {
        opacity: 0.15;
    }

    90% {
        opacity: 0.15;
    }

    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

@keyframes dashMove {
    0% {
        transform: translateY(-50px);
        opacity: 0;
    }

    10% {
        opacity: 0.25;
    }

    90% {
        opacity: 0.25;
    }

    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

@keyframes flowMove {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }

    10% {
        opacity: 0.4;
    }

    90% {
        opacity: 0.4;
    }

    100% {
        transform: translateX(100vw);
        opacity: 0;
    }
}

/* ===================================
   KEYFRAMES
=================================== */

/* Fade in from bottom */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade in */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Pulse */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* Float */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Slide in from left */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Slide in from right */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scale in */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Gradient shift for backgrounds */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* ===================================
   ANIMATION CLASSES
=================================== */

/* Scroll reveal - default state */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Reveal variants */
.reveal--left {
    transform: translateX(-50px);
}

.reveal--left.is-visible {
    transform: translateX(0);
}

.reveal--right {
    transform: translateX(50px);
}

.reveal--right.is-visible {
    transform: translateX(0);
}

.reveal--scale {
    transform: scale(0.9);
}

.reveal--scale.is-visible {
    transform: scale(1);
}

/* Stagger delays */
.reveal--delay-1 {
    transition-delay: 0.1s;
}

.reveal--delay-2 {
    transition-delay: 0.2s;
}

.reveal--delay-3 {
    transition-delay: 0.3s;
}

.reveal--delay-4 {
    transition-delay: 0.4s;
}

.reveal--delay-5 {
    transition-delay: 0.5s;
}

/* ===================================
   HERO ANIMATIONS - Subtle only
=================================== */

/* Remove loading animations - they look weird */
/* Elements now appear immediately */

/* Hero shapes floating */
.hero__shape--1 {
    animation: float 6s ease-in-out infinite;
}

.hero__shape--2 {
    animation: float 8s ease-in-out infinite;
    animation-delay: -2s;
}

/* ===================================
   INTERACTIVE HOVER EFFECTS
=================================== */

/* Card hover lift */
.hover-lift {
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

/* Button icon animation */
.btn--primary:hover .btn__icon {
    transform: translateX(4px);
    transition: transform var(--transition-fast);
}

/* Link underline effect */
.link-underline {
    position: relative;
}

.link-underline::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: width var(--transition-base);
}

.link-underline:hover::after {
    width: 100%;
}

/* ===================================
   ANIMATED GRADIENT BORDERS - Course Cards
=================================== */
@keyframes gradientBorderFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Base gradient border wrapper */
.course-card--animated-border {
    position: relative;
    background: var(--color-white);
    border-radius: var(--radius-2xl);
    z-index: 0;
}

.course-card--animated-border::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: calc(var(--radius-2xl) + 3px);
    background: linear-gradient(90deg,
            var(--osk-yellow) 0%,
            var(--osk-blue) 25%,
            var(--osk-yellow) 50%,
            var(--osk-blue) 75%,
            var(--osk-yellow) 100%);
    background-size: 200% 100%;
    animation: gradientShimmer 4s linear infinite;
    z-index: -1;
}

@keyframes gradientShimmer {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Inner background to cover the gradient except border */
.course-card--animated-border::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-2xl);
    background: var(--color-white);
    z-index: -1;
}

/* ===================================
   PULSING GLOW EFFECTS
=================================== */
@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: 0 0 5px rgba(59, 130, 246, 0.4),
            0 0 20px rgba(59, 130, 246, 0.2),
            0 0 40px rgba(59, 130, 246, 0.1);
    }

    50% {
        box-shadow: 0 0 10px rgba(59, 130, 246, 0.6),
            0 0 30px rgba(59, 130, 246, 0.4),
            0 0 60px rgba(59, 130, 246, 0.2);
    }
}

@keyframes pulseGlowYellow {

    0%,
    100% {
        box-shadow: 0 0 5px rgba(250, 204, 21, 0.4),
            0 0 20px rgba(250, 204, 21, 0.2),
            0 0 40px rgba(250, 204, 21, 0.1);
    }

    50% {
        box-shadow: 0 0 10px rgba(250, 204, 21, 0.6),
            0 0 30px rgba(250, 204, 21, 0.4),
            0 0 60px rgba(250, 204, 21, 0.2);
    }
}

.glow-pulse {
    animation: pulseGlow 2s ease-in-out infinite;
}

.glow-pulse--yellow {
    animation: pulseGlowYellow 2s ease-in-out infinite;
}

/* ===================================
   BOUNCE EFFECTS
=================================== */
@keyframes bounce {

    0%,
    20%,
    53%,
    80%,
    100% {
        animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
        transform: translateY(0);
    }

    40%,
    43% {
        animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
        transform: translateY(-30px);
    }

    70% {
        animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
        transform: translateY(-15px);
    }

    90% {
        transform: translateY(-4px);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }

    50% {
        transform: scale(1.05);
    }

    70% {
        transform: scale(0.9);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounceInDown {
    0% {
        opacity: 0;
        transform: translateY(-100px);
    }

    60% {
        transform: translateY(10px);
    }

    80% {
        transform: translateY(-5px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-bounce {
    animation: bounce 1s ease infinite;
}

.animate-bounce-in {
    animation: bounceIn 0.75s ease forwards;
}

.animate-bounce-in-down {
    animation: bounceInDown 0.75s ease forwards;
}

/* ===================================
   SHAKE & WIGGLE EFFECTS
=================================== */
@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-5px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(5px);
    }
}

@keyframes wiggle {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-5deg);
    }

    75% {
        transform: rotate(5deg);
    }
}

@keyframes jello {

    0%,
    11.1%,
    100% {
        transform: none;
    }

    22.2% {
        transform: skewX(-12.5deg) skewY(-12.5deg);
    }

    33.3% {
        transform: skewX(6.25deg) skewY(6.25deg);
    }

    44.4% {
        transform: skewX(-3.125deg) skewY(-3.125deg);
    }

    55.5% {
        transform: skewX(1.5625deg) skewY(1.5625deg);
    }

    66.6% {
        transform: skewX(-0.78125deg) skewY(-0.78125deg);
    }

    77.7% {
        transform: skewX(0.390625deg) skewY(0.390625deg);
    }

    88.8% {
        transform: skewX(-0.1953125deg) skewY(-0.1953125deg);
    }
}

.animate-shake {
    animation: shake 0.5s ease-in-out;
}

.animate-wiggle {
    animation: wiggle 0.5s ease-in-out infinite;
}

.animate-jello:hover {
    animation: jello 1s ease;
}

/* ===================================
   HEARTBEAT & PULSE EFFECTS
=================================== */
@keyframes heartbeat {
    0% {
        transform: scale(1);
    }

    14% {
        transform: scale(1.15);
    }

    28% {
        transform: scale(1);
    }

    42% {
        transform: scale(1.15);
    }

    70% {
        transform: scale(1);
    }
}

@keyframes ping {

    75%,
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }

    100% {
        transform: scale(4);
        opacity: 0;
    }
}

.animate-heartbeat {
    animation: heartbeat 1.5s ease-in-out infinite;
}

.animate-ping {
    animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

/* Ripple effect on click */
.ripple-container {
    position: relative;
    overflow: hidden;
}

.ripple-container::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transform: scale(0);
    opacity: 0;
}

.ripple-container:active::after {
    animation: ripple 0.6s ease-out;
}

/* ===================================
   3D FLIP & ROTATE EFFECTS
=================================== */
@keyframes flipInX {
    0% {
        transform: perspective(400px) rotateX(90deg);
        opacity: 0;
    }

    40% {
        transform: perspective(400px) rotateX(-10deg);
    }

    70% {
        transform: perspective(400px) rotateX(10deg);
    }

    100% {
        transform: perspective(400px) rotateX(0);
        opacity: 1;
    }
}

@keyframes flipInY {
    0% {
        transform: perspective(400px) rotateY(90deg);
        opacity: 0;
    }

    40% {
        transform: perspective(400px) rotateY(-10deg);
    }

    70% {
        transform: perspective(400px) rotateY(10deg);
    }

    100% {
        transform: perspective(400px) rotateY(0);
        opacity: 1;
    }
}

@keyframes rotateIn {
    0% {
        transform: rotate(-200deg);
        opacity: 0;
    }

    100% {
        transform: rotate(0);
        opacity: 1;
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.animate-flip-x {
    animation: flipInX 0.8s ease forwards;
}

.animate-flip-y {
    animation: flipInY 0.8s ease forwards;
}

.animate-rotate-in {
    animation: rotateIn 0.6s ease forwards;
}

.animate-spin {
    animation: spin 1s linear infinite;
}

.animate-spin-slow {
    animation: spin 3s linear infinite;
}

/* ===================================
   MORPH & BLOB EFFECTS
=================================== */
@keyframes morphBlob {

    0%,
    100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }

    25% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }

    50% {
        border-radius: 50% 60% 30% 60% / 30% 70% 40% 70%;
    }

    75% {
        border-radius: 60% 40% 60% 30% / 60% 40% 60% 40%;
    }
}

@keyframes blobFloat {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    33% {
        transform: translateY(-10px) scale(1.02);
    }

    66% {
        transform: translateY(5px) scale(0.98);
    }
}

.animate-morph {
    animation: morphBlob 8s ease-in-out infinite;
}

.blob-animated {
    animation: morphBlob 8s ease-in-out infinite, blobFloat 6s ease-in-out infinite;
}

/* ===================================
   SHIMMER & SKELETON LOADING
=================================== */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.shimmer {
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.2) 20%,
            rgba(255, 255, 255, 0.5) 60%,
            rgba(255, 255, 255, 0) 100%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite linear;
}

.skeleton {
    background: linear-gradient(90deg,
            #e0e7ef 0%,
            #f0f4f8 50%,
            #e0e7ef 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

/* ===================================
   NEON & GLOWING TEXT EFFECTS
=================================== */
@keyframes neonFlicker {

    0%,
    19%,
    21%,
    23%,
    25%,
    54%,
    56%,
    100% {
        text-shadow:
            0 0 5px var(--osk-yellow),
            0 0 10px var(--osk-yellow),
            0 0 20px var(--osk-yellow),
            0 0 40px var(--osk-yellow);
    }

    20%,
    24%,
    55% {
        text-shadow: none;
    }
}

@keyframes textGlow {

    0%,
    100% {
        text-shadow: 0 0 10px currentColor;
    }

    50% {
        text-shadow: 0 0 20px currentColor, 0 0 30px currentColor;
    }
}

@keyframes colorShift {

    0%,
    100% {
        color: var(--osk-blue);
    }

    50% {
        color: var(--osk-yellow);
    }
}

.text-neon {
    animation: neonFlicker 2s infinite;
}

.text-glow {
    animation: textGlow 2s ease-in-out infinite;
}

.text-color-shift {
    animation: colorShift 3s ease-in-out infinite;
}

/* ===================================
   FLOATING ICON ANIMATIONS
=================================== */
@keyframes iconFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-5px) rotate(2deg);
    }

    75% {
        transform: translateY(3px) rotate(-2deg);
    }
}

@keyframes iconBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes iconPop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.icon-float {
    animation: iconFloat 3s ease-in-out infinite;
}

.icon-bounce {
    animation: iconBounce 1s ease-in-out infinite;
}

.icon-pop:hover {
    animation: iconPop 0.3s ease;
}

/* ===================================
   CARD 3D TILT EFFECT
=================================== */
.card-3d {
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.card-3d:hover {
    transform: perspective(1000px) rotateX(5deg) rotateY(-5deg) translateZ(10px);
}

.card-3d-content {
    transform: translateZ(20px);
}

/* ===================================
   PARALLAX SCROLL EFFECTS
=================================== */
.parallax-slow {
    will-change: transform;
    transition: transform 0.1s linear;
}

.parallax-medium {
    will-change: transform;
    transition: transform 0.1s linear;
}

.parallax-fast {
    will-change: transform;
    transition: transform 0.1s linear;
}

/* ===================================
   BUTTON SPECIAL EFFECTS
=================================== */
@keyframes buttonShine {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

.btn-shine {
    position: relative;
    overflow: hidden;
}

.btn-shine::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent);
    transition: none;
}

.btn-shine:hover::before {
    animation: buttonShine 0.6s ease;
}

/* Button magnetic effect */
.btn-magnetic {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Button press effect */
.btn-press {
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.btn-press:active {
    transform: scale(0.95);
    box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.2);
}

/* ===================================
   BACKGROUND PATTERN ANIMATIONS
=================================== */
@keyframes movePattern {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 100px 100px;
    }
}

@keyframes wavePattern {
    0% {
        transform: translateX(0) translateZ(0) scaleY(1);
    }

    50% {
        transform: translateX(-25%) translateZ(0) scaleY(0.5);
    }

    100% {
        transform: translateX(-50%) translateZ(0) scaleY(1);
    }
}

.pattern-move {
    animation: movePattern 20s linear infinite;
}

/* ===================================
   COUNTER NUMBER ANIMATION
=================================== */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.counter-animate {
    animation: countUp 0.5s ease forwards;
}

/* ===================================
   STAGGERED ANIMATIONS
=================================== */
.stagger-item {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.stagger-item:nth-child(1) {
    animation-delay: 0.1s;
}

.stagger-item:nth-child(2) {
    animation-delay: 0.2s;
}

.stagger-item:nth-child(3) {
    animation-delay: 0.3s;
}

.stagger-item:nth-child(4) {
    animation-delay: 0.4s;
}

.stagger-item:nth-child(5) {
    animation-delay: 0.5s;
}

.stagger-item:nth-child(6) {
    animation-delay: 0.6s;
}

.stagger-item:nth-child(7) {
    animation-delay: 0.7s;
}

.stagger-item:nth-child(8) {
    animation-delay: 0.8s;
}

/* ===================================
   ATTENTION GRABBERS
=================================== */
@keyframes rubberBand {
    0% {
        transform: scale(1);
    }

    30% {
        transform: scaleX(1.25) scaleY(0.75);
    }

    40% {
        transform: scaleX(0.75) scaleY(1.25);
    }

    50% {
        transform: scaleX(1.15) scaleY(0.85);
    }

    65% {
        transform: scaleX(0.95) scaleY(1.05);
    }

    75% {
        transform: scaleX(1.05) scaleY(0.95);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes tada {
    0% {
        transform: scale(1) rotate(0);
    }

    10%,
    20% {
        transform: scale(0.9) rotate(-3deg);
    }

    30%,
    50%,
    70%,
    90% {
        transform: scale(1.1) rotate(3deg);
    }

    40%,
    60%,
    80% {
        transform: scale(1.1) rotate(-3deg);
    }

    100% {
        transform: scale(1) rotate(0);
    }
}

@keyframes swing {
    20% {
        transform: rotate(15deg);
    }

    40% {
        transform: rotate(-10deg);
    }

    60% {
        transform: rotate(5deg);
    }

    80% {
        transform: rotate(-5deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

.animate-rubber:hover {
    animation: rubberBand 0.8s ease;
}

.animate-tada:hover {
    animation: tada 1s ease;
}

.animate-swing:hover {
    transform-origin: top center;
    animation: swing 0.8s ease;
}

/* ===================================
   SCROLL-TRIGGERED ANIMATIONS
=================================== */
.scroll-fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-fade-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-fade-left.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.scroll-fade-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-fade-right.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.scroll-zoom-in {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-zoom-in.is-visible {
    opacity: 1;
    transform: scale(1);
}

/* ===================================
   DECORATIVE FLOATING ELEMENTS
=================================== */
@keyframes floatUpDown {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

@keyframes floatAround {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(10px, -10px) rotate(5deg);
    }

    50% {
        transform: translate(0, -20px) rotate(0deg);
    }

    75% {
        transform: translate(-10px, -10px) rotate(-5deg);
    }

    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

@keyframes orbitSpin {
    from {
        transform: rotate(0deg) translateX(50px) rotate(0deg);
    }

    to {
        transform: rotate(360deg) translateX(50px) rotate(-360deg);
    }
}

.float-element {
    animation: floatUpDown 4s ease-in-out infinite;
}

.float-element--slow {
    animation: floatUpDown 6s ease-in-out infinite;
}

.float-element--fast {
    animation: floatUpDown 2s ease-in-out infinite;
}

.float-around {
    animation: floatAround 8s ease-in-out infinite;
}

.orbit {
    animation: orbitSpin 10s linear infinite;
}

/* ===================================
   BORDER ANIMATIONS
=================================== */
@keyframes borderDraw {
    0% {
        stroke-dashoffset: 1000;
    }

    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes borderPulse {

    0%,
    100% {
        border-color: var(--osk-blue);
    }

    50% {
        border-color: var(--osk-yellow);
    }
}

.border-pulse {
    animation: borderPulse 2s ease-in-out infinite;
}

/* Animated border gradient */
.border-gradient-animated {
    position: relative;
    background: linear-gradient(var(--color-white), var(--color-white)) padding-box,
        linear-gradient(90deg, var(--osk-blue), var(--osk-yellow), var(--osk-blue)) border-box;
    background-size: 100% 100%, 200% 100%;
    border: 2px solid transparent;
    animation: gradientShift 3s ease infinite;
}

/* ===================================
   TOOLTIP ANIMATIONS
=================================== */
@keyframes tooltipFade {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tooltip-animated {
    animation: tooltipFade 0.2s ease forwards;
}

/* ===================================
   PROGRESS BAR ANIMATIONS
=================================== */
@keyframes progressFill {
    from {
        width: 0;
    }
}

@keyframes progressStripe {
    from {
        background-position: 40px 0;
    }

    to {
        background-position: 0 0;
    }
}

.progress-animated {
    animation: progressFill 1s ease forwards;
}

.progress-striped {
    background-image: linear-gradient(45deg,
            rgba(255, 255, 255, 0.15) 25%,
            transparent 25%,
            transparent 50%,
            rgba(255, 255, 255, 0.15) 50%,
            rgba(255, 255, 255, 0.15) 75%,
            transparent 75%,
            transparent);
    background-size: 40px 40px;
    animation: progressStripe 1s linear infinite;
}

/* ===================================
   NOTIFICATION BADGE PULSE
=================================== */
@keyframes badgePulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

/* ===================================
   CTA BANNER FLOATING PARTICLES
=================================== */
.cta-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.cta-particle {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
}

/* Yellow particles */
.cta-particle--yellow {
    background: var(--osk-yellow);
    box-shadow: 0 0 10px var(--osk-yellow), 0 0 20px rgba(249, 204, 24, 0.5);
}

/* White particles */
.cta-particle--white {
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

/* Particle sizes */
.cta-particle--sm {
    width: 4px;
    height: 4px;
}

.cta-particle--md {
    width: 6px;
    height: 6px;
}

.cta-particle--lg {
    width: 8px;
    height: 8px;
}

/* Float animation */
@keyframes ctaParticleFloat {
    0% {
        opacity: 0;
        transform: translateY(0) translateX(0) scale(0);
    }

    10% {
        opacity: 0.7;
        transform: scale(1);
    }

    90% {
        opacity: 0.5;
    }

    100% {
        opacity: 0;
        transform: translateY(-150px) translateX(30px) scale(0.3);
    }
}

/* Individual particle positions and delays */
.cta-particle:nth-child(1) {
    left: 5%;
    bottom: 10%;
    animation: ctaParticleFloat 6s ease-in-out infinite;
    animation-delay: 0s;
}

.cta-particle:nth-child(2) {
    left: 15%;
    bottom: 20%;
    animation: ctaParticleFloat 8s ease-in-out infinite;
    animation-delay: 1s;
}

.cta-particle:nth-child(3) {
    left: 25%;
    bottom: 5%;
    animation: ctaParticleFloat 7s ease-in-out infinite;
    animation-delay: 2s;
}

.cta-particle:nth-child(4) {
    left: 35%;
    bottom: 15%;
    animation: ctaParticleFloat 9s ease-in-out infinite;
    animation-delay: 0.5s;
}

.cta-particle:nth-child(5) {
    left: 45%;
    bottom: 25%;
    animation: ctaParticleFloat 6s ease-in-out infinite;
    animation-delay: 3s;
}

.cta-particle:nth-child(6) {
    left: 55%;
    bottom: 8%;
    animation: ctaParticleFloat 8s ease-in-out infinite;
    animation-delay: 1.5s;
}

.cta-particle:nth-child(7) {
    left: 65%;
    bottom: 18%;
    animation: ctaParticleFloat 7s ease-in-out infinite;
    animation-delay: 2.5s;
}

.cta-particle:nth-child(8) {
    left: 75%;
    bottom: 12%;
    animation: ctaParticleFloat 9s ease-in-out infinite;
    animation-delay: 0.8s;
}

.cta-particle:nth-child(9) {
    left: 85%;
    bottom: 22%;
    animation: ctaParticleFloat 6s ease-in-out infinite;
    animation-delay: 3.5s;
}

.cta-particle:nth-child(10) {
    left: 92%;
    bottom: 6%;
    animation: ctaParticleFloat 8s ease-in-out infinite;
    animation-delay: 1.2s;
}

.badge-pulse {
    animation: badgePulse 2s infinite;
}

/* ===================================
   TYPING CURSOR BLINK
=================================== */
@keyframes cursorBlink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.cursor-blink::after {
    content: '|';
    animation: cursorBlink 1s step-end infinite;
}

/* ===================================
   REDUCED MOTION SUPPORT
=================================== */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}