/* LiraCore Advanced Animations with Neon Effects */

/* Animation Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

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

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes neonPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 245, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(0, 245, 255, 0.6), 0 0 40px rgba(0, 245, 255, 0.3);
    }
}

@keyframes neonGlow {
    0%, 100% {
        text-shadow: 0 0 5px currentColor;
    }
    50% {
        text-shadow: 0 0 15px currentColor, 0 0 25px currentColor;
    }
}

@keyframes gradient {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-2px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(2px);
    }
}

@keyframes rotateIn {
    from {
        transform-origin: center;
        transform: rotate3d(0, 0, 1, -200deg);
        opacity: 0;
    }
    to {
        transform-origin: center;
        transform: translate3d(0, 0, 0);
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale3d(0.3, 0.3, 0.3);
    }
    50% {
        opacity: 1;
    }
}

@keyframes flipInX {
    from {
        transform: perspective(400px) rotate3d(1, 0, 0, 90deg);
        animation-timing-function: ease-in;
        opacity: 0;
    }
    40% {
        transform: perspective(400px) rotate3d(1, 0, 0, -20deg);
        animation-timing-function: ease-in;
    }
    60% {
        transform: perspective(400px) rotate3d(1, 0, 0, 10deg);
        opacity: 1;
    }
    80% {
        transform: perspective(400px) rotate3d(1, 0, 0, -5deg);
    }
    to {
        transform: perspective(400px);
    }
}

@keyframes flipInY {
    from {
        transform: perspective(400px) rotate3d(0, 1, 0, 90deg);
        animation-timing-function: ease-in;
        opacity: 0;
    }
    40% {
        transform: perspective(400px) rotate3d(0, 1, 0, -20deg);
        animation-timing-function: ease-in;
    }
    60% {
        transform: perspective(400px) rotate3d(0, 1, 0, 10deg);
        opacity: 1;
    }
    80% {
        transform: perspective(400px) rotate3d(0, 1, 0, -5deg);
    }
    to {
        transform: perspective(400px);
    }
}

@keyframes slideInLeft {
    from {
        transform: translate3d(-100%, 0, 0);
        visibility: visible;
    }
    to {
        transform: translate3d(0, 0, 0);
    }
}

@keyframes slideInRight {
    from {
        transform: translate3d(100%, 0, 0);
        visibility: visible;
    }
    to {
        transform: translate3d(0, 0, 0);
    }
}

@keyframes slideInUp {
    from {
        transform: translate3d(0, 100%, 0);
        visibility: visible;
    }
    to {
        transform: translate3d(0, 0, 0);
    }
}

@keyframes slideInDown {
    from {
        transform: translate3d(0, -100%, 0);
        visibility: visible;
    }
    to {
        transform: translate3d(0, 0, 0);
    }
}

@keyframes heartBeat {
    0% {
        transform: scale(1);
    }
    14% {
        transform: scale(1.3);
    }
    28% {
        transform: scale(1);
    }
    42% {
        transform: scale(1.3);
    }
    70% {
        transform: scale(1);
    }
}

@keyframes wobble {
    from {
        transform: translate3d(0, 0, 0);
    }
    15% {
        transform: translate3d(-25%, 0, 0) rotate3d(0, 0, 1, -5deg);
    }
    30% {
        transform: translate3d(20%, 0, 0) rotate3d(0, 0, 1, 3deg);
    }
    45% {
        transform: translate3d(-15%, 0, 0) rotate3d(0, 0, 1, -3deg);
    }
    60% {
        transform: translate3d(10%, 0, 0) rotate3d(0, 0, 1, 2deg);
    }
    75% {
        transform: translate3d(-5%, 0, 0) rotate3d(0, 0, 1, -1deg);
    }
    to {
        transform: translate3d(0, 0, 0);
    }
}

@keyframes jello {
    from, 11.1%, to {
        transform: translate3d(0, 0, 0);
    }
    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);
    }
}

@keyframes rubberBand {
    from {
        transform: scale3d(1, 1, 1);
    }
    30% {
        transform: scale3d(1.25, 0.75, 1);
    }
    40% {
        transform: scale3d(0.75, 1.25, 1);
    }
    50% {
        transform: scale3d(1.15, 0.85, 1);
    }
    65% {
        transform: scale3d(0.95, 1.05, 1);
    }
    75% {
        transform: scale3d(1.05, 0.95, 1);
    }
    to {
        transform: scale3d(1, 1, 1);
    }
}

/* Neon-specific Animations */
@keyframes neonBorder {
    0%, 100% {
        border-color: rgba(0, 245, 255, 0.2);
        box-shadow: 0 0 10px rgba(0, 245, 255, 0.1);
    }
    50% {
        border-color: rgba(0, 245, 255, 0.6);
        box-shadow: 0 0 20px rgba(0, 245, 255, 0.3), 0 0 30px rgba(0, 245, 255, 0.1);
    }
}

