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

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

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

@keyframes slideInRight {
    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 pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
        transform: translate3d(0,0,0);
    }
    40%, 43% {
        animation-timing-function: cubic-bezier(0.755, 0.050, 0.855, 0.060);
        transform: translate3d(0, -30px, 0);
    }
    70% {
        animation-timing-function: cubic-bezier(0.755, 0.050, 0.855, 0.060);
        transform: translate3d(0, -15px, 0);
    }
    90% {
        transform: translate3d(0,-4px,0);
    }
}

@keyframes typewriter {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink {
    from, to {
        border-color: transparent;
    }
    50% {
        border-color: #10b981;
    }
}

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

.animate-fade-in {
    animation: fadeIn 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-scale-in {
    animation: scaleIn 0.6s ease-out forwards;
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-bounce {
    animation: bounce 1s infinite;
}

/* Hero Animations */
.hero-content {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

.hero-terminal {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.5s forwards;
}

.hero-title {
    opacity: 0;
    animation: slideInLeft 0.8s ease-out 0.3s forwards;
}

.hero-description {
    opacity: 0;
    animation: slideInLeft 0.8s ease-out 0.5s forwards;
}

.hero-buttons {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.7s forwards;
}

/* Terminal Animation */
.terminal {
    opacity: 0;
    animation: scaleIn 0.8s ease-out 0.8s forwards;
}

.terminal-line {
    opacity: 0;
    animation: typewriter 1s ease-out forwards;
    white-space: nowrap;
    overflow: hidden;
    border-right: 2px solid #10b981;
    animation: typewriter 1s steps(40) forwards, blink 0.5s step-end infinite;
}

.terminal-line:nth-child(1) {
    animation-delay: 1.2s;
}

.terminal-line:nth-child(2) {
    animation-delay: 1.8s;
}

.terminal-line:nth-child(3) {
    animation-delay: 2.4s;
}

.terminal-line:nth-child(4) {
    animation-delay: 3.0s;
}

.terminal-line:nth-child(5) {
    animation-delay: 3.6s;
}

/* Feature Card Animations */
.feature-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

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

.feature-card:nth-child(1).visible {
    animation-delay: 0.1s;
}

.feature-card:nth-child(2).visible {
    animation-delay: 0.2s;
}

.feature-card:nth-child(3).visible {
    animation-delay: 0.3s;
}

/* Use Case Card Hover Animations */
.use-case-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.use-case-card:hover {
    transform: translateY(-8px) scale(1.02);
}

.use-case-card:hover .use-case-image img {
    transform: scale(1.1);
}

/* Button Hover Animations */
.btn {
    position: relative;
    overflow: hidden;
}

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

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

/* Pricing Card Animations */
.pricing-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pricing-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.pricing-card.featured {
    animation: pulse 2s infinite;
}

/* Process Step Animations */
.process-step {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.process-step.visible {
    opacity: 1;
    transform: translateY(0);
}

.process-step:nth-child(1).visible {
    animation-delay: 0.1s;
}

.process-step:nth-child(2).visible {
    animation-delay: 0.2s;
}

.process-step:nth-child(3).visible {
    animation-delay: 0.3s;
}

.process-step:nth-child(4).visible {
    animation-delay: 0.4s;
}

/* Stats Counter Animation */
.stat-number {
    transition: all 0.3s ease;
}

.stat-number.counting {
    animation: pulse 0.5s ease-in-out;
}

/* Modal Animations */
.modal {
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    transform: scale(0.8) translateY(-50px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal.show .modal-content {
    transform: scale(1) translateY(0);
}

/* Form Input Focus Animations */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    animation: pulse 0.3s ease-in-out;
}

/* Navigation Scroll Animation */
.navbar {
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(31, 41, 55, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Loading Animations */
.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Hover Effects for Images */
.feature-image,
.process-image,
.use-case-image img {
    transition: all 0.3s ease;
}

.feature-card:hover .feature-image,
.process-step:hover .process-image {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* Text Animations */
@keyframes highlight {
    0% {
        background-size: 0 100%;
    }
    100% {
        background-size: 100% 100%;
    }
}

.highlight-animation {
    background: linear-gradient(120deg, #60a5fa 0%, #60a5fa 100%);
    background-repeat: no-repeat;
    background-size: 0 100%;
    background-position: 0 100%;
    animation: highlight 1s ease-in-out forwards;
}

/* Stagger Animations */
.stagger-item {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

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

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

/* Parallax Effect */
.parallax {
    transition: transform 0.1s ease-out;
}
