/* Animated background particles */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: float 20s infinite ease-in-out;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translate(100px, -100vh);
        opacity: 0;
    }
}

/* Floating documents */
.floating-docs {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.doc-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 20px;
    animation: floatDoc 15s infinite ease-in-out;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.doc-card.doc1 {
    width: 200px;
    height: 280px;
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}

.doc-card.doc2 {
    width: 180px;
    height: 250px;
    top: 60%;
    left: 15%;
    animation-delay: 2s;
}

.doc-card.doc3 {
    width: 220px;
    height: 300px;
    top: 20%;
    right: 15%;
    animation-delay: 4s;
}

.doc-card.doc4 {
    width: 160px;
    height: 220px;
    top: 65%;
    right: 20%;
    animation-delay: 6s;
}

@keyframes floatDoc {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-30px) rotate(2deg);
    }
}

.doc-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.doc-icon {
    width: 30px;
    height: 35px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    position: relative;
}

.doc-icon::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 10px 10px 0;
    border-color: transparent rgba(255, 255, 255, 0.5) transparent transparent;
}

.doc-title {
    color: white;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.doc-lines {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.doc-line {
    height: 3px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 2px;
    animation: pulse 2s infinite ease-in-out;
}

.doc-line:nth-child(1) { width: 100%; animation-delay: 0s; }
.doc-line:nth-child(2) { width: 90%; animation-delay: 0.2s; }
.doc-line:nth-child(3) { width: 95%; animation-delay: 0.4s; }
.doc-line:nth-child(4) { width: 85%; animation-delay: 0.6s; }
.doc-line:nth-child(5) { width: 100%; animation-delay: 0.8s; }
.doc-line:nth-child(6) { width: 80%; animation-delay: 1s; }

@keyframes pulse {
    0%, 100% {
        opacity: 0.4;
    }
    50% {
        opacity: 0.8;
    }
}

/* Connection lines */
.connection-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.line {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: drawLine 3s infinite ease-in-out;
}

@keyframes drawLine {
    0% {
        width: 0;
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        width: 200px;
        opacity: 0;
    }
}

/* Circular patterns */
.circular-pattern {
    position: absolute;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    animation: rotate 20s linear infinite;
}

.pattern1 {
    width: 300px;
    height: 300px;
    bottom: 10%;
    left: 15%;
}

.pattern2 {
    width: 200px;
    height: 200px;
    bottom: 15%;
    right: 25%;
    animation-direction: reverse;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .doc-card.doc1, .doc-card.doc3 {
        width: 120px;
        height: 180px;
    }

    .doc-card.doc2, .doc-card.doc4 {
        width: 100px;
        height: 150px;
    }

    .doc-card {
        padding: 12px;
    }

    .doc-title {
        font-size: 10px;
    }

    .doc-icon {
        width: 20px;
        height: 25px;
    }

    .doc-lines {
        gap: 5px;
    }

    .doc-line {
        height: 2px;
    }

    .circular-pattern {
        display: none;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }
}