@keyframes neonFloat {
    0% {
        transform: translateY(100vh) translateX(0px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(100px) rotate(180deg);
        opacity: 0;
    }
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) translateX(-50px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-100px) translateX(50px) rotate(360deg);
        opacity: 0;
    }
}

@keyframes glitchAnimation {
    0% {
        transform: translateX(2px) translateY(2px);
        color: var(--neon-pink);
        text-shadow: 0 0 5px var(--neon-pink);
    }
    50% {
        transform: translateX(-2px) translateY(-2px);
        color: var(--neon-blue);
        text-shadow: 0 0 5px var(--neon-blue);
    }
    100% {
        transform: translateX(0) translateY(0);
        color: var(--neon-purple);
        text-shadow: 0 0 5px var(--neon-purple);
    }
}

/* Typing Animations */
@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blinkCursor {
    0%, 50% {
        border-color: transparent;
    }
    51%, 100% {
        border-color: var(--bg-primary);
    }
}

/* Morphing Backgrounds */
@keyframes morphing {
    0%, 100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }
}

@keyframes breathe {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

/* Counter Animations */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes numberRoll {
    0% {
        transform: translateY(100%);
    }
    100% {
        transform: translateY(0);
    }
}

/* Button Ripple */
@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

/* Animation Classes */
.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

.animate-fade-in-down {
    animation: fadeInDown 0.6s ease-out forwards;
}

.animate-fade-in-left {
    animation: fadeInLeft 0.6s ease-out forwards;
}

.animate-fade-in-right {
    animation: fadeInRight 0.6s ease-out forwards;
}

.animate-scale-in {
    animation: scaleIn 0.5s ease-out forwards;
}

.animate-slide-up {
    animation: slideUp 0.4s ease-out forwards;
}

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

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

.animate-neon-pulse {
    animation: neonPulse 2s ease-in-out infinite;
}

.animate-neon-glow {
    animation: neonGlow 3s ease-in-out infinite;
}

.animate-gradient {
    background-size: 400% 400%;
    animation: gradient 3s ease infinite;
}

.animate-breathe {
    animation: breathe 4s ease-in-out infinite;
}

.animate-bounce {
    animation: bounce 2s ease-in-out infinite;
}

.animate-wobble {
    animation: wobble 1s ease-in-out;
}

.animate-shake {
    animation: shake 0.82s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

.animate-jello {
    animation: jello 1s;
}

.animate-rubber-band {
    animation: rubberBand 1s;
}

.animate-heart-beat {
    animation: heartBeat 1.3s ease-in-out infinite;
}

.animate-flip-in-x {
    animation: flipInX 0.75s ease-in-out forwards;
}

.animate-flip-in-y {
    animation: flipInY 0.75s ease-in-out forwards;
}

.animate-zoom-in {
    animation: zoomIn 0.6s ease-out forwards;
}

.animate-rotate-in {
    animation: rotateIn 0.6s ease-out forwards;
}

.animate-slide-in-left {
    animation: slideInLeft 0.6s ease-out forwards;
}

.animate-slide-in-right {
    animation: slideInRight 0.6s ease-out forwards;
}

.animate-slide-in-up {
    animation: slideInUp 0.6s ease-out forwards;
}

.animate-slide-in-down {
    animation: slideInDown 0.6s ease-out forwards;
}

.animate-neon-border {
    animation: neonBorder 2s ease-in-out infinite;
}

.animate-glitch {
    animation: glitchAnimation 0.2s ease-in-out;
}

/* Delay Classes */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }
.delay-700 { animation-delay: 0.7s; }
.delay-800 { animation-delay: 0.8s; }
.delay-900 { animation-delay: 0.9s; }
.delay-1000 { animation-delay: 1s; }
.delay-1500 { animation-delay: 1.5s; }
.delay-2000 { animation-delay: 2s; }

/* Duration Classes */
.duration-100 { animation-duration: 0.1s; }
.duration-200 { animation-duration: 0.2s; }
.duration-300 { animation-duration: 0.3s; }
.duration-500 { animation-duration: 0.5s; }
.duration-700 { animation-duration: 0.7s; }
.duration-1000 { animation-duration: 1s; }
.duration-1500 { animation-duration: 1.5s; }
.duration-2000 { animation-duration: 2s; }
.duration-3000 { animation-duration: 3s; }

/* Intersection Observer Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

.rotate-in {
    opacity: 0;
    transform: rotate(-180deg) scale(0.8);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.rotate-in.visible {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* Staggered Animations */
.stagger-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.stagger-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.stagger-container .stagger-item:nth-child(1) { transition-delay: 0.1s; }
.stagger-container .stagger-item:nth-child(2) { transition-delay: 0.2s; }
.stagger-container .stagger-item:nth-child(3) { transition-delay: 0.3s; }
.stagger-container .stagger-item:nth-child(4) { transition-delay: 0.4s; }
.stagger-container .stagger-item:nth-child(5) { transition-delay: 0.5s; }
.stagger-container .stagger-item:nth-child(6) { transition-delay: 0.6s; }

/* Service Cards Enhanced Animations */
.service-card {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.service-card:nth-child(1) { transition-delay: 0.1s; }
.service-card:nth-child(2) { transition-delay: 0.2s; }
.service-card:nth-child(3) { transition-delay: 0.3s; }
.service-card:nth-child(4) { transition-delay: 0.4s; }
.service-card:nth-child(5) { transition-delay: 0.5s; }
.service-card:nth-child(6) { transition-delay: 0.6s; }

/* Portfolio Items Enhanced Animations */
.portfolio-card {
    opacity: 0;
    transform: translateY(40px) rotateX(15deg);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.portfolio-card.visible {
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
}

.portfolio-card:nth-child(1) { transition-delay: 0.1s; }
.portfolio-card:nth-child(2) { transition-delay: 0.2s; }
.portfolio-card:nth-child(3) { transition-delay: 0.3s; }
.portfolio-card:nth-child(4) { transition-delay: 0.4s; }
.portfolio-card:nth-child(5) { transition-delay: 0.5s; }
.portfolio-card:nth-child(6) { transition-delay: 0.6s; }

/* AI Feature Cards Animations */
.ai-feature-card {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    transition: opacity 0.8s cubic-bezier(0.34, 1.56, 0.64, 1),
    transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ai-feature-card.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.ai-feature-card:nth-child(1) { transition-delay: 0.1s; }
.ai-feature-card:nth-child(2) { transition-delay: 0.2s; }
.ai-feature-card:nth-child(3) { transition-delay: 0.3s; }
.ai-feature-card:nth-child(4) { transition-delay: 0.4s; }
.ai-feature-card:nth-child(5) { transition-delay: 0.5s; }
.ai-feature-card:nth-child(6) { transition-delay: 0.6s; }

/* Tech Items Animations */
.tech-item {
    opacity: 0;
    transform: scale(0) rotate(-90deg);
    transition: opacity 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55),
    transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.tech-item.visible {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.tech-item:nth-child(1) { transition-delay: 0.1s; }
.tech-item:nth-child(2) { transition-delay: 0.2s; }
.tech-item:nth-child(3) { transition-delay: 0.3s; }
.tech-item:nth-child(4) { transition-delay: 0.4s; }
.tech-item:nth-child(4) { transition-delay: 0.5s; }

/* Feature Items Animations */
.feature {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.feature.visible {
    opacity: 1;
    transform: translateX(0);
}

.feature:nth-child(1) { transition-delay: 0.1s; }
.feature:nth-child(2) { transition-delay: 0.2s; }
.feature:nth-child(3) { transition-delay: 0.3s; }

/* Contact Items Animations */
.contact-item {
    opacity: 0;
    transform: translateX(-30px) rotateY(-15deg);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.contact-item.visible {
    opacity: 1;
    transform: translateX(0) rotateY(0deg);
}

.contact-item:nth-child(1) { transition-delay: 0.1s; }
.contact-item:nth-child(2) { transition-delay: 0.2s; }
.contact-item:nth-child(3) { transition-delay: 0.3s; }
.contact-item:nth-child(4) { transition-delay: 0.4s; }

/* Stat Cards Animations */
.stat-card, .metric {
    opacity: 0;
    transform: scale(0.7) rotateZ(-10deg);
    transition: opacity 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.stat-card.visible, .metric.visible {
    opacity: 1;
    transform: scale(1) rotateZ(0deg);
}

.stat-card:nth-child(1), .metric:nth-child(1) { transition-delay: 0.1s; }
.stat-card:nth-child(2), .metric:nth-child(2) { transition-delay: 0.2s; }
.stat-card:nth-child(3), .metric:nth-child(3) { transition-delay: 0.3s; }

/* Hero Content Animations */
.hero-content h1 {
    opacity: 1;
    transform: translateY(0);
}

.hero-content .hero-subtitle {
    opacity: 1;
    transform: translateY(0);
}

.hero-content .hero-actions {
    opacity: 1;
    transform: translateY(0);
}

.hero-content .hero-metrics {
    opacity: 1;
    transform: translateY(0);
}

.hero-visual {
    opacity: 1;
    transform: translateX(0) scale(1);
}

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

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

.hover-scale {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-scale:hover {
    transform: scale(1.05);
}

.hover-rotate {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-rotate:hover {
    transform: rotate(5deg);
}

.hover-glow {
    transition: box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-glow:hover {
    box-shadow: 0 0 30px rgba(0, 245, 255, 0.3);
}

.hover-neon-pulse:hover {
    animation: neonPulse 0.5s ease-in-out;
}

/* Button Enhanced Animations */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::after {
    width: 300px;
    height: 300px;
}

.btn:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
}

/* Loading Animations */
.loading-dots::after {
    content: '';
    animation: loadingDots 1.4s infinite both;
}

@keyframes loadingDots {
    0%, 80%, 100% {
        box-shadow: 0 2.5em 0 -1.3em;
    }
    40% {
        box-shadow: 0 2.5em 0 0;
    }
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0, 245, 255, 0.1);
    border-left-color: var(--neon-cyan);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Particle System Enhanced */
.particle {
    position: absolute;
    pointer-events: none;
    border-radius: 50%;
    opacity: 0.7;
}

.particle-1 {
    width: 4px;
    height: 4px;
    background: var(--neon-cyan);
    box-shadow: 0 0 10px var(--neon-cyan);
    animation: particleFloat 20s linear infinite;
}

.particle-2 {
    width: 6px;
    height: 6px;
    background: var(--neon-pink);
    box-shadow: 0 0 10px var(--neon-pink);
    animation: neonFloat 25s linear infinite;
}

.particle-3 {
    width: 3px;
    height: 3px;
    background: var(--neon-purple);
    box-shadow: 0 0 10px var(--neon-purple);
    animation: particleFloat 15s linear infinite;
}

/* Scroll Reveal Animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.scroll-reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Modal Enhanced Animations */
.modal {
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal.active .modal-content {
    animation: modalSlideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-backdrop {
    animation: fadeIn 0.3s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Notification Enhanced Animations */
.notification {
    transform: translateX(calc(100% + 2rem));
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.notification.show {
    transform: translateX(0);
}

.notification-enter {
    animation: notificationSlideIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.notification-exit {
    animation: notificationSlideOut 0.3s ease-in forwards;
}

@keyframes notificationSlideIn {
    from {
        transform: translateX(calc(100% + 2rem)) scale(0.8);
        opacity: 0;
    }
    to {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

@keyframes notificationSlideOut {
    from {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
    to {
        transform: translateX(calc(100% + 2rem)) scale(0.8);
        opacity: 0;
    }
}

/* Form Enhanced Animations */
.form-group {
    position: relative;
}

.form-focus-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background: var(--primary-gradient);
    width: 0;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-group input:focus + .form-focus-indicator,
.form-group select:focus + .form-focus-indicator,
.form-group textarea:focus + .form-focus-indicator {
    width: 100%;
}

.form-error {
    animation: shake 0.5s ease-in-out,
    neonPulse 0.3s ease-in-out 0.5s;
}

.form-success {
    animation: pulse 0.6s ease-in-out,
    neonGlow 0.8s ease-in-out;
}

/* Page Transition Animations */
.page-enter {
    opacity: 0;
    transform: translateY(20px);
}

.page-enter-active {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.page-exit {
    opacity: 1;
    transform: translateY(0);
}

.page-exit-active {
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease-in, transform 0.3s ease-in;
}

/* Portfolio Filter Animation */
.portfolio-card[style*="display: none"] {
    animation: fadeOut 0.3s ease-out forwards;
}

.portfolio-card[style*="display: block"] {
    animation: fadeInUp 0.5s ease-out forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* Filter Button Animations */
.filter-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 245, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.filter-btn:hover::before {
    left: 100%;
}

.filter-btn.active {
    transform: scale(1.05);
    background: rgba(0, 245, 255, 0.1);
}

/* Code Window Typing Animation */

.code-line:nth-child(1) { animation-delay: 0s; }
.code-line:nth-child(2) { animation-delay: 0.5s; }
.code-line:nth-child(3) { animation-delay: 1s; }
.code-line:nth-child(4) { animation-delay: 1.5s; }
.code-line:nth-child(5) { animation-delay: 2s; }
.code-line:nth-child(6) { animation-delay: 2.5s; }
.code-line:nth-child(7) { animation-delay: 3s; }
.code-line:nth-child(8) { animation-delay: 3.5s; }

/* Advanced Neon Effects */
.neon-text-glow {
    color: var(--neon-cyan);
    text-shadow:
            0 0 5px currentColor,
            0 0 10px currentColor,
            0 0 15px currentColor,
            0 0 20px currentColor;
    animation: neonTextPulse 2s ease-in-out infinite alternate;
}

@keyframes neonTextPulse {
    from {
        text-shadow:
                0 0 5px currentColor,
                0 0 10px currentColor,
                0 0 15px currentColor,
                0 0 20px currentColor;
    }
    to {
        text-shadow:
                0 0 2px currentColor,
                0 0 5px currentColor,
                0 0 8px currentColor,
                0 0 12px currentColor;
    }
}

/* Service Icon Rotation on Hover */
.service-icon {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(360deg);
    animation: neonPulse 0.6s ease-in-out;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .animate-fade-in-up,
    .animate-fade-in-down,
    .animate-fade-in-left,.mobile-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: linear-gradient(135deg, rgba(15, 20, 25, 0.98) 0%, rgba(26, 35, 50, 0.98) 100%);
        backdrop-filter: blur(20px);
        z-index: var(--z-modal);
        opacity: 0;
        visibility: hidden;
        transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        overflow: hidden;
    }

    .mobile-menu.active {
        opacity: 1;
        visibility: visible;
    }

    .mobile-menu-content {
        position: relative;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: var(--spacing-2xl);
        overflow: hidden;
    }

    /* Nav Links - NUR vertikale Animation */
    .mobile-nav-link {
        display: block;
        color: white;
        text-decoration: none;
        font-size: clamp(2rem, 5vw, 3rem);
        font-weight: 700;
        margin-bottom: var(--spacing-lg);
        position: relative;
        overflow: hidden;
        padding: var(--spacing-md) var(--spacing-lg);
        border-radius: var(--radius-lg);

    }

    .mobile-menu.active .mobile-nav-link {
        animation: slideInMobileFixed 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    }

    /* Korrigierte Animation - NUR vertikal */
    @keyframes slideInMobileFixed {
        from {
            opacity: 0;
            transform: translateY(50px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Partikel ohne horizontale Bewegung */
    .mobile-particle {
        position: absolute;
        width: 4px;
        height: 4px;
        background: var(--neon-cyan);
        border-radius: 50%;
        opacity: 0.6;
        animation: mobileParticleFloatFixed 8s linear infinite;
    }

    @keyframes mobileParticleFloatFixed {
        0% {
            transform: translateY(100vh) rotate(0deg);
            opacity: 0;
        }
        10% {
            opacity: 0.6;
        }
        90% {
            opacity: 0.6;
        }
        100% {
            transform: translateY(-100px) rotate(180deg);
            opacity: 0;
        }
    }

    .mobile-nav-link::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 0;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(0, 245, 255, 0.2), transparent);
        transition: width 0.5s ease;
    }

    .mobile-nav-link:hover::before {
        width: 100%;
    }

    .animate-fade-in-right {
        animation-duration: 0.4s;
    }

    .service-card,
    .portfolio-card,
    .ai-feature-card,
    .feature,
    .contact-item {
        transition-duration: 0.6s;
    }

    .hover-lift:hover,
    .hover-scale:hover,
    .hover-rotate:hover {
        transform: none;
    }

    .hero-visual {
        animation: fadeInUp 0.8s ease-out 0.5s forwards;
    }

    .code-line {
        animation: none;
        border-right: none;
    }

    .neon-text-glow {
        animation: none;
        text-shadow: 0 0 5px currentColor;
    }
}

/* 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;
        scroll-behavior: auto !important;
    }

    .particle,
    .neon-particles {
        display: none;
    }

    .animate-float,
    .animate-pulse,
    .animate-neon-pulse,
    .animate-neon-glow,
    .animate-gradient,
    .animate-breathe,
    .animate-bounce {
        animation: none !important;
    }

    .hover-lift:hover,
    .hover-scale:hover,
    .hover-rotate:hover,
    .hover-glow:hover,
    .hover-neon-pulse:hover {
        transform: none;
        box-shadow: none;
    }

    .glitch-effect {
        animation: none !important;
    }

    .logo-container {
        animation: none !important;
    }

    .neon-text-glow {
        animation: none !important;
        text-shadow: 0 0 5px currentColor;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .animate-neon-pulse,
    .animate-neon-glow,
    .animate-gradient {
        animation: none;
    }

    .particle,
    .neon-particles {
        display: none;
    }

    .btn::after {
        display: none;
    }

    .neon-glow,
    .neon-border,
    .neon-text,
    .neon-text-glow {
        box-shadow: none;
        text-shadow: none;
        border-color: currentColor;
    }
}

/* Print Styles */
@media print {
    .animate-float,
    .animate-pulse,
    .animate-neon-pulse,
    .animate-neon-glow,
    .animate-gradient,
    .animate-breathe,
    .animate-bounce,
    .particle,
    .neon-particles {
        display: none !important;
        animation: none !important;
    }

    .neon-glow,
    .neon-border,
    .neon-text,
    .neon-text-glow {
        box-shadow: none !important;
        text-shadow: none !important;
        border-color: currentColor !important;
    }
}

/* Performance Optimizations */
.gpu-accelerated {
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
}

.optimize-animations {
    contain: layout style paint;
}

/* Custom Scrollbar Animation */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-gradient);
    border-radius: var(--radius-full);
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-gradient-hover);
    box-shadow: 0 0 10px rgba(0, 245, 255, 0.3);
}

/* Selection Animation */
::selection {
    background: rgba(0, 245, 255, 0.2);
    color: var(--text-primary);
    text-shadow: 0 0 5px rgba(0, 245, 255, 0.5);
}

::-moz-selection {
    background: rgba(0, 245, 255, 0.2);
    color: var(--text-primary);
    text-shadow: 0 0 5px rgba(0, 245, 255, 0.5);
}