/* =========================================
   UPDATED TRUSTED & SPARKLES SECTION
   ========================================= */
.trusted-wrapper {
    position: relative;
    width: 100%;
    min-height: auto;
    /* Removed 100vh to fix whitespace */
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #ffffff;
    overflow: hidden;
    padding-bottom: 3rem;
    /* Add reasonable padding */
}

.trusted-header {
    margin-top: 8rem;
    width: 100%;
    max-width: 42rem;
    padding: 0 1rem;
    position: relative;
    z-index: 20;
    text-align: center;
}

.trusted-title {
    font-size: 1.875rem;
    line-height: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.trusted-title .primary {
    color: #312e81;
    /* indigo-900 */
}

.trusted-title .secondary {
    color: #18181b;
    /* zinc-900 */
}

.trusted-logos-grid {
    margin-top: 3.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    align-items: center;
    color: #1e293b;
}

@media (min-width: 768px) {
    .trusted-logos-grid {
        gap: 3rem;
    }
}

.trusted-logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: default;
    transition: transform 0.3s ease;
}

.trusted-logo-container:hover {
    transform: translateY(-5px);
}

.tech-icon {
    font-size: 2.5rem;
    color: #3b82f6;
    /* Secondary Color */
    margin-bottom: 0.5rem;
}

.tech-name {
    font-weight: 700;
    font-size: 1rem;
    color: #0f172a;
    /* Primary Dark */
    letter-spacing: 0.5px;
}

/* Sparkles Area */
.sparkles-mask-wrapper {
    position: relative;
    margin-top: -8rem;
    height: 24rem;
    width: 100%;
    overflow: hidden;
    mask-image: radial-gradient(50% 50%, white, transparent);
    -webkit-mask-image: radial-gradient(50% 50%, white, transparent);
}

.purple-glow-bg {
    position: absolute;
    inset: 0;
}

.purple-glow-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at bottom center, #8350e8, transparent 70%);
    opacity: 0.4;
}

.glow-arch {
    position: absolute;
    left: -50%;
    top: 50%;
    aspect-ratio: 1 / 0.7;
    z-index: 10;
    width: 200%;
    border-radius: 100%;
    border-top: 1px solid rgba(24, 24, 27, 0.2);
    background-color: #ffffff;
}

#sparkles-container {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100%;
    width: 100%;
    mask-image: radial-gradient(50% 50%, white, transparent 85%);
    -webkit-mask-image: radial-gradient(50% 50%, white, transparent 85%);
}

#tsparticles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
}