/* Version: 1747051520 */
/* ========================
   Animation Styles
======================== */

/* Basic Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

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

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

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

@keyframes zoomOut {
    from {
        transform: scale(1.1);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Advanced Animations */
@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(74, 108, 247, 0.3);
    }
    50% {
        box-shadow: 0 0 25px rgba(74, 108, 247, 0.7), 0 0 15px rgba(130, 140, 248, 0.5);
    }
}

@keyframes textGlow {
    0%, 100% {
        text-shadow: 0 0 5px rgba(74, 108, 247, 0.3);
    }
    50% {
        text-shadow: 0 0 15px rgba(74, 108, 247, 0.7), 0 0 25px rgba(130, 140, 248, 0.5);
    }
}

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

/* Мобильная версия пульса - очень спокойная */
@keyframes pulse-mobile-calm {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.01);
    }
}

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

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

@keyframes borderGlow {
    0%, 100% {
        border-color: rgba(74, 108, 247, 0.5);
    }
    50% {
        border-color: rgba(130, 140, 248, 0.8);
    }
}

/* Particle Animations */
@keyframes particleFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(20px, -20px) scale(1.05);
    }
    50% {
        transform: translate(0, -40px) scale(1);
    }
    75% {
        transform: translate(-20px, -20px) scale(0.95);
    }
}

@keyframes orbFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    25% {
        transform: translate(-30px, 20px) scale(1.1);
        opacity: 0.4;
    }
    50% {
        transform: translate(0, 40px) scale(1.2);
        opacity: 0.5;
    }
    75% {
        transform: translate(30px, 20px) scale(1.1);
        opacity: 0.4;
    }
}

/* Floating Animation for Keyword Elements */
@keyframes float {
    0% {
        transform: translate(var(--x-start, 0), var(--y-start, 0)) rotate(0deg);
    }
    25% {
        transform: translate(var(--x-mid1, 3vw), var(--y-mid1, -5vh)) rotate(1deg);
    }
    50% {
        transform: translate(var(--x-mid2, 0), var(--y-mid2, -8vh)) rotate(0deg);
    }
    75% {
        transform: translate(var(--x-mid3, -3vw), var(--y-mid3, -5vh)) rotate(-1deg);
    }
    100% {
        transform: translate(var(--x-start, 0), var(--y-start, 0)) rotate(0deg);
    }
}

/* Floating Animation with Rotation */
@keyframes floatRotate {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-10px) rotate(3deg);
    }
    50% {
        transform: translateY(-15px) rotate(0deg);
    }
    75% {
        transform: translateY(-10px) rotate(-3deg);
    }
    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

/* 3D Tilt Animation */
@keyframes tilt {
    0%, 100% {
        transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
    }
    25% {
        transform: perspective(1000px) rotateY(5deg) rotateX(-2deg);
    }
    50% {
        transform: perspective(1000px) rotateY(0deg) rotateX(5deg);
    }
    75% {
        transform: perspective(1000px) rotateY(-5deg) rotateX(-2deg);
    }
}

/* Bounce Animation */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-30px);
    }
    60% {
        transform: translateY(-15px);
    }
}

