/* WOW Animations & Effects */

/* Aurora Background */
.aurora-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: linear-gradient(135deg, #0a0a0f 0%, #12121a 50%, #0a0a0f 100%);
    overflow: hidden;
}

.aurora-bg::before,
.aurora-bg::after {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    animation: aurora 15s ease-in-out infinite;
}

.aurora-bg::before {
    background: radial-gradient(ellipse at 30% 20%, rgba(255, 107, 74, 0.15) 0%, transparent 50%);
    animation-delay: 0s;
}

.aurora-bg::after {
    background: radial-gradient(ellipse at 70% 80%, rgba(99, 102, 241, 0.1) 0%, transparent 50%);
    animation-delay: -7s;
}

@keyframes aurora {

    0%,
    100% {
        transform: translate(-10%, -10%) rotate(0deg);
    }

    33% {
        transform: translate(5%, 10%) rotate(120deg);
    }

    66% {
        transform: translate(-5%, 5%) rotate(240deg);
    }
}

/* Floating Particles */
.particles {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 107, 74, 0.5);
    border-radius: 50%;
    animation: float 20s infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100vh) scale(1);
        opacity: 0;
    }
}

/* Glowing Cards */
.glow-card {
    position: relative;
    background: rgba(30, 30, 42, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glow-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, #ff6b4a, #6366f1, #ff6b4a);
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s;
    filter: blur(20px);
}

.glow-card:hover::before {
    opacity: 0.5;
}

.glow-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(255, 107, 74, 0.5);
}

/* Gradient Text Animation */
.animated-gradient {
    background: linear-gradient(90deg, #ff6b4a, #ff8c70, #6366f1, #a855f7, #ff6b4a);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientFlow 5s ease infinite;
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Typing Effect */
.typewriter {
    overflow: hidden;
    border-right: 3px solid #ff6b4a;
    white-space: nowrap;
    animation: typing 3s steps(30) forwards, blink 0.8s step-end infinite;
}

@keyframes typing {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Magnetic Buttons */
.magnetic-btn {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* 3D Tilt Effect */
.tilt-card {
    transform-style: preserve-3d;
    transition: transform 0.5s;
}

/* Morphing Blob */
.blob {
    position: absolute;
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, rgba(255, 107, 74, 0.3), rgba(99, 102, 241, 0.3));
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    filter: blur(40px);
    animation: morph 10s ease-in-out infinite;
}

@keyframes morph {

    0%,
    100% {
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    }

    25% {
        border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%;
    }

    50% {
        border-radius: 50% 60% 30% 60% / 70% 40% 70% 30%;
    }

    75% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }
}

/* Neon Glow */
.neon-text {
    text-shadow: 0 0 10px rgba(255, 107, 74, 0.8), 0 0 20px rgba(255, 107, 74, 0.6), 0 0 40px rgba(255, 107, 74, 0.4);
}

/* Shimmer Effect */
.shimmer {
    position: relative;
    overflow: hidden;
}

.shimmer::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

/* Pulse Ring */
.pulse-ring {
    position: relative;
}

.pulse-ring::before {
    content: '';
    position: absolute;
    inset: -4px;
    border: 2px solid #ff6b4a;
    border-radius: inherit;
    animation: pulseRing 2s ease-out infinite;
}

@keyframes pulseRing {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

/* Vibecoder Section */
.vibecoder-section {
    padding: var(--space-3xl) 0;
}

.vibecoder-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-3xl);
}

.vibecoder-card {
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    text-align: center;
}

.vc-icon {
    font-size: 3rem;
    margin-bottom: var(--space-md);
    animation: bounce 2s ease infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.vibecoder-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: var(--color-text);
}

.vibecoder-card p {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

/* App Mockup */
.app-showcase {
    display: flex;
    justify-content: center;
}

.mockup-window {
    width: 100%;
    max-width: 900px;
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.mockup-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--color-bg-tertiary);
    border-bottom: 1px solid var(--color-border);
}

.mockup-buttons {
    display: flex;
    gap: 6px;
}

.mockup-buttons span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.mockup-title {
    flex: 1;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

.mockup-body {
    display: flex;
    min-height: 300px;
}

.mockup-sidebar {
    width: 180px;
    padding: var(--space-lg);
    background: var(--color-bg-secondary);
    border-right: 1px solid var(--color-border);
}

.mockup-step {
    padding: var(--space-sm) var(--space-md);
    margin-bottom: var(--space-sm);
    border-radius: var(--radius-md);
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

.mockup-step.done {
    color: var(--color-success);
}

.mockup-step.active {
    background: rgba(255, 107, 74, 0.1);
    color: var(--color-primary);
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

.mockup-preview {
    flex: 1;
    padding: var(--space-lg);
    background: var(--color-bg);
}

.mockup-tabs {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.mockup-tabs .tab {
    padding: var(--space-xs) var(--space-md);
    font-size: 0.75rem;
    border-radius: var(--radius-md);
    color: var(--color-text-muted);
    cursor: pointer;
}

.mockup-tabs .tab.active {
    background: var(--color-primary);
    color: white;
}

.preview-content {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
}

.preview-hero {
    height: 80px;
    background: linear-gradient(135deg, var(--color-primary), #6366f1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
    margin-bottom: var(--space-md);
}

.preview-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
}

.preview-card {
    height: 60px;
    background: var(--color-bg-secondary);
    border-radius: var(--radius-sm);
}

/* Particles JS Animation */
.particle {
    animation-delay: calc(var(--i) * 0.5s);
}

/* Fix background-clip for compatibility */
.animated-gradient {
    background-clip: text;
}