/* Shimmer Effect */
@keyframes shimmer {
    0% {
        background-position: -100% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

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


/* Button Gradient Animation */
@keyframes buttonGradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Gradient Text Animation */
@keyframes gradientText {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* SVG Path Animation */
@keyframes drawPath {
    0% {
        stroke-dashoffset: 100%;
    }
    100% {
        stroke-dashoffset: 0;
    }
}

/* Blinking Animation */
@keyframes blink {
    0%, 49% {
        opacity: 1;
    }
    50%, 100% {
        opacity: 0;
    }
}

/* Staggered Reveal Animation */
@keyframes staggeredReveal {
    0% {
        transform: translateY(20px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Shadow Animation */
@keyframes shadowPulse {
    0%, 100% {
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
    50% {
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    }
}

/* Card Hover Animation */
@keyframes cardHover {
    0% {
        transform: translateY(0) scale(1);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
    100% {
        transform: translateY(-5px) scale(1);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    }
}

/* Blur In Animation */
@keyframes blurIn {
    0% {
        filter: blur(10px);
        opacity: 0;
    }
    100% {
        filter: blur(0);
        opacity: 1;
    }
}

/* Accordion Animation */
@keyframes accordionOpen {
    from {
        max-height: 0;
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        max-height: 500px;
        opacity: 1;
        transform: translateY(0);
    }
}

/* Notification Animation */
@keyframes notificationSlideIn {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }
    10% {
        transform: translateX(0);
        opacity: 1;
    }
    90% {
        transform: translateX(0);
        opacity: 1;
    }
    100% {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Matrix Elements */
.matrix-particle {
    position: absolute;
    border-radius: 50%;
    background-color: #ffffff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.8), 0 0 25px rgba(74, 108, 247, 0.5);
    animation: particleFloat 20s infinite ease-in-out;
    opacity: 0.7;
    transition: transform 0.3s ease-out;
    pointer-events: none;
}

.matrix-orb {
    position: absolute;
    border-radius: 50%;
    animation: orbFloat 30s infinite ease-in-out;
    filter: blur(40px);
    pointer-events: none;
    transition: transform 0.5s ease-out;
}

.matrix-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0,0,0,0) 0%, rgba(11,17,33,0.8) 100%);
    z-index: 1;
    pointer-events: none;
}

/* Floating Element Animation */
.floating-element {
    position: absolute;
    padding: 12px 24px;
    background-color: rgba(11, 17, 33, 0.6);
    color: white;
    border-radius: 50px;
    font-size: 18px;
    box-shadow: 0 0 30px rgba(74, 108, 247, 0.3);
    animation: float 8s infinite ease-in-out;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(74, 108, 247, 0.3);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    transition: transform 0.3s ease-out;
    z-index: 2;
    overflow: hidden;
}

.floating-element::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.2) 50%, 
        rgba(255, 255, 255, 0) 100%
    );
    animation: shimmer 4s infinite;
    pointer-events: none;
}

/* Typing Animation */
.typing-text {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: 0.15em solid var(--accent-color);
    width: 0;
    animation: 
        typing 3.5s steps(40, end) forwards,
        blink 1s step-end infinite;
}

.typing-cursor {
    animation: 1s step-end 0s infinite normal none running blink;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 1s ease forwards;
    will-change: opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.slide-up {
    opacity: 0;
    transform: translateY(50px);
}

.slide-up.animate {
    animation: slideUp 0.8s ease forwards;
    will-change: opacity, transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.slide-down {
    opacity: 0;
    transform: translateY(-50px);
}

.slide-down.animate {
    animation: slideDown 0.8s ease forwards;
    will-change: opacity, transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.slide-left {
    opacity: 0;
    transform: translateX(50px);
}

.slide-left.animate {
    animation: slideLeft 0.8s ease forwards;
    will-change: opacity, transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.slide-right {
    opacity: 0;
    transform: translateX(-50px);
}

.slide-right.animate {
    animation: slideRight 0.8s ease forwards;
    will-change: opacity, transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.zoom-in {
    opacity: 0;
    transform: scale(0.9);
}

.zoom-in.animate {
    animation: zoomIn 0.8s ease forwards;
    will-change: opacity, transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.zoom-out {
    opacity: 0;
    transform: scale(1.1);
}

.zoom-out.animate {
    animation: zoomOut 0.8s ease forwards;
    will-change: opacity, transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.blur-in {
    opacity: 0;
    filter: blur(10px);
}

.blur-in.animate {
    animation: blurIn 1s ease forwards;
    will-change: opacity, filter;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.pulse {
    animation: pulse 2s infinite ease-in-out;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

/* Спокойная анимация для мобильных устройств */
@media (max-width: 768px) {
    .pulse {
        animation: pulse-mobile-calm 8s infinite ease-in-out;
    }
}

.breathe {
    animation: breathe 4s infinite ease-in-out;
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.bounce {
    animation: bounce 2s infinite;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.glow {
    animation: glow 2s infinite ease-in-out;
    will-change: box-shadow;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.text-glow {
    animation: textGlow 2s infinite ease-in-out;
    will-change: text-shadow;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.shimmer {
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.1), 
        rgba(255, 255, 255, 0.3), 
        rgba(255, 255, 255, 0.5), 
        rgba(255, 255, 255, 0.3), 
        rgba(255, 255, 255, 0.1));
    background-size: 200% 100%;
    animation: shimmer 3s infinite linear;
}

.bg-animate {
    background: linear-gradient(270deg, #4a6cf7, #818cf8, #4a6cf7);
    background-size: 200% 200%;
    animation: backgroundGlow 3s ease infinite;
}

.tilt-animation {
    animation: tilt 5s infinite ease-in-out;
    transform-style: preserve-3d;
}

.border-glow {
    animation: borderGlow 2s infinite ease-in-out;
}

.shadow-pulse {
    animation: shadowPulse 3s infinite ease-in-out;
}

.draw-svg path {
    stroke-dasharray: 100%;
    stroke-dashoffset: 100%;
    animation: drawPath 2s ease forwards;
}

.staggered-item {
    opacity: 0;
}

.staggered-item.animate {
    animation: staggeredReveal 0.5s ease forwards;
}

/* Gradient Button Animation */
.btn-gradient {
    background: linear-gradient(90deg, #4a6cf7, #a855f7, #4a6cf7);
    background-size: 200% 100%;
    animation: buttonGradient 6s infinite;
}

/* Gradient Text Animation */
.gradient-text {
    background: linear-gradient(90deg, #4a6cf7, #a855f7, #4a6cf7);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientText 12s infinite;
}

/* Button animation */
.btn-hover-effect {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-hover-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    z-index: -1;
}

.btn-hover-effect:hover::before {
    transform: translateX(100%);
}

/* Card Hover Effect */
.card-hover {
    transition: all 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);
    backface-visibility: hidden;
    transform: translateZ(0);
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.15);
}

/* Notification Animation */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    padding: 16px 24px;
    background: rgba(11, 17, 33, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--border-radius-md);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 9999;
    max-width: 400px;
    border-left: 4px solid var(--accent-color);
}

.notification.active {
    transform: translateX(0);
    opacity: 1;
}

.notification--success {
    border-left-color: #10b981;
}

.notification--success .notification__icon {
    color: #10b981;
}

.notification--error {
    border-left-color: #ef4444;
}

.notification--error .notification__icon {
    color: #ef4444;
}

.notification__icon {
    font-size: 1.5rem;
    margin-right: 16px;
}

.notification__message {
    color: white;
    font-size: 0.95rem;
}

/* Animation Delay Classes */
.delay-none {
    animation-delay: 0ms !important;
}

.delay-100 {
    animation-delay: 100ms !important;
}

.delay-200 {
    animation-delay: 200ms !important;
}

.delay-300 {
    animation-delay: 300ms !important;
}

.delay-400 {
    animation-delay: 400ms !important;
}

.delay-500 {
    animation-delay: 500ms !important;
}

.delay-600 {
    animation-delay: 600ms !important;
}

.delay-700 {
    animation-delay: 700ms !important;
}

.delay-800 {
    animation-delay: 800ms !important;
}

.delay-900 {
    animation-delay: 900ms !important;
}

.delay-1000 {
    animation-delay: 1000ms !important;
}

/* Animation Duration Classes */
.duration-300 {
    animation-duration: 300ms !important;
    transition-duration: 300ms !important;
}

.duration-500 {
    animation-duration: 500ms !important;
    transition-duration: 500ms !important;
}

.duration-700 {
    animation-duration: 700ms !important;
    transition-duration: 700ms !important;
}

.duration-1000 {
    animation-duration: 1000ms !important;
    transition-duration: 1000ms !important;
}

.duration-1500 {
    animation-duration: 1500ms !important;
    transition-duration: 1500ms !important;
}

.duration-2000 {
    animation-duration: 2000ms !important;
    transition-duration: 2000ms !important;
}

.duration-3000 {
    animation-duration: 3000ms !important;
    transition-duration: 3000ms !important;
}

/* Section Animation Settings with staggered animations */
.section-header.animate {
    animation: fadeIn 1s ease forwards;
}

.section-header .section-title.animate {
    animation: slideDown 1s ease forwards;
}

.section-header .section-subtitle.animate {
    animation: fadeIn 1s ease 0.3s forwards;
}

.about__text.animate {
    animation: fadeIn 1s ease 0.2s forwards;
}

.advantage-card.animate,
.service-item.animate,
.tech-item.animate {
    animation: slideUp 0.8s ease forwards;
}

.case-card.animate,
.team-member.animate {
    animation: zoomIn 0.8s ease forwards;
}

.contact-item.animate,
.contact__form.animate {
    animation: slideUp 0.8s ease forwards;
}